Method, terminal and storage medium for automatically adapting network according to business requirements
By setting up a network selection and access module in the terminal to automatically select and switch WiFi and cellular networks according to business needs, the problem of poor WiFi signal connection to the Internet in the existing technology is solved, and good Internet access is achieved in indoor and other scenarios. experience.
Patent Information
- Application Number
- CN202110448449.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-04-25
AI Technical Summary
Existing technology cannot automatically adapt the network according to business needs, resulting in poor WiFi signal connection to the Internet in indoor and other scenarios, affecting users' online experience.
By setting the network selection module and the network access module in the terminal, the network with better current network quality among WiFi and cellular networks is selected, and when the user activates the application or service, it is judged whether there is a demand for using the WiFi shared network, and if not, then Connect to the cellular network and the WiFi network at the same time to meet business needs and ensure user experience.
It realizes automatic network adaptation based on business needs, ensuring that users can connect to the WiFi network while ensuring a good Internet experience when meeting the needs of WiFi sharing networks, and avoid network problems caused by poor WiFi signal quality.
Smart Images

Figure CN115250481B
Abstract
Description
Technical Field
[0001] 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
[0002] 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.
[0003] 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 require a WiFi connection for shared use, such as printers and TV projection. 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 high latency, which affects the user's Internet experience.
[0004] Therefore, it is an urgent problem to propose a solution that can connect to the WiFi network according to business needs and ensure users have a good Internet experience. Summary of the invention
[0005] The present disclosure is completed in order to at least partially solve the technical problems existing in the prior art.
[0006] 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:
[0007] Choose the network with better quality between WiFi and cellular network;
[0008] Whenever a user activates an application or service, determine whether the application or service has a need to use a WiFi sharing network;
[0009] If yes, determine whether the WiFi network is currently used for data services;
[0010] If not, access the WiFi network while accessing the cellular network.
[0011] According to another aspect of an embodiment of the present disclosure, a terminal is provided, including:
[0012] A network selection module, which is configured to select a network with better current network quality between WiFi and cellular networks;
[0013] A network access module, configured to access the network selected by the network selection module;
[0014] 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
[0015] 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;
[0016] 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.
[0017] 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.
[0018] According to another aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor executes the aforementioned method of automatically adapting a network according to business requirements.
[0019] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0020] The method for automatically adapting the network according to business needs provided by the embodiments of the present disclosure selects a network access with better current network quality between WiFi and cellular networks. If a certain application or service enabled by the user requires the use of a WiFi shared network, and the WiFi network is not currently used for data services, in order to meet the use requirements of the application or service for the WiFi shared network, the WiFi network is accessed while the cellular network is accessed 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 the user.
[0021] 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
[0022] 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.
[0023] Figure 1 A flowchart of a method for automatically adapting a network according to business requirements provided by an embodiment of the present disclosure;
[0024] Figure 2 One of the structural schematic diagrams of the terminal provided in the embodiment of the present disclosure;
[0025] Figure 3 The second structural diagram of the terminal provided in the embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] To make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.
[0027] 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.
[0028] 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.
[0029] Figure 1 The flowchart of the method for automatically adapting the network according to business needs provided by the embodiment of the present disclosure is as follows. Figure 1 As shown, the method is applied to a terminal, and includes the following steps S101 to S104.
[0030] S101. Select the network access with better current network quality among WiFi and cellular network;
[0031] 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;
[0032] S103. Determine whether the WiFi network is currently used for data services. If not, execute step S104;
[0033] S104. Access the WiFi network while accessing the cellular network.
[0034] 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 the 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.
[0035] In a specific implementation, after step S104, the following steps S105 and S106 are also included.
[0036] S105. Determine whether the application or service is closed or terminated. If so, return to step S101; if not, execute step S106;
[0037] S106. Keep both the cellular network and the WiFi network connected.
[0038] 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.
[0039] In a specific implementation, step S101 includes the following steps S1011 to S1014.
[0040] 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;
[0041] 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;
[0042] S1013. Resides in the currently accessed network;
[0043] S1014. Automatically switch to another wireless data access network.
[0044] 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.
[0045] As for the judgment criteria of network quality, multiple indicators can be used as reference, which can be preset by the terminal manufacturer.
[0046] In a specific implementation manner, the network quality measurement indicators include: network standard, signal strength and network delay.
[0047] In a specific implementation, step S1012 includes the following steps Sa to Se.
[0048] 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;
[0049] Sb determines the current network quality of the current access network is better than the current network quality of another wireless data access network;
[0050] 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;
[0051] Sd determines the current network quality of the current access network is better than the current network quality of another wireless data access network;
[0052] 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.
[0053] 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.
[0054] 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.
[0055] In a specific implementation, in the priority list, WiFi 6>5G>WiFi 802.11ac>WiFi802.11n>4G>802.11a / g / b>3G.
[0056] 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.
[0057] 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.
[0058] 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:
[0059] S107. Reside on the currently connected network.
[0060] 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.
[0061] 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:
[0062] S108. Stay in the currently connected WiFi network.
[0063] 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.
[0064] In a specific implementation, before step S101, the following steps S109 and S110 are also included.
[0065] 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;
[0066] S110. Remain in the currently connected network.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] Based on the same technical concept, the embodiment of the present disclosure provides a terminal accordingly, such as Figure 2 As shown, 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.
[0071] 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.
[0072] In a specific implementation, the terminal 2 further includes: a third judgment module 25 .
[0073] The third determination module 25 is configured to determine whether the application or service is closed or terminated.
[0074] 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.
[0075] In a specific implementation, the network selection module 21 includes: an acquisition unit, a judgment unit and a selection unit.
[0076] 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.
[0077] In a specific implementation manner, the network quality measurement indicators include: network standard, signal strength and network delay.
[0078] In a specific implementation, the judgment unit includes: a first judgment subunit and a second judgment subunit.
[0079] Among them, the first judgment subunit is set 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, 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 set to, 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, 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; if one of the signal strength and network delay of the current access network is better than another wireless data access network, judge that the current network quality of the current access network is 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 another wireless data access network, judge that the current network quality of the current access network is worse than the current network quality of another wireless data access network.
[0080] 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.
[0081] 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.
[0082] In a specific implementation, the terminal 2 further includes: a fourth determination module 26 .
[0083] 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.
[0084] Based on the same technical concept, the embodiment of the present disclosure also provides a terminal, such as Figure 3 As shown, 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 requirements.
[0085] 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.
[0086] 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.
[0087] 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.
[0088] 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
1. A method for automatically adapting a network according to business needs, It is characterized in that Applied to a terminal, the method comprises: Choose the network with better quality between WiFi and cellular network; Whenever a user activates an application or service, determine whether the application or service has a need to use a WiFi sharing network; If the application or service does not require the use of a WiFi shared network, it will reside on the currently connected network; If the application or service requires the use of a WiFi shared network, determine whether the WiFi network is currently used for data services; If you are currently using a WiFi network for data services, stay on the currently connected WiFi network; If the WiFi network is not currently used for data services, then the WiFi network is accessed while the cellular network is accessed, until the WiFi shared network service or application ends or is closed, and then the process returns to the step of selecting the network access with the better current network quality between the WiFi and cellular networks; The selecting of the network access with better current network quality between WiFi and cellular network includes: 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 respectively; 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: Based on a 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, 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. The method according to claim 1, It is characterized in that The network quality measurement indicators include: network standard, signal strength and network delay.
3. The method according to claim 1, It is characterized in that Before choosing the network access with better network quality between WiFi and cellular network, it also includes: Determine whether the terminal's "automatic switching between WiFi and cellular networks based on business needs" function is enabled; 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. A terminal, It is characterized in that include: 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; 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 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; 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; 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: 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: 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 the current network quality of the current access network is judged to be 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 the current network quality of the current access network is judged to be inferior to the current network quality of the other wireless data access network.
5. A terminal, It is characterized in that The method 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. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the processor executes the method for automatically adapting a network according to service requirements according to any one of claims 1 to 3.
Citation Information
Patent Citations
Method, device and system for processing data
CN103763754A
Network quality detection method and device and computer equipment
CN106658588A
Network switching method and apparatus, terminal and storage medium
CN108449771A
Network optimization method, terminal and storage medium
CN109819476A
Method for switching network cards and electronic device
CN110072263A
Cited By
Prioritizing a Private Enterprise Deployed Cellular Network over a Wi-Fi Network
US20230413169A1
