[go: up one dir, main page]

CN115250481B - Method, terminal and storage medium for automatically adapting network according to service requirements - Google Patents

Method, terminal and storage medium for automatically adapting network according to service requirements Download PDF

Info

Publication number
CN115250481B
CN115250481B CN202110448449.4A CN202110448449A CN115250481B CN 115250481 B CN115250481 B CN 115250481B CN 202110448449 A CN202110448449 A CN 202110448449A CN 115250481 B CN115250481 B CN 115250481B
Authority
CN
China
Prior art keywords
network
current
wifi
quality
wireless data
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.)
Active
Application number
CN202110448449.4A
Other languages
Chinese (zh)
Other versions
CN115250481A (en
Inventor
周晶
许珺
师瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202110448449.4A priority Critical patent/CN115250481B/en
Publication of CN115250481A publication Critical patent/CN115250481A/en
Application granted granted Critical
Publication of CN115250481B publication Critical patent/CN115250481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

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

Abstract

本公开提供一种根据业务需求自动适配网络的方法、终端及存储介质,其中,所述方法包括:终端选择WiFi与蜂窝网络之中当前网络质量较好的网络接入;每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;若有,则判断当前是否使用WiFi网络进行数据业务;若否,则在接入蜂窝网络的同时接入WiFi网络。本公开提供的技术方案既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验。

The present disclosure provides a method, terminal and storage medium for automatically adapting the network according to business needs, wherein the method includes: the terminal selects the network with better current network quality between WiFi and cellular network for access; whenever a user activates an application or service, it is determined whether the application or service has the use demand of WiFi shared network; if so, it is determined whether the WiFi network is currently used for data service; if not, the WiFi network is accessed while accessing the cellular network. The technical solution provided by the present disclosure can not only connect to the WiFi network according to business needs, but also ensure the user's good Internet experience.

Description

根据业务需求自动适配网络的方法、终端及存储介质Method, terminal and storage medium for automatically adapting network according to business requirements

技术领域Technical Field

本公开涉及通信技术领域,尤其涉及一种根据业务需求自动适配网络的方法、一种终端以及一种计算机可读存储介质。The present disclosure relates to the field of communication technology, and in particular to a method for automatically adapting a network according to business requirements, a terminal, and a computer-readable storage medium.

背景技术Background Art

WiFi和3G/4G/5G蜂窝网络(Cellular network)是手机用户常用的两种数据上网方式。一种使用方式是由用户自行选择使用WiFi上网,还是使用蜂窝网络上网;另一种使用方式是优先使用WiFi上网,当用户进入以前已经连接认证过的WiFi覆盖区域时,用户手机就会自动连接WiFi,当WiFi信号变差而蜂窝网络的信号较好的情况下,用户手机会自动切换到蜂窝网络上,反之,则会自动切换至WiFi。WiFi and 3G/4G/5G cellular networks are two common data Internet access methods for mobile phone users. One method is for users to choose whether to use WiFi or cellular networks to access the Internet; the other method is to give priority to WiFi. When a user enters a WiFi coverage area that has been connected and authenticated before, the user's phone will automatically connect to WiFi. When the WiFi signal becomes poor and the cellular network signal is good, the user's phone will automatically switch to the cellular network. Otherwise, it will automatically switch to WiFi.

但是,这两种使用方式均未考虑业务需求,无法根据业务需求自动适配网络。例如,在室内场景下,有些应用或业务需要连接WiFi才能共享使用,比如说打印机,电视投屏等;但此时,有可能室内的WiFi信号虽然不错,但是实际上WiFi对internet(互联网)的连接并不好,有可能是丢包严重,或者是时延大,影响了用户的上网体验。However, these two usage methods do not take into account business needs and cannot automatically adapt the network according to business needs. For example, in indoor scenarios, some applications or services need to be connected to WiFi for shared use, such as printers, TV screen projection, etc. However, at this time, although the indoor WiFi signal is good, the actual WiFi connection to the Internet is not good, there may be serious packet loss or large latency, which affects the user's Internet experience.

因此,提出一种既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验的方案是目前亟待解决的问题。Therefore, it is an urgent problem to propose a solution that can connect to the WiFi network according to business needs and ensure users a good Internet experience.

发明内容Summary of the invention

为了至少部分解决现有技术中存在的技术问题而完成了本公开。The present disclosure is completed in order to at least partially solve the technical problems existing in the prior art.

根据本公开实施例的一方面,提供一种根据业务需求自动适配网络的方法,所述方法应用于终端,包括:According to one aspect of an embodiment of the present disclosure, a method for automatically adapting a network according to service requirements is provided, the method being applied to a terminal, comprising:

选择WiFi与蜂窝网络之中当前网络质量较好的网络接入;Choose the network with better quality between WiFi and cellular network;

每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;Whenever a user activates an application or service, determine whether the application or service has a need to use a WiFi sharing network;

若有,则判断当前是否使用WiFi网络进行数据业务;If yes, determine whether the WiFi network is currently used for data services;

若否,则在接入蜂窝网络的同时接入WiFi网络。If not, access the WiFi network while accessing the cellular network.

根据本公开实施例的另一方面,提供一种终端,包括:According to another aspect of an embodiment of the present disclosure, a terminal is provided, including:

网络选择模块,其设置为选择WiFi与蜂窝网络之中当前网络质量较好的网络;A network selection module, which is configured to select a network with better current network quality between WiFi and cellular networks;

网络接入模块,其设置为接入所述网络选择模块所选择的网络;A network access module, configured to access the network selected by the network selection module;

第一判断模块,其设置为每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;以及,A first judgment module is configured to judge whether the application or service has a need to use a WiFi shared network whenever a user activates the application or service; and

第二判断模块,其设置为在所述第一判断模块判断为该应用或业务有WiFi共享网络的使用需求时,判断当前是否使用WiFi网络进行数据业务;A second judgment module is configured to judge whether the WiFi network is currently used for data services when the first judgment module determines that the application or service has a demand for using a WiFi shared network;

所述网络接入模块还设置为,在所述第二判断模块判断为当前未使用WiFi网络进行数据业务时,在接入蜂窝网络的同时接入WiFi网络。The network access module is further configured to access the WiFi network while accessing the cellular network when the second determination module determines that the WiFi network is not currently used for data services.

根据本公开实施例的又一方面,提供一种终端,包括存储器和处理器,所述存储器中存储有计算机程序,当所述处理器运行所述存储器存储的计算机程序时,所述处理器执行前述根据业务需求自动适配网络的方法。According to another aspect of an embodiment of the present disclosure, a terminal is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the aforementioned method of automatically adapting the network according to business requirements.

根据本公开实施例的再一方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行前述根据业务需求自动适配网络的方法。According to another aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the aforementioned method of automatically adapting a network according to business requirements.

本公开的实施例提供的技术方案可以包括以下有益效果:The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

本公开实施例提供的根据业务需求自动适配网络的方法,在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之后,若用户启用的某一项应用或业务有WiFi共享网络的使用需求,在当前并未使用WiFi网络进行数据业务的情况下,为满足该应用或业务的WiFi共享网络的使用需求,在接入蜂窝网络的同时接入WiFi网络以支撑WiFi共享网络业务或应用的使用,从而既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验。The method for automatically adapting the network according to the service demand provided by the embodiment of the present disclosure selects the network access with better current network quality between WiFi and cellular network. If a certain application or service enabled by the user requires the use of WiFi shared network, when the WiFi network is not currently used for data service, in order to meet the use demand of the WiFi shared network of the application or service, the WiFi network is accessed while accessing the cellular network to support the use of the WiFi shared network service or application, thereby connecting to the WiFi network according to the service demand and ensuring the user's good Internet experience.

本公开的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本公开而了解。本公开的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by practicing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures particularly pointed out in the description, claims and drawings.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

附图用来提供对本公开技术方案的进一步理解,并且构成说明书的一部分,与本公开的实施例一起用于解释本公开的技术方案,并不构成对本公开技术方案的限制。The accompanying drawings are used to provide further understanding of the technical solution of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the technical solution of the present disclosure and do not constitute a limitation on the technical solution of the present disclosure.

图1为本公开实施例提供的根据业务需求自动适配网络的方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a method for automatically adapting a network according to business requirements provided by an embodiment of the present disclosure;

图2为本公开实施例提供的终端的结构示意图之一;FIG2 is a schematic diagram of a terminal structure provided by an embodiment of the present disclosure;

图3为本公开实施例提供的终端的结构示意图之二。FIG. 3 is a second schematic diagram of the structure of the terminal provided in an embodiment of the present disclosure.

具体实施方式DETAILED DESCRIPTION

为使本公开实施例的目的、技术方案和优点更加清楚,以下结合附图对本公开的具体实施方式进行详细说明。应当理解的是,此处所描述的具体实施方式仅用于说明和解释本公开,并不用于限制本公开。To make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the specific implementation methods of the present disclosure are described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation methods described here are only used to illustrate and explain the present disclosure, and are not used to limit the present disclosure.

需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序;并且,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互任意组合。It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence; and, in the absence of conflict, the embodiments in the present disclosure and the features in the embodiments can be arbitrarily combined with each other.

在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本公开的说明,其本身没有特定的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the subsequent description, the suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present disclosure, and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

图1为本公开实施例提供的根据业务需求自动适配网络的方法的流程示意图。如图1所示,所述方法应用于终端,包括如下步骤S101至S104。Fig. 1 is a flow chart of a method for automatically adapting a network according to service requirements provided by an embodiment of the present disclosure. As shown in Fig. 1, the method is applied to a terminal and includes the following steps S101 to S104.

S101.选择WiFi与蜂窝网络之中当前网络质量较好的网络接入;S101. Select the network access with better current network quality between WiFi and cellular network;

S102.每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求,若有,则执行步骤S103;S102. Whenever a user activates an application or service, it is determined whether the application or service has a need to use a WiFi shared network. If so, step S103 is executed;

S103.判断当前是否使用WiFi网络进行数据业务,若否,则执行步骤S104;S103. Determine whether the WiFi network is currently used for data services. If not, execute step S104;

S104.在接入蜂窝网络的同时接入WiFi网络。S104. Access the WiFi network while accessing the cellular network.

本实施例中,在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之后,若用户启用的某一项应用或业务有WiFi共享网络的使用需求(例如网络共享打印机、TV投票、电视投屏等),在当前并未使用WiFi网络进行数据业务的情况下,说明当前网络质量较好的网络为蜂窝网络,即蜂窝网络的当前网络质量要好于WiFi网络,并且当前正在使用蜂窝网络进行数据业务,为满足该应用或业务的WiFi共享网络的使用需求,确保WiFi共享网络业务或应用的正常使用,在接入蜂窝网络的同时接入WiFi网络以支撑WiFi共享网络业务或应用的使用,从而既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验。In this embodiment, after selecting the network access with better current network quality between WiFi and cellular network, if an application or service enabled by the user has a demand for using the WiFi shared network (for example, network shared printer, TV voting, TV screen projection, etc.), when the WiFi network is not currently used for data services, it means that the network with better current network quality is the cellular network, that is, the current network quality of the cellular network is better than that of the WiFi network, and the cellular network is currently being used for data services. In order to meet the demand for using the WiFi shared network of the application or service and ensure the normal use of the WiFi shared network service or application, the WiFi network is accessed while accessing the cellular network to support the use of the WiFi shared network service or application, thereby connecting to the WiFi network according to business needs and ensuring a good Internet experience for users.

在一种具体实施方式中,在步骤S104之后,还包括如下步骤S105和S106。In a specific implementation, after step S104, the following steps S105 and S106 are also included.

S105.判断该应用或业务是否关闭或结束,若是,则返回步骤S101;若否,则执行步骤S106;S105. Determine whether the application or service is closed or terminated. If so, return to step S101; if not, execute step S106;

S106.保持蜂窝网络和WiFi网络均接入。S106. Keep both the cellular network and the WiFi network connected.

本实施例中,在同时接入蜂窝网络和WiFi网络的前提下,在WiFi共享网络业务或应用结束或关闭后,终端再次判断WiFi与蜂窝网络的当前网络质量孰优孰劣,并保留当前网络质量较好的网络,而断开当前网络质量较差的网络。当然,若WiFi共享网络业务或应用尚未结束或关闭,还需保持蜂窝网络和WiFi网络均接入,直至WiFi共享网络业务或应用结束或关闭为止。In this embodiment, under the premise of accessing the cellular network and the WiFi network at the same time, after the WiFi shared network service or application is terminated or closed, the terminal again determines which of the current network quality of the WiFi and cellular networks is better, and retains the network with better current network quality, while disconnecting the network with poor current network quality. Of course, if the WiFi shared network service or application has not yet been terminated or closed, it is necessary to maintain access to both the cellular network and the WiFi network until the WiFi shared network service or application is terminated or closed.

在一种具体实施方式中,步骤S101包括如下步骤S1011至S1014。In a specific implementation, step S101 includes the following steps S1011 to S1014.

S1011.分别获取当前接入网络与另一无线数据接入网络的当前网络质量,其中当前接入网络与另一无线数据接入网络分别为WiFi与蜂窝网络中的一者与另一者,具体地,若当前接入网络为WiFi网络,则另一无线数据接入网络就为蜂窝网络;若当前接入网络为蜂窝网络,则另一无线数据接入网络就为WiFi网络;S1011. respectively obtain the current network quality of the current access network and another wireless data access network, wherein the current access network and the other wireless data access network are one and the other of WiFi and cellular network, respectively. Specifically, if the current access network is a WiFi network, the other wireless data access network is a cellular network; if the current access network is a cellular network, the other wireless data access network is a WiFi network;

S1012.基于预设的网络质量判断标准,判断当前接入网络的当前网络质量是否优于另一无线数据接入网络的当前网络质量,若是,则执行步骤S1013;若否,则执行步骤S1014;S1012. Based on the preset network quality judgment standard, determine whether the current network quality of the current access network is better than the current network quality of another wireless data access network. If so, execute step S1013; if not, execute step S1014;

S1013.驻留在当前接入的网络;S1013. Resides in the currently accessed network;

S1014.自动切换为另一无线数据接入网络。S1014. Automatically switch to another wireless data access network.

本实施例中,基于预设的网络质量判断标准,比较当前接入网络与另一无线数据接入网络的当前网络质量孰优孰劣,若当前接入网络的当前网络质量较好,则依然驻留在当前接入的网络;若另一无线数据接入网络的当前网络质量较好,则自动切换为另一无线数据接入网络,以保证用户终端始终接入当前上网速率较快的网络。In this embodiment, based on a preset network quality judgment standard, the current access network and the current network quality of another wireless data access network are compared. If the current network quality of the current access network is better, the current access network remains; if the current network quality of another wireless data access network is better, the other wireless data access network is automatically switched to ensure that the user terminal always accesses the current network with a faster Internet speed.

至于网络质量的判断标准,可以参考多项指标,具体可由终端厂家自行进行预置。As for the judgment criteria of network quality, multiple indicators can be used as reference, which can be preset by the terminal manufacturer.

在一种具体实施方式中,所述网络质量的衡量指标包括:网络制式、信号强度与网络时延。In a specific implementation manner, the network quality measurement indicators include: network standard, signal strength and network delay.

在一种具体实施方式中,步骤S1012包括如下步骤Sa至Se。In a specific implementation, step S1012 includes the following steps Sa to Se.

Sa.基于预存的WiFi与蜂窝网络的网络制式的优先级列表,判断当前接入网络的网络制式是否优于另一无线数据接入网络的网络制式,若是,则执行步骤Sb;若否,则执行步骤Sc;Sa. Based on the pre-stored priority list of WiFi and cellular network standards, determine whether the network standard of the current access network is better than the network standard of another wireless data access network. If so, execute step Sb; if not, execute step Sc;

Sb.判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;Sb determines the current network quality of the current access network is better than the current network quality of another wireless data access network;

Sc.判断当前接入网络的信号强度与网络时延是否优于另一无线数据接入网络的信号强度与网络时延,若当前接入网络的信号强度与网络时延中有一者优于另一无线数据接入网络,则执行步骤Sd;若当前接入网络的信号强度与网络时延均劣于另一无线数据接入网络,则执行步骤Se;Sc. Determine whether the signal strength and network delay of the current access network are better than the signal strength and network delay of another wireless data access network. If one of the signal strength and network delay of the current access network is better than another wireless data access network, execute step Sd; if the signal strength and network delay of the current access network are worse than another wireless data access network, execute step Se;

Sd.判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;Sd determines the current network quality of the current access network is better than the current network quality of another wireless data access network;

Se.判定当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量。Se. Determine that the current network quality of the current access network is inferior to the current network quality of another wireless data access network.

本实施例中,若当前接入网络的网络制式、信号强度与网络时延中有一者优于另一无线数据接入网络,为避免频繁的进行网络切换,终端仍驻留在当前接入的网络。只有在当前接入网络的网络制式、信号强度与网络时延均劣于另一无线数据接入网络时,才执行网络切换。In this embodiment, if one of the network standard, signal strength and network delay of the currently accessed network is better than that of another wireless data access network, in order to avoid frequent network switching, the terminal still resides in the currently accessed network. Network switching is performed only when the network standard, signal strength and network delay of the currently accessed network are all inferior to those of another wireless data access network.

为了实现上述步骤,终端内需预先存储“WiFi与蜂窝网络的网络制式的优先级列表”,所述优先级列表根据WiFi与蜂窝网络的网络制式所支持的最大能力进行优先级排序。In order to implement the above steps, the terminal needs to pre-store a “priority list of network standards of WiFi and cellular networks”, and the priority list is prioritized according to the maximum capabilities supported by the network standards of WiFi and cellular networks.

在一种具体实施方式中,在所述优先级列表中,WiFi 6>5G>WiFi 802.11ac>WiFi802.11n>4G>802.11a/g/b>3G。In a specific implementation, in the priority list, WiFi 6>5G>WiFi 802.11ac>WiFi802.11n>4G>802.11a/g/b>3G.

其中,WiFi 6(原称:WiFi 802.11.ax)即第六代无线网络技术,是WiFi 802.11ac的升级,理论上最高速率可达9.6Gbps;WiFi 802.11ac是第五代无线网络技术,是WiFi802.11n的升级,理论上能够提供最少1Gbps带宽进行多站式无线局域网通信,或是最少500Mbps的单一连线传输带宽;WiFi 802.11n是WiFi 802.11a/g/b的升级,理论上最高速率为600Mbps;WiFi 802.11a/g/b是IEEE最初制定的一个无线局域网标准,主要用于解决办公室局域网和校园网中用户与用户终端的无线接入,其中802.11a工作在5.4G频段,最高速率为54Mbps,802.11b工作在2.4G频段,最高速率为11Mbps,802.11g工作在2.4G频段,最高速率为54Mbps。上述无线网络协议均属于Wi-Fi联盟创建于IEEE 802.11标准的无线局域网技术。Among them, WiFi 6 (formerly known as WiFi 802.11.ax) is the sixth generation of wireless network technology, which is an upgrade of WiFi 802.11ac. Theoretically, the maximum speed can reach 9.6Gbps; WiFi 802.11ac is the fifth generation of wireless network technology, which is an upgrade of WiFi802.11n. In theory, it can provide at least 1Gbps bandwidth for multi-station wireless LAN communication, or at least 500Mbps single connection transmission bandwidth; WiFi 802.11n is an upgrade of WiFi 802.11a/g/b, with a theoretical maximum speed of 600Mbps; WiFi 802.11a/g/b is a wireless LAN standard originally developed by IEEE, mainly used to solve the wireless access of users and user terminals in office LAN and campus network. 802.11a works in 5.4G frequency band with a maximum rate of 54Mbps, 802.11b works in 2.4G frequency band with a maximum rate of 11Mbps, and 802.11g works in 2.4G frequency band with a maximum rate of 54Mbps. The above wireless network protocols are all wireless LAN technologies created by Wi-Fi Alliance based on IEEE 802.11 standard.

5G(5th generation mobile networks或5th generation wireless systems、5th-Generation,第五代移动通信技术)、4G(4th generation mobile communicationtechnology,第四代移动通信技术)、3G(3rd-Generation,第三代移动通信技术)以及上述无线网络协议均为现有技术,本公开对其不再赘述。5G (5th generation mobile networks or 5th generation wireless systems, 5th-Generation, fifth generation mobile communication technology), 4G (4th generation mobile communication technology, fourth generation mobile communication technology), 3G (3rd-Generation, third generation mobile communication technology) and the above-mentioned wireless network protocols are all prior arts and will not be described in detail in this disclosure.

在一种具体实施方式中,在步骤S102中,若判断为该应用或业务没有WiFi共享网络的使用需求,还包括如下步骤S107:In a specific implementation, in step S102, if it is determined that the application or service does not have a demand for using a WiFi shared network, the following step S107 is also included:

S107.驻留在当前接入的网络。S107. Reside on the currently connected network.

本实施例中,在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之后,若用户启用的某一项应用或业务没有WiFi共享网络的使用需求,那么直接驻留在当前接入的网络即可,并且当前接入的网络为WiFi与蜂窝网络之中当前网络质量较好的网络,以保证用户终端接入当前上网速率较快的网络。In this embodiment, after selecting the network access with better current network quality between WiFi and cellular network, if an application or service enabled by the user does not require the use of WiFi shared network, then it can directly reside in the currently accessed network, and the currently accessed network is the network with better current network quality between WiFi and cellular network, so as to ensure that the user terminal accesses the network with faster current Internet access speed.

在一种具体实施方式中,在步骤S103中,若判断为当前使用WiFi网络进行数据业务,还包括如下步骤S108:In a specific implementation, in step S103, if it is determined that the WiFi network is currently used for data services, the following step S108 is also included:

S108.驻留在当前接入的WiFi网络。S108. Stay on the currently connected WiFi network.

本实施例中,若用户启用的某一项应用或业务有WiFi共享网络的使用需求,并且当前使用WiFi网络进行数据业务的情况下,说明当前网络质量较好的网络为WiFi网络,则无需执行网络切换,继续使用WiFi网络既可满足该应用或业务的WiFi共享网络的使用需求,又能保障用户良好的上网体验。In this embodiment, if an application or service enabled by the user requires the use of a WiFi shared network, and the WiFi network is currently used for data services, it means that the current network with better network quality is the WiFi network, and there is no need to perform network switching. Continuing to use the WiFi network can both meet the use requirements of the WiFi shared network of the application or service and ensure a good Internet experience for the user.

在一种具体实施方式中,在步骤S101之前,还包括如下步骤S109和S110。In a specific implementation, before step S101, the following steps S109 and S110 are also included.

S109.判断所述终端的“基于业务需求自动切换WiFi与蜂窝网络”的功能是否已开启,若已开启,则执行步骤S101;若未开启,则执行步骤S110;S109. Determine whether the function of "automatically switching between WiFi and cellular network based on business needs" of the terminal is enabled. If enabled, execute step S101; if not enabled, execute step S110;

S110.驻留在当前接入的网络。S110. Reside on the currently connected network.

本实施例中,终端可向用户提供一个“基于业务需求自动切换WiFi与蜂窝网络”的选项,用户可根据自身需求进行选择,是否需要开启基于业务需求自动切换WiFi与蜂窝网络的功能。In this embodiment, the terminal can provide the user with an option of "automatically switching between WiFi and cellular networks based on business needs". The user can choose according to their own needs whether to enable the function of automatically switching between WiFi and cellular networks based on business needs.

若用户选择了该选项,则终端开启“基于业务需求自动切换WiFi与蜂窝网络”功能,并选择WiFi与蜂窝网络之中当前网络质量较好的网络接入,然后在某一项应用或业务有WiFi共享网络的使用需求,并且当前并未使用WiFi网络进行数据业务的情况下,在接入蜂窝网络的同时接入WiFi网络;若用户未选择该选项,则终端不开启“基于业务需求自动切换WiFi与蜂窝网络”功能,按照用户当前使用的上网方式进行上网,即终端驻留在当前接入的网络,具体可按照用户预先选择的WiFi与蜂窝网络之中的一种方式进行上网。If the user selects this option, the terminal will enable the "automatically switch between WiFi and cellular networks based on business needs" function and select the network with better current network quality between WiFi and cellular networks for access. Then, when an application or business requires the use of a WiFi shared network and the WiFi network is not currently used for data services, the terminal will access the WiFi network while accessing the cellular network. If the user does not select this option, the terminal will not enable the "automatically switch between WiFi and cellular networks based on business needs" function and will access the Internet according to the Internet access method currently used by the user. That is, the terminal stays in the currently accessed network and can access the Internet in one of the WiFi and cellular networks selected in advance by the user.

本公开实施例提供的根据业务需求自动适配网络的方法,终端在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之后,若用户启用的某一项应用或业务有WiFi共享网络的使用需求,那么判断当前是否使用WiFi网络进行数据业务,若是,则驻留在当前接入的WiFi网络;若否,则在接入蜂窝网络的同时接入WiFi网络,直至WiFi共享网络业务或应用结束或关闭;若用户启用的某一项应用或业务没有WiFi共享网络的使用需求,则驻留在当前接入的网络,从而根据业务需求自动适配WiFi与蜂窝网络,使用户能够更好的使用这两种数据上网方式,并且既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验。The method for automatically adapting the network according to the service demand provided by the embodiment of the present disclosure is that after the terminal selects the network access with better current network quality between WiFi and cellular network, if a certain application or service enabled by the user has the use demand of WiFi shared network, then it is determined whether the WiFi network is currently used for data service, and if so, it resides in the currently connected WiFi network; if not, it accesses the WiFi network while accessing the cellular network until the WiFi shared network service or application is terminated or closed; if a certain application or service enabled by the user does not have the use demand of WiFi shared network, it resides in the currently connected network, thereby automatically adapting WiFi and cellular network according to service demand, so that the user can better use these two data Internet access methods, and can not only connect to the WiFi network according to service demand, but also ensure the user's good Internet access experience.

基于相同的技术构思,本公开实施例相应提供一种终端,如图2所示,所述终端2包括:网络选择模块21、网络接入模块22、第一判断模块23和第二判断模块24。Based on the same technical concept, an embodiment of the present disclosure correspondingly provides a terminal, as shown in FIG. 2 , the terminal 2 includes: a network selection module 21 , a network access module 22 , a first judgment module 23 and a second judgment module 24 .

其中,网络选择模块21设置为选择WiFi与蜂窝网络之中当前网络质量较好的网络;网络接入模块22设置为接入网络选择模块21所选择的网络;第一判断模块23设置为每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;第二判断模块24设置为在第一判断模块23判断为该应用或业务有WiFi共享网络的使用需求时,判断当前是否使用WiFi网络进行数据业务;网络接入模块22还设置为,在第二判断模块24判断为当前未使用WiFi网络进行数据业务时,在接入蜂窝网络的同时接入WiFi网络。Among them, the network selection module 21 is configured to select a network with better current network quality between WiFi and cellular networks; the network access module 22 is configured to access the network selected by the network selection module 21; the first judgment module 23 is configured to determine whether the application or service has a need to use a WiFi shared network whenever a user activates an application or service; the second judgment module 24 is configured to determine whether the WiFi network is currently used for data services when the first judgment module 23 determines that the application or service has a need to use a WiFi shared network; the network access module 22 is also configured to access the WiFi network while accessing the cellular network when the second judgment module 24 determines that the WiFi network is not currently used for data services.

在一种具体实施方式中,所述终端2还包括:第三判断模块25。In a specific implementation, the terminal 2 further includes: a third judgment module 25 .

第三判断模块25设置为判断该应用或业务是否关闭或结束。The third determination module 25 is configured to determine whether the application or service is closed or terminated.

相应地,网络选择模块21还设置为,在第三判断模块25判断为该应用或业务已经关闭或结束时,再次选择WiFi与蜂窝网络之中当前网络质量较好的网络。网络接入模块22还设置为,在第三判断模块25判断为该应用或业务尚未关闭或结束时,保持蜂窝网络和WiFi网络均接入。Accordingly, the network selection module 21 is further configured to select the network with better current network quality between WiFi and cellular network again when the third judgment module 25 determines that the application or service has been closed or ended. The network access module 22 is further configured to keep both cellular network and WiFi network connected when the third judgment module 25 determines that the application or service has not been closed or ended.

在一种具体实施方式中,网络选择模块21包括:获取单元、判断单元和选择单元。In a specific implementation, the network selection module 21 includes: an acquisition unit, a judgment unit and a selection unit.

其中,获取单元设置为分别获取当前接入网络与另一无线数据接入网络的当前网络质量,其中当前接入网络与另一无线数据接入网络分别为WiFi与蜂窝网络中的一者与另一者。判断单元设置为基于预设的网络质量判断标准,判断当前接入网络的当前网络质量是否优于另一无线数据接入网络的当前网络质量。选择单元设置为,在判断单元判断为当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量时,选择当前接入网络;以及在判断单元判断为当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量时,选择另一无线数据接入网络。网络接入模块22具体设置为,接入选择单元所选择的网络,即:若选择单元选择当前接入网络,则驻留在当前接入的网络;若选择单元选择另一无线数据接入网络,则自动切换为另一无线数据接入网络。Among them, the acquisition unit is configured to respectively acquire the current network quality of the current access network and another wireless data access network, wherein the current access network and the other wireless data access network are one and the other of WiFi and cellular network respectively. The judgment unit is configured to judge whether the current network quality of the current access network is better than the current network quality of another wireless data access network based on a preset network quality judgment standard. The selection unit is configured to select the current access network when the judgment unit judges that the current network quality of the current access network is better than the current network quality of another wireless data access network; and select another wireless data access network when the judgment unit judges that the current network quality of the current access network is worse than the current network quality of another wireless data access network. The network access module 22 is specifically configured to access the network selected by the selection unit, that is: if the selection unit selects the current access network, it resides in the current access network; if the selection unit selects another wireless data access network, it automatically switches to another wireless data access network.

在一种具体实施方式中,所述网络质量的衡量指标包括:网络制式、信号强度与网络时延。In a specific implementation manner, the network quality measurement indicators include: network standard, signal strength and network delay.

在一种具体实施方式中,判断单元包括:第一判断子单元和第二判断子单元。In a specific implementation, the judgment unit includes: a first judgment subunit and a second judgment subunit.

其中,第一判断子单元设置为基于预存的WiFi与蜂窝网络的网络制式的优先级列表,判断当前接入网络的网络制式是否优于另一无线数据接入网络的网络制式,若是,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量。第二判断子单元设置为,在第一判断子单元判断为当前接入网络的网络制式劣于另一无线数据接入网络的网络制式时,判断当前接入网络的信号强度与网络时延是否优于另一无线数据接入网络的信号强度与网络时延;若当前接入网络的信号强度与网络时延中有一者优于另一无线数据接入网络,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;若当前接入网络的信号强度与网络时延均劣于另一无线数据接入网络,则判定当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量。Among them, the first judgment subunit is configured to judge whether the network standard of the current access network is better than the network standard of another wireless data access network based on the pre-stored priority list of network standards of WiFi and cellular networks, and if so, to judge that the current network quality of the current access network is better than the current network quality of another wireless data access network. The second judgment subunit is configured to judge whether the signal strength and network delay of the current access network are better than the signal strength and network delay of another wireless data access network when the first judgment subunit judges that the network standard of the current access network is worse than the network standard of another wireless data access network; if one of the signal strength and network delay of the current access network is better than that of another wireless data access network, then the current network quality of the current access network is judged to be better than the current network quality of another wireless data access network; if the signal strength and network delay of the current access network are both worse than that of another wireless data access network, then the current network quality of the current access network is judged to be worse than the current network quality of another wireless data access network.

在一种具体实施方式中,网络接入模块22还设置为,在第一判断模块23判断为该应用或业务没有WiFi共享网络的使用需求时,驻留在当前接入的网络。In a specific implementation, the network access module 22 is further configured to reside in the currently accessed network when the first determination module 23 determines that the application or service has no need to use the WiFi shared network.

在一种具体实施方式中,网络接入模块22还设置为,在第二判断模块24判断为当前使用WiFi网络进行数据业务时,驻留在当前接入的WiFi网络。In a specific implementation, the network access module 22 is further configured to reside in the currently accessed WiFi network when the second determination module 24 determines that the WiFi network is currently used for data services.

在一种具体实施方式中,所述终端2还包括:第四判断模块26。In a specific implementation, the terminal 2 further includes: a fourth determination module 26 .

第四判断模块26设置为判断所述终端的“基于业务需求自动切换WiFi与蜂窝网络”的功能是否已开启;网络选择模块21还设置为,在第四判断模块26判断为所述终端的“基于业务需求自动切换WiFi与蜂窝网络”的功能已开启时,执行选择WiFi与蜂窝网络之中当前网络质量较好的网络的步骤;网络接入模块22还设置为,在第四判断模块26判断为所述终端的“基于业务需求自动切换WiFi与蜂窝网络”的功能未开启时,驻留在当前接入的网络。The fourth judgment module 26 is configured to determine whether the function of "automatically switching between WiFi and cellular networks based on business needs" of the terminal is turned on; the network selection module 21 is also configured to, when the fourth judgment module 26 determines that the function of "automatically switching between WiFi and cellular networks based on business needs" of the terminal is turned on, execute the step of selecting a network with better current network quality between WiFi and cellular networks; the network access module 22 is also configured to, when the fourth judgment module 26 determines that the function of "automatically switching between WiFi and cellular networks based on business needs" of the terminal is not turned on, reside in the currently accessed network.

基于相同的技术构思,本公开实施例相应还提供一种终端,如图3所示,所述终端3包括存储器31和处理器32,所述存储器31中存储有计算机程序,当所述处理器32运行所述存储器31存储的计算机程序时,所述处理器32执行前述根据业务需求自动适配网络的方法。Based on the same technical concept, the embodiment of the present disclosure also provides a terminal, as shown in Figure 3, the terminal 3 includes a memory 31 and a processor 32, the memory 31 stores a computer program, when the processor 32 runs the computer program stored in the memory 31, the processor 32 executes the aforementioned method of automatically adapting the network according to business needs.

本公开实施例提供的终端,在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之后,若用户启用的某一项应用或业务有WiFi共享网络的使用需求,那么判断当前是否使用WiFi网络进行数据业务,若是,则驻留在当前接入的WiFi网络;若否,则在接入蜂窝网络的同时接入WiFi网络,直至WiFi共享网络业务或应用结束或关闭;若用户启用的某一项应用或业务没有WiFi共享网络的使用需求,则驻留在当前接入的网络,从而根据业务需求自动适配WiFi与蜂窝网络,使用户能够更好的使用这两种数据上网方式,并且既能根据业务需求连接WiFi网络,又能保障用户良好的上网体验。The terminal provided by the embodiment of the present disclosure, after selecting the network access with better current network quality between WiFi and cellular network, if a certain application or service enabled by the user has the use requirement of WiFi shared network, then it is determined whether the WiFi network is currently used for data service, and if so, it resides in the currently connected WiFi network; if not, it accesses the WiFi network while accessing the cellular network until the WiFi shared network service or application is terminated or closed; if a certain application or service enabled by the user does not have the use requirement of WiFi shared network, it resides in the currently connected network, thereby automatically adapting WiFi and cellular network according to service requirements, so that users can better use these two data Internet access methods, and can not only connect to the WiFi network according to service requirements, but also ensure users' good Internet access experience.

基于相同的技术构思,本公开实施例相应还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,所述处理器执行前述根据业务需求自动适配网络的方法。Based on the same technical concept, an embodiment of the present disclosure also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor executes the aforementioned method of automatically adapting the network according to business needs.

本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules/units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, it is well known to those of ordinary skill in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

最后应说明的是:以上各实施例仅用以说明本公开的技术方案,而非对其限制;尽管参照前述各实施例对本公开进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本公开各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (6)

1.一种根据业务需求自动适配网络的方法,其特征在于,应用于终端,所述方法包括:1. A method for automatically adapting a network according to service requirements, characterized in that it is applied to a terminal, and the method comprises: 选择WiFi与蜂窝网络之中当前网络质量较好的网络接入;Choose the network with better quality between WiFi and cellular network; 每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;Whenever a user activates an application or service, determine whether the application or service has a need to use a WiFi sharing network; 若该应用或业务没有WiFi共享网络的使用需求,则驻留在当前接入的网络;If the application or service does not require the use of a WiFi shared network, it will reside on the currently connected network; 若该应用或业务有WiFi共享网络的使用需求,则判断当前是否使用WiFi网络进行数据业务;If the application or service requires the use of a WiFi shared network, determine whether the WiFi network is currently used for data services; 若当前使用WiFi网络进行数据业务,则驻留在当前接入的WiFi网络;If you are currently using a WiFi network for data services, stay on the currently connected WiFi network; 若当前未使用WiFi网络进行数据业务,则在接入蜂窝网络的同时接入WiFi网络,直至WiFi共享网络业务或应用结束或关闭,返回选择WiFi与蜂窝网络之中当前网络质量较好的网络接入的步骤;If the WiFi network is not currently used for data services, then access the WiFi network while accessing the cellular network until the WiFi shared network service or application ends or is closed, and then return to the step of selecting the network access with the better current network quality between the WiFi and cellular networks; 所述选择WiFi与蜂窝网络之中当前网络质量较好的网络接入,包括:The selecting of the network access with better current network quality between WiFi and cellular network includes: 分别获取当前接入网络与另一无线数据接入网络的当前网络质量,其中当前接入网络与另一无线数据接入网络分别为WiFi与蜂窝网络中的一者与另一者;respectively obtaining current network quality of a current access network and another wireless data access network, wherein the current access network and the other wireless data access network are one and the other of a WiFi and a cellular network; 基于预设的网络质量判断标准,判断当前接入网络的当前网络质量是否优于另一无线数据接入网络的当前网络质量;Based on a preset network quality judgment standard, judging whether the current network quality of the current access network is better than the current network quality of another wireless data access network; 若是,则驻留在当前接入的网络;If yes, it stays in the currently connected network; 若否,则自动切换为另一无线数据接入网络;If not, it automatically switches to another wireless data access network; 所述基于预设的网络质量判断标准,判断当前接入网络的当前网络质量是否优于另一无线数据接入网络的当前网络质量,包括:The determining, based on a preset network quality determination standard, whether the current network quality of the current access network is better than the current network quality of another wireless data access network includes: 基于预存的WiFi与蜂窝网络的网络制式的优先级列表,判断当前接入网络的网络制式是否优于另一无线数据接入网络的网络制式;Based on a pre-stored priority list of network standards of WiFi and cellular networks, determine whether the network standard of the current access network is better than the network standard of another wireless data access network; 若是,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;If so, determining that the current network quality of the currently accessed network is better than the current network quality of another wireless data access network; 若否,则判断当前接入网络的信号强度与网络时延是否优于另一无线数据接入网络的信号强度与网络时延;If not, determining whether the signal strength and network delay of the current access network are better than the signal strength and network delay of another wireless data access network; 若当前接入网络的信号强度与网络时延中有一者优于另一无线数据接入网络,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;If one of the signal strength and the network delay of the current access network is better than that of another wireless data access network, then it is determined that the current network quality of the current access network is better than that of the other wireless data access network; 若当前接入网络的信号强度与网络时延均劣于另一无线数据接入网络,则判定当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量。If the signal strength and network delay of the current access network are both inferior to those of another wireless data access network, it is determined that the current network quality of the current access network is inferior to that of the other wireless data access network. 2.根据权利要求1所述的方法,其特征在于,所述网络质量的衡量指标包括:网络制式、信号强度与网络时延。2. The method according to claim 1 is characterized in that the measurement indicators of network quality include: network standard, signal strength and network delay. 3.根据权利要求1所述的方法,其特征在于,在选择WiFi与蜂窝网络之中当前网络质量较好的网络接入之前,还包括:3. The method according to claim 1, characterized in that before selecting the network access with better current network quality between WiFi and cellular network, it also includes: 判断所述终端的“基于业务需求自动切换WiFi与蜂窝网络”的功能是否已开启;Determine whether the function of "automatically switching between WiFi and cellular network based on business needs" of the terminal is turned on; 若已开启,则执行选择WiFi与蜂窝网络之中当前网络质量较好的网络接入的步骤;If it is already turned on, the step of selecting the network access with better current network quality between WiFi and cellular network is performed; 若未开启,则驻留在当前接入的网络。If it is not enabled, it will stay in the currently connected network. 4.一种终端,其特征在于,包括:4. A terminal, characterized in that it comprises: 网络选择模块,其设置为选择WiFi与蜂窝网络之中当前网络质量较好的网络;A network selection module, which is configured to select a network with better current network quality between WiFi and cellular networks; 网络接入模块,其设置为接入所述网络选择模块所选择的网络;A network access module, configured to access the network selected by the network selection module; 第一判断模块,其设置为每当用户启用一项应用或业务时,判断该应用或业务是否有WiFi共享网络的使用需求;以及,A first judgment module is configured to judge whether the application or service has a need to use a WiFi shared network whenever a user activates the application or service; and 第二判断模块,其设置为在所述第一判断模块判断为该应用或业务有WiFi共享网络的使用需求时,判断当前是否使用WiFi网络进行数据业务;A second judgment module is configured to judge whether the WiFi network is currently used for data services when the first judgment module determines that the application or service has a demand for using a WiFi shared network; 所述网络接入模块还设置为,在所述第二判断模块判断为当前未使用WiFi网络进行数据业务时,在接入蜂窝网络的同时接入WiFi网络,直至WiFi共享网络业务或应用结束或关闭,所述网络选择模块再选择WiFi与蜂窝网络之中当前网络质量较好的网络,所述网络接入模块再接入所述网络选择模块所选择的网络;The network access module is further configured to, when the second judgment module determines that the WiFi network is not currently used for data services, access the WiFi network while accessing the cellular network until the WiFi shared network service or application ends or is closed, and the network selection module then selects a network with better current network quality between the WiFi and the cellular network, and the network access module then accesses the network selected by the network selection module; 所述网络接入模块还设置为,在第一判断模块判断为该应用或业务没有WiFi共享网络的使用需求时,驻留在当前接入的网络,以及在第二判断模块判断为当前使用WiFi网络进行数据业务时,驻留在当前接入的WiFi网络;The network access module is further configured to reside in the currently accessed network when the first judgment module determines that the application or service does not have a need to use the WiFi shared network, and reside in the currently accessed WiFi network when the second judgment module determines that the WiFi network is currently used for data services; 所述网络选择模块包括:The network selection module comprises: 获取单元,其设置为分别获取当前接入网络与另一无线数据接入网络的当前网络质量,其中当前接入网络与另一无线数据接入网络分别为WiFi与蜂窝网络中的一者与另一者;an acquisition unit, configured to respectively acquire current network quality of a current access network and another wireless data access network, wherein the current access network and the other wireless data access network are one and the other of a WiFi and a cellular network respectively; 判断单元,其设置为基于预设的网络质量判断标准,判断当前接入网络的当前网络质量是否优于另一无线数据接入网络的当前网络质量;A judgment unit, which is configured to judge whether the current network quality of the current access network is better than the current network quality of another wireless data access network based on a preset network quality judgment standard; 选择单元,其设置为在判断单元判断为当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量时,选择当前接入网络;以及在判断单元判断为当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量时,选择另一无线数据接入网络;A selection unit configured to select the current access network when the judgment unit determines that the current network quality of the current access network is better than the current network quality of another wireless data access network; and select another wireless data access network when the judgment unit determines that the current network quality of the current access network is worse than the current network quality of another wireless data access network; 所述判断单元包括:The judging unit comprises: 第一判断子单元,其设置为基于预存的WiFi与蜂窝网络的网络制式的优先级列表,判断当前接入网络的网络制式是否优于另一无线数据接入网络的网络制式,若是,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;A first judgment subunit is configured to judge whether the network standard of the current access network is better than the network standard of another wireless data access network based on a pre-stored priority list of network standards of WiFi and cellular networks, and if so, to judge whether the current network quality of the current access network is better than the current network quality of the other wireless data access network; 第二判断子单元,其设置为在第一判断子单元判断为当前接入网络的网络制式劣于另一无线数据接入网络的网络制式时,判断当前接入网络的信号强度与网络时延是否优于另一无线数据接入网络的信号强度与网络时延;若当前接入网络的信号强度与网络时延中有一者优于另一无线数据接入网络,则判定当前接入网络的当前网络质量优于另一无线数据接入网络的当前网络质量;若当前接入网络的信号强度与网络时延均劣于另一无线数据接入网络,则判定当前接入网络的当前网络质量劣于另一无线数据接入网络的当前网络质量。The second judgment subunit is configured to judge whether the signal strength and network delay of the current access network are better than the signal strength and network delay of another wireless data access network when the first judgment subunit judges that the network standard of the current access network is inferior to the network standard of another wireless data access network; if one of the signal strength and network delay of the current access network is better than that of the other wireless data access network, then it is judged that the current network quality of the current access network is better than the current network quality of the other wireless data access network; if both the signal strength and the network delay of the current access network are inferior to those of the other wireless data access network, then it is judged that the current network quality of the current access network is inferior to the current network quality of the other wireless data access network. 5.一种终端,其特征在于,包括存储器和处理器,所述存储器中存储有计算机程序,当所述处理器运行所述存储器存储的计算机程序时,所述处理器执行根据权利要求1至3中任一项所述的根据业务需求自动适配网络的方法。5. A terminal, characterized in that it comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the method for automatically adapting a network according to business requirements according to any one of claims 1 to 3. 6.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时,所述处理器执行根据权利要求1至3中任一项所述的根据业务需求自动适配网络的方法。6. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor executes the method for automatically adapting a network according to business requirements according to any one of claims 1 to 3.
CN202110448449.4A 2021-04-25 2021-04-25 Method, terminal and storage medium for automatically adapting network according to service requirements Active CN115250481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110448449.4A CN115250481B (en) 2021-04-25 2021-04-25 Method, terminal and storage medium for automatically adapting network according to service requirements

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110448449.4A CN115250481B (en) 2021-04-25 2021-04-25 Method, terminal and storage medium for automatically adapting network according to service requirements

Publications (2)

Publication Number Publication Date
CN115250481A CN115250481A (en) 2022-10-28
CN115250481B true CN115250481B (en) 2024-08-23

Family

ID=83697534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110448449.4A Active CN115250481B (en) 2021-04-25 2021-04-25 Method, terminal and storage medium for automatically adapting network according to service requirements

Country Status (1)

Country Link
CN (1) CN115250481B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658588A (en) * 2016-12-21 2017-05-10 广东欧珀移动通信有限公司 Network quality detection method and device and computer equipment
CN111556553A (en) * 2020-05-11 2020-08-18 天翼电信终端有限公司 Wireless screen projection method, terminal, electronic equipment and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1681889A1 (en) * 2005-01-13 2006-07-19 France Telecom Method and system for mobility management in communication networks
US8886756B2 (en) * 2011-05-13 2014-11-11 Qualcomm Incorporated Exchanging data between a user equipment and an application server
CN103763754B (en) * 2014-01-26 2017-07-14 华为技术有限公司 A kind of method of data processing, apparatus and system
CN109819476B (en) * 2017-11-21 2021-11-05 腾讯科技(深圳)有限公司 Network optimization method, terminal and storage medium
CN108449771B (en) * 2018-06-29 2020-08-11 Oppo(重庆)智能科技有限公司 Network switching method, device, terminal and storage medium
CN113747525A (en) * 2019-03-26 2021-12-03 华为技术有限公司 Method for switching internet access card and electronic equipment
CN110191493A (en) * 2019-04-30 2019-08-30 山西大学 Method and device for automatic network switching of mobile terminal equipment
CN112291818A (en) * 2019-07-22 2021-01-29 广东美的制冷设备有限公司 Network connection method and household appliance
CN111093235B (en) * 2019-11-05 2021-06-18 珠海格力电器股份有限公司 Network switching method, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106658588A (en) * 2016-12-21 2017-05-10 广东欧珀移动通信有限公司 Network quality detection method and device and computer equipment
CN111556553A (en) * 2020-05-11 2020-08-18 天翼电信终端有限公司 Wireless screen projection method, terminal, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115250481A (en) 2022-10-28

Similar Documents

Publication Publication Date Title
CN101207900B (en) Method, system and multi-mode terminal for implementing network selection in multi-standard communication network
US11013064B2 (en) Multiple active network wireless device
CN102238701B (en) Equipment and the method for automatic SIM card selection is carried out according to network environment
JP6231044B2 (en) Handling of application identification information of electronic subscriber identification module (eSIM)
US8750178B2 (en) Connection manager for a wireless communication device
US10798629B2 (en) VoWifi call processing method of mobile terminal, system, and mobile terminal
CN112105061B (en) Method, device and system for managing background data transmission strategy
WO2017133253A1 (en) Method of reducing power consumption of terminal, and terminal
US20150296416A1 (en) Wi-fi direct service method using nfc and device therefor
US20070293263A1 (en) Method and apparatus for providing multi-system cellular communications
EP2621216A1 (en) Network selection method and terminal equipment
US20120020325A1 (en) Method and apparatus for a hand off of a communication session across service provider networks
US8249505B1 (en) Method and apparatus for selecting a mode in a multi-mode communications client
US11405965B2 (en) Signaling processing method and apparatus
US11234178B2 (en) High data mode for enhanced user experience in cellular networks
US10182339B2 (en) Cellular device SIM multiplexor and control interface
US20110058541A1 (en) Method for controlling the network selection by the home operator of dual user equipment
US20230076852A1 (en) Electronic device supporting plurality of sims and operating method therefor
CN115243330A (en) Method, terminal and storage medium for automatically switching between WiFi and cellular network
US11864251B2 (en) Wireless communication device and method of connecting wireless communication
CN115250481B (en) Method, terminal and storage medium for automatically adapting network according to service requirements
US20140355593A1 (en) AP Response Method, AP Discovery Method, AP and Terminal
CN102957788B (en) Method for reading and writing card of mobile terminal with double base-band chips
WO2024098937A1 (en) Communication method, communication apparatus, and storage medium
CN119676693A (en) Data stream transmission method and device and electronic equipment

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
GR01 Patent grant
GR01 Patent grant