[go: up one dir, main page]

WO2019037011A1 - Method for switching terminal from wifi network to cellular network, and terminal - Google Patents

Method for switching terminal from wifi network to cellular network, and terminal Download PDF

Info

Publication number
WO2019037011A1
WO2019037011A1 PCT/CN2017/098774 CN2017098774W WO2019037011A1 WO 2019037011 A1 WO2019037011 A1 WO 2019037011A1 CN 2017098774 W CN2017098774 W CN 2017098774W WO 2019037011 A1 WO2019037011 A1 WO 2019037011A1
Authority
WO
WIPO (PCT)
Prior art keywords
internet
terminal
network
wifi network
access
Prior art date
Application number
PCT/CN2017/098774
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/CN2017/098774 priority Critical patent/WO2019037011A1/en
Publication of WO2019037011A1 publication Critical patent/WO2019037011A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • H04W36/144Reselecting a network or an air interface over a different radio air interface technology
    • H04W36/1446Reselecting a network or an air interface over a different radio air interface technology wherein at least one of the networks is unlicensed

Definitions

  • the present invention relates to electronic communication, and in particular to a method and terminal for a terminal to switch from a WiFi network to a cellular network.
  • a very important advantage of smart terminals and tablets is that they can be moved to any location (the desktop is difficult to move, the laptop is generally not as light as the smart terminal and tablet), which further facilitates the user. usage of.
  • the wireless network which, thanks to wireless network support, ensures that users can still access the Internet while moving their tablets and smart terminals.
  • the wireless network has a cellular network and a wireless fidelity (WiFi) network.
  • WiFi wireless fidelity
  • the cellular network is provided by the mobile operator, it is basically based on the flow rate, and the use cost is relatively high. So unless necessary, more users may use the WiFi network to access the Internet. Only one wireless router is needed, and users can extend a WiFi network based on the wired network. The cost of using the wired network is much lower than that of the cellular. Network, so many users will use the WiFi network where there is coverage of the WiFi network, thus reducing the cost of the network.
  • the processing logic of the smart terminal generally uses the WiFi network to access the Internet as long as the user accesses the WiFi network, and accesses the Internet through the cellular network only when the WiFi network is not connected.
  • the connection between the WiFi network and the Internet is disconnected, that is, although the user user is involved in the WiFi network, but does not access the Internet, and the processing of the intelligent terminal
  • the logic is that as long as the terminal accesses the WiFi network, it will not access the Internet through the cellular network, which results in the user not being able to access the Internet. If the user needs to access the Internet, the user needs to manually close the WiFi network to the user. The internet experience has caused inconvenience.
  • the embodiment of the invention provides a terminal access network switching method and a terminal, which can enable the terminal to automatically switch between the WiFi network and the cellular network, so that the terminal can always access the Internet.
  • An embodiment of the present invention provides a terminal access network switching method, including:
  • the terminal determines whether the WiFi network is currently connected
  • the terminal When the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet;
  • WiFi network is connected to the Internet, accessing the Internet through the WiFi network;
  • the Internet is accessed through the cellular network.
  • the detecting whether the WiFi network is connected to the Internet includes:
  • the WiFi network cannot be connected to the Internet.
  • the method before the accessing the Internet through the cellular network, the method further includes:
  • the Internet is accessed via the cellular network.
  • the method before the accessing the Internet through the cellular network, the method further includes:
  • the Internet is accessed through the cellular network.
  • the method before the accessing the Internet through the cellular network, the method further includes:
  • the Internet is accessed through the cellular network if the user's confirmation message is received.
  • Another embodiment of the present invention provides a terminal, including:
  • a determining unit configured to determine, by the terminal, whether a WiFi network is currently connected
  • a detecting unit configured to: when the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet;
  • a connecting unit configured to access the Internet through the WiFi network when the WiFi network is connected to the Internet; and to access the Internet through the cellular network when the WiFi network cannot connect to the Internet.
  • the detecting unit is specifically configured to: when detecting whether the WiFi network is connected to the Internet:
  • the WiFi network cannot be connected to the Internet.
  • the determining unit is further configured to:
  • the connecting unit is specifically configured to access the Internet through the cellular network after the determining unit determines that the automatic switching switch has been turned on.
  • the terminal further includes:
  • the determining unit is further configured to determine whether the amount of data determined by the determining unit is greater than a preset number
  • the connecting unit is specifically configured to access the Internet through the cellular network when the determining unit determines that the amount of data is less than or equal to the preset quantity.
  • the terminal further includes:
  • a display unit configured to display selection information on the terminal display screen, so that the user can select whether to access the Internet through the cellular network;
  • the connecting unit is configured to access the Internet through the cellular network when receiving the confirmation information of the user.
  • the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses through the cellular network.
  • the Internet enables the terminal to always access the Internet, improving the user experience of the user accessing the network using the terminal.
  • FIG. 1 is a flowchart of a method for switching a WiFi of a terminal according to an embodiment of the present invention
  • FIG. 2 is an application scenario diagram of a method for switching a WiFi of a terminal according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of a terminal according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a terminal access network handover according to an embodiment of the present invention.
  • This embodiment describes a process flow of the terminal, where the terminal may be intelligent.
  • the terminal may be intelligent.
  • the terminal has both WiFi network access capability and cellular network access capability.
  • this embodiment includes:
  • the terminal determines whether the WiFi network is currently connected. If the WiFi network is connected, the process proceeds to step 102. If the WiFi network is not connected, the process proceeds to step 104.
  • the terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
  • the terminal If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
  • AP Access Point
  • the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
  • the wireless access point is a wireless network access point, commonly known as "hot spot.”
  • hot spot There are mainly routing switching access integrated devices and pure access point devices.
  • the integrated device performs access and routing work.
  • the pure access device is only responsible for wireless client access.
  • the pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network.
  • a wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
  • AP client access point client mode
  • the terminal detects whether the WiFi network is connected to the Internet; if yes, proceeds to step 103; if not, proceeds to step 104.
  • detecting whether the WiFi network is connected to the Internet can be performed in various ways, specifically, pinging a server located in the Internet, for example, ping www.baidu.com, at this time, if receiving a response from the server corresponding to www.baidu.com, It means that the current terminal can communicate with the server corresponding to www.baidu.com. Since the server corresponding to www.baidu.com is located on the Internet, it can be determined that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
  • a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected.
  • the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
  • the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
  • the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
  • FIG. 2 is a flowchart of a terminal access network handover according to another embodiment of the present invention. As shown in FIG. 2, the embodiment includes:
  • the terminal determines whether the WiFi network is currently connected. If the WiFi network is connected, the process proceeds to step 202. If the WiFi network is not connected, the process proceeds to step 205.
  • the terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
  • the terminal If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
  • AP Access Point
  • the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
  • the wireless access point is a wireless network access point, commonly known as "hot spot.”
  • hot spot There are mainly routing switching access integrated devices and pure access point devices.
  • the integrated device performs access and routing work.
  • the pure access device is only responsible for wireless client access.
  • the pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network.
  • a wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
  • AP client access point client mode
  • the detection request can be a ping request.
  • the detection server may be set by the terminal manufacturer itself or may be another server located in the Internet.
  • a ping method is used, for example, ping www.baidu.com.
  • the current terminal can be associated with www.baidu. Com
  • the corresponding server communicates. Since the server corresponding to www.baidu.com is located on the Internet, it can be determined that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
  • the WiFi network can be connected to the Internet, and the process proceeds to step 204; if the detection response of the detection server is not received within the preset time, the WiFi network cannot be connected to the Internet. Going to step 205;
  • a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected.
  • steps 202 to 203 can be performed multiple times in a loop, and as long as the result of any one of the times is that the detection response of the detection server is received, it can be said that the WiFi network is connected to the Internet.
  • the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
  • the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
  • the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
  • the user may pre-set whether to allow the terminal to automatically perform the switching of the access network, that is, an automatic switch can be set in the setting menu of the terminal system, and the user can set according to his own needs. Select whether to turn the automatic switch on. For example, if the user's Internet connection needs are relatively strong, and the user can also bear the cost of accessing the Internet through the cellular network, the user can choose to turn on the automatic switch; or, although the user's Internet connection needs are strong, but does not want to bear through the cellular network. The user can choose to turn off the automatic switch when the fee is generated by accessing the Internet; or if the user's Internet connection demand is weak, the user can choose to turn off the automatic switch. switch. It can be understood that in order to avoid the additional cost of using the cellular network to access the Internet for the user, the system should turn off the automatic switch by default.
  • the Internet is accessed via the cellular network.
  • the automatic switch is off, it means that the user does not want to access the Internet through the cellular network if there is a WiFi network, even if the current WiFi network is not connected to the Internet.
  • the user may further set how much data can be generated through the cellular network when the WiFi network is available, that is,
  • the data volume setting menu can be set in the setting menu of the terminal system, and the user can set the upper limit value of the data amount according to his own needs or withstand capability, and the data amount can also set a single upper limit value, and a certain time period. , for example, the upper limit of the cumulative amount of data for one day, one week, or one month.
  • the user can set the amount of data generated in a single generation to not exceed 10M, the amount of data in one week cannot exceed 100M, the amount of data in one month cannot exceed 1G, and so on. Understandably, in order to reduce the amount of user operations, the system can also set a default value, which should be a value that most users can end, for example, it can be 10M.
  • the terminal may further determine the amount of data that requires Internet interaction before accessing the Internet through the cellular network; and then determine whether the amount of data is greater than a preset amount; if the amount of data is less than or equal to the pre- It is only necessary to access the Internet through a cellular network. If the amount of data is greater than the preset amount, the Internet is not accessed through the cellular network.
  • the confirmation of the amount of data exchanged by the Internet may be confirmed by the size of the file to be sent or received. For example, if a file needs to be sent, the size of the file is 9M, and the amount of data to be interacted may be determined to be less than the preset number 10, thereby The Internet can be accessed through a cellular network. On the other hand, if it is necessary to receive a file whose size is 11M, it can be determined that the amount of data requiring Internet interaction is greater than the preset number 10, so that the Internet is not accessed through the cellular network.
  • the selection information may be displayed on the display of the terminal before the Internet is accessed through the cellular network, so that the user can select whether to access the Internet through the cellular network;
  • the Internet is accessed through the cellular network if the user's confirmation message is received. If the user's confirmation information is not received, or the user's rejection information is received, the Internet is not accessed through the cellular network.
  • the content of the selection information displayed on the display screen of the terminal may include: an Internet connection status of the current WiFi network, a situation of the amount of data required for Internet interaction, and the like, and the user is determined according to the content whether to allow access to the Internet through the cellular network.
  • Figure 3 is a diagram showing the structure of a terminal according to an embodiment of the present invention, including:
  • the determining unit 301 is configured to determine, by the terminal, whether a WiFi network is currently connected.
  • the terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
  • the terminal If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
  • AP Access Point
  • the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
  • the wireless access point is a wireless network access point, commonly known as "hot spot.”
  • hot spot There are mainly routing switching access integrated devices and pure access point devices.
  • the integrated device performs access and routing work.
  • the pure access device is only responsible for wireless client access.
  • the pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network.
  • a wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
  • AP client access point client mode
  • the detecting unit 302 is configured to detect, when the terminal is currently connected to the WiFi network, whether the WiFi network is connected to the Internet.
  • detecting whether the WiFi network is connected to the Internet can be performed in various ways, specifically, pinging a server located in the Internet, for example, ping www.baidu.com, at this time, if received
  • the response of the corresponding server of www.baidu.com indicates that the current terminal can communicate with the server corresponding to www.baidu.com. Since the server corresponding to www.baidu.com is located on the Internet, the WiFi can be determined meaninglessly.
  • the network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
  • a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected.
  • the connecting unit 303 is configured to access the Internet through the WiFi network when the WiFi network is connected to the Internet, and to access the Internet through the cellular network when the WiFi network cannot connect to the Internet.
  • the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
  • the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
  • the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
  • the detecting unit 302 may be specifically configured to: when detecting whether the WiFi network is connected to the Internet:
  • the detection request can be a ping request.
  • the detection server may be set by the terminal manufacturer itself or may be another server located in the Internet.
  • a ping method is used, for example, ping www.baidu.com.
  • the current terminal can be associated with www.baidu.
  • the server corresponding to com communicates, because the server corresponding to www.baidu.com is located on the Internet, It is then meaningless to determine that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection. If the detection response of the detection server is received within the preset time, the WiFi network can be connected to the Internet; if the detection response of the detection server is not received within the preset time, the WiFi network cannot be connected to the Internet.
  • a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected.
  • the detection by the detecting unit 302 can be performed multiple times, and as long as the result of any one of the times is that the detection response of the detecting server is received, it can be said that the WiFi network is connected to the Internet.
  • the user may pre-set whether to allow the terminal to automatically perform the switching of the access network, that is, an automatic switch can be set in the setting menu of the terminal system, and the user can set according to his own needs. Select whether to turn the automatic switch on. For example, if the user's Internet connection needs are relatively strong, and the user can also bear the cost of accessing the Internet through the cellular network, the user can choose to turn on the automatic switch; or, although the user's Internet connection needs are strong, but does not want to bear through the cellular network. The user may choose to turn off the automatic switch when the fee is generated by accessing the Internet; or the user's Internet connection demand is weak, the user may choose to turn off the automatic switch. It can be understood that in order to avoid the additional cost of using the cellular network to access the Internet for the user, the system should turn off the automatic switch by default.
  • the determining unit 302 is further configured to: determine whether the preset automatic switch is turned on; and the connecting unit is specifically configured to: after the determining unit determines that the automatic switch is turned on, The cellular network accesses the Internet. If the automatic switch is off, it means that the user does not want to access the Internet through the cellular network if there is a WiFi network, even if the current WiFi network is not connected to the Internet.
  • the user may further set how much data can be generated through the cellular network when the WiFi network is available, that is,
  • the data volume setting menu can be set in the setting menu of the terminal system, and the user can set the upper limit value of the data amount according to his own needs or withstand capability, and the data amount can also set a single upper limit value, and a certain time period. , for example, the upper limit of the cumulative amount of data for one day, one week, or one month. For example, the user can set the amount of data generated in a single operation to no more than 10M.
  • the amount of data in a week cannot exceed 100M, the amount of data in one month cannot exceed 1G, and so on. Understandably, in order to reduce the amount of user operations, the system can also set a default value, which should be a value that most users can end, for example, it can be 10M.
  • the terminal may further include: a determining unit 304, configured to determine an amount of data that requires Internet interaction; the determining unit 302 may further be configured to determine the The determining unit 303 is configured to: when the determining unit determines that the amount of data is less than or equal to the preset quantity, accessing the Internet through the cellular network.
  • the confirmation of the amount of data exchanged by the Internet may be confirmed by the size of the file to be sent or received. For example, if a file needs to be sent, the size of the file is 9M, and the amount of data to be interacted may be determined to be less than the preset number 10, thereby The Internet can be accessed through a cellular network. On the other hand, if it is necessary to receive a file whose size is 11M, it can be determined that the amount of data requiring Internet interaction is greater than the preset number 10, so that the Internet is not accessed through the cellular network.
  • the terminal may further include:
  • the display unit 305 is configured to display the selection information on the display screen of the terminal, so that the user can select whether to access the Internet through the cellular network.
  • the connection unit 303 can also be configured to pass the cellular when receiving the confirmation information of the user.
  • the network accesses the Internet.
  • the Internet is accessed through the cellular network if the user's confirmation message is received. If the user's confirmation information is not received, or the user's rejection information is received, the Internet is not accessed through the cellular network.
  • the content of the selection information displayed on the display screen of the terminal may include: an Internet connection status of the current WiFi network, a situation of the amount of data required for Internet interaction, and the like, and the user is determined according to the content whether to allow access to the Internet through the cellular network.
  • the content is based on the same concept as the method embodiment of the present invention.
  • the description in the method embodiment of the present invention and details are not described herein again.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

A network access switching method for a terminal comprises: a terminal determines whether the terminal is currently connected to a WiFi network; when the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet; if the WiFi network is connected to the Internet, access the Internet through the WiFi network; and if the WiFi network fails to be connected to the Internet, access the Internet through a cellular network. By using the method, the terminal can automatically switch between the WiFi network and the cellular network.

Description

终端从WiFi网络切换到蜂窝网络的方法及终端Method and terminal for terminal to switch from WiFi network to cellular network 技术领域Technical field
本发明涉及电子通信,具体涉及终端从WiFi网络切换到蜂窝网络的方法及终端。The present invention relates to electronic communication, and in particular to a method and terminal for a terminal to switch from a WiFi network to a cellular network.
背景技术Background technique
随着智能终端和平板电脑的飞速发展,越来越多的用户会使用智能终端和平板电脑来获取资讯,玩游戏甚至工作,而笔记本电脑,台式机等传统个人电脑的使用频率越来越低了。With the rapid development of smart terminals and tablets, more and more users will use smart terminals and tablets to get information, play games and even work, while traditional PCs such as laptops and desktops are used less frequently. It is.
智能终端和平板电脑的一个很重要的优势就是轻便,用户可以将其拿在手上移动到任何位置(台式机很难移动,笔记本电脑一般也不及智能终端和平板电脑轻便),进一步方便了用户的使用。A very important advantage of smart terminals and tablets is that they can be moved to any location (the desktop is difficult to move, the laptop is generally not as light as the smart terminal and tablet), which further facilitates the user. usage of.
支撑平板电脑和智能终端能够如此受欢迎的另一个因素就是无线网络,由于无线网络的支持,能够确保用户在移动平板电脑和智能终端时仍然能够有因特网的接入。其中,无线网络有蜂窝网络和无线保真(WiFi:Wireless Fidelity)网络,其中,由于蜂窝网络是移动运营商提供的,基本上是按流量计费,使用成本比较高。所以除非必要,更多的用户可能更多的是采用WiFi网络接入因特网,只需要一个无线路由器,用户就可以在有线网络的基础上扩展一个WiFi网络,由于有线网络的使用成本远低于蜂窝网络,因此很多用户在有WiFi网络覆盖的地方就会使用WiFi网络,从而降低网络的使用成本。Another factor that supports the popularity of tablets and smart terminals is the wireless network, which, thanks to wireless network support, ensures that users can still access the Internet while moving their tablets and smart terminals. Among them, the wireless network has a cellular network and a wireless fidelity (WiFi) network. Among them, since the cellular network is provided by the mobile operator, it is basically based on the flow rate, and the use cost is relatively high. So unless necessary, more users may use the WiFi network to access the Internet. Only one wireless router is needed, and users can extend a WiFi network based on the wired network. The cost of using the wired network is much lower than that of the cellular. Network, so many users will use the WiFi network where there is coverage of the WiFi network, thus reducing the cost of the network.
现在智能终端的处理逻辑一般是只要用户接入了WiFi网络,就会使用WiFi网络接入因特网,只有在没有接入WiFi网络的时候才会通过蜂窝网络接入因特网。Nowadays, the processing logic of the smart terminal generally uses the WiFi network to access the Internet as long as the user accesses the WiFi network, and accesses the Internet through the cellular network only when the WiFi network is not connected.
但是在某些情况下,用户虽然能够接入WiFi网络,但是WiFi网络与因特网的连接是断开的,也就是说用户用户虽然介入了WiFi网络,但是并不能接入因特网,而智能终端的处理逻辑却又是只要终端接入了WiFi网络就不会通过蜂窝网络接入因特网,这就导致用户不能够接入因特网,如果用户需要接入因特网,则需要由用户手动关闭WiFi网络,给用户的上网体验带来了不便。 However, in some cases, although the user can access the WiFi network, the connection between the WiFi network and the Internet is disconnected, that is, although the user user is involved in the WiFi network, but does not access the Internet, and the processing of the intelligent terminal The logic is that as long as the terminal accesses the WiFi network, it will not access the Internet through the cellular network, which results in the user not being able to access the Internet. If the user needs to access the Internet, the user needs to manually close the WiFi network to the user. The internet experience has caused inconvenience.
发明内容Summary of the invention
本发明实施例提供了终端接入网络切换方法及终端,可以使得终端能够在WiFi网络和蜂窝网络之间自动切换,让终端总能接入因特网。The embodiment of the invention provides a terminal access network switching method and a terminal, which can enable the terminal to automatically switch between the WiFi network and the cellular network, so that the terminal can always access the Internet.
本发明实施例的目的是通过以下技术方案实现的:The purpose of the embodiment of the present invention is achieved by the following technical solutions:
本发明一个实施例提供了一种终端接入网络切换方法,包括:An embodiment of the present invention provides a terminal access network switching method, including:
终端判断当前是否连接了WiFi网络;The terminal determines whether the WiFi network is currently connected;
在所述终端当前连接了WiFi网络时,终端检测所述WiFi网络是否与因特网连接;When the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet;
如果所述WiFi网络与因特网连接,则通过所述WiFi网络接入因特网;If the WiFi network is connected to the Internet, accessing the Internet through the WiFi network;
如果所述WiFi网络不能与因特网连接,则通过蜂窝网络接入因特网。If the WiFi network cannot be connected to the Internet, the Internet is accessed through the cellular network.
可选的,所述检测WiFi网络是否与因特网连接包括:Optionally, the detecting whether the WiFi network is connected to the Internet includes:
向位于因特网的检测服务器发送检测请求;Sending a detection request to a detection server located on the Internet;
如果接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络与因特网连接;If the detection response of the detection server for the detection request is received, determining that the WiFi network is connected to the Internet;
如果在预置时间内没有接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络不能与因特网连接。If the detection response of the detection server for the detection request is not received within a preset time, it is determined that the WiFi network cannot be connected to the Internet.
可选的,所述通过蜂窝网络接入因特网前,所述方法还包括:Optionally, before the accessing the Internet through the cellular network, the method further includes:
判断预设的自动切换开关是否打开;Determine whether the preset automatic switch is turned on;
如果所述自动切换开关已经打开,才通过蜂窝网络接入因特网。If the automatic switch is already open, the Internet is accessed via the cellular network.
可选的,所述通过蜂窝网络接入因特网前,所述方法还包括:Optionally, before the accessing the Internet through the cellular network, the method further includes:
确定需要因特网交互的数据量;Determine the amount of data that requires Internet interaction;
判断所述数据量是否大于预设数量;Determining whether the amount of data is greater than a preset amount;
如果所述数据量小于或等于所述预设数量,才通过蜂窝网络接入因特网。If the amount of data is less than or equal to the preset amount, the Internet is accessed through the cellular network.
可选的,所述通过蜂窝网络接入因特网前,所述方法还包括:Optionally, before the accessing the Internet through the cellular network, the method further includes:
在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网;Displaying selection information on the terminal display so that the user can select whether to access the Internet through the cellular network;
如果接收到用户的确认信息,才通过蜂窝网络接入因特网。 The Internet is accessed through the cellular network if the user's confirmation message is received.
本发明的另一个实施例提供了一种终端,包括:Another embodiment of the present invention provides a terminal, including:
判断单元,用于终端判断当前是否连接了WiFi网络;a determining unit, configured to determine, by the terminal, whether a WiFi network is currently connected;
检测单元,用于在所述终端当前连接了WiFi网络时,终端检测所述WiFi网络是否与因特网连接;a detecting unit, configured to: when the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet;
连接单元,用于在所述WiFi网络与因特网连接时,通过所述WiFi网络接入因特网;用于在所述WiFi网络不能与因特网连接时,通过蜂窝网络接入因特网。And a connecting unit, configured to access the Internet through the WiFi network when the WiFi network is connected to the Internet; and to access the Internet through the cellular network when the WiFi network cannot connect to the Internet.
可选的,所述检测单元在检测WiFi网络是否与因特网连接时具体用于:Optionally, the detecting unit is specifically configured to: when detecting whether the WiFi network is connected to the Internet:
向位于因特网的检测服务器发送检测请求;Sending a detection request to a detection server located on the Internet;
如果接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络与因特网连接;If the detection response of the detection server for the detection request is received, determining that the WiFi network is connected to the Internet;
如果在预置时间内没有接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络不能与因特网连接。If the detection response of the detection server for the detection request is not received within a preset time, it is determined that the WiFi network cannot be connected to the Internet.
可选的,所述判断单元还用于:Optionally, the determining unit is further configured to:
判断预设的自动切换开关是否打开;Determine whether the preset automatic switch is turned on;
所述连接单元,具体用于在所述判断单元判断所述自动切换开关已经打开,才通过蜂窝网络接入因特网。The connecting unit is specifically configured to access the Internet through the cellular network after the determining unit determines that the automatic switching switch has been turned on.
可选的,所述终端还包括:Optionally, the terminal further includes:
确定单元,用于确定需要因特网交互的数据量;a determining unit for determining the amount of data that requires Internet interaction;
所述判断单元,还用于判断所述确定单元确定的数据量是否大于预设数量;The determining unit is further configured to determine whether the amount of data determined by the determining unit is greater than a preset number;
所述连接单元,具体用于在所述判断单元判断所述数据量小于或等于所述预设数量时,才通过蜂窝网络接入因特网。The connecting unit is specifically configured to access the Internet through the cellular network when the determining unit determines that the amount of data is less than or equal to the preset quantity.
可选的,所所述终端还包括:Optionally, the terminal further includes:
显示单元,用于在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网;a display unit, configured to display selection information on the terminal display screen, so that the user can select whether to access the Internet through the cellular network;
所述连接单元,用于在接收到用户的确认信息时,才通过蜂窝网络接入因特网。 The connecting unit is configured to access the Internet through the cellular network when receiving the confirmation information of the user.
从本发明实施例提供的以上技术方案可以看出,由于本发明实施例中终端可以检测WiFi网络与因特网的连接,从而在终端所连接的WiFi网络不能够与因特网连接时,通过蜂窝网络接入因特网,使得终端始终能够接入因特网,提高用户使用终端接入网络的用户体验。It can be seen from the above technical solutions provided by the embodiments of the present invention that, in the embodiment of the present invention, the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses through the cellular network. The Internet enables the terminal to always access the Internet, improving the user experience of the user accessing the network using the terminal.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for creative labor.
图1为本发明一个实施例提供的终端WiFi切换方法的流程图;FIG. 1 is a flowchart of a method for switching a WiFi of a terminal according to an embodiment of the present invention;
图2位本发明一个实施例提供的终端WiFi切换方法的应用场景图;FIG. 2 is an application scenario diagram of a method for switching a WiFi of a terminal according to an embodiment of the present invention;
图3为本发明一个实施例提供的终端的结构图。FIG. 3 is a structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。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, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
先介绍本发明实施例提供的终端接入网络切换方法,图1描述了本发明一个实施例提供的终端接入网络切换的流程,该实施例描述的是终端的处理流程,该终端可以是智能终端或平板电脑等,该终端同时具有WiFi网络接入能力和蜂窝网络接入能力。如图1所示,该实施例包括:The terminal access network switching method provided by the embodiment of the present invention is described first. FIG. 1 is a flowchart of a terminal access network handover according to an embodiment of the present invention. This embodiment describes a process flow of the terminal, where the terminal may be intelligent. Such as a terminal or a tablet, the terminal has both WiFi network access capability and cellular network access capability. As shown in FIG. 1, this embodiment includes:
101、终端判断当前是否连接了WiFi网络;如果连接了WiFi网络,进入步骤102;如果没有连接WiFi网络,进入步骤104。101. The terminal determines whether the WiFi network is currently connected. If the WiFi network is connected, the process proceeds to step 102. If the WiFi network is not connected, the process proceeds to step 104.
其中,终端可以先判断是否打开了WiFi功能,如果没有打开WiFi功能则确定终端当前没有连接WiFi网络。The terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
如果终端打开了WiFi功能,则进一步确定终端是否接入了任何一个接入点(AP:Access Point),如果终端没有接入任何一个接入点,则可以确定终端当前没有连接WiFi网络。 If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
如果终端接入了任何一个接入点,则确定终端当前连接了WiFi网络。If the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
其中,无线接入点是一个无线网络的接入点,俗称“热点”。主要有路由交换接入一体设备和纯接入点设备,一体设备执行接入和路由工作,纯接入设备只负责无线客户端的接入,纯接入设备通常作为无线网络扩展使用,与其他AP或者主AP连接,以扩大无线覆盖范围,而一体设备一般是无线网络的核心。无线AP是使用无线设备(手机等移动设备及笔记本电脑等无线设备)用户进入有线网络的接入点,主要用于宽带家庭、大楼内部、校园内部、园区内部以及仓库、工厂等需要无线监控的地方,典型距离覆盖几十米至上百米,也有可以用于远距离传送,目前最远的可以达到30KM左右,主要技术为IEEE802.11系列。大多数无线AP还带有接入点客户端模式(AP client),可以和其它AP进行无线连接,延展网络的覆盖范围。Among them, the wireless access point is a wireless network access point, commonly known as "hot spot." There are mainly routing switching access integrated devices and pure access point devices. The integrated device performs access and routing work. The pure access device is only responsible for wireless client access. The pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network. A wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
102、终端检测所述WiFi网络是否与因特网连接;如果是,进入步骤103;如果否,进入步骤104。102. The terminal detects whether the WiFi network is connected to the Internet; if yes, proceeds to step 103; if not, proceeds to step 104.
其中,检测WiFi网络是否与因特网连接可以由多种方式,具体可以ping位于因特网中的服务器,例如,ping www.baidu.com,此时,如果接收到www.baidu.com对应的服务器的回应,则说明当前终端可以与www.baidu.com对应的服务器进行通信,由于www.baidu.com对应的服务器是位于因特网的,则可以毫无意义地确定WiFi网络与因特网连接了。当然,如果没有响应,则可以证明WiFi网络没有因特网连接。Wherein, detecting whether the WiFi network is connected to the Internet can be performed in various ways, specifically, pinging a server located in the Internet, for example, ping www.baidu.com, at this time, if receiving a response from the server corresponding to www.baidu.com, It means that the current terminal can communicate with the server corresponding to www.baidu.com. Since the server corresponding to www.baidu.com is located on the Internet, it can be determined that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
需要说明的是,在某些实施方式中,为了确保判断终端与因特网是否连接的准确性,会与多个位于因特网的服务器进行通信,即可以排除位于因特网中的一个服务器故障导致检测出现错误的情况。It should be noted that, in some embodiments, in order to ensure the accuracy of determining whether the terminal is connected to the Internet, a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected. Happening.
103、通过所述WiFi网络接入因特网。103. Access the Internet through the WiFi network.
如果WiFi网络与因特网有连接,则将WiFi网络作为因特网连接的通路,从而通过WiFi网络接入因特网,即所有的因特网流量都通过WiFi网络传输。If the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
104、通过蜂窝网络接入因特网。104. Accessing the Internet through a cellular network.
如果WiFi网络没有与因特网连接,则通过蜂窝网络接入因特网,即所有的因特网流量都通过蜂窝网络传输。 If the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
由于本发明实施例中终端可以检测WiFi网络与因特网的连接,从而在终端所连接的WiFi网络不能够与因特网连接时,通过蜂窝网络接入因特网,使得终端始终能够接入因特网,提高用户使用终端接入网络的用户体验。In the embodiment of the present invention, the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
图2描述了本发明另一个实施例提供的终端接入网络切换的流程,如图2所示,该实施例包括:FIG. 2 is a flowchart of a terminal access network handover according to another embodiment of the present invention. As shown in FIG. 2, the embodiment includes:
201、终端判断当前是否连接了WiFi网络;如果连接了WiFi网络,进入步骤202;如果没有连接WiFi网络,进入步骤205。201. The terminal determines whether the WiFi network is currently connected. If the WiFi network is connected, the process proceeds to step 202. If the WiFi network is not connected, the process proceeds to step 205.
其中,终端可以先判断是否打开了WiFi功能,如果没有打开WiFi功能则确定终端当前没有连接WiFi网络。The terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
如果终端打开了WiFi功能,则进一步确定终端是否接入了任何一个接入点(AP:Access Point),如果终端没有接入任何一个接入点,则可以确定终端当前没有连接WiFi网络。If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
如果终端接入了任何一个接入点,则确定终端当前连接了WiFi网络。If the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
其中,无线接入点是一个无线网络的接入点,俗称“热点”。主要有路由交换接入一体设备和纯接入点设备,一体设备执行接入和路由工作,纯接入设备只负责无线客户端的接入,纯接入设备通常作为无线网络扩展使用,与其他AP或者主AP连接,以扩大无线覆盖范围,而一体设备一般是无线网络的核心。无线AP是使用无线设备(手机等移动设备及笔记本电脑等无线设备)用户进入有线网络的接入点,主要用于宽带家庭、大楼内部、校园内部、园区内部以及仓库、工厂等需要无线监控的地方,典型距离覆盖几十米至上百米,也有可以用于远距离传送,目前最远的可以达到30KM左右,主要技术为IEEE802.11系列。大多数无线AP还带有接入点客户端模式(AP client),可以和其它AP进行无线连接,延展网络的覆盖范围。Among them, the wireless access point is a wireless network access point, commonly known as "hot spot." There are mainly routing switching access integrated devices and pure access point devices. The integrated device performs access and routing work. The pure access device is only responsible for wireless client access. The pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network. A wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
202、通过WiFi网络向位于因特网的检测服务器发送检测请求。202. Send a detection request to a detection server located on the Internet through a WiFi network.
在一个实施例中,该检测请求可以是ping请求。该检测服务器可以由终端厂商自己设置,也可以是位于因特网中的别的服务器。例如,在一种实施方式中,采用了ping方式,例如,ping www.baidu.com,此时,如果接收到www.baidu.com对应的服务器的回应,则说明当前终端可以与www.baidu.com 对应的服务器进行通信,由于www.baidu.com对应的服务器是位于因特网的,则可以毫无意义地确定WiFi网络与因特网连接了。当然,如果没有响应,则可以证明WiFi网络没有因特网连接。In one embodiment, the detection request can be a ping request. The detection server may be set by the terminal manufacturer itself or may be another server located in the Internet. For example, in one embodiment, a ping method is used, for example, ping www.baidu.com. At this time, if a response from the server corresponding to www.baidu.com is received, the current terminal can be associated with www.baidu. Com The corresponding server communicates. Since the server corresponding to www.baidu.com is located on the Internet, it can be determined that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
203、判断是否在预置时间内接收到了检测服务器的检测响应。203. Determine whether the detection response of the detection server is received within the preset time.
如果在预置时间内接收到了检测服务器的检测响应,则说明WiFi网络可以与因特网连接,进入步骤204;如果在预置时间内没有接收到检测服务器的检测响应,则说明WiFi网络不能与因特网连接,进入步骤205;If the detection response of the detection server is received within the preset time, the WiFi network can be connected to the Internet, and the process proceeds to step 204; if the detection response of the detection server is not received within the preset time, the WiFi network cannot be connected to the Internet. Going to step 205;
需要说明的是,在某些实施方式中,为了确保判断终端与因特网是否连接的准确性,会与多个位于因特网的服务器进行通信,即可以排除位于因特网中的一个服务器故障导致检测出现错误的情况。即,步骤202至203可以循环执行多次,只要任何一次的结果是收到了检测服务器的检测响应,都可以说明WiFi网络是与因特网连接的。It should be noted that, in some embodiments, in order to ensure the accuracy of determining whether the terminal is connected to the Internet, a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected. Happening. That is, steps 202 to 203 can be performed multiple times in a loop, and as long as the result of any one of the times is that the detection response of the detection server is received, it can be said that the WiFi network is connected to the Internet.
204、通过所述WiFi网络接入因特网。结束流程。204. Access the Internet through the WiFi network. End the process.
如果WiFi网络与因特网有连接,则将WiFi网络作为因特网连接的通路,从而通过WiFi网络接入因特网,即所有的因特网流量都通过WiFi网络传输。If the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
205、通过蜂窝网络接入因特网。205. Accessing the Internet through a cellular network.
如果WiFi网络没有与因特网连接,则通过蜂窝网络接入因特网,即所有的因特网流量都通过蜂窝网络传输。If the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
由于本发明实施例中终端可以检测WiFi网络与因特网的连接,从而在终端所连接的WiFi网络不能够与因特网连接时,通过蜂窝网络接入因特网,使得终端始终能够接入因特网,提高用户使用终端接入网络的用户体验。In the embodiment of the present invention, the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
在本发明的另一个实施例中,可以由用户预先设定是否允许终端自动进行接入网络的切换,也就是说可以在终端系统的设置菜单中设置一个自动切换开关,由用户根据自己的需要选择是否将该自动切换开关打开。例如,用户的因特网连接需求比较强,而且也能够承受通过蜂窝网络接入因特网产生的费用,则用户可以选择打开自动切换开关;或者,虽然用户的因特网连接需求比较强,但是不想承受通过蜂窝网络接入因特网产生的费用,则用户可以选择关闭自动切换开关;或者,用户的因特网连接需求较弱,则用户可以选择关闭自动切换 开关。可以理解的是,为了避免为用户产生额外的使用蜂窝网络接入因特网的费用,系统默认应该是关闭该自动切换开关。In another embodiment of the present invention, the user may pre-set whether to allow the terminal to automatically perform the switching of the access network, that is, an automatic switch can be set in the setting menu of the terminal system, and the user can set according to his own needs. Select whether to turn the automatic switch on. For example, if the user's Internet connection needs are relatively strong, and the user can also bear the cost of accessing the Internet through the cellular network, the user can choose to turn on the automatic switch; or, although the user's Internet connection needs are strong, but does not want to bear through the cellular network. The user can choose to turn off the automatic switch when the fee is generated by accessing the Internet; or if the user's Internet connection demand is weak, the user can choose to turn off the automatic switch. switch. It can be understood that in order to avoid the additional cost of using the cellular network to access the Internet for the user, the system should turn off the automatic switch by default.
在这种情况下,终端在通过蜂窝网络接入因特网前,还应该判断预设的自动切换开关是否打开;In this case, before the terminal accesses the Internet through the cellular network, it should also judge whether the preset automatic switch is turned on;
如果所述自动切换开关已经打开,才通过蜂窝网络接入因特网。If the automatic switch is already open, the Internet is accessed via the cellular network.
如果所述自动切换开关是关闭的,则表示用户不想在有WiFi网络的情况下通过蜂窝网络接入因特网,即便当前的WiFi网络与因特网并不是连通的。If the automatic switch is off, it means that the user does not want to access the Internet through the cellular network if there is a WiFi network, even if the current WiFi network is not connected to the Internet.
在本发明的另一个实施例中,可以由用户预先设定允许终端自动进行接入网络的切换后,还可以进一步设置在有WiFi网络的情况下可以通过蜂窝网络产生多少数据量,也就是说可以在终端系统的设置菜单中设置数据量设置菜单,用户可以根据自己的需求或者承受能力设置数据量的上限值,并且该数据量还可以设置单次的上限值,以及某一时间周期,例如一天,一个星期或者一个月的累积数据量的上限值。例如,用户可以设置单次产生的数据量不超过10M,一个星期的数据量不能超过100M,一个月的数据量不能超过1G等等。可以理解的是,为了减少用户的操作量,系统也可以设置一个默认值,该默认值应该是绝大多数用户都能够结束的一个数值,例如可以是10M。In another embodiment of the present invention, after the user is preset to allow the terminal to automatically perform the handover of the access network, the user may further set how much data can be generated through the cellular network when the WiFi network is available, that is, The data volume setting menu can be set in the setting menu of the terminal system, and the user can set the upper limit value of the data amount according to his own needs or withstand capability, and the data amount can also set a single upper limit value, and a certain time period. , for example, the upper limit of the cumulative amount of data for one day, one week, or one month. For example, the user can set the amount of data generated in a single generation to not exceed 10M, the amount of data in one week cannot exceed 100M, the amount of data in one month cannot exceed 1G, and so on. Understandably, in order to reduce the amount of user operations, the system can also set a default value, which should be a value that most users can end, for example, it can be 10M.
在这种情况下,终端在通过蜂窝网络接入因特网前,还可以进一步确定需要因特网交互的数据量;然后判断所述数据量是否大于预设数量;如果所述数据量小于或等于所述预设数量,才通过蜂窝网络接入因特网。如果数据量大于预设数量,则不通过蜂窝网络接入因特网。In this case, the terminal may further determine the amount of data that requires Internet interaction before accessing the Internet through the cellular network; and then determine whether the amount of data is greater than a preset amount; if the amount of data is less than or equal to the pre- It is only necessary to access the Internet through a cellular network. If the amount of data is greater than the preset amount, the Internet is not accessed through the cellular network.
其中,因特网交互的数据量的确认,可以通过需要发送或者接收的文件的大小来确认,例如需要发送一个文件,文件的大小是9M,则可以确定需要交互的数据量小于预设数量10,从而可以通过蜂窝网络接入因特网。反之,如果需要接收一个文件,文件的大小是11M,则可以确定需要因特网交互的数据量大于预设数量10,从而不通过蜂窝网络接入因特网。The confirmation of the amount of data exchanged by the Internet may be confirmed by the size of the file to be sent or received. For example, if a file needs to be sent, the size of the file is 9M, and the amount of data to be interacted may be determined to be less than the preset number 10, thereby The Internet can be accessed through a cellular network. On the other hand, if it is necessary to receive a file whose size is 11M, it can be determined that the amount of data requiring Internet interaction is greater than the preset number 10, so that the Internet is not accessed through the cellular network.
在某些实施例中,为了提高用户的使用体现,可以在通过蜂窝网络接入因特网前,在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网; In some embodiments, in order to improve the usage of the user, the selection information may be displayed on the display of the terminal before the Internet is accessed through the cellular network, so that the user can select whether to access the Internet through the cellular network;
如果接收到用户的确认信息,才通过蜂窝网络接入因特网。如果没有接收到用户的确认信息,或者接收到用户的拒绝信息,则不通过蜂窝网络接入因特网。The Internet is accessed through the cellular network if the user's confirmation message is received. If the user's confirmation information is not received, or the user's rejection information is received, the Internet is not accessed through the cellular network.
其中,在终端显示屏上显示的选择信息的内容可以包括:当前WiFi网络的因特网连接情况,需要因特网交互的数据量的情况等等,让用户根据这些内容确定是否允许通过蜂窝网络接入因特网。The content of the selection information displayed on the display screen of the terminal may include: an Internet connection status of the current WiFi network, a situation of the amount of data required for Internet interaction, and the like, and the user is determined according to the content whether to allow access to the Internet through the cellular network.
图3描述了本发明一个实施例提供的终端的结构,包括:Figure 3 is a diagram showing the structure of a terminal according to an embodiment of the present invention, including:
判断单元301,用于终端判断当前是否连接了WiFi网络。The determining unit 301 is configured to determine, by the terminal, whether a WiFi network is currently connected.
其中,终端可以先判断是否打开了WiFi功能,如果没有打开WiFi功能则确定终端当前没有连接WiFi网络。The terminal may first determine whether the WiFi function is enabled. If the WiFi function is not enabled, it is determined that the terminal is not currently connected to the WiFi network.
如果终端打开了WiFi功能,则进一步确定终端是否接入了任何一个接入点(AP:Access Point),如果终端没有接入任何一个接入点,则可以确定终端当前没有连接WiFi网络。If the terminal has turned on the WiFi function, it is further determined whether the terminal accesses any one of the access points (AP: Access Point). If the terminal does not access any of the access points, it can be determined that the terminal is not currently connected to the WiFi network.
如果终端接入了任何一个接入点,则确定终端当前连接了WiFi网络。If the terminal accesses any of the access points, it is determined that the terminal is currently connected to the WiFi network.
其中,无线接入点是一个无线网络的接入点,俗称“热点”。主要有路由交换接入一体设备和纯接入点设备,一体设备执行接入和路由工作,纯接入设备只负责无线客户端的接入,纯接入设备通常作为无线网络扩展使用,与其他AP或者主AP连接,以扩大无线覆盖范围,而一体设备一般是无线网络的核心。无线AP是使用无线设备(手机等移动设备及笔记本电脑等无线设备)用户进入有线网络的接入点,主要用于宽带家庭、大楼内部、校园内部、园区内部以及仓库、工厂等需要无线监控的地方,典型距离覆盖几十米至上百米,也有可以用于远距离传送,目前最远的可以达到30KM左右,主要技术为IEEE802.11系列。大多数无线AP还带有接入点客户端模式(AP client),可以和其它AP进行无线连接,延展网络的覆盖范围。Among them, the wireless access point is a wireless network access point, commonly known as "hot spot." There are mainly routing switching access integrated devices and pure access point devices. The integrated device performs access and routing work. The pure access device is only responsible for wireless client access. The pure access device is usually used as a wireless network extension, and other APs. Or the primary AP is connected to expand the wireless coverage, and the integrated device is generally the core of the wireless network. A wireless AP is an access point that uses a wireless device (a mobile device such as a mobile device or a wireless device such as a notebook computer) to enter a wired network, and is mainly used in a broadband home, a building interior, a campus interior, a campus interior, and a warehouse, a factory, and the like that require wireless monitoring. Places, typical distances cover tens of meters to hundreds of meters, but also can be used for long-distance transmission, the farthest can reach about 30KM, the main technology is IEEE802.11 series. Most wireless APs also have an access point client mode (AP client) that can be wirelessly connected to other APs to extend the coverage of the network.
检测单元302,用于在所述终端当前连接了WiFi网络时,终端检测所述WiFi网络是否与因特网连接。The detecting unit 302 is configured to detect, when the terminal is currently connected to the WiFi network, whether the WiFi network is connected to the Internet.
其中,检测WiFi网络是否与因特网连接可以由多种方式,具体可以ping位于因特网中的服务器,例如,ping www.baidu.com,此时,如果接收到 www.baidu.com对应的服务器的回应,则说明当前终端可以与www.baidu.com对应的服务器进行通信,由于www.baidu.com对应的服务器是位于因特网的,则可以毫无意义地确定WiFi网络与因特网连接了。当然,如果没有响应,则可以证明WiFi网络没有因特网连接。Wherein, detecting whether the WiFi network is connected to the Internet can be performed in various ways, specifically, pinging a server located in the Internet, for example, ping www.baidu.com, at this time, if received The response of the corresponding server of www.baidu.com indicates that the current terminal can communicate with the server corresponding to www.baidu.com. Since the server corresponding to www.baidu.com is located on the Internet, the WiFi can be determined meaninglessly. The network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection.
需要说明的是,在某些实施方式中,为了确保判断终端与因特网是否连接的准确性,会与多个位于因特网的服务器进行通信,即可以排除位于因特网中的一个服务器故障导致检测出现错误的情况。It should be noted that, in some embodiments, in order to ensure the accuracy of determining whether the terminal is connected to the Internet, a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected. Happening.
连接单元303,用于在所述WiFi网络与因特网连接时,通过所述WiFi网络接入因特网;用于在所述WiFi网络不能与因特网连接时,通过蜂窝网络接入因特网。The connecting unit 303 is configured to access the Internet through the WiFi network when the WiFi network is connected to the Internet, and to access the Internet through the cellular network when the WiFi network cannot connect to the Internet.
如果WiFi网络与因特网有连接,则将WiFi网络作为因特网连接的通路,从而通过WiFi网络接入因特网,即所有的因特网流量都通过WiFi网络传输。If the WiFi network is connected to the Internet, the WiFi network is used as a path for Internet connection, thereby accessing the Internet through the WiFi network, that is, all Internet traffic is transmitted through the WiFi network.
如果WiFi网络没有与因特网连接,则通过蜂窝网络接入因特网,即所有的因特网流量都通过蜂窝网络传输。If the WiFi network is not connected to the Internet, the Internet is accessed via the cellular network, ie all Internet traffic is transmitted over the cellular network.
由于本发明实施例中终端可以检测WiFi网络与因特网的连接,从而在终端所连接的WiFi网络不能够与因特网连接时,通过蜂窝网络接入因特网,使得终端始终能够接入因特网,提高用户使用终端接入网络的用户体验。In the embodiment of the present invention, the terminal can detect the connection between the WiFi network and the Internet, so that when the WiFi network connected to the terminal cannot be connected to the Internet, the terminal accesses the Internet through the cellular network, so that the terminal can always access the Internet and improve the user's use of the terminal. User experience of accessing the network.
在本发明的另一个实施例中,检测单元302在检测WiFi网络是否与因特网连接时可以具体用于:In another embodiment of the present invention, the detecting unit 302 may be specifically configured to: when detecting whether the WiFi network is connected to the Internet:
向位于因特网的检测服务器发送检测请求;如果接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络与因特网连接;如果在预置时间内没有接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络不能与因特网连接。Sending a detection request to a detection server located at the Internet; if receiving a detection response of the detection server for the detection request, determining that the WiFi network is connected to the Internet; if the detection server is not received within a preset time The detection response of the detection request determines that the WiFi network cannot be connected to the Internet.
在一个实施例中,该检测请求可以是ping请求。该检测服务器可以由终端厂商自己设置,也可以是位于因特网中的别的服务器。例如,在一种实施方式中,采用了ping方式,例如,ping www.baidu.com,此时,如果接收到www.baidu.com对应的服务器的回应,则说明当前终端可以与www.baidu.com对应的服务器进行通信,由于www.baidu.com对应的服务器是位于因特网的, 则可以毫无意义地确定WiFi网络与因特网连接了。当然,如果没有响应,则可以证明WiFi网络没有因特网连接。如果在预置时间内接收到了检测服务器的检测响应,则说明WiFi网络可以与因特网连接;如果在预置时间内没有接收到检测服务器的检测响应,则说明WiFi网络不能与因特网连接。In one embodiment, the detection request can be a ping request. The detection server may be set by the terminal manufacturer itself or may be another server located in the Internet. For example, in one embodiment, a ping method is used, for example, ping www.baidu.com. At this time, if a response from the server corresponding to www.baidu.com is received, the current terminal can be associated with www.baidu. The server corresponding to com communicates, because the server corresponding to www.baidu.com is located on the Internet, It is then meaningless to determine that the WiFi network is connected to the Internet. Of course, if there is no response, it can be proved that the WiFi network does not have an Internet connection. If the detection response of the detection server is received within the preset time, the WiFi network can be connected to the Internet; if the detection response of the detection server is not received within the preset time, the WiFi network cannot be connected to the Internet.
需要说明的是,在某些实施方式中,为了确保判断终端与因特网是否连接的准确性,会与多个位于因特网的服务器进行通信,即可以排除位于因特网中的一个服务器故障导致检测出现错误的情况。检测单元302的检测可以执行多次,只要任何一次的结果是收到了检测服务器的检测响应,都可以说明WiFi网络是与因特网连接的。It should be noted that, in some embodiments, in order to ensure the accuracy of determining whether the terminal is connected to the Internet, a plurality of servers located on the Internet may communicate with each other, that is, a server fault located in the Internet may be excluded to cause an error to be detected. Happening. The detection by the detecting unit 302 can be performed multiple times, and as long as the result of any one of the times is that the detection response of the detecting server is received, it can be said that the WiFi network is connected to the Internet.
在本发明的另一个实施例中,可以由用户预先设定是否允许终端自动进行接入网络的切换,也就是说可以在终端系统的设置菜单中设置一个自动切换开关,由用户根据自己的需要选择是否将该自动切换开关打开。例如,用户的因特网连接需求比较强,而且也能够承受通过蜂窝网络接入因特网产生的费用,则用户可以选择打开自动切换开关;或者,虽然用户的因特网连接需求比较强,但是不想承受通过蜂窝网络接入因特网产生的费用,则用户可以选择关闭自动切换开关;或者,用户的因特网连接需求较弱,则用户可以选择关闭自动切换开关。可以理解的是,为了避免为用户产生额外的使用蜂窝网络接入因特网的费用,系统默认应该是关闭该自动切换开关。In another embodiment of the present invention, the user may pre-set whether to allow the terminal to automatically perform the switching of the access network, that is, an automatic switch can be set in the setting menu of the terminal system, and the user can set according to his own needs. Select whether to turn the automatic switch on. For example, if the user's Internet connection needs are relatively strong, and the user can also bear the cost of accessing the Internet through the cellular network, the user can choose to turn on the automatic switch; or, although the user's Internet connection needs are strong, but does not want to bear through the cellular network. The user may choose to turn off the automatic switch when the fee is generated by accessing the Internet; or the user's Internet connection demand is weak, the user may choose to turn off the automatic switch. It can be understood that in order to avoid the additional cost of using the cellular network to access the Internet for the user, the system should turn off the automatic switch by default.
在这种情况下,所述判断单元302还可以用于:判断预设的自动切换开关是否打开;所述连接单元,具体用于在所述判断单元判断所述自动切换开关已经打开,才通过蜂窝网络接入因特网。如果所述自动切换开关是关闭的,则表示用户不想在有WiFi网络的情况下通过蜂窝网络接入因特网,即便当前的WiFi网络与因特网并不是连通的。In this case, the determining unit 302 is further configured to: determine whether the preset automatic switch is turned on; and the connecting unit is specifically configured to: after the determining unit determines that the automatic switch is turned on, The cellular network accesses the Internet. If the automatic switch is off, it means that the user does not want to access the Internet through the cellular network if there is a WiFi network, even if the current WiFi network is not connected to the Internet.
在本发明的另一个实施例中,可以由用户预先设定允许终端自动进行接入网络的切换后,还可以进一步设置在有WiFi网络的情况下可以通过蜂窝网络产生多少数据量,也就是说可以在终端系统的设置菜单中设置数据量设置菜单,用户可以根据自己的需求或者承受能力设置数据量的上限值,并且该数据量还可以设置单次的上限值,以及某一时间周期,例如一天,一个星期或者一个月的累积数据量的上限值。例如,用户可以设置单次产生的数据量不超过10M, 一个星期的数据量不能超过100M,一个月的数据量不能超过1G等等。可以理解的是,为了减少用户的操作量,系统也可以设置一个默认值,该默认值应该是绝大多数用户都能够结束的一个数值,例如可以是10M。In another embodiment of the present invention, after the user is preset to allow the terminal to automatically perform the handover of the access network, the user may further set how much data can be generated through the cellular network when the WiFi network is available, that is, The data volume setting menu can be set in the setting menu of the terminal system, and the user can set the upper limit value of the data amount according to his own needs or withstand capability, and the data amount can also set a single upper limit value, and a certain time period. , for example, the upper limit of the cumulative amount of data for one day, one week, or one month. For example, the user can set the amount of data generated in a single operation to no more than 10M. The amount of data in a week cannot exceed 100M, the amount of data in one month cannot exceed 1G, and so on. Understandably, in order to reduce the amount of user operations, the system can also set a default value, which should be a value that most users can end, for example, it can be 10M.
如图3中的虚线部分所示,在这种情况下,所述终端还可以包括:确定单元304,用于确定需要因特网交互的数据量;所述判断单元302,还可以用于判断所述确定单元确定的数据量是否大于预设数量;所述连接单元303,具体可以用于在所述判断单元判断所述数据量小于或等于所述预设数量时,才通过蜂窝网络接入因特网。As shown in the dotted line in FIG. 3, the terminal may further include: a determining unit 304, configured to determine an amount of data that requires Internet interaction; the determining unit 302 may further be configured to determine the The determining unit 303 is configured to: when the determining unit determines that the amount of data is less than or equal to the preset quantity, accessing the Internet through the cellular network.
其中,因特网交互的数据量的确认,可以通过需要发送或者接收的文件的大小来确认,例如需要发送一个文件,文件的大小是9M,则可以确定需要交互的数据量小于预设数量10,从而可以通过蜂窝网络接入因特网。反之,如果需要接收一个文件,文件的大小是11M,则可以确定需要因特网交互的数据量大于预设数量10,从而不通过蜂窝网络接入因特网。The confirmation of the amount of data exchanged by the Internet may be confirmed by the size of the file to be sent or received. For example, if a file needs to be sent, the size of the file is 9M, and the amount of data to be interacted may be determined to be less than the preset number 10, thereby The Internet can be accessed through a cellular network. On the other hand, if it is necessary to receive a file whose size is 11M, it can be determined that the amount of data requiring Internet interaction is greater than the preset number 10, so that the Internet is not accessed through the cellular network.
在某些实施例中,为了提高用户的使用体现,如图3中的虚线部分所示,所述终端还可以包括:In some embodiments, in order to improve the usage of the user, as shown by the dotted line in FIG. 3, the terminal may further include:
显示单元305,用于在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网;所述连接单元303,还可以用于在接收到用户的确认信息时,才通过蜂窝网络接入因特网。The display unit 305 is configured to display the selection information on the display screen of the terminal, so that the user can select whether to access the Internet through the cellular network. The connection unit 303 can also be configured to pass the cellular when receiving the confirmation information of the user. The network accesses the Internet.
如果接收到用户的确认信息,才通过蜂窝网络接入因特网。如果没有接收到用户的确认信息,或者接收到用户的拒绝信息,则不通过蜂窝网络接入因特网。The Internet is accessed through the cellular network if the user's confirmation message is received. If the user's confirmation information is not received, or the user's rejection information is received, the Internet is not accessed through the cellular network.
其中,在终端显示屏上显示的选择信息的内容可以包括:当前WiFi网络的因特网连接情况,需要因特网交互的数据量的情况等等,让用户根据这些内容确定是否允许通过蜂窝网络接入因特网。The content of the selection information displayed on the display screen of the terminal may include: an Internet connection status of the current WiFi network, a situation of the amount of data required for Internet interaction, and the like, and the user is determined according to the content whether to allow access to the Internet through the cellular network.
上述装置和系统内的各模块之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。For the information exchange, the execution process, and the like between the above-mentioned devices and the modules in the system, the content is based on the same concept as the method embodiment of the present invention. For details, refer to the description in the method embodiment of the present invention, and details are not described herein again.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,上述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,上述的存储介质可为磁碟、光盘、只读存储记忆体(ROM:Read-Only Memory)或随机存储记忆体(RAM:Random Access Memory)等。One of ordinary skill in the art can understand all or part of the process in implementing the above embodiments. This may be accomplished by a computer program instructing the associated hardware, which may be stored in a computer readable storage medium, which, when executed, may include the flow of an embodiment of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。 The principles and embodiments of the present invention have been described herein with reference to specific examples. The foregoing description of the embodiments are merely for the purpose of understanding the method of the present invention and the concept thereof. Also, those skilled in the art in accordance with the present invention The present invention is not limited by the scope of the present invention.

Claims (10)

  1. 一种终端接入网络切换方法,其特征在于,包括:A terminal access network switching method, comprising:
    终端判断当前是否连接了WiFi网络;The terminal determines whether the WiFi network is currently connected;
    在所述终端当前连接了WiFi网络时,终端检测所述WiFi网络是否与因特网连接;When the terminal is currently connected to the WiFi network, the terminal detects whether the WiFi network is connected to the Internet;
    如果所述WiFi网络与因特网连接,则通过所述WiFi网络接入因特网;If the WiFi network is connected to the Internet, accessing the Internet through the WiFi network;
    如果所述WiFi网络不能与因特网连接,则通过蜂窝网络接入因特网。If the WiFi network cannot be connected to the Internet, the Internet is accessed through the cellular network.
  2. 如权利要求1所述的方法,其特征在于,所述检测WiFi网络是否与因特网连接包括:The method of claim 1 wherein said detecting whether the WiFi network is connected to the Internet comprises:
    向位于因特网的检测服务器发送检测请求;Sending a detection request to a detection server located on the Internet;
    如果接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络与因特网连接;If the detection response of the detection server for the detection request is received, determining that the WiFi network is connected to the Internet;
    如果在预置时间内没有接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络不能与因特网连接。If the detection response of the detection server for the detection request is not received within a preset time, it is determined that the WiFi network cannot be connected to the Internet.
  3. 如权利要求1所述的方法,其特征在于,所述通过蜂窝网络接入因特网前,所述方法还包括:The method of claim 1, wherein the method further comprises: before the accessing the Internet through the cellular network, the method further comprising:
    判断预设的自动切换开关是否打开;Determine whether the preset automatic switch is turned on;
    如果所述自动切换开关已经打开,才通过蜂窝网络接入因特网。If the automatic switch is already open, the Internet is accessed via the cellular network.
  4. 如权利要求1所述的方法,其特征在于,所述通过蜂窝网络接入因特网前,所述方法还包括:The method of claim 1, wherein the method further comprises: before the accessing the Internet through the cellular network, the method further comprising:
    确定需要因特网交互的数据量;Determine the amount of data that requires Internet interaction;
    判断所述数据量是否大于预设数量;Determining whether the amount of data is greater than a preset amount;
    如果所述数据量小于或等于所述预设数量,才通过蜂窝网络接入因特网。If the amount of data is less than or equal to the preset amount, the Internet is accessed through the cellular network.
  5. 如权利要求1所述的方法,其特征在于,所述通过蜂窝网络接入因特网前,所述方法还包括:The method of claim 1, wherein the method further comprises: before the accessing the Internet through the cellular network, the method further comprising:
    在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网; Displaying selection information on the terminal display so that the user can select whether to access the Internet through the cellular network;
    如果接收到用户的确认信息,才通过蜂窝网络接入因特网。The Internet is accessed through the cellular network if the user's confirmation message is received.
  6. 一种终端,其特征在于,包括:A terminal, comprising:
    判断单元,用于终端判断当前是否连接了WiFi网络;a determining unit, configured to determine, by the terminal, whether a WiFi network is currently connected;
    检测单元,用于在所述终端当前连接了WiFi网络时,检测所述WiFi网络是否与因特网连接;a detecting unit, configured to detect whether the WiFi network is connected to the Internet when the terminal is currently connected to the WiFi network;
    连接单元,用于在所述WiFi网络与因特网连接时,通过所述WiFi网络接入因特网;用于在所述WiFi网络不能与因特网连接时,通过蜂窝网络接入因特网。And a connecting unit, configured to access the Internet through the WiFi network when the WiFi network is connected to the Internet; and to access the Internet through the cellular network when the WiFi network cannot connect to the Internet.
  7. 如权利要求6所述的终端,其特征在于,所述检测单元在检测WiFi网络是否与因特网连接时具体用于:The terminal according to claim 6, wherein the detecting unit is specifically configured to: when detecting whether the WiFi network is connected to the Internet:
    向位于因特网的检测服务器发送检测请求;Sending a detection request to a detection server located on the Internet;
    如果接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络与因特网连接;If the detection response of the detection server for the detection request is received, determining that the WiFi network is connected to the Internet;
    如果在预置时间内没有接收到所述检测服务器针对所述检测请求的检测响应,则确定所述WiFi网络不能与因特网连接。If the detection response of the detection server for the detection request is not received within a preset time, it is determined that the WiFi network cannot be connected to the Internet.
  8. 如权利要求6所述的终端,其特征在于,所述判断单元还用于:The terminal according to claim 6, wherein the determining unit is further configured to:
    判断预设的自动切换开关是否打开;Determine whether the preset automatic switch is turned on;
    所述连接单元,具体用于在所述判断单元判断所述自动切换开关已经打开,才通过蜂窝网络接入因特网。The connecting unit is specifically configured to access the Internet through the cellular network after the determining unit determines that the automatic switching switch has been turned on.
  9. 如权利要求6所述的终端,其特征在于,所述终端还包括:The terminal according to claim 6, wherein the terminal further comprises:
    确定单元,用于确定需要因特网交互的数据量;a determining unit for determining the amount of data that requires Internet interaction;
    所述判断单元,还用于判断所述确定单元确定的数据量是否大于预设数量;The determining unit is further configured to determine whether the amount of data determined by the determining unit is greater than a preset number;
    所述连接单元,具体用于在所述判断单元判断所述数据量小于或等于所述预设数量时,才通过蜂窝网络接入因特网。The connecting unit is specifically configured to access the Internet through the cellular network when the determining unit determines that the amount of data is less than or equal to the preset quantity.
  10. 如权利要求6所述的终端,其特征在于,所所述终端还包括:The terminal of claim 6, wherein the terminal further comprises:
    显示单元,用于在终端显示屏上显示选择信息,以使得用户可以选择是否通过蜂窝网络接入因特网; a display unit, configured to display selection information on the terminal display screen, so that the user can select whether to access the Internet through the cellular network;
    所述连接单元,用于在接收到用户的确认信息时,才通过蜂窝网络接入因特网。 The connecting unit is configured to access the Internet through the cellular network when receiving the confirmation information of the user.
PCT/CN2017/098774 2017-08-24 2017-08-24 Method for switching terminal from wifi network to cellular network, and terminal WO2019037011A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098774 WO2019037011A1 (en) 2017-08-24 2017-08-24 Method for switching terminal from wifi network to cellular network, and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098774 WO2019037011A1 (en) 2017-08-24 2017-08-24 Method for switching terminal from wifi network to cellular network, and terminal

Publications (1)

Publication Number Publication Date
WO2019037011A1 true WO2019037011A1 (en) 2019-02-28

Family

ID=65438587

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/098774 WO2019037011A1 (en) 2017-08-24 2017-08-24 Method for switching terminal from wifi network to cellular network, and terminal

Country Status (1)

Country Link
WO (1) WO2019037011A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244912A (en) * 2011-06-24 2011-11-16 中兴通讯股份有限公司 Method and system for switching networks
US20130217427A1 (en) * 2012-02-21 2013-08-22 Nokia Corporation Method and apparatus for providing a wifi network information service
CN104170460A (en) * 2013-12-03 2014-11-26 华为终端有限公司 Network switching method and terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244912A (en) * 2011-06-24 2011-11-16 中兴通讯股份有限公司 Method and system for switching networks
US20130217427A1 (en) * 2012-02-21 2013-08-22 Nokia Corporation Method and apparatus for providing a wifi network information service
CN104170460A (en) * 2013-12-03 2014-11-26 华为终端有限公司 Network switching method and terminal

Similar Documents

Publication Publication Date Title
US20220020339A1 (en) Display method and apparatus
CN105897860B (en) Network equipment and information processing method
US10791492B2 (en) Method and apparatus for monitoring internet connection status in wireless communication system
TWI699138B (en) Network access method and device
US10021556B2 (en) Automatic seamless context sharing across multiple devices
US20150351004A1 (en) Client-initiated tethering for electronic devices
TWI510111B (en) Seamless transmission from cellular to Wi-Fi communication
WO2016095118A1 (en) Method and device for home wifi station device to select link for data transmitting
WO2017020552A1 (en) Method and device for providing access point information of wireless access point
US11134435B2 (en) Electronic device supporting multiple wireless communication protocols and method therefor
CN113938990B (en) Equipment management method and communication device
US11228957B2 (en) Seamless roaming of real time media sessions
WO2019041371A1 (en) Internet of things number-of-connections-based router switching method and device
WO2018053894A1 (en) Internet-of-things access point handover method and device based on transmission rate
KR20140112904A (en) Method and device for controlling use of external data network via mobile access point
WO2015062526A1 (en) Wireless login-based remote control method and apparatus
CN109787900B (en) Transmission method, device, equipment and machine readable medium
EP4297480A1 (en) Wi-fi hotspot switching method, terminal device, and storage medium
CN107484219A (en) Terminal is switched to the method and terminal of cellular network from WiFi network
CN103781138B (en) Method, apparatus and system for connecting WiMo sending terminal to WLAN
US11856620B1 (en) Bluetooth communication method, mobile terminal and non-volatile storage medium
CN103648002A (en) Method and system for providing geographical location information for smart television set by terminal equipment
WO2019037011A1 (en) Method for switching terminal from wifi network to cellular network, and terminal
KR20140030553A (en) Apparatus and method for displaying indicator according to interwork network
CN117615214A (en) Data sharing method and display device

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

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

Country of ref document: EP

Kind code of ref document: A1