WO2015096117A1 - Method and apparatus for connecting wireless network by terminal - Google Patents

Method and apparatus for connecting wireless network by terminal Download PDF

Info

Publication number
WO2015096117A1
WO2015096117A1 PCT/CN2013/090656 CN2013090656W WO2015096117A1 WO 2015096117 A1 WO2015096117 A1 WO 2015096117A1 CN 2013090656 W CN2013090656 W CN 2013090656W WO 2015096117 A1 WO2015096117 A1 WO 2015096117A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi
terminal
wifi network
location information
location
Prior art date
Application number
PCT/CN2013/090656
Other languages
French (fr)
Chinese (zh)
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 华为终端有限公司
Priority to PCT/CN2013/090656 priority Critical patent/WO2015096117A1/en
Publication of WO2015096117A1 publication Critical patent/WO2015096117A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • H04W52/0258Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity controlling an operation mode according to history or models of usage information, e.g. activity schedule or time of day
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0274Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by switching on or off the equipment or parts thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a method and apparatus for a terminal to connect to a wireless network. Background technique
  • WiFi network can save traffic on existing 2G or 3G or 4G networks, thereby reducing the cost of Internet access.
  • connection of the WiFi network is implemented in the following manner:
  • the user WiFi manually turns on the WiFi search function of the terminal, and the terminal continuously searches for the surrounding WiFi network.
  • the login information of the WiF i network is connected to the WiFi network, and the prompt is displayed on the terminal display. information.
  • WiFi search function since the opening of the WiFi search function is controlled by the user, in order to ensure timely connection with the WiFi network, the user selects the clock to be turned on since the power is turned on. WiFi search function.
  • the WiFi search function will result in increased power consumption and reduced phone usage time.
  • the WiFi search function is turned off in order to improve the usage time of the mobile phone, when there is a WiFi network available, since the user does not turn on the WiFi search function, the connection to the WiFi network cannot be made, and the use cost of other communication networks is increased.
  • the WiFi search function is turned on and the WiFi search function is not turned on, which increases the cost of using other networks. Summary of the invention
  • Embodiments of the present invention provide a method and an apparatus for a terminal to connect to a wireless network, which can solve the problem that the WiF i search function is turned on and the WiF i search function is not turned on to increase the usage cost of other networks.
  • the present invention provides a method for a terminal to connect to a wireless network, where the method includes: Obtaining location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
  • the WiFi search function is enabled, and the WiFi search function detects whether there is an available WiFi network;
  • the WiFi network is connected according to the login information of the WiFi network.
  • the obtaining the location information of the terminal according to the preset time interval includes:
  • the method further includes:
  • a prompt message is displayed, the prompt information is used to prompt the user to turn off the WiFi search function.
  • the method further includes:
  • connection with the WiFi network according to the login information of the WiFi network includes:
  • the connection is made to the available WiFi network based on the login information.
  • the first aspect is further provided A fifth possible implementation manner, in the fifth possible implementation manner of the first aspect, after the acquiring the location information of the terminal according to the preset time interval, the method further includes:
  • the WiFi search function is turned off.
  • a sixth possible implementation manner of the first aspect is further provided, in a sixth possible implementation manner of the first aspect, If the location information is located outside the location range of the available WiFi network, the WiF i search function is disabled, including:
  • the WiFi search function is turned off.
  • the present invention provides an apparatus for connecting a terminal to a wireless network, where the apparatus includes: an acquiring unit, configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal.
  • a startup unit configured to: when the location information acquired by the acquiring unit is located in a location range of an available WiF i network, enable a WiFi search function, where the WiFi search function detects whether an available WiFi network is available;
  • a connecting unit configured to connect to the WiFi network according to the login information of the WiFi network when the WiF i search function initiated by the activation unit searches for an available WiFi network.
  • the acquiring unit configured to acquire the location information of the terminal according to the preset time interval, specifically includes:
  • the acquiring unit is configured to acquire location information of the terminal by using a long term evolution LTE base station according to the preset time interval.
  • a second possible implementation manner of the second aspect is further provided.
  • a third possible implementation manner of the second aspect is further provided.
  • the obtaining unit is further configured to acquire a preset time interval.
  • the connecting unit is configured to connect to the WiFi network according to the login information of the WiFi network, and specifically includes:
  • a determining subunit configured to determine whether the login information of the available WiFi network is saved;
  • a connection subunit configured to: when the determining subunit obtains the login information, according to the login information and the available WiFi network to connect.
  • a fifth possible implementation of the second aspect is also provided.
  • the device also includes:
  • a closing unit configured to: when the location information acquired by the acquiring unit is outside a location interval of the available WiF i network, turn off the WiFi search function.
  • a sixth possible implementation manner of the second aspect is further provided.
  • the closing unit is configured to: when the location information acquired by the acquiring unit is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically:
  • the closing unit is configured to close the WiFi search function when the acquired location information is located outside the location range of the available WiFi network in the detection of the preset number of detections.
  • the present invention provides an apparatus for connecting a terminal to a wireless network, where the apparatus includes: a processor, configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
  • the processor is further configured to: when the location information is located in a location interval of an available WiFi network, enable a WiF i search function of the WiFi chip, and the WiFi search function detects whether an available WiFi network is available;
  • the WiFi chip is further configured to connect to the WiF i network according to the login information of the WiFi network when an available WiFi network is available.
  • the processor configured to acquire location information of the terminal according to the preset time interval, specifically includes:
  • the processor is configured to acquire location information of the terminal through the Long Term Evolution (LTE) base station according to the preset time interval.
  • LTE Long Term Evolution
  • the second possible implementation manner of the foregoing third aspect also includes:
  • the display is configured to display prompt information when the location information acquired by the processor is outside a location range of an available WiFi network, where the prompt information is used to prompt the user to turn off the WiFi search function.
  • a third possible implementation manner of the third aspect is further provided.
  • the processor also uses to obtain a preset time interval.
  • a fourth possible implementation manner of the third aspect is further provided.
  • the WiF i chip is further configured to connect to the WiF i network according to the login information of the WiFi network, and specifically includes:
  • the WiFi chip is also used to: Determining whether the login information of the available WiFi network is stored in the memory; if the login information exists, connecting to the available WiFi network according to the login information.
  • the WiF i chip is further configured to turn off the WiFi search function when the location information acquired by the processor is outside a location interval of an available WiFi network.
  • the WiF i chip is further configured to: when the location information acquired by the processor is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically:
  • the WiFi chip is also used to turn off the WiFi search function when the acquired location information is outside the location range of the available WiFi network in the detection of the preset number of detections.
  • the method and device for connecting a wireless network to a terminal according to the present invention can acquire location information of the terminal according to a preset time interval; if the location information is located in a location interval of an available WiFi network, enable the WiFi search function; if available
  • the WiFi network is connected to the WiFi network according to the login information of the WiFi network.
  • the user needs to manually enable the WiFi search function.
  • the WiFi network available around is not known.
  • the WiF i search function can be determined according to the location information acquired at the preset time interval, and the surrounding WiFi network can be obtained and connected in time to reduce the user's use cost in other networks (such as 3G, 4G).
  • the present invention is to obtain the location information after the preset time interval and determine to enable the WiF i search function according to the location information, instead of continuously turning on the WiFi search function, thereby saving the power consumption of the terminal and prolonging the use time of the terminal. In turn, it can achieve a balance between turning on the WiF i search function and charging and not turning on the WiFi search function to increase the usage cost of other networks.
  • FIG. 1 is a flowchart of a method for a terminal to connect to a wireless network according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for connecting another terminal to a wireless network according to an embodiment of the present invention
  • FIG. 3 is the first embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an apparatus for connecting a wireless network to a second terminal according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of an apparatus for connecting a wireless terminal to a third terminal according to an embodiment of the present invention
  • FIG. 6 is a schematic structural diagram of an apparatus for connecting a fourth terminal to a wireless network according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method for a terminal to connect to a wireless network, where the method is applied to a terminal having a wireless network connection function, such as a smart phone, a tablet computer, etc., as shown in FIG. :
  • Step 101 Acquire location information of the terminal according to a preset time interval, where the location information is used to describe the geographic location of the terminal.
  • the preset time interval corresponds to the search frequency of the WiFi network. The longer the preset time interval is, the lower the search frequency is. The shorter the preset time interval is, the higher the search frequency is. The preset time interval is 10 minutes.
  • the location information is obtained through the base stations of the 2G, 3G, and 4G networks.
  • Step 102 If the location information is located in a location interval of the available WiFi network, the WiFi search function is enabled, and the WiFi search function detects whether there is an available WiFi network. If the coordinates of the acquired location information are all within the location interval of the available WiFi network, it is determined that the available WiFi network is available. For example, the location range of the available WiFi network is (115° 25 / ⁇ x ⁇ 117° 30', 39. 26 / ⁇ y ⁇ 39° 19'), and the obtained location information is (116. 25, 39. IV), As of 115. 25 / ⁇ 116° 25 / ⁇ 117° 30 and 39. 26 / ⁇ 39° 27 / ⁇ 39° 29' , so it is determined that there is the available WiFi network. At this point, turn on the WiFi search function.
  • Step 103 If there is a WiFi network available, connect to the WiFi network according to the login information of the WiFi network.
  • the terminal after successfully logging in to the WiFi network, the terminal saves the location interval (i.e., coverage) and login information of the WiFi network, and the login information includes a login password and a username. If there is a WiFi network available, the WiFi network is connected according to the saved login information of the WiFi network. In another case, if there is a WiFi network available, a login interface is displayed, and the WiFi network is connected according to the login information input by the user.
  • the location interval i.e., coverage
  • the WiFi network is connected according to the saved login information of the WiFi network.
  • a login interface is displayed, and the WiFi network is connected according to the login information input by the user.
  • the method for connecting a wireless network to a terminal can acquire location information of the terminal according to a preset time interval; if the location information is located in a location interval of the available WiFi network, enable the WiFi search function; if available
  • the WiFi network is connected to the WiFi network according to the login information of the WiFi network.
  • the WiFi search function can be determined according to the location information acquired at the preset time interval, and the surrounding WiFi network can be obtained and connected in time to reduce the user's use cost in other networks (such as 3G, 4G).
  • the present invention is to obtain the location information after the preset time interval and determine to enable the WiFi search function according to the location information, instead of continuously turning on the WiFi search function, thereby saving the power consumption of the terminal and prolonging the use time of the terminal.
  • the WiFi search function is turned on and the WiFi search function is not turned on to increase the usage cost of other networks.
  • the embodiment of the present invention further provides a method for connecting a terminal to a wireless network.
  • step 101 acquiring location information of the terminal according to a preset time interval, specifically Includes:
  • the base station coverage strategy is generally combined with the macro base station and the micro base station (commonly known as the indoor base station), especially after the use of the micro base station, the positioning of the LTE network is more accurate, and the accuracy of the positioning information can already be Close to the WiFi network.
  • the method for the terminal to connect to the wireless network provided by the embodiment of the present invention because the LTE base station acquires the location information of the terminal, and the LTE base station is the base station used in the 4G network, and the 4G network has higher positioning accuracy than the 3G network, so
  • the method for connecting a terminal to a wireless network provided by the embodiment of the invention can provide accurate location information and improve the accuracy of the terminal connecting to the wireless network.
  • the embodiment of the present invention further provides a method for a terminal to connect to a wireless network.
  • the method further includes:
  • prompt information is displayed, and the prompt information is used to prompt the user to turn off the WiFi search function.
  • the prompt information is as follows: "There is no WiFi available at present, please turn off the WiFi search function" and so on. Tips for information such as pictures, text, audio, animations, etc. It can also be displayed in the form of a dialog box.
  • the location information is outside the location interval of the available WiFi network.
  • the location range of the available WiFi network is (115. 25 ⁇ 117. 3( ⁇ , 39 ° 26 / ⁇ y ⁇ 39 ° 29 ), and the obtained position information is (116° 25 , 40° 00 ), due to 39. 29 ⁇ 40° 00 That is, each coordinate of the acquired location information has a location outside the location range of the available WiFi network, so it can be determined that the location information is outside the location interval of the available WiFi network.
  • the method for connecting a wireless network to a terminal provided by the embodiment of the present invention can display prompt information when the location information is located outside the location range of the available WiFi network, so that the user turns off the WiF i search function according to the prompt information, and avoids the WiFi search function for a long time. Is not available but is not available
  • the WiFi network causes power to be charged and saves terminal power.
  • the embodiment of the present invention further provides a method for a terminal to connect to a wireless network.
  • the method further includes:
  • the preset time interval is read or the preset time interval input by the user is obtained.
  • the preset time interval is stored in the memory, and the preset time interval is a universal average value, such as 10 minutes, 15 minutes, and the like. Alternatively, the user can change the preset time interval according to his or her own needs.
  • the terminal first reads and displays a preset time interval from the memory so that the user can know the current time interval. If the user thinks that the change is needed, the time interval set by the user is input, and the terminal receives the time interval input by the user as the preset time interval.
  • the method for connecting a wireless network to a terminal provided by the embodiment of the present invention can set a preset time interval according to two modes: preset and user setting, and the user can change the preset time interval according to the needs of the user, thereby improving the WiF i network search frequency. Flexibility.
  • the embodiment of the present invention further provides a method for a terminal to connect to a wireless network.
  • step 103 is performed according to the login information of the WiFi network and the WiFi network. Connections, including:
  • Step 201 Determine whether the login information of the available WiFi network is saved.
  • Step 202 If there is login information, connect to an available WiFi network according to the login information.
  • the login information of the available WiFi network is searched in the storage device, and if so, the connection is made to the available WiFi network according to the login information.
  • the method for connecting a terminal to a wireless network can implement fast login according to the stored login information.
  • the embodiment of the present invention further provides a method for a terminal to connect to a wireless network. As a further description of the method shown in FIG. 1 , after obtaining the location information of the terminal according to a preset time interval, the method is performed. Also includes:
  • the WiFi search function is turned off.
  • the method for connecting a wireless network to a terminal provided by the embodiment of the present invention can disable the WiFi search function when the location information is outside the location range of the available WiFi network, thereby saving terminal power consumption.
  • the embodiment of the present invention further provides a method for a terminal to connect to a wireless network, where the location information is located outside the location range of the available WiFi network, and the WiF i search function is disabled, including:
  • the WiF i search function is turned off.
  • the preset detection times are 3 or 5 times, and the preset detection interval is 10 seconds, 30 seconds, and so on.
  • the method for connecting a wireless network to a terminal can determine whether to disable the WiFi search function by detecting the preset number of detections, and avoiding the WiFi search function being closed due to obtaining the location information with errors once, thereby improving the accuracy of the shutdown operation. .
  • the embodiment of the present invention provides a method for a terminal to connect to a wireless network, which can be used in the process of using other wireless network connections of the terminal, such as: an infrared signal, a global positioning system (Globa l Posing Ioning System), Referred to as GPS), Bluetooth (bluetooth) and so on.
  • a wireless network such as: an infrared signal, a global positioning system (Globa l Posing Ioning System), Referred to as GPS), Bluetooth (bluetooth) and so on.
  • the embodiment of the present invention further provides a device for connecting a wireless network to a terminal, where the device is located in a terminal having a network connection function, and the device is used to implement the foregoing method.
  • the device includes:
  • the obtaining unit 31 is configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal.
  • the startup unit 32 is configured to enable a WiFi search function when the location information acquired by the acquisition unit 31 is located in a location interval of an available WiFi network, and the WiFi search function detects whether an available WiFi network is available.
  • the connecting unit 33 is configured to connect to the WiFi network according to the login information of the WiFi network when the WiFi search function initiated by the activation unit 32 searches for an available WiFi network.
  • the acquiring unit 31 is configured to acquire the location information of the terminal according to the preset time interval, and specifically includes:
  • the acquiring unit 31 is configured to obtain location information of the terminal by using the Long Term Evolution (LTE) base station according to the preset time interval.
  • LTE Long Term Evolution
  • the device further includes: a display unit 41, a closing unit 42, and a storage unit 43.
  • the display unit 41 is configured to display prompt information when the location information acquired by the acquiring unit 31 is outside a location interval of the available WiFi network, where the prompt information is used to prompt the user to disable the WiFi search function.
  • the acquiring unit 31 is further configured to acquire a preset time interval.
  • the connecting unit 33 is configured to connect to the WiFi network according to the login information of the WiFi network, and specifically includes:
  • the determining sub-unit 331 is configured to determine whether the login information of the available WiFi network is stored in the storage unit 43.
  • the connection sub-unit 332 is configured to, when the determining sub-unit 331 obtains the login information, connect to the available WiFi network according to the login information.
  • the closing unit 42 is configured to: when the location information acquired by the acquiring unit 31 is outside the location interval of the available WiFi network, turn off the WiFi search function.
  • the closing unit 42 is configured to: when the location information acquired by the acquiring unit 31 is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically: the closing unit 42 is configured to: When the acquired location information is located outside the location range of the available WiFi network in the detection of the preset number of detections, the WiF i search function is turned off.
  • the embodiment of the invention further provides a device for connecting a terminal to a wireless network. As shown in FIG. 5, the device includes:
  • the processor 51 is configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
  • the processor 51 is further configured to: when the location information is located in a location interval of an available WiFi network, enable a WiFi search function of the WiFi chip 52, and the WiFi search function detects whether an available WiF i network is available;
  • the WiFi chip 52 is further configured to connect to the WiFi network according to the login information of the WiFi network when an available WiF i network is available.
  • the processor 51 is configured to acquire location information of the terminal according to the preset time interval, and specifically includes:
  • the processor 51 is configured to acquire location information of the terminal by using a long term evolution LTE base station according to the preset time interval.
  • the device further includes: a display 61 and a memory 62.
  • the display 61 is configured to be used when the location information acquired by the processor 51 is available
  • a prompt message is displayed, and the prompt information is used to prompt the user to close
  • the processor 51 is further configured to acquire a preset time interval.
  • the WiF i chip 52 is further configured to: connect to the WiF i network according to the login information of the WiF i network, and specifically include:
  • the WiF i chip 52 is also used to:
  • the login information of the available WiF i network is stored in the memory 62; if the login information exists, it is connected to the available WiF i network according to the login information.
  • the WiF i chip 52 is further configured to: when the location information acquired by the processor 51 is outside the location interval of the available WiF i network, turn off the WiF i search function.
  • the WiF i chip 52 is further configured to: when the location information acquired by the processor 51 is located outside the location range of the available WiF i network, the WiF i search function is disabled, specifically: the WiF i chip 52 It is also used to turn off the WiF i search function when the acquired location information is located outside the location range of the available WiF i network in the detection of the preset number of detections.

Abstract

The present invention relates to the technical field of wireless communications. Disclosed are a method and an apparatus for connecting a wireless network by a terminal, which can solve the problem of an unbalanced situation in which power consumption is increased if a WiFi search function is enabled and use cost of another network is increased if the WiFi search function is disenabled. The method comprises: obtaining position information of a terminal according to a preset time interval, the position information being used for describing a geographical position of the terminal; if the position information is in a position range of an available WiFi network, enabling a WiFi search function, the WiFi search function detecting whether an available WiFi network exists; and if an available WiFi network exists, connecting the WiFi network according to login information of the WiFi network. The present invention is mainly used in a process of using a radio signal by a terminal.

Description

终端连接无线网络的方法及装置 技术领域  Method and device for connecting terminal to wireless network
本发明涉及无线通信技术领域, 尤其涉及一种终端连接无线网络的方法 及装置。 背景技术  The present invention relates to the field of wireless communication technologies, and in particular, to a method and apparatus for a terminal to connect to a wireless network. Background technique
随着无线网络技术的发展,便携式终端如智能手机、平板电脑等具备 WiFi 搜索功能。 通过 WiFi网络能够节省现 2G或 3G或 4G网络的流量, 进而降低 上网费用。 现有技术中通过下述方式实现 WiFi网络的连接:  With the development of wireless network technology, portable terminals such as smart phones and tablet computers have WiFi search functions. The WiFi network can save traffic on existing 2G or 3G or 4G networks, thereby reducing the cost of Internet access. In the prior art, the connection of the WiFi network is implemented in the following manner:
用户 WiFi手动开启终端的 WiFi搜索功能, 终端不间断的搜索周边可用 的 WiFi网络, 当有可用的 WiFi网络时, 通过 WiF i网络的登录信息连接到该 WiFi网络, 并在终端显示屏上显示提示信息。  The user WiFi manually turns on the WiFi search function of the terminal, and the terminal continuously searches for the surrounding WiFi network. When there is a WiFi network available, the login information of the WiF i network is connected to the WiFi network, and the prompt is displayed on the terminal display. information.
在实现上述网络连接的过程中, 发明人发现现有技术中至少存在如下问 题:由于 WiFi搜索功能的开启由用户进行控制,因此为了保证能够及时与 WiFi 网络进行连接, 用户选择自开机起时钟开启 WiFi搜索功能。 然而, 会存在无 法监测到可用 WiFi网络的情况, 此时开启 WiFi搜索功能会导致耗电量增大, 减少手机使用时间。 同时, 如果为了提高手机的使用时间, 而关闭 WiFi搜索 功能, 则会出现当有可用的 WiFi 网络时, 由于用户未开启 WiFi搜索功能, 导致无法与 WiFi网络连接, 提高其他通信网络的使用成本。 综上, 现有中存 在在开启 WiFi搜索功能将费电与不开启 WiFi搜索功能将增加其他网络的使 用成本之间无法平衡的问题。 发明内容  In the process of implementing the foregoing network connection, the inventor finds that at least the following problems exist in the prior art: since the opening of the WiFi search function is controlled by the user, in order to ensure timely connection with the WiFi network, the user selects the clock to be turned on since the power is turned on. WiFi search function. However, there is a situation in which it is impossible to monitor the available WiFi network. Turning on the WiFi search function will result in increased power consumption and reduced phone usage time. At the same time, if the WiFi search function is turned off in order to improve the usage time of the mobile phone, when there is a WiFi network available, since the user does not turn on the WiFi search function, the connection to the WiFi network cannot be made, and the use cost of other communication networks is increased. In summary, there is currently a problem in that the WiFi search function is turned on and the WiFi search function is not turned on, which increases the cost of using other networks. Summary of the invention
本发明的实施例提供一种终端连接无线网络的方法及装置, 能够解决在 开启 WiF i搜索功能将费电与不开启 WiF i搜索功能将增加其他网络的使用成 本之间无法平衡的问题。  Embodiments of the present invention provide a method and an apparatus for a terminal to connect to a wireless network, which can solve the problem that the WiF i search function is turned on and the WiF i search function is not turned on to increase the usage cost of other networks.
第一方面, 本发明提供了一种终端连接无线网络的方法, 所述方法包括: 根据预设时间间隔获取终端的位置信息, 所述位置信息用于描述所述终 端的地理位置; In a first aspect, the present invention provides a method for a terminal to connect to a wireless network, where the method includes: Obtaining location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
如果所述位置信息位于可用的 WiFi 网络的位置区间内, 则开启 WiFi搜 索功能, WiFi搜索功能检测是否有可用的 WiFi网络;  If the location information is located in the location range of the available WiFi network, the WiFi search function is enabled, and the WiFi search function detects whether there is an available WiFi network;
如果有可用的 WiFi网络, 则根据所述 WiFi网络的登录信息与所述 WiFi 网络进行连接。  If there is a WiFi network available, the WiFi network is connected according to the login information of the WiFi network.
在所述第一方面的第一种可能的实现方式中, 所述根据预设时间间隔获 取终端的位置信息, 具体包括:  In the first possible implementation manner of the foregoing aspect, the obtaining the location information of the terminal according to the preset time interval includes:
根据所述预设时间间隔通过长期演进 LTE基站获取终端的位置信息。 在所述第一方面的第一种可能的实现方式中, 还提供了所述第一方面的 第二种可能的实现方式, 在所述第一方面的第二种可能的实现方式中, 在所 述根据预设时间间隔获取终端的位置信息之后, 所述方法还包括:  Acquiring the location information of the terminal through the Long Term Evolution LTE base station according to the preset time interval. In a first possible implementation of the first aspect, a second possible implementation of the first aspect is also provided. In a second possible implementation manner of the first aspect, After the acquiring the location information of the terminal according to the preset time interval, the method further includes:
如果所述位置信息位于可用的 WiFi网络的位置区间外 ,则显示提示信息 , 所述提示信息用于提示用户关闭 WiFi搜索功能。  If the location information is outside the location range of the available WiFi network, a prompt message is displayed, the prompt information is used to prompt the user to turn off the WiFi search function.
在所述第一方面的第二种可能的实现方式中, 还提供了所述第一方面的 第三种可能的实现方式, 在所述第一方面的第三种可能的实现方式中, 在所 述根据预设时间间隔获取终端的位置信息之前, 所述方法还包括:  In a second possible implementation of the first aspect, a third possible implementation of the first aspect is also provided, in a third possible implementation of the first aspect, Before the obtaining the location information of the terminal according to the preset time interval, the method further includes:
获取预设时间间隔。  Get the preset time interval.
在所述第一方面的第三种可能的实现方式中, 还提供了所述第一方面的 第四种可能的实现方式, 在所述第一方面的第四种可能的实现方式中, 所述 根据所述 WiFi网络的登录信息与所述 WiFi网络进行连接, 具体包括:  In a third possible implementation of the first aspect, a fourth possible implementation of the first aspect is also provided. In a fourth possible implementation manner of the first aspect, The connection with the WiFi network according to the login information of the WiFi network includes:
判断是否保存有所述可用的 WiFi网络的登录信息;  Determining whether the login information of the available WiFi network is saved;
如果存在所述登录信息, 则根据所述登录信息与所述可用的 WiFi网络进 行连接。  If the login information exists, the connection is made to the available WiFi network based on the login information.
在所述第一方面的第四种可能的实现方式中, 还提供了所述第一方面的 第五种可能的实现方式, 在所述第一方面的第五种可能的实现方式中, 在所 述根据预设时间间隔获取终端的位置信息之后, 所述方法还包括: In a fourth possible implementation of the first aspect, the first aspect is further provided A fifth possible implementation manner, in the fifth possible implementation manner of the first aspect, after the acquiring the location information of the terminal according to the preset time interval, the method further includes:
如果所述位置信息位于可用的 WiFi 网络的位置区间外, 则关闭 WiFi搜 索功能。  If the location information is outside the location range of the available WiFi network, the WiFi search function is turned off.
在所述第一方面的第五种可能的实现方式中, 还提供了所述第一方面的 第六种可能的实现方式, 在所述第一方面的第六种可能的实现方式中, 所述 如果位置信息位于可用的 WiFi 网络的位置区间外, 则关闭 WiF i搜索功能, 具体包括:  In a fifth possible implementation manner of the first aspect, a sixth possible implementation manner of the first aspect is further provided, in a sixth possible implementation manner of the first aspect, If the location information is located outside the location range of the available WiFi network, the WiF i search function is disabled, including:
如果在预设检测次数的检测中, 获取的位置信息均位于可用的 WiFi网络 的位置区间外, 则关闭 WiFi搜索功能。  If the acquired location information is outside the location range of the available WiFi network in the detection of the preset number of detections, the WiFi search function is turned off.
第二方面, 本发明提供了一种终端连接无线网络的装置, 所述装置包括: 获取单元, 用于根据预设时间间隔获取终端的位置信息, 所述位置信息 用于描述所述终端的地理位置;  In a second aspect, the present invention provides an apparatus for connecting a terminal to a wireless network, where the apparatus includes: an acquiring unit, configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal. Location
启动单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网 络的位置区间内时, 开启 WiFi搜索功能, 所述 WiFi搜索功能检测是否有可 用的 WiFi网络;  a startup unit, configured to: when the location information acquired by the acquiring unit is located in a location range of an available WiF i network, enable a WiFi search function, where the WiFi search function detects whether an available WiFi network is available;
连接单元, 用于当所述启动单元启动的 WiF i 搜索功能搜索到有可用的 WiFi网络时, 根据所述 WiFi网络的登录信息与所述 WiFi网络进行连接。  And a connecting unit, configured to connect to the WiFi network according to the login information of the WiFi network when the WiF i search function initiated by the activation unit searches for an available WiFi network.
在所述第二方面的第一种可能的实现方式中, 所述获取单元, 用于根据 预设时间间隔获取终端的位置信息, 具体包括:  In the first possible implementation manner of the second aspect, the acquiring unit, configured to acquire the location information of the terminal according to the preset time interval, specifically includes:
所述获取单元, 用于根据所述预设时间间隔通过长期演进 LTE基站获取 终端的位置信息。  The acquiring unit is configured to acquire location information of the terminal by using a long term evolution LTE base station according to the preset time interval.
在所述第二方面的第一种可能的实现方式中, 还提供了所述第二方面的 第二种可能的实现方式, 在所述第二方面的第二种可能的实现方式中, 所述 显示单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网 络的位置区间外时, 显示提示信息, 所述提示信息用于提示用户关闭 WiFi搜 索功能。 In a first possible implementation manner of the second aspect, a second possible implementation manner of the second aspect is further provided. In a second possible implementation manner of the second aspect, Description a display unit, configured to display prompt information when the location information acquired by the acquiring unit is outside a location interval of an available WiF i network, where the prompt information is used to prompt the user to turn off the WiFi search function.
在所述第二方面的第二种可能的实现方式中, 还提供了所述第二方面的 第三种可能的实现方式, 在所述第二方面的第三种可能的实现方式中, 所述 获取单元还用于, 获取预设时间间隔。  In a second possible implementation manner of the second aspect, a third possible implementation manner of the second aspect is further provided. In a third possible implementation manner of the second aspect, The obtaining unit is further configured to acquire a preset time interval.
在所述第二方面的第三种可能的实现方式中, 还提供了所述第二方面的 第四种可能的实现方式, 在所述第二方面的第四种可能的实现方式中, 所述 连接单元, 用于根据所述 WiFi 网络的登录信息与所述 WiFi 网络进行连接, 具体包括:  In a third possible implementation of the second aspect, a fourth possible implementation of the second aspect is also provided. In a fourth possible implementation manner of the second aspect, The connecting unit is configured to connect to the WiFi network according to the login information of the WiFi network, and specifically includes:
判断子单元, 用于判断是否保存有所述可用的 WiFi网络的登录信息; 连接子单元, 用于当所述判断子单元得到存在所述登录信息时, 根据所 述登录信息与所述可用的 WiFi网络进行连接。  a determining subunit, configured to determine whether the login information of the available WiFi network is saved; a connection subunit, configured to: when the determining subunit obtains the login information, according to the login information and the available WiFi network to connect.
在所述第二方面的第四种可能的实现方式中, 还提供了所述第二方面的 第五种可能的实现方式, 在所述第二方面的第五种可能的实现方式中, 所述 装置还包括:  In a fourth possible implementation of the second aspect, a fifth possible implementation of the second aspect is also provided. In a fifth possible implementation manner of the second aspect, The device also includes:
关闭单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网 络的位置区间外时, 关闭 WiFi搜索功能。  And a closing unit, configured to: when the location information acquired by the acquiring unit is outside a location interval of the available WiF i network, turn off the WiFi search function.
在所述第二方面的第五种可能的实现方式中, 还提供了所述第二方面的 第六种可能的实现方式, 在所述第二方面的第六种可能的实现方式中, 所述 关闭单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiFi网络的 位置区间外时, 关闭 WiFi搜索功能, 具体包括:  In a fifth possible implementation manner of the second aspect, a sixth possible implementation manner of the second aspect is further provided. In a sixth possible implementation manner of the second aspect, The closing unit is configured to: when the location information acquired by the acquiring unit is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically:
所述关闭单元, 用于当在预设检测次数的检测中, 获取的位置信息均位 于可用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能。  The closing unit is configured to close the WiFi search function when the acquired location information is located outside the location range of the available WiFi network in the detection of the preset number of detections.
第三方面, 本发明提供了一种终端连接无线网络的装置, 所述装置包括: 处理器, 用于根据预设时间间隔获取终端的位置信息, 所述位置信息用 于描述所述终端的地理位置; In a third aspect, the present invention provides an apparatus for connecting a terminal to a wireless network, where the apparatus includes: a processor, configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
所述处理器还用于当所述位置信息位于可用的 WiFi 网络的位置区间内 时, 开启 WiFi芯片的 WiF i搜索功能, WiFi搜索功能检测是否有可用的 WiFi 网络;  The processor is further configured to: when the location information is located in a location interval of an available WiFi network, enable a WiF i search function of the WiFi chip, and the WiFi search function detects whether an available WiFi network is available;
所述 WiFi芯片还用于, 当有可用的 WiFi网络时, 才艮据所述 WiFi网络的 登录信息与所述 WiF i网络进行连接。  The WiFi chip is further configured to connect to the WiF i network according to the login information of the WiFi network when an available WiFi network is available.
在所述第三方面的第一种可能的实现方式中, 所述处理器, 用于根据预 设时间间隔获取终端的位置信息, 具体包括:  In a first possible implementation of the third aspect, the processor, configured to acquire location information of the terminal according to the preset time interval, specifically includes:
所述处理器, 用于根据所述预设时间间隔通过长期演进 LTE基站获取终 端的位置信息。  The processor is configured to acquire location information of the terminal through the Long Term Evolution (LTE) base station according to the preset time interval.
在所述第三方面的第一种可能的实现方式中, 还提供了所述第三方面的 第二种可能的实现方式, 在所述第三方面的第二种可能的实现方式中, 所述 装置还包括:  In a first possible implementation manner of the foregoing third aspect, the second possible implementation manner of the foregoing third aspect, The device also includes:
显示器, 用于当所述处理器获取的所述位置信息位于可用的 WiFi网络的 位置区间外时, 显示提示信息, 所述提示信息用于提示用户关闭 WiFi搜索功 能。  The display is configured to display prompt information when the location information acquired by the processor is outside a location range of an available WiFi network, where the prompt information is used to prompt the user to turn off the WiFi search function.
在所述第三方面的第二种可能的实现方式中, 还提供了所述第三方面的 第三种可能的实现方式, 在所述第三方面的第三种可能的实现方式中, 所述 处理器还用, 获取预设时间间隔。  In a second possible implementation manner of the third aspect, a third possible implementation manner of the third aspect is further provided. In a third possible implementation manner of the third aspect, The processor also uses to obtain a preset time interval.
在所述第三方面的第三种可能的实现方式中, 还提供了所述第三方面的 第四种可能的实现方式, 在所述第三方面的第四种可能的实现方式中, 所述 WiF i芯片还用于,根据所述 WiFi网络的登录信息与所述 WiF i网络进行连接, 具体包括:  In a third possible implementation manner of the third aspect, a fourth possible implementation manner of the third aspect is further provided. In a fourth possible implementation manner of the third aspect, The WiF i chip is further configured to connect to the WiF i network according to the login information of the WiFi network, and specifically includes:
所述 WiFi芯片还用于: 判断存储器中是否保存有所述可用的 WiFi网络的登录信息; 如果存在所述登录信息, 则根据所述登录信息与所述可用的 WiFi网络进 行连接。 The WiFi chip is also used to: Determining whether the login information of the available WiFi network is stored in the memory; if the login information exists, connecting to the available WiFi network according to the login information.
在所述第三方面的第四种可能的实现方式中, 还提供了所述第三方面的 第五种可能的实现方式, 在所述第三方面的第五种可能的实现方式中, 所述 WiF i芯片还用于,当所述处理器获取的所述位置信息位于可用的 WiFi网络的 位置区间外时, 关闭 WiFi搜索功能。  In a fourth possible implementation manner of the foregoing third aspect, the fifth possible implementation manner of the foregoing third aspect, The WiF i chip is further configured to turn off the WiFi search function when the location information acquired by the processor is outside a location interval of an available WiFi network.
在所述第三方面的第五种可能的实现方式中, 还提供了所述第三方面的 第六种可能的实现方式, 在所述第三方面的第六种可能的实现方式中, 所述 WiF i芯片还用于,当所述处理器获取的所述位置信息位于可用的 WiFi网络的 位置区间外时, 关闭 WiFi搜索功能, 具体包括:  In a fifth possible implementation manner of the third aspect, a sixth possible implementation manner of the foregoing third aspect is further provided, in a sixth possible implementation manner of the foregoing third aspect, The WiF i chip is further configured to: when the location information acquired by the processor is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically:
WiFi 芯片还用于, 当在预设检测次数的检测中, 获取的位置信息均位于 可用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能。  The WiFi chip is also used to turn off the WiFi search function when the acquired location information is outside the location range of the available WiFi network in the detection of the preset number of detections.
本发明提供的终端连接无线网络的方法及装置, 能够根据预设时间间隔 获取终端的位置信息;如果所述位置信息位于可用的 WiFi网络的位置区间内 , 则开启 WiFi搜索功能; 如果有可用的 WiFi网络, 则根据所述 WiFi网络的登 录信息与所述 WiFi 网络进行连接。 现有技术中, 需要用户手动开启 WiFi搜 索功能, 当用户不开启时, 则无法获知周围可用的 WiFi网络。 本发明中, 能 够根据预设时间间隔获取的位置信息确定启动 WiF i搜索功能, 及时获取周围 可用的 WiFi网络并与之连接, 减少用户在其他网络(如 3G、 4G )中的使用成 本。 同时, 本发明是在预设时间间隔后获取的位置信息并根据位置信息确定 开启 WiF i搜索功能, 而非持续开启 WiFi搜索功能, 因此能够节省终端的功 耗,延长终端的使用时间。进而达到在开启 WiF i搜索功能将费电与不开启 WiFi 搜索功能将增加其他网络的使用成本之间找到平衡的效果。  The method and device for connecting a wireless network to a terminal according to the present invention can acquire location information of the terminal according to a preset time interval; if the location information is located in a location interval of an available WiFi network, enable the WiFi search function; if available The WiFi network is connected to the WiFi network according to the login information of the WiFi network. In the prior art, the user needs to manually enable the WiFi search function. When the user does not turn on, the WiFi network available around is not known. In the present invention, the WiF i search function can be determined according to the location information acquired at the preset time interval, and the surrounding WiFi network can be obtained and connected in time to reduce the user's use cost in other networks (such as 3G, 4G). At the same time, the present invention is to obtain the location information after the preset time interval and determine to enable the WiF i search function according to the location information, instead of continuously turning on the WiFi search function, thereby saving the power consumption of the terminal and prolonging the use time of the terminal. In turn, it can achieve a balance between turning on the WiF i search function and charging and not turning on the WiFi search function to increase the usage cost of other networks.
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any creative work.
图 1为本发明实施例中一个终端连接无线网络的方法的流程图; 图 2为本发明实施例中另一个终端连接无线网络的方法的流程图; 图 3为本发明实施例中第一个终端连接无线网络的装置的结构示意图; 图 4为本发明实施例中第二个终端连接无线网络的装置的结构示意图; 图 5为本发明实施例中第三个终端连接无线网络的装置的结构示意图; 图 6为本发明实施例中第四个终端连接无线网络的装置的结构示意图。 具体实施方式  1 is a flowchart of a method for a terminal to connect to a wireless network according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for connecting another terminal to a wireless network according to an embodiment of the present invention; FIG. 3 is the first embodiment of the present invention; FIG. 4 is a schematic structural diagram of an apparatus for connecting a wireless network to a second terminal according to an embodiment of the present invention; FIG. 5 is a schematic structural diagram of an apparatus for connecting a wireless terminal to a third terminal according to an embodiment of the present invention; FIG. 6 is a schematic structural diagram of an apparatus for connecting a fourth terminal to a wireless network according to an embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例提供了一种终端连接无线网络的方法, 所述方法应用于具 有无线网络连接功能的终端中, 所述终端如智能手机、 平板电脑等, 如图 1 所示, 所述方法包括:  The embodiment of the present invention provides a method for a terminal to connect to a wireless network, where the method is applied to a terminal having a wireless network connection function, such as a smart phone, a tablet computer, etc., as shown in FIG. :
步骤 101、根据预设时间间隔获取终端的位置信息,位置信息用于描述终 端的地理位置。  Step 101: Acquire location information of the terminal according to a preset time interval, where the location information is used to describe the geographic location of the terminal.
预设时间间隔对应 WiFi网络的搜索频率, 预设时间间隔越长搜索频率越 低,预设时间间隔越短搜索频率越高。预设时间间隔如 10分钟。通过 2G、 3G、 4G网络的基站获取位置信息。  The preset time interval corresponds to the search frequency of the WiFi network. The longer the preset time interval is, the lower the search frequency is. The shorter the preset time interval is, the higher the search frequency is. The preset time interval is 10 minutes. The location information is obtained through the base stations of the 2G, 3G, and 4G networks.
步骤 102、如果位置信息位于可用的 WiFi网络的位置区间内,则开启 WiFi 搜索功能, WiFi搜索功能检测是否有可用的 WiFi网络。 如果获取到的位置信息的各坐标均位于可用 WiFi网络的位置区间内, 则 确定有所述可用的 WiFi 网络。 如, 可用 WiFi 网络的位置区间为 (115° 25/<x<117° 30' , 39。 26/<y<39° 19' ) ,获得的位置信息为 ( 116。 25 , 39。 IV ), 由于 115。 25/<116° 25/<117° 30 且 39。 26/<39° 27/<39° 29' , 因此可确定有所述可用的 WiFi网络。 此时, 开启 WiFi搜索功能。 Step 102: If the location information is located in a location interval of the available WiFi network, the WiFi search function is enabled, and the WiFi search function detects whether there is an available WiFi network. If the coordinates of the acquired location information are all within the location interval of the available WiFi network, it is determined that the available WiFi network is available. For example, the location range of the available WiFi network is (115° 25 / <x<117° 30', 39. 26 / <y<39° 19'), and the obtained location information is (116. 25, 39. IV), As of 115. 25 / <116° 25 / <117° 30 and 39. 26 / <39° 27 / <39° 29' , so it is determined that there is the available WiFi network. At this point, turn on the WiFi search function.
步骤 103、如果有可用的 WiFi网络,则根据 WiFi网络的登录信息与 WiFi 网络进行连接。  Step 103: If there is a WiFi network available, connect to the WiFi network according to the login information of the WiFi network.
一种情况, 成功登陆到 WiFi 网络后, 终端对 WiFi 网络的位置区间 (即 覆盖范围)和登录信息进行保存, 该登录信息包括登录密码和用户名。 如果 有可用的 WiFi网络, 则根据已保存的所述 WiFi网络的登录信息与所述 WiFi 网络进行连接。 另一种情况, 如果有可用的 WiFi网络, 则显示登录界面, 根 据用户输入的登录信息与所述 WiFi网络进行连接。  In one case, after successfully logging in to the WiFi network, the terminal saves the location interval (i.e., coverage) and login information of the WiFi network, and the login information includes a login password and a username. If there is a WiFi network available, the WiFi network is connected according to the saved login information of the WiFi network. In another case, if there is a WiFi network available, a login interface is displayed, and the WiFi network is connected according to the login information input by the user.
本发明实施例提供的终端连接无线网络的方法, 能够根据预设时间间隔 获取终端的位置信息;如果所述位置信息位于可用的 WiFi网络的位置区间内 , 则开启 WiFi搜索功能; 如果有可用的 WiFi网络, 则根据所述 WiFi网络的登 录信息与所述 WiFi 网络进行连接。 现有技术中, 需要用户手动开启 WiFi搜 索功能, 当用户不开启时, 则无法获知周围可用的 WiFi网络。 本发明中, 能 够根据预设时间间隔获取的位置信息确定启动 WiFi搜索功能, 及时获取周围 可用的 WiFi网络并与之连接, 减少用户在其他网络(如 3G、 4G)中的使用成 本。 同时, 本发明是在预设时间间隔后获取的位置信息并根据位置信息确定 开启 WiFi搜索功能, 而非持续开启 WiFi搜索功能, 因此能够节省终端的功 耗,延长终端的使用时间。进而达到在开启 WiFi搜索功能将费电与不开启 WiFi 搜索功能将增加其他网络的使用成本之间找到平衡的效果。  The method for connecting a wireless network to a terminal according to the embodiment of the present invention can acquire location information of the terminal according to a preset time interval; if the location information is located in a location interval of the available WiFi network, enable the WiFi search function; if available The WiFi network is connected to the WiFi network according to the login information of the WiFi network. In the prior art, the user needs to manually enable the WiFi search function. When the user does not turn on, the WiFi network available around is not known. In the present invention, the WiFi search function can be determined according to the location information acquired at the preset time interval, and the surrounding WiFi network can be obtained and connected in time to reduce the user's use cost in other networks (such as 3G, 4G). At the same time, the present invention is to obtain the location information after the preset time interval and determine to enable the WiFi search function according to the location information, instead of continuously turning on the WiFi search function, thereby saving the power consumption of the terminal and prolonging the use time of the terminal. In turn, it is achieved that the WiFi search function is turned on and the WiFi search function is not turned on to increase the usage cost of other networks.
本发明实施例还提供了一种终端连接无线网络的方法, 作为对图 1 所示 方法的进一步说明, 步骤 101、 根据预设时间间隔获取终端的位置信息, 具体 包括: The embodiment of the present invention further provides a method for connecting a terminal to a wireless network. As a further description of the method shown in FIG. 1, step 101: acquiring location information of the terminal according to a preset time interval, specifically Includes:
根据所述预设时间间隔通过长期演进 LTE基站获取终端的位置信息。 第 4代移动通信网络 LTE技术, 其基站覆盖策略一般釆用宏基站和微基 站(俗称室内基站)相结合,特别是釆用微基站后, LTE网络定位会更加准确, 其定位信息精度已经可以接近 WiFi网络。  Acquiring the location information of the terminal through the Long Term Evolution LTE base station according to the preset time interval. The LTE technology of the 4th generation mobile communication network, the base station coverage strategy is generally combined with the macro base station and the micro base station (commonly known as the indoor base station), especially after the use of the micro base station, the positioning of the LTE network is more accurate, and the accuracy of the positioning information can already be Close to the WiFi network.
本发明实施例提供的终端连接无线网络的方法, 由于通过 LTE基站获取 终端的位置信息, 而 LET基站为 4G网络中使用的基站, 同时 4G网络较 3G网 络具有更高的定位准确度, 因此本发明实施例提供的终端连接无线网络的方 法能够提供精准的位置信息, 提高终端连接无线网络的准确性。  The method for the terminal to connect to the wireless network provided by the embodiment of the present invention, because the LTE base station acquires the location information of the terminal, and the LTE base station is the base station used in the 4G network, and the 4G network has higher positioning accuracy than the 3G network, so The method for connecting a terminal to a wireless network provided by the embodiment of the invention can provide accurate location information and improve the accuracy of the terminal connecting to the wireless network.
本发明实施例还提供了一种终端连接无线网络的方法, 作为对图 1 所示 方法的进一步说明,在步骤 101、根据预设时间间隔获取终端的位置信息之后, 所述方法还包括:  The embodiment of the present invention further provides a method for a terminal to connect to a wireless network. As a further description of the method shown in FIG. 1 , after obtaining the location information of the terminal according to the preset time interval, the method further includes:
如果所述位置信息位于可用的 WiF i网络的位置区间外 ,则显示提示信息 , 所述提示信息用于提示用户关闭 WiFi搜索功能。  If the location information is outside the location range of the available WiF i network, prompt information is displayed, and the prompt information is used to prompt the user to turn off the WiFi search function.
提示信息如: "当前无可用 WiFi , 请关闭 WiFi搜索功能" 等。 提示信息 的载体如图片、 文字、 音频、 动画等。 也可通过对话框的形式进行显示。  The prompt information is as follows: "There is no WiFi available at present, please turn off the WiFi search function" and so on. Tips for information such as pictures, text, audio, animations, etc. It can also be displayed in the form of a dialog box.
如果获取到的位置信息的各坐标有至少一个位于可用 WiFi网络的位置区 间外, 则确定所述位置信息位于可用的 WiFi网络的位置区间外。 例如: 可用 WiFi网络的位置区间为( 115。 25 <χ<117。 3(Τ , 39 ° 26/ <y<39 ° 29 ),获得 的位置信息为(116° 25 , 40° 00 ), 由于 39。 29 <40° 00 即获取到的位置 信息的各坐标有一个位于可用 WiFi网络的位置区间外, 因此可确定所述位置 信息位于可用的 WiFi网络的位置区间外。 If the coordinates of the acquired location information have at least one location interval outside the available WiFi network, it is determined that the location information is outside the location interval of the available WiFi network. For example: The location range of the available WiFi network is (115. 25 <χ<117. 3(Τ , 39 ° 26 / <y<39 ° 29 ), and the obtained position information is (116° 25 , 40° 00 ), due to 39. 29 <40° 00 That is, each coordinate of the acquired location information has a location outside the location range of the available WiFi network, so it can be determined that the location information is outside the location interval of the available WiFi network.
本发明实施例提供的终端连接无线网络的方法, 能够在确定位置信息位 于可用的 WiFi网络的位置区间外时, 显示提示信息, 以便用户根据提示信息 关闭 WiF i搜索功能, 避免 WiFi搜索功能长时间处于开启状态却没有可用的 WiFi网络导致费电, 节省终端电量。 The method for connecting a wireless network to a terminal provided by the embodiment of the present invention can display prompt information when the location information is located outside the location range of the available WiFi network, so that the user turns off the WiF i search function according to the prompt information, and avoids the WiFi search function for a long time. Is not available but is not available The WiFi network causes power to be charged and saves terminal power.
本发明实施例还提供了一种终端连接无线网络的方法, 作为对图 1 所示 方法的进一步说明,在步骤 101、根据预设时间间隔获取终端的位置信息之前, 所述方法还包括:  The embodiment of the present invention further provides a method for a terminal to connect to a wireless network. As a further description of the method shown in FIG. 1 , before the step 101 acquires the location information of the terminal according to the preset time interval, the method further includes:
获取预设时间间隔。  Get the preset time interval.
具体的, 读取预设时间间隔或获取用户输入的预设时间间隔。  Specifically, the preset time interval is read or the preset time interval input by the user is obtained.
预设时间间隔保存在存储器中, 预设时间间隔为一个具有普遍性的平均 数值, 如 10分钟、 15分钟等。 或者, 用户根据自己的需要, 更改预设时间间 隔。 此外, 终端首先从存储器中读取并显示预设时间间隔, 以便用户获知当 前的时间间隔。 用户如果认为需要更改, 则输入用户设定的时间间隔, 终端 接收用户输入的时间间隔作为预设时间间隔。  The preset time interval is stored in the memory, and the preset time interval is a universal average value, such as 10 minutes, 15 minutes, and the like. Alternatively, the user can change the preset time interval according to his or her own needs. In addition, the terminal first reads and displays a preset time interval from the memory so that the user can know the current time interval. If the user thinks that the change is needed, the time interval set by the user is input, and the terminal receives the time interval input by the user as the preset time interval.
本发明实施例提供的终端连接无线网络的方法, 能够根据通过预置和用 户设置两种方式设定预设时间间隔, 用户可以根据自己的需要更改预设时间 间隔, 进而提高 WiF i网络搜索频率的灵活性。  The method for connecting a wireless network to a terminal provided by the embodiment of the present invention can set a preset time interval according to two modes: preset and user setting, and the user can change the preset time interval according to the needs of the user, thereby improving the WiF i network search frequency. Flexibility.
本发明实施例还提供了一种终端连接无线网络的方法, 作为对图 1 所示 方法的进一步说明, 如图 2所示, 步骤 103、 根据所述 WiFi网络的登录信息 与所述 WiFi网络进行连接, 具体包括:  The embodiment of the present invention further provides a method for a terminal to connect to a wireless network. As a further description of the method shown in FIG. 1, as shown in FIG. 2, step 103 is performed according to the login information of the WiFi network and the WiFi network. Connections, including:
步骤 201、 判断是否保存有可用的 WiFi网络的登录信息。  Step 201: Determine whether the login information of the available WiFi network is saved.
步骤 202、 如果存在登录信息, 则根据登录信息与可用的 WiFi 网络进行 连接。  Step 202: If there is login information, connect to an available WiFi network according to the login information.
为了快速登录, 在存储设备中查找可用的 WiFi网络的登录信息, 如果存 在, 则根据登录信息与所述可用的 WiFi网络进行连接。  In order to log in quickly, the login information of the available WiFi network is searched in the storage device, and if so, the connection is made to the available WiFi network according to the login information.
本发明实施例提供的终端连接无线网络的方法, 能够根据已存储的登录 信息, 实现快速登录。  The method for connecting a terminal to a wireless network according to an embodiment of the present invention can implement fast login according to the stored login information.
在使用工程中发明人还发现, WiFi搜索功能的关闭由用户进行控制, 当 用户人工判断即将离开 WiFi 网络的覆盖范围时, 手动关闭 WiFi搜索功能, 以便减少终端的功耗。 出现当用户离开 WiFi 网路的覆盖区域而未关闭 WiFi 搜索功能时,终端仍将不间断的搜索可用的 WiFi网络,进而增大终端的功耗, 降低终端的使用时间的问题。 针对上述问题, 本发明实施例还提供了一种终 端连接无线网络的方法, 作为对图 1所示方法的进一步说明, 在步骤 101、 根 据预设时间间隔获取终端的位置信息之后, 所述方法还包括: In the use of the project, the inventor also found that the shutdown of the WiFi search function is controlled by the user. When the user manually judges that the coverage of the WiFi network is about to leave, the WiFi search function is manually turned off to reduce the power consumption of the terminal. When the user leaves the coverage area of the WiFi network without turning off the WiFi search function, the terminal will continue to search for the available WiFi network without interruption, thereby increasing the power consumption of the terminal and reducing the usage time of the terminal. For the above problem, the embodiment of the present invention further provides a method for a terminal to connect to a wireless network. As a further description of the method shown in FIG. 1 , after obtaining the location information of the terminal according to a preset time interval, the method is performed. Also includes:
如果所述位置信息位于可用的 WiFi 网络的位置区间外, 则关闭 WiFi搜 索功能。  If the location information is outside the location range of the available WiFi network, the WiFi search function is turned off.
本发明实施例提供的终端连接无线网络的方法, 能够当所述位置信息位 于可用的 WiFi 网络的位置区间外时, 关闭 WiFi搜索功能, 进而节省终端能 耗。  The method for connecting a wireless network to a terminal provided by the embodiment of the present invention can disable the WiFi search function when the location information is outside the location range of the available WiFi network, thereby saving terminal power consumption.
进一步的, 本发明实施例还提供了一种终端连接无线网络的方法, 所述 如果位置信息位于可用的 WiFi 网络的位置区间外, 则关闭 WiF i搜索功能, 具体包括:  Further, the embodiment of the present invention further provides a method for a terminal to connect to a wireless network, where the location information is located outside the location range of the available WiFi network, and the WiF i search function is disabled, including:
如果在预设检测次数的检测中, 获取的位置信息均位于可用的 WiFi网络 的位置区间外, 则关闭 WiF i搜索功能。  If the acquired location information is outside the location range of the available WiFi network in the detection of the preset number of detections, the WiF i search function is turned off.
预设检测次数如 3次或 5次等, 预设检测间隔如 10秒、 30秒等。  The preset detection times are 3 or 5 times, and the preset detection interval is 10 seconds, 30 seconds, and so on.
本发明实施例提供的终端连接无线网络的方法, 能够通过预设检测次数 的检测确定是否关闭 WiFi搜索功能, 避免因一次获取到有误差的位置信息导 致关闭 WiFi搜索功能, 提高关闭操作的准确性。  The method for connecting a wireless network to a terminal according to the embodiment of the present invention can determine whether to disable the WiFi search function by detecting the preset number of detections, and avoiding the WiFi search function being closed due to obtaining the location information with errors once, thereby improving the accuracy of the shutdown operation. .
需要说明的是, 本发明实施例所提供一种终端连接无线网络的方法, 能 够拥有终端的其他无线网络连接的使用过程中, 如: 红外信号、 全球定位系 统 ( Globa l Pos i t ioning Sys tem, 简称 GPS )、 蓝牙 ( bluetooth )等。 在使 用上述无线信号时, 同样可以根据上述方法达到在开启无线信号搜索功能将 费电与不开启无线信号搜索功能将增加其他网络的使用成本之间达到平衡的 效果。 It should be noted that, the embodiment of the present invention provides a method for a terminal to connect to a wireless network, which can be used in the process of using other wireless network connections of the terminal, such as: an infrared signal, a global positioning system (Globa l Posing Ioning System), Referred to as GPS), Bluetooth (bluetooth) and so on. When using the above wireless signal, it is also possible to achieve a balance between the power-on and the wireless signal search function will increase the usage cost of other networks when the wireless signal search function is turned on according to the above method. Effect.
本发明实施例还提供了一种终端连接无线网络的装置, 所述装置位于具 有网络连接功能的终端中, 所述装置用于实施上述方法, 如图 3 所示, 所述 装置包括:  The embodiment of the present invention further provides a device for connecting a wireless network to a terminal, where the device is located in a terminal having a network connection function, and the device is used to implement the foregoing method. As shown in FIG. 3, the device includes:
获取单元 31 , 用于根据预设时间间隔获取终端的位置信息, 所述位置信 息用于描述所述终端的地理位置。  The obtaining unit 31 is configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal.
启动单元 32 , 用于当所述获取单元 31 获取的所述位置信息位于可用的 WiFi网络的位置区间内时, 开启 WiFi搜索功能, 所述 WiFi搜索功能检测是 否有可用的 WiFi网络。  The startup unit 32 is configured to enable a WiFi search function when the location information acquired by the acquisition unit 31 is located in a location interval of an available WiFi network, and the WiFi search function detects whether an available WiFi network is available.
连接单元 33 , 用于当所述启动单元 32启动的 WiFi搜索功能搜索到有可 用的 WiFi网络时,根据所述 WiFi网络的登录信息与所述 WiFi网络进行连接。  The connecting unit 33 is configured to connect to the WiFi network according to the login information of the WiFi network when the WiFi search function initiated by the activation unit 32 searches for an available WiFi network.
进一步的, 所述获取单元 31 , 用于根据预设时间间隔获取终端的位置信 息, 具体包括:  Further, the acquiring unit 31 is configured to acquire the location information of the terminal according to the preset time interval, and specifically includes:
所述获取单元 31 , 用于根据所述预设时间间隔通过长期演进 LTE基站获 取终端的位置信息。  The acquiring unit 31 is configured to obtain location information of the terminal by using the Long Term Evolution (LTE) base station according to the preset time interval.
进一步的, 如图 4所示, 所述装置还包括: 显示单元 41、 关闭单元 42和 存储单元 43。  Further, as shown in FIG. 4, the device further includes: a display unit 41, a closing unit 42, and a storage unit 43.
所述显示单元 41 ,用于当所述获取单元 31获取的所述位置信息位于可用 的 WiFi网络的位置区间外时, 显示提示信息, 所述提示信息用于提示用户关 闭 WiFi搜索功能。  The display unit 41 is configured to display prompt information when the location information acquired by the acquiring unit 31 is outside a location interval of the available WiFi network, where the prompt information is used to prompt the user to disable the WiFi search function.
进一步的, 所述获取单元 31还用于, 获取预设时间间隔。  Further, the acquiring unit 31 is further configured to acquire a preset time interval.
进一步的,连接单元 33 ,用于根据所述 WiFi网络的登录信息与所述 WiFi 网络进行连接, 具体包括:  Further, the connecting unit 33 is configured to connect to the WiFi network according to the login information of the WiFi network, and specifically includes:
判断子单元 331 ,用于判断存储单元 43中是否保存有所述可用的 WiFi网 络的登录信息。 连接子单元 332 , 用于当所述判断子单元 331得到存在所述登录信息时, 根据所述登录信息与所述可用的 WiFi网络进行连接。 The determining sub-unit 331 is configured to determine whether the login information of the available WiFi network is stored in the storage unit 43. The connection sub-unit 332 is configured to, when the determining sub-unit 331 obtains the login information, connect to the available WiFi network according to the login information.
进一步的, 所述关闭单元 42 , 用于当所述获取单元 31获取的所述位置信 息位于可用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能。  Further, the closing unit 42 is configured to: when the location information acquired by the acquiring unit 31 is outside the location interval of the available WiFi network, turn off the WiFi search function.
进一步的, 所述关闭单元 42 , 用于当所述获取单元 31获取的所述位置信 息位于可用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能, 具体包括: 所述关闭单元 42 , 用于当在预设检测次数的检测中, 获取的位置信息均 位于可用的 WiFi网络的位置区间外时, 关闭 WiF i搜索功能。  Further, the closing unit 42 is configured to: when the location information acquired by the acquiring unit 31 is located outside the location interval of the available WiFi network, the WiFi search function is disabled, specifically: the closing unit 42 is configured to: When the acquired location information is located outside the location range of the available WiFi network in the detection of the preset number of detections, the WiF i search function is turned off.
本发明实施例还提供了一种终端连接无线网络的装置, 如图 5 所示, 所 述装置包括:  The embodiment of the invention further provides a device for connecting a terminal to a wireless network. As shown in FIG. 5, the device includes:
处理器 51 , 用于根据预设时间间隔获取终端的位置信息, 所述位置信息 用于描述所述终端的地理位置;  The processor 51 is configured to acquire location information of the terminal according to a preset time interval, where the location information is used to describe a geographic location of the terminal;
所述处理器 51还用于当所述位置信息位于可用的 WiFi 网络的位置区间 内时, 开启 WiFi芯片 52的 WiFi搜索功能, WiFi搜索功能检测是否有可用的 WiF i网络;  The processor 51 is further configured to: when the location information is located in a location interval of an available WiFi network, enable a WiFi search function of the WiFi chip 52, and the WiFi search function detects whether an available WiF i network is available;
所述 WiFi芯片 52还用于, 当有可用的 WiF i网络时, 根据所述 WiFi网 络的登录信息与所述 WiFi网络进行连接。  The WiFi chip 52 is further configured to connect to the WiFi network according to the login information of the WiFi network when an available WiF i network is available.
进一步的, 所述处理器 51 , 用于根据预设时间间隔获取终端的位置信息, 具体包括:  Further, the processor 51 is configured to acquire location information of the terminal according to the preset time interval, and specifically includes:
所述处理器 51 , 用于根据所述预设时间间隔通过长期演进 LTE基站获取 终端的位置信息。  The processor 51 is configured to acquire location information of the terminal by using a long term evolution LTE base station according to the preset time interval.
进一步的, 如图 6所示, 所述装置还包括: 显示器 61、 存储器 62。  Further, as shown in FIG. 6, the device further includes: a display 61 and a memory 62.
所述显示器 61 , 用于当所述处理器 51 获取的所述位置信息位于可用的 The display 61 is configured to be used when the location information acquired by the processor 51 is available
WiFi 网络的位置区间外时, 显示提示信息, 所述提示信息用于提示用户关闭When the location of the WiFi network is outside the range, a prompt message is displayed, and the prompt information is used to prompt the user to close
WiF i搜索功能。 进一步的, 所述处理器 51还用, 获取预设时间间隔。 WiF i search function. Further, the processor 51 is further configured to acquire a preset time interval.
进一步的, 所述 WiF i芯片 52还用于, 根据所述 WiF i网络的登录信息与 所述 WiF i网络进行连接, 具体包括:  Further, the WiF i chip 52 is further configured to: connect to the WiF i network according to the login information of the WiF i network, and specifically include:
所述 WiF i芯片 52还用于:  The WiF i chip 52 is also used to:
判断存储器 62中是否保存有所述可用的 WiF i网络的登录信息; 如果存在所述登录信息, 则根据所述登录信息与所述可用的 WiF i网络进 行连接。  It is judged whether or not the login information of the available WiF i network is stored in the memory 62; if the login information exists, it is connected to the available WiF i network according to the login information.
进一步的, 所述 WiF i芯片 52还用于, 当所述处理器 51获取的所述位置 信息位于可用的 WiF i网络的位置区间外时, 关闭 WiF i搜索功能。  Further, the WiF i chip 52 is further configured to: when the location information acquired by the processor 51 is outside the location interval of the available WiF i network, turn off the WiF i search function.
进一步的, 所述 WiF i芯片 52还用于, 当所述处理器 51获取的所述位置 信息位于可用的 WiF i网络的位置区间外时, 关闭 WiF i搜索功能, 具体包括: WiF i芯片 52还用于, 当在预设检测次数的检测中, 获取的位置信息均位于可 用的 WiF i网络的位置区间外时, 关闭 WiF i搜索功能。  Further, the WiF i chip 52 is further configured to: when the location information acquired by the processor 51 is located outside the location range of the available WiF i network, the WiF i search function is disabled, specifically: the WiF i chip 52 It is also used to turn off the WiF i search function when the acquired location information is located outside the location range of the available WiF i network in the detection of the preset number of detections.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 仅以上 述各功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功 能分配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分功能。 上述描述的系统, 装置和单元的具体 工作过程, 可以参考前述方法实施例中的对应过程, 在此不再赘述。  It will be apparent to those skilled in the art that, for convenience and brevity of description, only the division of each functional module described above is exemplified. In practical applications, the above-mentioned function assignment can be completed by different functional modules as needed. The internal structure of the device is divided into different functional modules to perform all or part of the functions described above. For the specific working process of the system, the device and the unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利 要 求 书 claims
1、 一种终端连接无线网络的方法, 其特征在于, 所述方法包括: 根据预设时间间隔获取终端的位置信息, 所述位置信息用于描述所述终端 的地理位置; 1. A method for a terminal to connect to a wireless network, characterized in that the method includes: obtaining location information of the terminal according to a preset time interval, and the location information is used to describe the geographical location of the terminal;
如果所述位置信息位于可用的 WiFi 网络的位置区间内, 则开启 WiFi搜索 功能, WiFi搜索功能检测是否有可用的 WiFi网络; If the location information is within the location interval of an available WiFi network, the WiFi search function is turned on, and the WiFi search function detects whether there is an available WiFi network;
如果有可用的 WiFi网络, 则才艮据所述 WiFi网络的登录信息与所述 WiFi网 络进行连接。 If there is an available WiFi network, connect to the WiFi network based on the login information of the WiFi network.
2、 根据权利要求 1所述的终端连接无线网络的方法, 其特征在于, 所述根 据预设时间间隔获取终端的位置信息, 具体包括: 2. The method for a terminal to connect to a wireless network according to claim 1, wherein the obtaining the location information of the terminal according to a preset time interval specifically includes:
根据所述预设时间间隔通过长期演进 LTE基站获取终端的位置信息。 The location information of the terminal is obtained through the Long Term Evolution LTE base station according to the preset time interval.
3、 根据权利要求 2所述的终端连接无线网络的方法, 其特征在于, 在所述 根据预设时间间隔获取终端的位置信息之后, 所述方法还包括: 3. The method for a terminal to connect to a wireless network according to claim 2, wherein after obtaining the location information of the terminal according to the preset time interval, the method further includes:
如果所述位置信息位于可用的 WiF i网络的位置区间外, 则显示提示信息, 所述提示信息用于提示用户关闭 WiFi搜索功能。 If the location information is outside the location range of the available WiFi network, prompt information is displayed, and the prompt information is used to prompt the user to turn off the WiFi search function.
4、 根据权利要求 3所述的终端连接无线网络的方法, 其特征在于, 在所述 根据预设时间间隔获取终端的位置信息之前, 所述方法还包括: 4. The method for a terminal to connect to a wireless network according to claim 3, wherein before obtaining the location information of the terminal according to the preset time interval, the method further includes:
获取预设时间间隔。 Get the preset time interval.
5、 根据权利要求 4所述的终端连接无线网络的方法, 其特征在于, 所述根 据所述 WiFi网络的登录信息与所述 WiFi网络进行连接, 具体包括: 5. The method for connecting a terminal to a wireless network according to claim 4, wherein the connection to the WiFi network based on the login information of the WiFi network specifically includes:
判断是否保存有所述可用的 WiF i网络的登录信息; Determine whether the login information of the available WiFi network is saved;
如果存在所述登录信息, 则根据所述登录信息与所述可用的 WiFi网络进行 连接。 If the login information exists, connect to the available WiFi network according to the login information.
6、 根据权利要求 5中所述的终端连接无线网络的方法, 其特征在于, 在所 述根据预设时间间隔获取终端的位置信息之后, 所述方法还包括: 6. The method for a terminal to connect to a wireless network according to claim 5, wherein after obtaining the location information of the terminal according to the preset time interval, the method further includes:
如果所述位置信息位于可用的 WiFi 网络的位置区间外, 则关闭 WiFi搜索 功能。 If the location information is outside the location range of the available WiFi network, the WiFi search function is turned off.
7、 根据权利要求 6所述的终端连接无线网络的方法, 其特征在于, 所述如 果位置信息位于可用的 WiF i 网络的位置区间外, 则关闭 WiF i搜索功能, 具体 包括: 7. The method for connecting a terminal to a wireless network according to claim 6, wherein if the location information is located outside the location interval of an available WiFi network, the WiFi search function is turned off, specifically including:
如果在预设检测次数的检测中, 获取的位置信息均位于可用的 WiF i网络的 位置区间外, 则关闭 WiF i搜索功能。 If the location information obtained during the preset detection times is outside the location range of the available WiFi network, the WiFi search function is turned off.
8、 一种终端连接无线网络的装置, 其特征在于, 所述装置包括: 8. A device for connecting a terminal to a wireless network, characterized in that the device includes:
获取单元, 用于根据预设时间间隔获取终端的位置信息, 所述位置信息用 于描述所述终端的地理位置; An acquisition unit, configured to acquire the location information of the terminal according to a preset time interval, where the location information is used to describe the geographical location of the terminal;
启动单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网络 的位置区间内时, 开启 WiF i搜索功能, 所述 WiF i搜索功能检测是否有可用的 WiF i网络; A starting unit, configured to start a WiFi search function when the location information obtained by the acquisition unit is within the location interval of an available WiFi network, and the WiFi search function detects whether there is an available WiFi network;
连接单元,用于当所述启动单元启动的 WiF i搜索功能搜索到有可用的 WiF i 网络时, 根据所述 WiF i网络的登录信息与所述 WiF i网络进行连接。 A connection unit, configured to connect to the WiFi network according to the login information of the WiFi network when the WiFi search function started by the startup unit searches for an available WiFi network.
9、 根据权利要求 8所述的终端连接无线网络的装置, 其特征在于, 所述获 取单元, 用于根据预设时间间隔获取终端的位置信息, 具体包括: 9. The device for connecting a terminal to a wireless network according to claim 8, wherein the obtaining unit is configured to obtain the location information of the terminal according to a preset time interval, specifically including:
所述获取单元, 用于根据所述预设时间间隔通过长期演进 LTE基站获取终 端的位置信息。 The obtaining unit is configured to obtain the location information of the terminal through the Long Term Evolution LTE base station according to the preset time interval.
10、 根据权利要求 9 所述的无线网络连接的装置, 其特征在于, 所述装置 还包括: 10. The wireless network connection device according to claim 9, characterized in that the device further includes:
显示单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网络 的位置区间外时, 显示提示信息, 所述提示信息用于提示用户关闭 WiF i搜索功 能。 The display unit is configured to display prompt information when the location information obtained by the acquisition unit is outside the location interval of an available WiFi network. The prompt information is used to prompt the user to turn off the WiFi search function.
11、 根据权利要求 10所述的终端连接无线网络的装置, 其特征在于, 所述 获取单元还用于, 获取预设时间间隔。 11. The device for connecting a terminal to a wireless network according to claim 10, wherein the obtaining unit is further configured to obtain a preset time interval.
12、 根据权利要求 11所述的终端连接无线网络的装置, 其特征在于, 所述 连接单元, 用于根据所述 WiF i 网络的登录信息与所述 WiF i 网络进行连接, 具 体包括: 12. The device for connecting a terminal to a wireless network according to claim 11, wherein the connection unit is used to connect to the WiFi network according to the login information of the WiFi network, specifically including:
判断子单元, 用于判断是否保存有所述可用的 WiF i网络的登录信息; 连接子单元, 用于当所述判断子单元得到存在所述登录信息时, 根据所述 登录信息与所述可用的 WiFi网络进行连接。 A judgment subunit, used to judge whether the login information of the available WiFi network is saved; The connection subunit is configured to connect to the available WiFi network according to the login information when the judgment subunit obtains that the login information exists.
13、 根据权利要求 12中所述的终端连接无线网络的装置, 其特征在于, 所 述装置还包括: 13. The device for connecting a terminal to a wireless network according to claim 12, characterized in that the device further includes:
关闭单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiF i网络 的位置区间外时, 关闭 WiF i搜索功能。 A closing unit configured to close the WiFi search function when the location information obtained by the acquisition unit is outside the location interval of an available WiFi network.
14、 根据权利要求 13所述的终端连接无线网络的装置, 其特征在于, 所述 关闭单元, 用于当所述获取单元获取的所述位置信息位于可用的 WiFi网络的位 置区间外时, 关闭 WiFi搜索功能, 具体包括: 14. The device for connecting a terminal to a wireless network according to claim 13, wherein the shutdown unit is configured to shut down when the location information obtained by the acquisition unit is outside the location interval of an available WiFi network. WiFi search function, specifically including:
所述关闭单元, 用于当在预设检测次数的检测中, 获取的位置信息均位于 可用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能。 The shutdown unit is used to shut down the WiFi search function when the location information obtained during the preset detection times is outside the location interval of the available WiFi network.
15、 一种终端连接无线网络的装置, 其特征在于, 所述装置包括: 处理器, 用于根据预设时间间隔获取终端的位置信息, 所述位置信息用于 描述所述终端的地理位置; 15. A device for a terminal to connect to a wireless network, characterized in that the device includes: a processor configured to obtain location information of the terminal according to a preset time interval, where the location information is used to describe the geographical location of the terminal;
所述处理器还用于当所述位置信息位于可用的 WiFi网络的位置区间内时, 开启 WiF i芯片的 WiFi搜索功能, WiFi搜索功能检测是否有可用的 WiFi网络; 所述 WiFi芯片还用于, 当有可用的 WiF i网络时, 根据所述 WiFi网络的登 录信息与所述 WiFi网络进行连接。 The processor is also used to enable the WiFi search function of the WiFi chip when the location information is within the location interval of an available WiFi network, and the WiFi search function detects whether there is an available WiFi network; the WiFi chip is also used to , when there is an available WiFi network, connect to the WiFi network according to the login information of the WiFi network.
16、 根据权利要求 15所述的终端连接无线网络的装置, 其特征在于, 所述 处理器, 用于根据预设时间间隔获取终端的位置信息, 具体包括: 16. The device for connecting a terminal to a wireless network according to claim 15, wherein the processor is configured to obtain the location information of the terminal according to a preset time interval, specifically including:
所述处理器, 用于根据所述预设时间间隔通过长期演进 LTE基站获取终端 的位置信息。 The processor is configured to obtain the location information of the terminal through the Long Term Evolution LTE base station according to the preset time interval.
17、 根据权利要求 16所述的无线网络连接的装置, 其特征在于, 所述装置 还包括: 17. The wireless network connection device according to claim 16, wherein the device further includes:
显示器, 用于当所述处理器获取的所述位置信息位于可用的 WiFi网络的位 置区间外时, 显示提示信息, 所述提示信息用于提示用户关闭 WiF i搜索功能。 A display configured to display prompt information when the location information obtained by the processor is outside the location interval of an available WiFi network, and the prompt information is used to prompt the user to turn off the WiFi search function.
18、 根据权利要求 17所述的终端连接无线网络的装置, 其特征在于, 所述 处理器还用, 获取预设时间间隔。 18. The device for connecting a terminal to a wireless network according to claim 17, characterized in that: The processor is also used to obtain preset time intervals.
19、 根据权利要求 18所述的终端连接无线网络的装置, 其特征在于, 所述 WiF i芯片还用于, 根据所述 WiFi网络的登录信息与所述 WiFi网络进行连接, 具体包括: 19. The device for connecting a terminal to a wireless network according to claim 18, wherein the WiFi chip is also used to connect to the WiFi network according to the login information of the WiFi network, specifically including:
所述 WiFi芯片还用于: The WiFi chip is also used for:
判断存储器中是否保存有所述可用的 WiFi网络的登录信息; Determine whether the login information of the available WiFi network is stored in the memory;
如果存在所述登录信息, 则根据所述登录信息与所述可用的 WiFi网络进行 连接。 If the login information exists, connect to the available WiFi network according to the login information.
20、 根据权利要求 19中所述的终端连接无线网络的装置, 其特征在于, 所 述 WiF i芯片还用于, 当所述处理器获取的所述位置信息位于可用的 WiFi 网络 的位置区间外时, 关闭 WiF i搜索功能。 20. The device for connecting a terminal to a wireless network according to claim 19, wherein the WiFi chip is also used to: when the location information obtained by the processor is located outside the location interval of an available WiFi network , turn off the WiFi search function.
21、 根据权利要求 20所述的终端连接无线网络的装置, 其特征在于, 所述 WiF i芯片还用于,当所述处理器获取的所述位置信息位于可用的 WiFi网络的位 置区间外时, 关闭 WiFi搜索功能, 具体包括: 21. The device for connecting a terminal to a wireless network according to claim 20, wherein the WiFi chip is also used to detect when the location information obtained by the processor is outside the location interval of an available WiFi network. , turn off the WiFi search function, specifically including:
WiFi 芯片还用于, 当在预设检测次数的检测中, 获取的位置信息均位于可 用的 WiFi网络的位置区间外时, 关闭 WiFi搜索功能。 The WiFi chip is also used to turn off the WiFi search function when the location information obtained during the preset detection times is outside the location range of the available WiFi network.
PCT/CN2013/090656 2013-12-27 2013-12-27 Method and apparatus for connecting wireless network by terminal WO2015096117A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090656 WO2015096117A1 (en) 2013-12-27 2013-12-27 Method and apparatus for connecting wireless network by terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090656 WO2015096117A1 (en) 2013-12-27 2013-12-27 Method and apparatus for connecting wireless network by terminal

Publications (1)

Publication Number Publication Date
WO2015096117A1 true WO2015096117A1 (en) 2015-07-02

Family

ID=53477384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090656 WO2015096117A1 (en) 2013-12-27 2013-12-27 Method and apparatus for connecting wireless network by terminal

Country Status (1)

Country Link
WO (1) WO2015096117A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113853002A (en) * 2021-10-19 2021-12-28 深圳壹账通智能科技有限公司 State switching method and device of Wi-Fi switch, terminal equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238693A (en) * 2010-04-20 2011-11-09 深圳富泰宏精密工业有限公司 System and method for automatically searching WiFi (wireless fidelity) hotspots
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238693A (en) * 2010-04-20 2011-11-09 深圳富泰宏精密工业有限公司 System and method for automatically searching WiFi (wireless fidelity) hotspots
CN102316555A (en) * 2011-09-19 2012-01-11 华为终端有限公司 Method for scanning wireless fidelity (WiFi) network by mobile terminal and mobile terminal adopting method
CN103024929A (en) * 2012-12-20 2013-04-03 惠州Tcl移动通信有限公司 Mobile terminal and method for connecting wireless network based on mobile terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113853002A (en) * 2021-10-19 2021-12-28 深圳壹账通智能科技有限公司 State switching method and device of Wi-Fi switch, terminal equipment and medium

Similar Documents

Publication Publication Date Title
US9699732B2 (en) Apparatus and method for controlling communication module
WO2017140276A1 (en) Network connection method and apparatus, and computer storage medium
US11212677B2 (en) Method for accessing wireless network, and terminal device
EP3659373B1 (en) Apparatus for controlling operation cycle of electronic device in wireless communication system
WO2016008200A1 (en) Signal measurement period adjustment method, wireless communication device and terminal
US20150126117A1 (en) Intelligent management of a plurality of communications links
US9325189B2 (en) Battery, and method, device, and system for battery protection
JP2013516938A (en) Method and apparatus for automatic connection of short-range wireless network with portable terminal
WO2014100943A1 (en) Method and apparatus for controlling wireless fidelity device in terminal, and terminal
JP2016529757A (en) Mobile hotspot starter, method and system
TW201440566A (en) Determining parameters of an access point
KR20160024706A (en) Method and Apparatus for Mobile Communication using a plurality of Networks
JP2015142171A (en) Wireless terminal device, positional information output method and positional information output method
WO2014146577A1 (en) Wifi network access method and device
CN105517109A (en) Method and device for controlling background scanning of wireless local area network in mobile terminal
CN110622528B (en) Information recommendation method and device
CN106532876B (en) Power supply control method and device and computer equipment
US20200245232A1 (en) Method and electronic device for optimizing network search in out of service state
WO2015096117A1 (en) Method and apparatus for connecting wireless network by terminal
EP2654354B1 (en) Providing a current position while reducing an overall power consumption
US9788267B2 (en) Mobile electronic device, control method, and recording medium thereof
US11064436B2 (en) Wireless network controllers with machine learning
WO2019071880A1 (en) Soft sim card network access control method and device
JP2013201656A (en) Mobile terminal device
US20170208642A1 (en) Wireless communication device, wireless communication method and program

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

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

Country of ref document: EP

Kind code of ref document: A1