CN107277876A - Network switching method, device and terminal equipment - Google Patents
Network switching method, device and terminal equipment Download PDFInfo
- Publication number
- CN107277876A CN107277876A CN201710659798.4A CN201710659798A CN107277876A CN 107277876 A CN107277876 A CN 107277876A CN 201710659798 A CN201710659798 A CN 201710659798A CN 107277876 A CN107277876 A CN 107277876A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- network
- data network
- location information
- geographic location
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/02—Access restriction performed under specific conditions
- H04W48/04—Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/24—Reselection being triggered by specific parameters
- H04W36/32—Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
技术领域technical field
本发明属于网络切换技术领域,尤其涉及网络切换方法、装置及终端设备。The invention belongs to the technical field of network switching, and in particular relates to a network switching method, device and terminal equipment.
背景技术Background technique
目前,人们的活动通常都涉及多个地区,比如亲戚朋友的走动,商业活动的进行,而与用户随身携带的终端设备(如手机)等也相应随着用户的移动涉及多个地区。但手机在跨地区后,其很可能从注册登记的服务区域,移动到另一服务区,进而导致使用该手机时将产生相应的漫游费用。At present, people's activities usually involve multiple areas, such as the movement of relatives and friends, and the conduct of commercial activities, and the terminal equipment (such as mobile phones) carried by users also involves multiple areas with the movement of users. However, after the mobile phone crosses regions, it is likely to move from the registered service area to another service area, which will cause corresponding roaming charges when using the mobile phone.
现有的网络切换方法中,当检测到当前连接的wifi热点不可用或信号变弱时,将检测是否存在其他可用wifi热点,若有,则切换至其他可用wifi热点,若没有,则断开网络连接。由于在没有检测到其他可用wifi热点时,断开终端设备的网络连接,因此,若断开的时间点为用户急需用网的时间点时,该方法延迟了终端设备接入网络的时间,并且,由于现有的网络切换方法在wifi热点之间切换时,并不会考虑终端设备所在的地理位置,因此极可能产生额外的资费。In the existing network switching method, when it is detected that the currently connected wifi hotspot is unavailable or the signal becomes weak, it will detect whether there are other available wifi hotspots, if there is, then switch to other available wifi hotspots, if not, then disconnect Internet connection. Since the network connection of the terminal device is disconnected when no other available wifi hotspot is detected, if the time point of disconnection is the time point when the user urgently needs to use the network, this method delays the time for the terminal device to access the network, and , since the existing network switching method does not consider the geographic location of the terminal device when switching between wifi hotspots, it is very likely to generate additional tariffs.
故,需要提供一种新的方法,以解决上述技术问题。Therefore, a new method needs to be provided to solve the above technical problems.
发明内容Contents of the invention
有鉴于此,本发明实施例提供了网络切换方法、装置及终端设备,以解决现有技术在没有检测到其他可用wifi热点时,断开终端设备的网络连接,从而导致网络接入延迟的问题。In view of this, the embodiments of the present invention provide a network switching method, device, and terminal equipment to solve the problem in the prior art that the network connection of the terminal equipment is disconnected when no other available wifi hotspots are detected, thereby causing delays in network access .
本发明实施例的第一方面提供了一种网络切换方法,包括:The first aspect of the embodiments of the present invention provides a network switching method, including:
检测是否存在可连接wifi热点;Detect whether there is a wifi hotspot that can be connected;
在不存在可连接wifi热点时,判断是否存在可用的数据网络;When there is no wifi hotspot that can be connected, determine whether there is an available data network;
在存在可用的数据网络时,获取终端设备的当前地理位置信息;When there is an available data network, obtain the current geographic location information of the terminal device;
根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地;judging whether the current location of the terminal device is the home of the operator's cellular network where the terminal device has registered according to the current geographic location information of the terminal device;
在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。Connecting to the available data network when the current location of the terminal device is the home of the carrier's cellular network where the terminal device has registered.
本发明实施例的第二方面提供了一种网络切换装置,包括:A second aspect of the embodiments of the present invention provides a network switching device, including:
Wifi热点检测单元,用于检测是否存在可连接wifi热点;A Wifi hotspot detection unit is used to detect whether there is a connectable wifi hotspot;
数据网络是否存在判断单元,用于在不存在可连接wifi热点时,判断是否存在可用的数据网络;Whether there is a judging unit for the data network, which is used to judge whether there is an available data network when there is no wifi hotspot that can be connected;
当前地理位置信息获取单元,用于在存在可用的数据网络时,获取终端设备的当前地理位置信息;The current geographic location information acquisition unit is used to acquire the current geographic location information of the terminal device when there is an available data network;
网络归属地判断单元,用于根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地;A network attribution judging unit, configured to judge whether the current location of the terminal device is the attribution of the operator's cellular network where the terminal device has registered according to the current geographic location information of the terminal device;
数据网络连接单元,用于在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。A data network connection unit, configured to connect to the available data network when the current location of the terminal device is the home of the carrier's cellular network where the terminal device has registered.
本发明实施例的第三方面提供了一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如网络切换方法任一项所述方法的步骤。A third aspect of the embodiments of the present invention provides a terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, when the processor executes the computer program The steps of the method described in any one of the network switching methods are realized.
本发明实施例的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如网络切换方法任一项所述方法的步骤。The fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the network switching methods is implemented A step of.
本发明实施例与现有技术相比存在的有益效果是:The beneficial effect that the embodiment of the present invention exists compared with prior art is:
由于在终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,表明可用的数据网络为本地的数据网络,此时,连接该可用的数据网络将不会由于漫游而产生额外的资费,并且,由于在不存在可连接wifi热点时也会连接数据网络,因此,能够保证终端设备及时接入网络,保持网络的通畅,提高用户的良好上网体验。Since the current location of the terminal device is the home of the operator's cellular network that the terminal device has registered with, it indicates that the available data network is a local data network, at this time, connecting to the available data network will not occur due to roaming In addition, because there is no Wi-Fi hotspot that can be connected to the data network, it can ensure that the terminal device can access the network in time, keep the network smooth, and improve the user's good online experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the descriptions of the embodiments or the prior art. Obviously, the accompanying drawings in the following descriptions are only of the present invention. For some embodiments, those skilled in the art can also obtain other drawings according to these drawings without paying creative efforts.
图1是本发明实施例一提供的一种网络切换方法的流程图;FIG. 1 is a flowchart of a network switching method provided in Embodiment 1 of the present invention;
图2是本发明实施例一提供的一种移动终端的结构示意图;FIG. 2 is a schematic structural diagram of a mobile terminal provided in Embodiment 1 of the present invention;
图3是本发明实施例二提供的一种网络切换装置的结构示意图;FIG. 3 is a schematic structural diagram of a network switching device provided in Embodiment 2 of the present invention;
图4是本发明实施例三提供的终端设备的示意图。FIG. 4 is a schematic diagram of a terminal device provided by Embodiment 3 of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
实施例一:Embodiment one:
图1示出了本发明第一实施例提供的一种网络切换方法的流程图,详述如下:FIG. 1 shows a flow chart of a network switching method provided in the first embodiment of the present invention, which is described in detail as follows:
步骤S11,检测是否存在可连接wifi热点。Step S11, detecting whether there is a connectable wifi hotspot.
具体地,当用户打开终端设备的wifi连接功能(如WLAN)时,终端设备接收到wifi连接指令,该终端设备检测预设范围内是否有可连接的wifi热点。Specifically, when the user turns on the wifi connection function (such as WLAN) of the terminal device, the terminal device receives a wifi connection instruction, and the terminal device detects whether there is a connectable wifi hotspot within a preset range.
具体地,当终端设备为移动终端时,该移动终端的示意图如图2所示,在图2中,该移动终端包括存储器201、处理器202、输入设备203、输出设备204、总线205。Specifically, when the terminal device is a mobile terminal, a schematic diagram of the mobile terminal is shown in FIG. 2 . In FIG.
可选地,在所述步骤S11之前,包括:Optionally, before the step S11, including:
获取当前连接网络的网络状态信息,所述网络状态信息包括当前连接网络是否可接入网的信息,网络质量好坏的信息。这样,在根据所述网络状态信息判断出当前连接网络不可接入网,或者网络质量变差(如小于预设的质量指标时)时执行步骤S11。The network status information of the currently connected network is acquired, and the network status information includes information about whether the currently connected network can be connected to the network, and information about the quality of the network. In this way, step S11 is executed when it is judged according to the network status information that the currently connected network cannot access the network, or the network quality deteriorates (for example, when it is less than a preset quality index).
步骤S12,在不存在可连接wifi热点时,判断是否存在可用的数据网络。Step S12, when there is no wifi hotspot that can be connected, it is judged whether there is an available data network.
其中,可用的数据网络是指其对应的传输控制协议(Transmission ControlProtocol,tcp)、超文本传输协议(HyperText Transfer Protocol,http)、丢包率、接收的信号强度指示(Received Signal Strength Indication,rssi)等的一种或几种满足预设的网络可用条件。Among them, the available data network refers to its corresponding transmission control protocol (Transmission Control Protocol, tcp), hypertext transfer protocol (HyperText Transfer Protocol, http), packet loss rate, received signal strength indication (Received Signal Strength Indication, rssi) One or more of them meet the preset network availability conditions.
可选地,由于本地的wifi热点不会产生漫游资费,因此,为了节省费用,所述网络切换方法还包括:Optionally, since local wifi hotspots do not generate roaming charges, therefore, in order to save costs, the network switching method further includes:
A1、在存在可连接wifi热点时,获取终端设备的当前地理位置信息。A1. When there is a wifi hotspot that can be connected, obtain the current geographic location information of the terminal device.
A2、根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地,若是,连接所述wifi热点,若否,不连接所述wifi热点。A2. According to the current geographic location information of the terminal device, judge whether the current location of the terminal device belongs to the operator's cellular network where the terminal device has registered. If so, connect to the wifi hotspot; if not, do not connect to the mobile network Describe wifi hotspots.
由于存在的可连接wifi热点也可能是外地的wifi热点,即属于漫游的wifi热点,因此,只有在判断出该wifi热点属于本地的wifi热点时,才连接该wifi热点,否则,不连接该wifi热点,从而避免跨地区使用wif热点所产生的漫游费用。Since the existing wifi hotspots that can be connected may also be wifi hotspots in other places, that is, they belong to roaming wifi hotspots. Therefore, only when it is judged that the wifi hotspot belongs to the local wifi hotspot, the wifi hotspot is connected, otherwise, the wifi hotspot is not connected. Hotspots, so as to avoid roaming charges caused by using wif hotspots across regions.
步骤S13,在存在可用的数据网络时,获取终端设备的当前地理位置信息。Step S13, when there is an available data network, acquire the current geographic location information of the terminal device.
具体地,可通过全球导航卫星系统(Global Navigation Satellite System,GNSS)或网络定位获取终端设备的当前地理位置信息。Specifically, the current geographic location information of the terminal device may be acquired through Global Navigation Satellite System (Global Navigation Satellite System, GNSS) or network positioning.
步骤S14,根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地。Step S14, judging according to the current geographic location information of the terminal device whether the current location of the terminal device belongs to the operator's cellular network where the terminal device has registered.
具体地,当所述终端设备的当前位置属于该终端设备已注册的运营商蜂窝网络归属地范围时,判定所述终端设备所在区域为本地,否则,判定所述终端设备所在区域为外地。Specifically, when the current location of the terminal device belongs to the home area of the operator's cellular network where the terminal device has registered, it is determined that the area where the terminal device is located is local; otherwise, it is determined that the area where the terminal device is located is a foreign area.
步骤S15,在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。Step S15, when the current location of the terminal device is the home of the carrier's cellular network where the terminal device has registered, connect to the available data network.
由于该可用的数据网络属于本地的数据网络,故连接、使用该数据网络不会产生漫游费用。Since the available data network belongs to the local data network, roaming charges will not be incurred for connecting and using the data network.
可选地,所述步骤S15包括:Optionally, the step S15 includes:
B1、判断网络切换的属性是手动切换还是自动切换,所述网络切换的属性为扩展的属性。具体地,当用户首次启动或重新启动终端设备时,该终端设备显示网络切换的属性对应的设置项,当用户选择手动切换时,该终端设备的网络切换的属性是手动切换,当用户选择自动切换时,该终端设备的网络切换的属性是自动切换。B1. Determine whether the attribute of network switching is manual switching or automatic switching, and the attribute of network switching is an extended attribute. Specifically, when the user starts or restarts the terminal device for the first time, the terminal device displays the setting item corresponding to the attribute of the network switching. When the user selects manual switching, the attribute of the network switching of the terminal device is manual switching. When the user selects automatic When switching, the attribute of the network switching of the terminal equipment is automatic switching.
B2、在网络切换的属性是手动切换时,提示用户连接所述可用的数据网络,并在接收到连接指令时,连接所述可用的数据网络。具体地,通过弹出提示框提示用户是否选择连接可用的数据网络,如当用户点击“确认”按钮(或者其他表示确认信息的按钮)时,终端设备接收到连接指令,并执行该连接指令,当用户点击“取消”按钮(或者其他表示取消信息的按钮)时,终端设备接收到不连接指令。B2. When the attribute of network switching is manual switching, prompt the user to connect to the available data network, and connect to the available data network when a connection instruction is received. Specifically, a prompt box pops up to prompt the user whether to choose to connect to an available data network. For example, when the user clicks the "Confirm" button (or other buttons indicating confirmation information), the terminal device receives the connection instruction and executes the connection instruction. When the user clicks the "cancel" button (or other buttons indicating cancellation information), the terminal device receives a no-connection instruction.
B3、在网络切换的属性是自动切换时,自动连接所述可用的数据网络。进一步地,显示当前网络为数据网络的提示信息。由于连接本地的数据网络虽然不会产生漫游资费,但是仍会产生一定的费用,因此,显示提示信息以便用户知晓。B3. When the attribute of network switching is automatic switching, automatically connect to the available data network. Further, a prompt message indicating that the current network is a data network is displayed. Although the connection to the local data network does not generate roaming charges, certain charges are still generated, therefore, a prompt message is displayed to let the user know.
可选地,在所述终端设备的当前位置不为所述终端设备已注册的运营商蜂窝网络归属地时,不连接所述可用的数据网络。当判断出终端设备属于外地时,不连接可用的数据网络,以免产生漫游资费。进一步地,若用户手动连接漫游的数据网络,则所述网络切换方法还包括:检测是否接收到用户发出的与所述可用的数据网络建立连接的指令;在接收到用户发出的与所述可用的数据网络建立连接的指令时,提示用户所述可用的数据网络为漫游的数据网络。具体地,在执行与所述可用的数据网络建立连接的指令之前,通过弹出提示框提示用户当前连接的可用的数据网络为漫游的数据网络,将产生一定的资费。进一步地,再弹出选择项以便用户进一步确认是否需要连接所述可用的数据网络,当用户点击“确认”选择项后,终端设备将与所述可用的数据网络建立连接,当用户点击“取消”选择项后,终端设备将不与所述可用的数据网络建立连接。Optionally, when the current location of the terminal device is not the home of the operator's cellular network where the terminal device has registered, the available data network is not connected. When it is determined that the terminal device belongs to a foreign country, it does not connect to an available data network to avoid roaming charges. Further, if the user manually connects to the roaming data network, the network switching method further includes: detecting whether an instruction from the user to establish a connection with the available data network is received; When an instruction is made to establish a connection with the data network, the user is prompted that the available data network is a roaming data network. Specifically, before executing the instruction to establish a connection with the available data network, a prompt box is popped up to prompt the user that the currently connected available data network is a roaming data network, and a certain fee will be generated. Further, an option pops up so that the user can further confirm whether to connect to the available data network. When the user clicks the option "Confirm", the terminal device will establish a connection with the available data network. When the user clicks "Cancel" After selecting the option, the terminal device will not establish a connection with said available data network.
可选地,由于与连接本地的wifi热点相比,连接本地的数据网络还是会产生一定的费用,因此,为了尽可能减少不必要的费用,在所述步骤S15之后,包括:Optionally, compared with connecting to a local wifi hotspot, connecting to a local data network will still generate certain charges, therefore, in order to reduce unnecessary charges as much as possible, after the step S15, include:
C1、判断终端设备的地理位置信息的获取条件是否满足,若满足,则获取所述终端设备的当前地理位置信息。其中,终端设备的地理位置信息的获取条件包括:判断连接的数据网络的信号强度是否发生变化,且发生变化的范围大于预设的范围阈值,若是,则判定满足终端设备的地理位置信息的获取条件,若否,判定不满足终端设备的地理位置信息的获取条件;或者,判断上一次获取终端设备的地理位置信息的时间点与当前时间点的时间差是否大于预设的差值阈值,若是,则判定满足终端设备的地理位置信息的获取条件,若否,判定不满足终端设备的地理位置信息的获取条件。C1. Determine whether the acquisition condition of the geographic location information of the terminal device is satisfied, and if so, acquire the current geographic location information of the terminal device. Wherein, the acquisition condition of the geographic location information of the terminal device includes: judging whether the signal strength of the connected data network changes, and the range of the change is greater than the preset range threshold, and if so, judging that the acquisition of the geographic location information of the terminal device is satisfied Condition, if no, determine that the acquisition condition of the geographic location information of the terminal device is not met; or, determine whether the time difference between the time point of the last time the geographic location information of the terminal device was obtained and the current time point is greater than the preset difference threshold, if so, Then it is determined that the acquisition condition of the geographic location information of the terminal device is satisfied, and if not, it is determined that the acquisition condition of the geographic location information of the terminal device is not met.
C2、判断获取的所述终端设备的当前地理位置信息与上一次获取的所述终端设备的地理位置信息的位置距离是否超过预设距离阈值。C2. Determine whether the position distance between the acquired current geographic location information of the terminal device and the last acquired geographic location information of the terminal device exceeds a preset distance threshold.
C3、在获取的所述终端设备的当前地理位置信息与上一次获取的所述终端设备的地理位置信息的位置距离超过预设距离阈值时,轮询检测是否存在与所述终端设备的当前位置匹配的可用wifi热点,若存在,则从所述可用的数据网络切换至所述可用wifi热点。当然,若获取的所述终端设备的当前地理位置信息与上一次获取的所述终端设备的地理位置信息的位置距离没有超过预设距离阈值,则不轮询检测是否存在与所述终端设备的当前位置匹配的可用wifi热点。C3. When the distance between the acquired current geographic location information of the terminal device and the last acquired geographic location information of the terminal device exceeds a preset distance threshold, poll to detect whether there is a current location with the terminal device If there is a matching available wifi hotspot, switch from the available data network to the available wifi hotspot. Of course, if the distance between the acquired current geographic location information of the terminal device and the last acquired geographic location information of the terminal device does not exceed the preset distance threshold, then no polling is performed to detect whether there is any contact with the terminal device. Available wifi hotspots matching your current location.
其中,为了避免长时间轮询耗费过多的资源,则设置轮询检测的时间小于1分钟,如设置为30秒等。Among them, in order to avoid excessive resource consumption by long-term polling, the polling detection time is set to be less than 1 minute, for example, set to 30 seconds.
其中,这里的可用wifi热点包括需要认证信息的wifi热点和不需要认证信息的wifi热点,当可用wifi热点为不需要认证信息的wifi热点时,自动连接该wifi热点,当可用wifi热点为需要认证信息的wifi热点时,则在获取该wifi热点的认证信息之后再连接该wifi热点。Among them, the available wifi hotspots here include wifi hotspots that require authentication information and wifi hotspots that do not require authentication information. When the available wifi hotspots are wifi hotspots that do not require authentication information, the wifi hotspot is automatically connected. If there is a wifi hotspot of information, then connect to the wifi hotspot after obtaining the authentication information of the wifi hotspot.
本发明第一实施例中,检测是否存在可连接wifi热点,在不存在可连接wifi热点时,判断是否存在可用的数据网络,在存在可用的数据网络时,获取终端设备的当前地理位置信息,根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地,在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。由于在终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,表明可用的数据网络为本地的数据网络,此时,连接该可用的数据网络将不会由于漫游而产生额外的资费,并且,由于在不存在可连接wifi热点时也会连接数据网络,因此,能够保证终端设备及时接入网络,保持网络的通畅,提高用户的良好上网体验。In the first embodiment of the present invention, it is detected whether there is a Wi-Fi hotspot that can be connected, and when there is no Wi-Fi hotspot that can be connected, it is judged whether there is an available data network, and when there is an available data network, the current geographic location information of the terminal device is obtained, According to the current geographic location information of the terminal device, it is judged whether the current location of the terminal device is the home of the operator's cellular network where the terminal device has registered, and the current location of the terminal device is the registered location of the terminal device. When the carrier's cellular network belongs, connect to the available data network. Since the current location of the terminal device is the home of the operator's cellular network that the terminal device has registered with, it indicates that the available data network is a local data network, at this time, connecting to the available data network will not occur due to roaming In addition, because there is no Wi-Fi hotspot that can be connected to the data network, it can ensure that the terminal device can access the network in time, keep the network smooth, and improve the user's good online experience.
实施例二:Embodiment two:
与实施例一提供的一种网络切换方法对应,图3示出了本发明第二实施例提供的一种网络切换装置的结构示意图,该网络切换装置可应用于终端设备中,为了便于说明,仅示出了与本发明实施例相关的部分:Corresponding to a network switching method provided in Embodiment 1, FIG. 3 shows a schematic structural diagram of a network switching device provided in a second embodiment of the present invention. The network switching device can be applied to a terminal device. For ease of description, Only the parts relevant to the embodiments of the present invention are shown:
该网络切换装置包括:Wifi热点检测单元31、数据网络是否存在判断单元32、当前地理位置信息获取单元33、网络归属地判断单元34、数据网络连接单元35,其中:The network switching device includes: a Wifi hotspot detection unit 31, a data network presence judging unit 32, a current geographic location information acquiring unit 33, a network attribution judging unit 34, and a data network connection unit 35, wherein:
Wifi热点检测单元31,用于检测是否存在可连接wifi热点。Wifi hotspot detection unit 31 is used to detect whether there is a connectable wifi hotspot.
可选地,该网络切换装置包括:Optionally, the network switching device includes:
网络状态信息获取单元,用于获取当前连接网络的网络状态信息,所述网络状态信息包括当前连接网络是否可接入网的信息,网络质量好坏的信息。这样,在根据所述网络状态信息判断出当前连接网络不可接入网,或者网络质量变差时,执行Wifi热点检测单元31。The network status information acquiring unit is used to acquire the network status information of the currently connected network, and the network status information includes information on whether the currently connected network can be connected to the network, and information on whether the network quality is good or bad. In this way, when it is judged according to the network state information that the currently connected network cannot access the network, or the quality of the network deteriorates, the Wifi hotspot detection unit 31 is executed.
数据网络是否存在判断单元32,用于在不存在可连接wifi热点时,判断是否存在可用的数据网络。Whether the data network exists judging unit 32 is used for judging whether there is an available data network when there is no wifi hotspot that can be connected.
其中,可用的数据网络是指其对应的tcp、http、丢包率、rssi等的一种或几种满足预设的网络可用条件。Wherein, the available data network refers to one or more of its corresponding tcp, http, packet loss rate, rssi, etc. meeting the preset network availability conditions.
可选地,由于本地的wifi热点不会产生漫游资费,因此,为了节省费用,所述网络切换装置还包括:Optionally, since local wifi hotspots do not generate roaming charges, therefore, in order to save costs, the network switching device further includes:
当前地理位置信息获取单元,用于在存在可连接wifi热点时,获取终端设备的当前地理位置信息。The current geographic location information acquisition unit is configured to acquire the current geographic location information of the terminal device when there is a wifi hotspot that can be connected to.
Wifi热点是否连接选择单元,用于根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地,若是,连接所述wifi热点,若否,不连接所述wifi热点。Whether the Wifi hotspot is connected to the selection unit, used to judge whether the current location of the terminal device is the attribution of the operator's cellular network where the terminal device has registered according to the current geographic location information of the terminal device, if so, connect the wifi hotspot , if not, do not connect to the wifi hotspot.
当前地理位置信息获取单元33,用于在存在可用的数据网络时,获取终端设备的当前地理位置信息。The current geographic location information acquiring unit 33 is configured to acquire the current geographic location information of the terminal device when there is an available data network.
具体地,可通过GNSS或网络定位获取终端设备的当前地理位置信息。Specifically, the current geographic location information of the terminal device can be obtained through GNSS or network positioning.
网络归属地判断单元34,用于根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地。The network attribution judging unit 34 is configured to judge whether the current location of the terminal device is the attribution of the operator's cellular network where the terminal device has registered according to the current geographic location information of the terminal device.
数据网络连接单元35,用于在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。The data network connection unit 35 is configured to connect to the available data network when the current location of the terminal device is the home of the carrier's cellular network where the terminal device has registered.
可选地,所述数据网络连接单元35包括:Optionally, the data network connection unit 35 includes:
网络切换的属性判断模块,用于判断网络切换的属性是手动切换还是自动切换,所述网络切换的属性为扩展的属性。具体地,当用户首次启动或重新启动终端设备时,该终端设备显示网络切换的属性对应的设置项,当用户选择手动切换时,该终端设备的网络切换的属性是手动切换,当用户选择自动切换时,该终端设备的网络切换的属性是自动切换。The attribute judging module of network switching is used for judging whether the attribute of network switching is manual switching or automatic switching, and the attribute of network switching is an extended attribute. Specifically, when the user starts or restarts the terminal device for the first time, the terminal device displays the setting item corresponding to the attribute of the network switching. When the user selects manual switching, the attribute of the network switching of the terminal device is manual switching. When the user selects automatic When switching, the attribute of the network switching of the terminal equipment is automatic switching.
数据网络连接提示模块,用于在网络切换的属性是手动切换时,提示用户连接所述可用的数据网络,并在接收到连接指令时,连接所述可用的数据网络。具体地,通过弹出提示框提示用户是否选择连接可用的数据网络The data network connection prompting module is configured to prompt the user to connect to the available data network when the attribute of network switching is manual switching, and to connect to the available data network when a connection instruction is received. Specifically, a prompt box pops up to prompt the user whether to choose to connect to an available data network
数据网络自动连接模块,用于在网络切换的属性是自动切换时,自动连接所述可用的数据网络。进一步地,显示当前网络为数据网络的提示信息。The data network automatic connection module is used to automatically connect the available data network when the attribute of network switching is automatic switching. Further, a prompt message indicating that the current network is a data network is displayed.
可选地,所述网络切换装置还包括:Optionally, the network switching device further includes:
数据网络不连接单元,用于在所述终端设备的当前位置不为所述终端设备已注册的运营商蜂窝网络归属地时,不连接所述可用的数据网络。进一步地,若用户手动连接漫游的数据网络,则所述网络切换装置还包括:指令检测单元,用于检测是否接收到用户发出的与所述可用的数据网络建立连接的指令;漫游信息提示单元,用于在接收到用户发出的与所述可用的数据网络建立连接的指令时,提示用户所述可用的数据网络为漫游的数据网络。具体地,在执行与所述可用的数据网络建立连接的指令之前,通过弹出提示框提示用户当前连接的可用的数据网络为漫游的数据网络,将产生一定的资费。进一步地,再弹出选择项以便用户进一步确认是否需要连接所述可用的数据网络,当用户点击“确认”选择项后,终端设备将与所述可用的数据网络建立连接,当用户点击“取消”选择项后,终端设备将不与所述可用的数据网络建立连接。The data network disconnection unit is configured to not connect to the available data network when the current location of the terminal device is not the home of the carrier's cellular network where the terminal device has registered. Further, if the user manually connects to the roaming data network, the network switching device further includes: an instruction detection unit, configured to detect whether an instruction from the user to establish a connection with the available data network is received; a roaming information prompting unit is configured to prompt the user that the available data network is a roaming data network when receiving an instruction from the user to establish a connection with the available data network. Specifically, before executing the instruction to establish a connection with the available data network, a prompt box is popped up to prompt the user that the currently connected available data network is a roaming data network, and a certain fee will be generated. Further, an option pops up so that the user can further confirm whether to connect to the available data network. When the user clicks the option "Confirm", the terminal device will establish a connection with the available data network. When the user clicks "Cancel" After selecting the option, the terminal device will not establish a connection with said available data network.
可选地,由于与连接本地的wifi热点相比,连接本地的数据网络还是会产生一定的费用,因此,为了尽可能减少不必要的费用,所述网络切换装置包括:Optionally, as compared with connecting to a local wifi hotspot, connecting to a local data network will still generate certain expenses, therefore, in order to reduce unnecessary expenses as much as possible, the network switching device includes:
地理位置信息的获取条件是否满足判断单元,用于判断终端设备的地理位置信息的获取条件是否满足,若满足,则获取所述终端设备的当前地理位置信息。其中,终端设备的地理位置信息的获取条件包括:判断连接的数据网络的信号强度是否发生变化,且发生变化的范围大于预设的范围阈值,若是,则判定满足终端设备的地理位置信息的获取条件,若否,判定不满足终端设备的地理位置信息的获取条件;或者,判断上一次获取终端设备的地理位置信息的时间点与当前时间点的时间差是否大于预设的差值阈值,若是,则判定满足终端设备的地理位置信息的获取条件,若否,判定不满足终端设备的地理位置信息的获取条件。Whether the acquisition condition of the geographic location information is satisfied judging unit is used to judge whether the acquisition condition of the geographic location information of the terminal device is satisfied, and if so, acquire the current geographic location information of the terminal device. Wherein, the acquisition condition of the geographic location information of the terminal device includes: judging whether the signal strength of the connected data network changes, and the range of the change is greater than the preset range threshold, and if so, judging that the acquisition of the geographic location information of the terminal device is satisfied Condition, if no, determine that the acquisition condition of the geographic location information of the terminal device is not met; or, determine whether the time difference between the time point of the last time the geographic location information of the terminal device was obtained and the current time point is greater than the preset difference threshold, if so, Then it is determined that the acquisition condition of the geographic location information of the terminal device is satisfied, and if not, it is determined that the acquisition condition of the geographic location information of the terminal device is not satisfied.
预设距离阈值是否超过判断单元,用于判断获取的所述终端设备的当前地理位置信息与上一次获取的所述终端设备的地理位置信息的位置距离是否超过预设距离阈值。Whether the preset distance threshold exceeds the judging unit, configured to judge whether the position distance between the acquired current geographic location information of the terminal device and the last acquired geographic location information of the terminal device exceeds a preset distance threshold.
可用wifi热点检测单元,用于在获取的所述终端设备的当前地理位置信息与上一次获取的所述终端设备的地理位置信息的位置距离超过预设距离阈值时,轮询检测是否存在与所述终端设备的当前位置匹配的可用wifi热点,若存在,则从所述可用的数据网络切换至所述可用wifi热点。A wifi hotspot detection unit is available, configured to poll and detect whether there is a location distance between the acquired current geographic location information of the terminal device and the last acquired geographic location information of the terminal device exceeding a preset distance threshold. If there is an available wifi hotspot that matches the current location of the terminal device, switch from the available data network to the available wifi hotspot.
其中,为了避免长时间轮询耗费过多的资源,则设置轮询检测的时间小于1分钟,如设置为30秒等。Among them, in order to avoid excessive resource consumption by long-term polling, the polling detection time is set to be less than 1 minute, for example, set to 30 seconds.
其中,这里的可用wifi热点包括需要认证信息的wifi热点和不需要认证信息的wifi热点,当可用wifi热点为不需要认证信息的wifi热点时,自动连接该wifi热点,当可用wifi热点为需要认证信息的wifi热点时,则在获取该wifi热点的认证信息之后再连接该wifi热点。Among them, the available wifi hotspots here include wifi hotspots that require authentication information and wifi hotspots that do not require authentication information. When the available wifi hotspots are wifi hotspots that do not require authentication information, the wifi hotspot is automatically connected. If there is a wifi hotspot of information, then connect to the wifi hotspot after obtaining the authentication information of the wifi hotspot.
本发明第二实施例中,由于在终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,表明可用的数据网络为本地的数据网络,此时,连接该可用的数据网络将不会由于漫游而产生额外的资费,并且,由于在不存在可连接wifi热点时也会连接数据网络,因此,能够保证终端设备及时接入网络,保持网络的通畅,提高用户的良好上网体验。In the second embodiment of the present invention, since the current location of the terminal device is the home of the operator's cellular network that the terminal device has registered with, it indicates that the available data network is a local data network, at this time, the available data network is connected The network will not generate additional tariffs due to roaming, and because the data network will also be connected when there is no wifi hotspot that can be connected, it can ensure that the terminal device can access the network in time, keep the network smooth, and improve the user's good Internet access experience.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the sequence numbers of the steps in the above embodiments do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not constitute any limitation to the implementation process of the embodiment of the present invention.
实施例三:Embodiment three:
图4是本发明一实施例提供的终端设备的示意图。如图4所示,该实施例的终端设备4包括:处理器40、存储器41以及存储在所述存储器41中并可在所述处理器40上运行的计算机程序42。所述处理器40执行所述计算机程序42时实现上述各个wifi热点管理方法实施例中的步骤,例如图1所示的步骤S11至S15。或者,所述处理器40执行所述计算机程序42时实现上述各装置实施例中各模块/单元的功能,例如图3所示模块31至35的功能。Fig. 4 is a schematic diagram of a terminal device provided by an embodiment of the present invention. As shown in FIG. 4 , the terminal device 4 of this embodiment includes: a processor 40 , a memory 41 and a computer program 42 stored in the memory 41 and operable on the processor 40 . When the processor 40 executes the computer program 42, it realizes the steps in the embodiments of the above wifi hotspot management methods, such as steps S11 to S15 shown in FIG. 1 . Alternatively, when the processor 40 executes the computer program 42, it realizes the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 31 to 35 shown in FIG. 3 .
示例性的,所述计算机程序42可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器41中,并由所述处理器40执行,以完成本发明。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序42在所述终端设备4中的执行过程。例如,所述计算机程序42可以被分割成Wifi热点检测单元、数据网络是否存在判断单元、当前地理位置信息获取单元、网络归属地判断单元、数据网络连接单元,具体功能如下:Exemplarily, the computer program 42 can be divided into one or more modules/units, and the one or more modules/units are stored in the memory 41 and executed by the processor 40 to complete this invention. The one or more modules/units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to describe the execution process of the computer program 42 in the terminal device 4 . For example, the computer program 42 can be divided into a Wifi hotspot detection unit, a data network presence judging unit, a current geographic location information acquisition unit, a network attribution judging unit, and a data network connection unit. The specific functions are as follows:
Wifi热点检测单元,用于检测是否存在可连接wifi热点;A Wifi hotspot detection unit is used to detect whether there is a connectable wifi hotspot;
数据网络是否存在判断单元,用于在不存在可连接wifi热点时,判断是否存在可用的数据网络;Whether there is a judging unit for the data network, which is used to judge whether there is an available data network when there is no wifi hotspot that can be connected;
当前地理位置信息获取单元,用于在存在可用的数据网络时,获取终端设备的当前地理位置信息;The current geographic location information acquisition unit is used to acquire the current geographic location information of the terminal device when there is an available data network;
网络归属地判断单元,用于根据所述终端设备的当前地理位置信息判断所述终端设备的当前位置是否为所述终端设备已注册的运营商蜂窝网络归属地;A network attribution judging unit, configured to judge whether the current location of the terminal device is the attribution of the operator's cellular network where the terminal device has registered according to the current geographic location information of the terminal device;
数据网络连接单元,用于在所述终端设备的当前位置为所述终端设备已注册的运营商蜂窝网络归属地时,连接所述可用的数据网络。A data network connection unit, configured to connect to the available data network when the current location of the terminal device is the home of the carrier's cellular network where the terminal device has registered.
所述终端设备4可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器40、存储器41。本领域技术人员可以理解,图4仅仅是终端设备4的示例,并不构成对终端设备4的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 4 may be computing devices such as desktop computers, notebooks, palmtop computers, and cloud servers. The terminal device may include, but not limited to, a processor 40 and a memory 41 . Those skilled in the art can understand that FIG. 4 is only an example of the terminal device 4, and does not constitute a limitation on the terminal device 4. It may include more or less components than those shown in the figure, or combine some components, or different components. , for example, the terminal device may also include an input and output device, a network access device, a bus, and the like.
所称处理器40可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 40 may be a central processing unit (Central Processing Unit, CPU), and may also be other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), Off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
所述存储器41可以是所述终端设备4的内部存储单元,例如终端设备4的硬盘或内存。所述存储器41也可以是所述终端设备4的外部存储设备,例如所述终端设备4上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器41还可以既包括所述终端设备4的内部存储单元也包括外部存储设备。所述存储器41用于存储所述计算机程序以及所述终端设备所需的其他程序和数据。所述存储器41还可以用于暂时地存储已经输出或者将要输出的数据。The storage 41 may be an internal storage unit of the terminal device 4 , such as a hard disk or memory of the terminal device 4 . The memory 41 can also be an external storage device of the terminal device 4, such as a plug-in hard disk equipped on the terminal device 4, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, flash memory card (Flash Card), etc. Further, the memory 41 may also include both an internal storage unit of the terminal device 4 and an external storage device. The memory 41 is used to store the computer program and other programs and data required by the terminal device. The memory 41 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used for illustration. In practical applications, the above-mentioned functions can be assigned to different functional units, Completion of modules means that the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit, and the above-mentioned integrated units may adopt hardware It can also be implemented in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the above system, reference may be made to the corresponding process in the foregoing method embodiments, and details will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the descriptions of each embodiment have their own emphases, and for parts that are not detailed or recorded in a certain embodiment, refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal equipment and method may be implemented in other ways. For example, the device/terminal device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units Or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention realizes all or part of the processes in the methods of the above embodiments, and can also be completed by instructing related hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer When the program is executed by the processor, the steps in the above-mentioned various method embodiments can be realized. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, computer-readable media Excludes electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-described embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still carry out the foregoing embodiments Modifications to the technical solutions recorded in the examples, or equivalent replacement of some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should be included in within the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710659798.4A CN107277876A (en) | 2017-08-04 | 2017-08-04 | Network switching method, device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710659798.4A CN107277876A (en) | 2017-08-04 | 2017-08-04 | Network switching method, device and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107277876A true CN107277876A (en) | 2017-10-20 |
Family
ID=60075609
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710659798.4A Pending CN107277876A (en) | 2017-08-04 | 2017-08-04 | Network switching method, device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107277876A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115696483A (en) * | 2021-07-30 | 2023-02-03 | 荣耀终端有限公司 | Network link switching method based on electronic equipment state and electronic equipment |
CN116347550A (en) * | 2022-12-30 | 2023-06-27 | 荣耀终端有限公司 | Network switching method and electronic equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798427A (en) * | 2004-12-21 | 2006-07-05 | 华为技术有限公司 | Method for switching languages |
CN101019451A (en) * | 2004-09-17 | 2007-08-15 | 艾利森电话股份有限公司 | 3G/GSM and WLAN integration of telephony |
CN102917330A (en) * | 2012-10-17 | 2013-02-06 | 广东欧珀移动通信有限公司 | Method and device for prompting roaming during mobile phone call |
US20150241983A1 (en) * | 2014-02-21 | 2015-08-27 | Nod, Inc. | Location Determination and Registration Methodology for Smart Devices Based on Direction and Proximity and Usage of the Same |
US20150334623A1 (en) * | 2010-11-16 | 2015-11-19 | Apple Inc. | Cell Reselection Based on Information Collected from a Plurality of Mobile Devices |
CN105554852A (en) * | 2015-12-29 | 2016-05-04 | 大连楼兰科技股份有限公司 | How to switch WIFI signal source |
-
2017
- 2017-08-04 CN CN201710659798.4A patent/CN107277876A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101019451A (en) * | 2004-09-17 | 2007-08-15 | 艾利森电话股份有限公司 | 3G/GSM and WLAN integration of telephony |
CN1798427A (en) * | 2004-12-21 | 2006-07-05 | 华为技术有限公司 | Method for switching languages |
US20150334623A1 (en) * | 2010-11-16 | 2015-11-19 | Apple Inc. | Cell Reselection Based on Information Collected from a Plurality of Mobile Devices |
CN102917330A (en) * | 2012-10-17 | 2013-02-06 | 广东欧珀移动通信有限公司 | Method and device for prompting roaming during mobile phone call |
US20150241983A1 (en) * | 2014-02-21 | 2015-08-27 | Nod, Inc. | Location Determination and Registration Methodology for Smart Devices Based on Direction and Proximity and Usage of the Same |
CN105554852A (en) * | 2015-12-29 | 2016-05-04 | 大连楼兰科技股份有限公司 | How to switch WIFI signal source |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115696483A (en) * | 2021-07-30 | 2023-02-03 | 荣耀终端有限公司 | Network link switching method based on electronic equipment state and electronic equipment |
CN115696483B (en) * | 2021-07-30 | 2023-10-31 | 荣耀终端有限公司 | Network link switching method and electronic device based on electronic device status |
CN116347550A (en) * | 2022-12-30 | 2023-06-27 | 荣耀终端有限公司 | Network switching method and electronic equipment |
CN116347550B (en) * | 2022-12-30 | 2023-10-31 | 荣耀终端有限公司 | Network switching method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10659957B2 (en) | Apparatus and methods for provisioning devices to utilize services of mobile network operators | |
CN111373775B (en) | Peripheral computing device | |
US10278012B2 (en) | Location-based reminding method, indication device, reminding device, and mobile terminal | |
US10028131B2 (en) | Apparatus and methods for distributing credentials of mobile network operators | |
US8738094B2 (en) | Automatically enabling wireless communication | |
CN104053126B (en) | Show wireless communication terminal, the device and method of both call sides position | |
US10020992B2 (en) | Apparatus and methods for maintaining service continuity when transitioning between mobile network operators | |
CN103596160B (en) | Method and device for data transmission | |
CN108337707A (en) | Wireless network switching method, mobile terminal and storage medium | |
CN104619045A (en) | Access control method and device for mobile terminal | |
CN103905552A (en) | File sharing method, terminal and server | |
CN110602738B (en) | Network connection method and device and electronic device | |
CN108235237B (en) | Data reporting method and device, mobile terminal and computer readable medium | |
US20140155099A1 (en) | Method and apparatus for displaying location information of call service area in mobile terminal | |
CN107864044B (en) | Information processing method and device, terminal and readable storage medium | |
CN107277876A (en) | Network switching method, device and terminal equipment | |
US20160277917A1 (en) | Method and apparatus for automatic detection and selection of an alternative roaming provider | |
CN107396316A (en) | Network switching method and device and terminal equipment | |
US20160309038A1 (en) | Managing Communication Events | |
WO2019228001A1 (en) | Payment method and client | |
CN108011941B (en) | Content push method, device, server and storage medium | |
CN105574453A (en) | Two-dimensional code processing method and mobile terminal | |
CN105142170B (en) | Wireless signal coverage detection system and detection method thereof | |
CN107896285A (en) | Data reporting method, device, mobile terminal and computer readable medium | |
WO2020215278A1 (en) | Network switching resource determining method and network switching resource configuration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171020 |