CN113301586B - Network selection method and electronic equipment - Google Patents

Network selection method and electronic equipment Download PDF

Info

Publication number
CN113301586B
CN113301586B CN202010112661.9A CN202010112661A CN113301586B CN 113301586 B CN113301586 B CN 113301586B CN 202010112661 A CN202010112661 A CN 202010112661A CN 113301586 B CN113301586 B CN 113301586B
Authority
CN
China
Prior art keywords
application
network
sim module
determining
free
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
CN202010112661.9A
Other languages
Chinese (zh)
Other versions
CN113301586A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010112661.9A priority Critical patent/CN113301586B/en
Priority to PCT/CN2020/136348 priority patent/WO2021169497A1/en
Publication of CN113301586A publication Critical patent/CN113301586A/en
Application granted granted Critical
Publication of CN113301586B publication Critical patent/CN113301586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application provides a network selection method, and relates to the field of electronic equipment. For different types of applications installed on the electronic device, different target networks may be determined based on selection factors including: the connection state, the network quality and the application types of the wireless local area network realize that different types of applications adopt different networks, the network connection mode is more flexible, the network resources of the electronic equipment can be more effectively utilized, and meanwhile, the requirement of each type of application on network selection is met.

Description

Network selection method and electronic equipment
Technical Field
The present application relates to the field of electronic devices, and in particular, to a network selection method and an electronic device.
Background
Electronic devices such as mobile phones can generally support various network connection modes such as cellular mobile communication and Wireless Fidelity (WIFI). With the development of communication technology, the network connection modes supported by electronic devices are increasing, for example, with the development of the fifth Generation mobile communication technology (5 th-Generation, 5G), the 5G network slicing technology is developed accordingly. The networking modes of 5G mainly include two networking modes, namely, a stand-alone networking (SA) and a Non-stand-alone Networking (NSA). The 5G network is formed solely in the SA mode, and is formed by a hybrid of a fourth Generation mobile communication network (4 th-Generation, 4G) network and the 5G network in the NSA mode. The 5G network slicing technology is realized in an SA networking mode. The network slice is a networking mode according to needs, an operator can separate a plurality of virtual end-to-end network slices on a unified infrastructure, each network slice is logically isolated from a wireless access network, a transmission network and a core network so as to meet different requirements of different services on network capacity, for example, some network slices meet service requirements of low time delay, other network slices meet service requirements of high bandwidth, and other network slices meet multi-connection requirements. For example, as shown in the schematic diagram of a network slice application scenario in fig. 1, after logical isolation is performed on an operator's network, a plurality of network slices such as a network slice 1 meeting a low latency requirement, a network slice 2 meeting a high bandwidth requirement, and a network slice 3 meeting a multi-connection requirement are formed. Aiming at the service scene of the automatic driving automobile, the network slice 1 can be used for data transmission, and the low time delay performance of the network slice 1 is utilized to improve the safety of automatic driving. For video application in the electronic equipment, the network slice 2 can be used for data transmission, and the fluency of video playing is ensured by utilizing the high bandwidth performance of the network slice 2. For the requirement of the internet of things to support multiple network connection numbers (or referred to as network threads), a network slice 3 supporting multiple network connection numbers may be used.
In addition, in addition to the diversification of network connection modes, more and more applications are installed in the electronic device, and when the network connection modes are switched by the electronic device in the prior art, one implementation mode is that the electronic device selects the same network connection for all applications in the electronic device, and the switching mode cannot meet the requirement of the application program on the personalization of the network connection.
Disclosure of Invention
A first aspect of an embodiment of the present application discloses a network selection method, which is applied to an electronic device, where the electronic device is configured with a first SIM module, and at least a first application is installed in the electronic device, where a service of the first application requires network connection, where the network selection method includes: when the electronic equipment detects that the first application is started, determining a target network of the first application based on selection factors, wherein the selection factors comprise the connection state and the network quality of a wireless local area network and the application type of the first application; judging whether the network connection corresponding to the target network is established; when the network connection corresponding to the target network is not established, establishing the network connection corresponding to the target network, and transmitting service data for the first application through the network connection corresponding to the target network; and when the network connection corresponding to the target network is established, transmitting service data for the first application through the network connection corresponding to the target network.
In some embodiments, the application type of the first application is determined based on a subscription relationship corresponding to the first application. The subscription relationship is determined based on the network service corresponding to the application. The network services include a network slicing service and a data traffic free service.
By adopting the technical scheme, when the application is started, the target network can be determined to be connected according to the selection factors, different types of applications are allowed to use the target networks of corresponding types, all the applications in the electronic equipment are not limited to use the same network to transmit data, the network connection mode is more flexible, the network resources of the electronic equipment can be more effectively utilized, and the requirement of each type of application on network selection is met.
In one possible implementation, the selection factor includes a connection status and a network quality of the wireless local area network, and an application type of the first application; the determining a target network corresponding to the first application based on the selection factor includes: if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application, and transmitting service data through the wireless local area network after the first application is started; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application.
In one possible implementation manner, the determining, based on the application type of the first application, a target network corresponding to the first application includes: if the application type of the first application is the slice application of the first SIM module, determining that the network slice of the first SIM module is a target network corresponding to the first application; and if the application type of the first application is the flow-free application of the first SIM module, determining that the common cellular network of the first SIM module is a target network corresponding to the first application.
In a possible implementation manner, the electronic device is further configured with a second SIM module, and the determining, based on an application type of the first application, a target network corresponding to the first application includes: if the application type of the first application is the slice application of a second SIM module, determining that the network slice of the second SIM module is a target network corresponding to the first application; if the application type of the first application is the flow-free application of the second SIM module, determining that the common cellular network of the second SIM module is a target network corresponding to the first application, and using the flow of the second SIM module when the first application transmits service data through the network connection corresponding to the target network.
In a possible implementation manner, the selecting factor further includes one of a remaining free traffic of a data traffic exempt service and an application attribute, and the determining a target network corresponding to the first application based on the selecting factor includes: if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on one of the application type of the first application, the remaining free traffic of the data traffic free service and the application attribute.
In a possible implementation manner, the determining a target network corresponding to the first application based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service includes: if the application type of the first application is not only slice application of a first SIM module but also flow-free application of the first SIM module, determining the residual free flow of the data flow-free service of the first SIM module, wherein when the residual free flow is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application; or determining the network slice of the first SIM module as a target network corresponding to the first application based on the attribute of the first application.
In some embodiments, the attributes of the first application may include a property classification of the application (e.g., an online game-like application, a news-like application, a social-like application, a video-like application, etc.), a requirement criterion for a network quality parameter (e.g., latency, bandwidth) at runtime of the application, and so on. For example, when the application is an application such as an online game, and the network is required to have low latency performance, the network slice is selected as the target network according to the attribute of the application. In other embodiments, the attribute of the first application may also be a consumption situation of data traffic when the application runs, or may determine that the normal cellular network of the first SIM module is a target network corresponding to the first application based on an attribute that the first application needs to consume a large amount of traffic.
In a possible implementation manner, the electronic device is further configured with a second SIM module, and the determining, based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only slice application of a second SIM module but also flow-free application of the second SIM module, determining the residual free flow of the data flow-free service of the second SIM module, wherein when the residual free flow is greater than a set value, determining that a common cellular network of the second SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application; or determining the network slice of the second SIM module as a target network corresponding to the first application based on the attribute of the first application. In this implementation manner, when the first application performs service data transmission through a network connection corresponding to a target network, the flow of the second SIM card is used.
In some embodiments, the ordinary cellular network of the second SIM module may also be selected as a target network corresponding to the first application based on an attribute that the first application needs to consume a large amount of traffic, and the first application uses the traffic of the second SIM card when performing service data transmission through a network connection corresponding to the target network.
In a possible implementation manner, the electronic device is further configured with a second SIM module, and the determining, based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only slice application of a first SIM module but also flow-free application of a second SIM module, determining the residual free flow of the data flow-free service of the second SIM module, wherein when the residual free flow is greater than a set value, determining that a common cellular network of the second SIM module is a target network corresponding to the first application, and the first application uses the flow of the second SIM module when transmitting service data; when the residual free flow is smaller than the set value, determining that the network slice of the first SIM module is a target network corresponding to the first application, wherein the first application uses the flow of the first SIM module when performing service data transmission; or determining that the network slice of the first SIM module is a target network corresponding to the first application based on the attribute of the first application, and using the traffic of the first SIM module when the first application performs service data transmission.
In some embodiments, the ordinary cellular network of the second SIM module may also be selected as a target network corresponding to the first application based on an attribute that the first application needs to consume a large amount of traffic, and the first application uses the traffic of the second SIM card when performing service data transmission through a network connection corresponding to the target network.
In a possible implementation manner, the electronic device is further configured with a second SIM module, and the determining, based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only slice application of a second SIM module but also flow-free application of a first SIM module, determining the residual free flow of a data flow-free service of the first SIM module, wherein when the residual free flow is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application, and the first application performs service data transmission through target network connection and uses the flow of the first SIM module; when the residual free flow is smaller than the set value, determining that the network slice of the second SIM module is a target network corresponding to the first application, and the first application performs service data transmission through target network connection and uses the flow of the second SIM module; or determining the network slice of the second SIM module as a target network corresponding to the first application based on the attribute of the first application, wherein the first application performs service data transmission through a target network connection and uses the flow of the second SIM module.
In some embodiments, the ordinary cellular network of the first SIM module may also be selected as a target network corresponding to the first application based on an attribute that the first application needs to consume a large amount of traffic, and the first application uses the traffic of the second SIM card when performing service data transmission through a network connection corresponding to the target network.
In a possible implementation manner, the electronic device is further configured with a second SIM module, the selection factor further includes a priority of the SIM module, and the determining a target network corresponding to the first application based on the selection factor includes: if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application, and transmitting service data through the wireless local area network after the first application is started; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application and the priority of the SIM module.
In a possible implementation manner, the determining, based on the application type of the first application and the priority of the SIM module, a target network corresponding to the first application includes: if the application type of the first application is not only the slice application of the first SIM module but also the slice application of the second SIM module, if the priority of the first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application, and using the flow of the first SIM module when the first application carries out service data transmission through target network connection; if the priority of a second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application, and the first application uses the flow of the second SIM module when performing service data transmission through target network connection; if the application type of the first application is a flow-free application of a first SIM module and a flow-free application of a second SIM module, if the priority of the first SIM module is high, determining that a common cellular network of the first SIM module is a target network corresponding to the first application, and using the flow of the first SIM module when the first application carries out service data transmission through target network connection; and if the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is a target network corresponding to the first application, and using the flow of the second SIM module when the first application carries out service data transmission.
In a possible implementation manner, the electronic device is further configured with a second SIM module, the selection factor further includes a priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, and the determining, based on the selection factor, a target network corresponding to the first application includes: if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application, and transmitting service data through the wireless local area network after the first application is started; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application, the priority of the SIM module and one of the remaining free flow and the application attribute of the data traffic free service.
In a possible implementation manner, the determining, based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only a flow-free application of a first SIM module, a slice application of the first SIM module, but also a flow-free application of a second SIM module, determining the remaining free traffic of a data flow-free service of the first SIM module and the remaining free traffic of a data flow-free service of the second SIM module, wherein when at least one of the remaining free traffic of the data flow-free service of the first SIM module and the remaining free traffic of the data flow-free service of the second SIM module is greater than a set value, determining a normal cellular network of the SIM module with a high priority as a target network corresponding to the first application, and when the first application performs service data transmission through target network connection, using the traffic of the SIM module with the high priority; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining that the network slice of the first SIM module is a target network corresponding to the first application, and using the flow of the first SIM module when the first application performs service data transmission through target network connection; or determining the network slice of the first SIM module as a target network corresponding to the first application based on the attribute of the first application, and using the flow of the first SIM module when the first application performs service data transmission through target network connection.
In some other embodiments, the ordinary cellular network of the SIM module with a high priority may also be determined as the target network corresponding to the first application based on the attribute that the first application needs to consume a large amount of traffic.
In a possible implementation manner, the determining, based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only the flow-free application of a first SIM module, but also the slice application of a second SIM module and the flow-free application of a second SIM module, determining the remaining free flow of the data flow-free service of the first SIM module and the remaining free flow of the data flow-free service of the second SIM module, wherein when at least one of the remaining free flow of the data flow-free service of the first SIM module and the remaining free flow of the data flow-free service of the second SIM module is greater than a set value, determining a normal cellular network of the SIM module with a high priority as a target network corresponding to the first application, and when the first application performs service data transmission through target network connection, using the flow of the SIM module with the high priority; when the remaining free flow of the data flow-free service of the first SIM module and the remaining free flow of the data flow-free service of the second SIM module are both smaller than the set value, determining that the network slice of the second SIM module is a target network corresponding to the first application, and when the first application performs service data transmission through target network connection, using the flow of the second SIM module; or determining the network slice of the second SIM module as a target network corresponding to the first application based on the attribute of the first application, and using the flow of the second SIM module when the first application performs service data transmission through target network connection.
In a possible implementation manner, the determining, based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only the flow-free application of a first SIM module, the slice application of the first SIM module, but also the slice application of a second SIM module, determining the residual free flow of the data flow-free service of the first SIM module, wherein when the residual free flow of the data flow-free service of the first SIM module is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application, and when the first application performs service data transmission through target network connection, using the flow of the first SIM module; when the remaining free flow of the data flow free service of the first SIM module is smaller than the set value, determining a network slice of the SIM module with high priority as a target network corresponding to the first application, and using the flow of the SIM module with high priority when the first application carries out service data transmission through target network connection; or determining the network slice of the SIM module with high priority as the target network corresponding to the first application based on the attribute of the first application, and using the flow of the SIM module with high priority when the first application carries out service data transmission through the target network connection.
In some embodiments, the ordinary cellular network of the first SIM module may also be determined to be the target network for the first application based on an attribute that the first application needs to consume a large amount of traffic.
In a possible implementation manner, the determining, based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only slice application of a first SIM module, but also flow-free application of a second SIM module and slice application of the second SIM module, determining the residual free flow of data flow-free service of the second SIM module, wherein when the residual free flow of the data flow-free service of the second SIM module is greater than a set value, determining that a common cellular network of the second SIM module is a target network corresponding to the first application, and when the first application performs service data transmission through target network connection, using the flow of the second SIM module; when the remaining free flow of the data flow-free service of the second SIM module is smaller than the set value, determining the network slice of the SIM module with high priority as a target network corresponding to the first application, and using the flow of the module with high priority when the first application carries out service data transmission through target network connection; or determining the network slice of the SIM module with high priority as a target network corresponding to the first application based on the attribute of the first application, wherein the first application uses the flow of the SIM module with high priority after being started.
In some embodiments, it may also be determined that the normal cellular network of the second SIM module is the target network corresponding to the first application based on the property that the first application needs to consume a large amount of traffic.
In a possible implementation manner, the determining, based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service, a target network corresponding to the first application includes: if the application type of the first application is not only the flow-free application of a first SIM module and the slice application of the first SIM module, but also the flow-free application of a second SIM module and the slice application of the second SIM module, determining the residual free flow of the data flow-free service of the first SIM module and the residual free flow of the data flow-free service of the second SIM module, wherein when at least one of the residual free flow of the data flow-free service of the first SIM module and the residual free flow of the data flow-free service of the second SIM module is greater than a set value, determining a common cellular network of the SIM module with a high priority as a target network corresponding to the first application; when the remaining free flow of the data flow-free service of the first SIM module and the remaining free flow of the data flow-free service of the second SIM module are both smaller than the set value, determining the network slice of the SIM module with high priority as a target network corresponding to the first application; or determining the network slice of the SIM module with high priority as the target network corresponding to the first application based on the attribute of the first application. In this implementation, when the first application performs service data transmission through the target network connection, the traffic of the SIM module with the higher priority is used.
In one possible implementation, the priority of the SIM module is determined by: responding to the selection operation of a user on SIM module management options under the set application, displaying a first interface, displaying the first option on the first interface, responding to the selection operation of the user on the first option, displaying a second interface, and displaying at least one application of network service corresponding to a second SIM module on the second interface, wherein the at least one application comprises the first application; and the electronic equipment receives the selection operation of the user on the first application, responds to the selection operation of the first application, and sets the priority of the second SIM module to be high.
In one possible implementation, the priority of the SIM module is determined by: respectively acquiring residual free traffic corresponding to data traffic free services subscribed by the first SIM module and the second SIM module; and determining the priority of the SIM module with more residual free traffic in the data traffic free service subscribed by the first SIM module and the second SIM module.
In a possible implementation manner, the priority of the SIM module is determined by: respectively acquiring network quality parameters of the established network connection of the first SIM module and the second SIM module; if the network quality parameters of the established network connections of the first SIM module and the second SIM module are the same, the priority of the SIM module which is set as a main SIM module in the first SIM module and the second SIM module is high; if the network quality parameters of the established network connections of the first SIM module and the second SIM module are different, the SIM module with the high network quality parameters of the established network connections in the first SIM module and the second SIM module has a high priority.
In one possible implementation, the priority of the SIM module is determined by: and acquiring the time and the place of the electronic equipment when the first application is started, and acquiring a commonly used SIM module of the time and the place from the historical use data of the electronic equipment as an SIM module with high priority.
In a possible implementation manner, the electronic device further includes at least one second application, and when the first application is started and then transmits service data through a target network corresponding to the first application, if the electronic device detects that the second application is started, the target network of the second application is determined based on the selection factor, and if the target network corresponding to the second application is different from the target network corresponding to the first application, the first application and the second application respectively perform service data transmission through the respective corresponding target networks. By adopting the technical scheme, the electronic equipment can establish two or more than two network connections at the same time, so that different types of applications can use different network connections to transmit service data, network resources are reasonably utilized, and network requirements of different types of applications are met.
In a possible implementation manner, the establishing a network connection corresponding to the target network and transmitting service data for the first application through the network connection corresponding to the target network includes: based on the selection operation of a user on the SIM module management option under the setting application, the electronic equipment displays a third interface, wherein the third interface comprises a first button; and the electronic equipment receives the selection operation of the user on the first button, responds to the selection operation of the first button, starts the function of automatically switching the SIM module, and automatically switches to the second SIM module to establish network connection corresponding to the target network based on the function of automatically switching the SIM module if the target network corresponds to the second SIM module after the target network is determined.
In a possible implementation manner, when automatically switching to the SIM module corresponding to the target network to establish the network connection corresponding to the target network, the electronic device displays a first prompt interface, where the first prompt interface prompts: the first application has automatically used the second SIM module to surf the internet. By adopting the technical scheme, the user can know the network connection currently used by the first application conveniently.
In a possible implementation manner, when transmitting service data for the first application through a network connection corresponding to the target network, the network selection method further includes: monitoring network quality parameters of network connection corresponding to the target network in real time, determining network quality parameters of other network connections established by the electronic equipment when the network quality parameters corresponding to the target network are lower than a set standard, and switching the first application to the other established network connections for service data transmission if the network quality parameters of the other established network connections are higher than the set standard. By adopting the technical scheme, the first application can use the network connection with good network quality to transmit the service data.
In a possible implementation manner, if the target network corresponds to a second SIM module, and the other established other networks correspond to the first SIM module, when the network connection of the second SIM module is switched to the network connection of the first SIM module, the electronic device displays a second prompt interface, where the second prompt interface prompts: and the second SIM module has poor network, and the first application is switched to the first SIM module to surf the internet. By adopting the technical scheme, the user can conveniently know the network connection currently used by the first application.
In one possible implementation, the network selection method further includes: acquiring the time and place information of the electronic equipment, acquiring the application with higher starting frequency corresponding to the time and place information of the electronic equipment from the historical use data of the electronic equipment, determining a target network corresponding to the application with higher starting frequency based on the selection factor, establishing network connection corresponding to the target network when determining that the network connection is not established in the target network corresponding to the application with higher starting frequency, and directly utilizing the network connection corresponding to the target network to provide data service for the first application when detecting that the first application is started and if the first application is the same as the application with higher starting frequency. By adopting the technical scheme, the network connection corresponding to the target network can be established for the application in advance before the application is started, the application networking efficiency is improved, and the network selection method is more intelligent.
In a second aspect, embodiments of the present application provide a computer-readable storage medium, which includes computer instructions, when the computer instructions are executed on an electronic device, cause the electronic device to perform the network selection method according to the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device is configured with at least one SIM module, and at least a first application is installed in the electronic device, where the electronic device includes a processor and a memory, where the memory is used to store instructions, and the processor is used to call the instructions in the memory, so that the electronic device performs the network selection method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a computer program product, which when run on a computer causes the computer to perform the network selection method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip system, where the chip system is applied to an electronic device; the chip system comprises an interface circuit and a processor; the interface circuit and the processor are interconnected through a line; the interface circuit is used for receiving signals from a memory of the electronic equipment and sending the signals to the processor, and the signals comprise computer instructions stored in the memory; when the processor executes the computer instructions, the system-on-chip performs the network selection method as described in the first aspect.
In a sixth aspect, an apparatus is provided, which has the function of implementing the behavior of the electronic device in the method provided by the first aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions, for example, a communication unit or module, a setting unit or module, and the like.
It is to be understood that the computer-readable storage medium according to the second aspect, the electronic device according to the third aspect, the computer program product according to the fourth aspect, the chip system according to the fifth aspect, and the apparatus according to the sixth aspect all correspond to the method according to the first aspect, and therefore, the beneficial effects that can be achieved by the computer-readable storage medium according to the second aspect can refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Drawings
Fig. 1 is a schematic diagram of a network slicing application scenario in the prior art;
fig. 2A is an interaction diagram of ordering a network slice according to an embodiment of the present application;
fig. 2B is an interaction diagram of another subscription network slice according to an embodiment of the present application;
fig. 3 is a schematic view of an application scenario of a network selection method according to an embodiment of the present application;
fig. 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating a first software architecture of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic composition diagram of a second software architecture of an electronic device according to an embodiment of the present application;
fig. 7A to fig. 7D are schematic diagrams of setting interfaces for intelligently switching functions of an SIM module according to the embodiment of the present application;
fig. 8 is a schematic diagram of a prompt interface when an application is started according to an embodiment of the present application;
fig. 9 is a schematic diagram of a prompt interface when an application uses a network connection according to an embodiment of the present application;
fig. 10 is a schematic flowchart of a process for obtaining a network recommendation model according to a machine learning algorithm according to an embodiment of the present application;
fig. 11 is a schematic diagram of a network switching prompt interface according to an embodiment of the present application;
fig. 12 is a schematic flowchart of a network selection method according to an embodiment of the present application;
fig. 13 is a schematic structural diagram of another possible electronic device provided in the embodiment of the present application.
Detailed Description
In the present application, "at least one" means one or more, "and" a plurality "means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, e.g., A and/or B may represent: a alone, A and B together, and B alone, wherein A and B may be singular or plural. The terms "first," "second," "third," "fourth," and the like in the description and in the claims and drawings of the present application, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
For ease of understanding, some descriptions of concepts related to the embodiments of the present application are given by way of illustration and reference.
Electronic devices such as personal computers and handheld devices (e.g., mobile phones) may be communicatively connected through a Wireless Local Area Network (WLAN), for example, the Wireless Local Area Network in this embodiment may be WIFI.
Ordinary cellular networks: the general cellular network in the present application includes a 5G mobile communication network, a 4th-Generation (4G) mobile communication network, a 3th-Generation (3G) mobile communication network, a 2th-Generation (2G) mobile communication network, and the like in the NSA networking scheme.
The double SIM module has double functions: the electronic device may be an electronic device, for example, a mobile phone may be connected to two Subscriber Identity Modules (SIMs) (also referred to as SIM modules) at the same time, and the two SIM modules may be standby on the internet at the same time, that is, the electronic device may be connected to a cellular network through the two SIM modules at the same time, so as to perform functions of data interaction, call, data communication, and the like. It should be noted that each of the two SIM modules may be a plug-in SIM module, an eSIM (embedded-SIM) module or a soft SIM module (softSIM). And is not limited thereto. In this embodiment, configuring the SIM module in the electronic device means that the electronic device includes an eSIM module and/or a pluggable SIM module inserted into the electronic device establishes an electrical connection with a corresponding physical interface.
Main SIM module, vice SIM module: when two SIM modules are configured in the electronic device at the same time, the two SIM modules may be set as a main SIM module and an auxiliary SIM module, respectively. The SIM module set as the primary SIM module and the primary SIM module set as the secondary SIM module can be used for the electronic device to transmit mobile data, and the SIM module set as the primary SIM module is generally preferentially used to transmit mobile data. For example, in the conventional electronic device, when the network quality of the SIM module set as the primary SIM module is good, the electronic device transmits mobile data using the SIM module set as the primary SIM module, and when the network quality of the SIM module set as the primary SIM module is poor, the electronic device transmits mobile data using the SIM module set as the secondary SIM module.
Network service: the network services in the embodiment of the present application include network slicing services and data traffic exempt services provided by an operator. A service subscriber may subscribe to the network service for an application installed in the electronic device through a SIM module of the electronic device. Applications that subscribe to the network slice service may use the network slice connection for traffic data transmission. Applications that subscribe to data traffic free services do not need to pay traffic charges within the set traffic limits when transmitting data over the ordinary cellular network connection of the SIM module.
Subscription relationship: after the application subscribes to the network service from the operator through the SIM module, the electronic device generates a subscription relationship for each network service, where the subscription relationship includes application information (e.g., an application package name) of the application subscribed to the network service and information of the SIM module (e.g., an international Mobile Subscriber identity Number (IMSI) of the SIM module), and each subscription relationship corresponds to one type of network of the SIM module. The subscription relationship will be further described later.
The application type is as follows: the application types in the embodiment of the present application include a general application, a slice application, and a stream-less application. For example, an application subscribed to the network slicing service is a slicing application, an application subscribed to the data traffic free service is a streaming free application, and an application not subscribed to the network slicing service and the data traffic free service is a normal application. The application type may be determined based on a subscription relationship.
Application of slicing: the application refers to an application in which a user of an electronic device, an application provider (also referred to as OTT vendor, OTT is collectively referred to as "Over The Top"), or a terminal vendor (for example, a terminal manufacturer such as huashi) subscribes to a network slicing service to an operator, the slicing application can perform service data transmission through a specific network slice, and data traffic consumed when The specific network slice is used for performing service data transmission needs to be paid according to a subscription protocol. Among them, OTT vendors provide various application services to users through the internet, the application services only use the network of the operator to transmit data, and the application services are provided by the OTT vendors. For example, the application provider may be the WeChat provider Tencent, or may be the Facebook provider, facebook corporation. The present application describes the network slice used by the slicing application as a 5G network slice, but is not limited thereto. It is to be understood that the network slice is not limited to a 5G network slice, but may be other existing or future network slices capable of providing different performance network connections such as low latency, high bandwidth, etc.
The following describes an exemplary process of subscribing to a network slicing service according to an embodiment of the present invention with reference to fig. 2A and 2B.
In one scenario, when a user subscribes to a network slicing service for an application X installed in an electronic device, for example, as shown in fig. 2A, a process of subscribing to the network slicing service is as follows:
11. the user sends a network slice subscription request R1 to a server of an operator through the electronic device, where the network slice subscription request R1 includes, but is not limited to, application information of an application X subscribed to the network slice service and information of a SIM module used by the application X subscribed to the network slice service.
12. After receiving the network slice subscription request R1, the server of the operator matches a network slice policy Q1 according to the network slice subscription request R1, where the network slice policy Q1 includes application information of an application X subscribed to the network slice service, information of a SIM module used by the application X subscribed to the network slice service, and slice identification information. When network slice connection is established, corresponding network slice connection can be established according to slice identification information in a network slice strategy.
13. After the electronic device is on the network, the server of the operator pushes the network slicing policy Q1 to the electronic device, and the subscription process of the network slicing service is completed.
In another scenario, when an application provider or a terminal vendor subscribes to a network slicing service for an application Y, for example, as shown in fig. 2B, a process of subscribing to the network slicing service includes:
21. the application provider or terminal vendor sends a network slice subscription request R2 to the operator's server, which network slice subscription request R2 includes application information (e.g., application package name) of the application Y.
22. After receiving the network slice subscription request R2, the server of the operator matches a network slice policy Q2 according to the network slice subscription request R2, where the network slice policy Q2 includes application information of the application Y and slice identification information.
After subscribing the network slicing service for the application Y, the application provider or the terminal manufacturer retails the network slicing service to the electronic equipment user installed with the application Y. Such as when the electronic device used by the user has installed the application Y and the user subscribes to the web slicing service for application Y, execution 23.
23. The electronic equipment sends a network slice subscription request R3 to a terminal manufacturer or an application provider, wherein the network slice subscription request R3 comprises application information of an application Y and information of a SIM module used by the application Y for subscribing the network slice service.
24. The application provider or terminal vendor forwards the network slice subscription request R3 to the operator's server.
25. The server of the operator updates the network slicing policy Q2 according to the network slicing subscription request R3, wherein the updated content is information of the SIM module used by the application Y subscribed to the network slicing service.
26. And the server of the operator pushes the updated network slicing strategy Q2 to the electronic equipment after the electronic equipment is in the network.
It is to be understood that the above subscription method for the network slicing service is only an exemplary illustration, and the subscription method for the network slicing service in the present application is not limited thereto, and may also be a manual subscription by a user through a telephone or in an operator business hall, and in the manual subscription mode, the server of the operator also generates the network slicing policy and pushes the network slicing policy to the electronic device.
After the electronic device obtains and stores the network slicing policy pushed by the operator, it also generates a subscription relationship corresponding to the network slicing service (hereinafter, "subscription relationship corresponding to the network slicing service" is simply referred to as "slicing subscription relationship") based on the network slicing policy, where the slicing subscription relationship includes application information of an application subscribed to the network slicing service and information (for example, IMSI number) of a SIM module used by the application subscribed to the network slicing service. The network type corresponding to the slice subscription relationship is a network slice of the SIM module. In some embodiments, the subscription relationship is stored in the electronic device in the form of a slice application list, it is to be understood that in other embodiments, the subscription relationship may also exist in other forms, for example, in the form of a relational database, and the like.
When an application installed in the electronic equipment is started, inquiring whether application information of the started application exists in a slice application list, if so, determining that the type of the application is a slice application based on the slice application list, and the network slice of the SIM module is a corresponding target network.
When two or more SIM modules are configured in the electronic device at the same time, if an application subscribes to a network slicing service through the two or more SIM modules, each SIM module may correspond to a subscription relationship (slicing application list). For example, some applications in the electronic device subscribe to the network slice service through the primary SIM module, and some applications subscribe to the network slice service through the secondary SIM module, the primary SIM module corresponds to a first slice application list, and the application corresponding to the first slice application list selects the network slice of the primary SIM module as the target network when starting, the secondary SIM module corresponds to a second slice application list, and the application in the second slice application list selects the network slice of the secondary SIM module as the target network when starting.
Flow-free application: the method is characterized in that the SIM module subscribes to the application of the data traffic free service, and when the flow free application transmits data through a cellular mobile communication network of an operator, the data traffic consumed in the flow free package quota can not deduct the traffic cost. For example, common flow-exempt applications include operator-introduced directed traffic card applications, operator lobby applications, directed traffic packet applications, client flow-exempt applications, and the like. In some embodiments, if the application installed in the electronic device is a streaming-free application, the electronic device may obtain, from the operator server, application information of the application subscribed to the data traffic-free service and information of the SIM module, and generate a subscription relationship corresponding to the data traffic-free service according to the obtained application information and the information of the SIM module. In other embodiments, when the electronic device cannot obtain the application information of the application subscribed to the data traffic exempt service from the operator server, the application subscribed to the data traffic exempt service may be manually set by the user. For example, in some embodiments, a user may set, through a "traffic management" function in the "setting" application, a flow-exempting application (which is not described in detail for the prior art) corresponding to the primary SIM module and the secondary SIM module, respectively, and in other embodiments, manually setting the flow-exempting application may also be implemented through another setting manner, which will be described in the following embodiments with reference to fig. 7C and 7D. After the manual setting is completed, a subscription relationship corresponding to the data traffic free service (hereinafter, "subscription relationship corresponding to data traffic free service" is simply referred to as "flow-free subscription relationship") is generated according to the application information of the manually set application and the information of the SIM module used by the application for subscribing to the data traffic free service, and the flow-free subscription relationship includes the application information subscribed to the data traffic free service application and the information of the SIM module used by the application for subscribing to the data traffic free service. The network type corresponding to the flow-free subscription relationship is a common cellular network of the SIM module. The flow-exempt subscription relationship may exist in a form of a flow-exempt application list, and it is to be understood that the flow-exempt subscription relationship may also exist in other forms in other embodiments, for example, in a form of program code, and the like.
When an application in the electronic equipment is started, acquiring application information of the started application and inquiring whether the application information exists in a flow-free application list of an SIM (subscriber identity module), if so, determining the type of the started application to be the flow-free application based on the flow-free application list of the SIM, and the common cellular network of the SIM is a corresponding target network. When two or more SIM modules are configured in the electronic device at the same time, each SIM module may correspond to a flow-free application list, for example, a main SIM module of the electronic device corresponds to a flow-free application list of the main SIM module, and a secondary SIM module corresponds to a flow-free application list of the secondary SIM module.
Priority of SIM module: the priority of the SIM modules refers to when two or more SIM modules are installed in the electronic device at the same time and one application subscribes to the same network service through the two or more SIM modules, and the network service of one SIM module needs to be selected. In some embodiments, the priority of the SIM module is determined according to the type of the SIM module (whether the primary SIM module or the secondary SIM module) and the network quality of the SIM module. For example, when there are a plurality of SIM modules capable of providing a network slicing service for a slicing application, a network slice corresponding to a SIM module having a higher priority is selected according to the priority of the SIM module. For example, when a primary SIM module and a secondary SIM module installed in the electronic device both support network slicing, the priority of the SIM modules is determined according to the network quality of the primary SIM module and the secondary SIM module. When the network quality of the main SIM module is good and the network quality of the auxiliary SIM module is poor, or the network quality of the main SIM module and the auxiliary SIM module is good, the network slice in the main SIM module is used for transmitting service data for slice application; and if the network quality of the main SIM module is poor and the network quality of the auxiliary SIM module is good, using the network slice in the auxiliary SIM module to transmit service data for the slice application. In some scenarios, the priority of the SIM module may also be set manually by the user according to the user preference, or may be determined by prediction through a machine learning model, or the like. The method for determining the priority of the SIM module will be described in detail later in conjunction with embodiments.
Network quality parameters: the network quality parameters of the wlan may include, but are not limited to, network bandwidth, round-Trip Time (RTT) of data transmitted by the network, network signal strength value, and the like. For a normal cellular network, the network quality parameters include, but are not limited to, network bandwidth, round-Trip Time (RTT) of data transmitted by the network, network signal strength value, and network camping status. In the embodiment of the present application, the network quality is said to be good when the network quality parameter of the wireless local area network or the normal cellular network is higher than one set standard, and in the embodiment of the present application, the network quality is said to be poor when the network quality parameter is lower than the other set standard. In some embodiments, for the wireless local area network, when at least one of a network bandwidth lower than a first preset value (for example, the network bandwidth is lower than 1 Mbps), a round trip delay of network transmission data exceeds a second preset value, or a network signal strength value is smaller than a third preset value (for example, the signal strength in the network signal strength indicator bar is less than or equal to one), the network quality is poor. When the network bandwidth is greater than or equal to the first preset value, the RTT is less than or equal to the second preset value, and the network signal strength value is greater than or equal to the third preset value (for example, the signal strength in the signal indicator bar is greater than or equal to one cell), the network quality is good. For the cellular network, when the network bandwidth is lower than a fourth preset value, or the round trip delay of network transmission data exceeds a fifth preset value, or the network signal strength value is smaller than a sixth preset value, or at least one of the conditions that the network residence state is network loss, the network is registered in a 2G/3G network, the data service activation fails or the network is in a roaming state is satisfied, the network quality is poor. And when the network bandwidth is greater than the fourth preset value, the round-trip delay of network transmission data is less than the fifth preset value, the network signal strength value is greater than the sixth preset value, and the network residence state is not abnormal, the network quality is good. For example, for an application requiring low latency in a game class, the second preset value corresponding to the round-trip latency is 300 milliseconds, and for other applications such as instant messaging software, the second preset value corresponding to the round-trip latency is 5 seconds.
The application provides a network selection method, which is applied to electronic equipment and used for selecting a target network for a started application to perform service data transmission when the application in the electronic equipment is started. It should be noted that the application referred to in the embodiments of the present application refers to an application that needs to use wireless local area network or cellular network traffic, and does not include an application that does not need to use network traffic in an electronic device, such as a calculator or the like.
For example, as shown in fig. 3, the electronic device may perform data transmission through a wireless local area network such as WIFI, may also perform service data transmission through a 5G network slice, and may also perform service data transmission through a 5G ordinary cellular network such as a 5G network in a 2G/3G/4G/NSA mode. The electronic device is installed with at least one application, wherein the application can be a stream-free application subscribed to a data traffic-free service, a slice application subscribed to a 5G network slice service, and a common application not subscribed to a network slice service nor a data traffic-free service. Since the network adopted by the common application is a common cellular network of an existing default SIM module, in the following embodiments, only two application types, namely, a streaming-free application and a slicing application, are described.
The electronic device in the embodiment of the present application supports wireless local area network connection, and at least a first SIM module is installed, the first SIM module supports at least a normal cellular network, and the electronic device supports at least one other cellular network (for example, a normal cellular network of a second SIM module, or a 5G network slice of the first SIM module) in addition to the normal cellular network of the first SIM module. When an application in the electronic equipment is started, determining a target network corresponding to the started application based on a selection factor, wherein the method comprises the following steps: if the electronic equipment is connected with the wireless local area network and the network quality of the wireless local area network is good, the electronic equipment selects the wireless local area network for the started application to transmit service data; if the network quality of a wireless local area network connected with the electronic equipment is poor, or the electronic equipment is not connected with the wireless local area network and a common cellular network of a first SIM module of the electronic equipment and/or other cellular networks of the electronic equipment are connected, determining a target network corresponding to the started application based on the application type of the started application, or determining a target network corresponding to the first application based on the application type of the started application and the priority of the SIM module, or determining a target network corresponding to the started application based on one of the application type of the started application, the residual free traffic of the data traffic free service and the attributes of the application, or determining a target network corresponding to the started application based on one of the type of the started application, the priority of the SIM module, the residual free traffic of the data traffic free service and the attributes of the application, so as to perform service data transmission for the started application based on the network connection corresponding to the target network. The target networks selected for different applications based on selection factors in the present application can be referred to as shown in table 1 below.
TABLE 1
Figure BDA0002390554500000131
/>
Figure BDA0002390554500000141
In some scenarios, the electronic device includes a SIM module that determines a target network for the launched application based on an application type of the launched application, including: the started application type is slice application, and the network slice of the SIM module is determined to be the target network; and determining that the common cellular network of the SIM module is the target network when the started application type is the flow-free application.
In some embodiments, if the application corresponds to two different network service types, namely, a network slicing service and a data traffic free service, the application type is both a slicing application and a flow free application. In one case, the target network may be further determined based on a remaining traffic of a data traffic exempt service, and if the remaining traffic of the data traffic exempt service is greater than a set value, the normal cellular network of the SIM module is determined as the target network; and if the residual flow of the data flow-free service is smaller than a set value, determining the network slice of the SIM module as the target network. In another case, the network slice of the SIM module may be determined to be a target network further based on an application attribute.
In other scenarios, the electronic device is configured with two SIM modules (a first SIM module and a second SIM module), and based on network services supported by the two SIM modules, the application type of the slicing application can be further subdivided into a slicing application of the first SIM module (where the application corresponds to the network slicing service of the first SIM module), a slicing application of the second SIM module (where the application corresponds to the network slicing service of the second SIM module), and a slicing application of both the first SIM module and the second SIM module (hereinafter referred to as a dual SIM module slicing application, where the dual SIM module slicing application corresponds to both the network slicing service of the first SIM module and the network slicing service of the second SIM module); the application types of the flow-free application are further subdivided into a first SIM module flow-free application (application corresponding to the data flow-free service of the first SIM module), a second SIM module flow-free application (application corresponding to the data flow-free service of the second SIM module), and a flow-free application that is both the first SIM module flow-free application and the second SIM module flow-free application (hereinafter referred to as a dual SIM module flow-free application, where the dual SIM module flow-free application corresponds to both the data flow-free service of the first SIM module and the data flow-free service of the second SIM module). The method comprises the steps that a target network needs to be determined based on an application type by a slicing application of a first SIM module, a slicing application of a second SIM module, a flow-free application of the first SIM module and a flow-free application of the second SIM module; dual SIM slice applications, dual SIM streamless applications, require the determination of the target network based on the application type and priority of the SIM module.
In other embodiments, the application types may also include application types that are both slice and streamless applications. In particular, the application types that are both slicing and flow-free applications may be further subdivided into slicing and flow-free applications that are both first and second SIM modules, slicing and flow-free applications that are both second and second SIM modules, slicing and flow-free applications that are both first and second SIM modules, slicing and flow-free applications that are both first and second SIM modules, flow-free applications that are both dual SIM module slicing and flow-free applications that are both first and second SIM modules, slicing and flow-free applications that are both dual SIM module flow-free and first SIM modules, slicing and flow-free applications that are both dual SIM module flow-free and second SIM modules, flow-free and flow-free applications that are both dual SIM modules, flow-free and dual SIM module slicing applications. The target network is determined based on one of application type, residual free flow of data flow-free service and application attribute; the target network is determined based on the application type and priority of the SIM module, and one of the remaining free traffic of the data traffic free service and the attribute of the application.
The target network determination for each of the different types of applications is further described below in conjunction with specific embodiments.
The network selection method provided by the embodiment of the application can determine the target network to be connected according to the application type of the application when the application is started, allows different types of applications to use the target network of the corresponding type, does not limit all applications in the electronic equipment to use the same network to transmit data any more, is more flexible in network connection mode, can more effectively utilize network resources of the electronic equipment, and meets the requirement of each type of application on network selection.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Please refer to fig. 4, which is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure. As shown in fig. 4, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 160, a speaker 160A, a microphone 160B, a microphone 160C, an earphone interface 160D, a sensor module 170, a key 180, a motor 191, an indicator 192, a camera 193, a display screen 194, a first SIM module interface 195, and a second SIM module interface 196.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem 111, a Graphics Processor (GPU), an Image Signal Processor (ISP), a controller, a memory, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments, processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a SIM interface, and/or a USB interface, etc.
The first SIM module interface 195 may be used to connect a first SIM module. The first SIM module can be accessed by a user through a number selection from the operator's office or through the operator's online office, and is only used after being activated by being inserted into the SIM module interface (or called physical card slot) of the electronic device. The electronic equipment can be connected with a cellular network through the connected first SIM module to realize functions of conversation, data communication and the like. In some embodiments, the first SIM module may also be unplugged from the physical card slot.
The second SIM module interface 196 described above may be used to connect a second SIM module. The second SIM module is connected to and disconnected from the electronic device by being inserted into the second SIM module interface 196 or being pulled out from the second SIM module interface 196. The electronic equipment can be connected with a network through the first SIM module and/or the second SIM module, and functions of conversation, data communication and the like are realized.
It should be noted that the electronic device does not generally include the first SIM module and the second SIM module, and therefore is drawn with a dashed line in fig. 4. The term "mounting" a SIM module as used herein means that the SIM module is electrically connected to a corresponding SIM module interface.
For example, the first and second SIM module interfaces 195 and 196 may be SIM module connectors that include a body having a SIM module receiving space and a plurality of communication slots for receiving conductive terminals of a SIM module. The SIM module interface can perform signaling transmission with the SIM module through the conductive terminals and the slots. In addition, the first and second SIM module interfaces 195 and 196 may support multiple SIM module sizes, i.e., may be compatible with different types of SIM modules, such as Nano SIM module, micro SIM module, and the like. The first and second SIM module interfaces 195 and 196 may also be compatible with external memory cards.
One of the first and second SIM modules may be set as a primary SIM module, and the other may be set as a secondary SIM module.
In some embodiments, at least one of the first SIM module inserted into the first SIM module interface 195 and the second SIM module inserted into the second SIM module interface 196 is capable of mobile data transfer over a 5G slice network.
In other embodiments of the present application, the electronic device may further add or reduce SIM module interfaces as needed, for example, one SIM module interface is provided or three SIM module interfaces are provided. In other embodiments, the electronic device may not include a SIM module interface for connecting the plug-in SIM module, but include one or more eSIM modules through which communication with a network is performed to implement functions such as talking and accessing a web page.
The charging management module 140 is configured to receive charging input from a charger. The power management module 141 is used to supply power to the processor 110, the internal memory 121, the display screen 194, the wireless communication module 160, and the like.
The wireless communication function of the electronic device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem 111, and the baseband processor, etc.
The wireless communication module 160 may provide a solution for wireless communication applied to an electronic device, including Wireless Local Area Networks (WLANs) (e.g., WIFI networks), bluetooth (BT), global Navigation Satellite Systems (GNSS), near Field Communication (NFC), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
The electronic device implements the display function through the GPU, the display screen 194, and the application processor, etc. Display screen 194 for displaying images, video, etc
The display screen 194 includes a display panel. In some embodiments, the electronic device may include 1 or N display screens 194, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to extend the memory capability of the electronic device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, video, etc. are saved in the external memory card.
The internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications of the electronic device and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The data storage area can store data (such as audio data, phone book and the like) created in the using process of the electronic equipment. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like.
The electronic device may implement audio functions via the audio module 160, the speaker 160A, the microphone 160B, the earphone interface 160C, the earphone interface 160D, and the application processor. Such as music playing, recording, etc.
The audio module 160 is used to convert digital audio information into an analog audio signal output and also used to convert an analog audio input into a digital audio signal. The audio module 160 may also be used to encode and decode audio signals.
Among them, the sensor module 170 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
The keys 180 include a power-on key, volume key, etc. the motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
In addition, the software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and illustrates a software architecture of an electronic device.
Fig. 5 is a schematic composition diagram of a first software architecture of an electronic device according to an embodiment of the present application. The layered architecture divides the software into a plurality of layers, and the layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers, an application layer 51, a framework layer (framework) 52, and a hardware abstraction layer 53 from top to bottom.
The application layer 51 may include a series of application packages 511 and a stream-exempt setup application 512. For example, the application packages may include amazon, instant messaging applications (e.g., wechat, QQ, MSN Messenger), video applications (e.g., hua ye video, insTube, etc.), calculator, camera, call, short messaging applications, and the like.
In some embodiments, the flow-exempt setting application 512 is configured to provide the user with an entry for manually setting the flow-exempt application when the electronic device cannot obtain application information of the flow-exempt application from the operator server, and the flow-exempt setting application 512 further generates a flow-exempt application list according to the flow-exempt application manually set by the user.
In other embodiments of the present invention, the flow-free setting application 512 may further automatically identify an operator corresponding to the SIM module after the SIM module is installed in the electronic device, and obtain application information of a flow-free application subscribed to the data traffic-free service through the SIM module from a server of the operator, where the flow-free setting application further generates a flow-free application list according to the obtained application information and the SIM module information.
The flow-free setup application 512 may be a separate application or integrated into a "setup" application, which is not limited by the embodiments of the present application.
The framework layer (framework) 51 provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer 51. The framework layer 52 is the operational framework of the electronic device. For example, in this embodiment, the frame layer may include: slice application management module 521, application management module 522, network connection management module 523, and network quality detection module 524.
The slicing application management module 521 is configured to generate a slicing application list based on a network slicing policy after a user subscribes to a network slicing service for an application and acquires the network slicing policy pushed by an operator server.
The network quality detection module 524 is configured to obtain a transceiving condition of a data packet in a network connection, count network quality parameters such as a time delay, a packet loss rate, an uplink bandwidth, and a downlink bandwidth of the network connection in real time, and send the network quality parameters to the application management module 522 through a relevant API interface, so that the application management module 522 determines the network quality of each network connection.
The application management module 522 is configured to monitor the start, exit, and foreground and background switching of an application, and determine a target network for the application when it is determined that the application is started.
In the embodiment of the application, the application may be started in response to a start instruction of a user, or may be automatically started in response to a power-on instruction of the electronic device, and the like. In some embodiments of the present application, the application management module 522 may detect whether the application is started by detecting a trigger instruction applied to an application icon.
The network connection management module 523 is configured to control establishment, release, handover, and routing management of WIFI, a general cellular network, and a network slice connection. For example, the network connection management module 523 acquires, through the API, a target network corresponding to the started application determined by the application management module 522, and then creates a network connection corresponding to the target network.
The hardware abstraction layer 53 is an interface layer between the operating system and the hardware circuitry (not shown in fig. 4) and is intended to abstract the hardware.
Fig. 6 is a schematic diagram illustrating a second software architecture of an electronic device according to an embodiment of the present application. The second software architecture differs from the first software architecture in that a network connection recommendation module 525 and a business scenario prediction module 526 are added to the framework layer 52. That is, the framework layer 52 includes a slice application management module 521, an application management module 522, a network connection management module 523, a network quality detection module 524, a network connection recommendation module 525, and a traffic scenario prediction module 526.
The network connection recommending module 525 is configured to obtain a time and a place of starting an application by the electronic device, input the time and the place into the network recommending model, and predict, through the network recommending model, a SIM module with the highest use frequency corresponding to the time and the place of starting the application. The training method of the network recommendation model will be described in detail later with reference to fig. 10. The network recommendation model may be stored locally in the electronic device or in a remote server or other storage device.
The service scene prediction module 526 is configured to obtain a user usage habit model, input a current time and a current location of the electronic device into the user usage habit model, obtain a user common application corresponding to the current time and the current location of the electronic device, send the obtained user common application to the application management module 522, the application management module 522 determines a target network corresponding to the predicted user common application, the application management module 522 obtains a network connection state of the electronic device from the network connection management module 523 and determines whether a connection has been established for the target network corresponding to the common application, and if not, controls the network connection management module 523 to establish a network connection corresponding to the target network of the user common application. Therefore, the user can directly use the corresponding network connection when the common application is started, and the network connection efficiency is improved.
In some embodiments, the network recommendation model and the user usage habit model are learning trained in the electronic device and stored in the electronic device. In other embodiments, the habit model and the network recommendation model can be learned and trained by other computer devices communicatively connected to the electronic device and transmitted to the electronic device for storage. In some embodiments, the habit model and the network recommendation model may be learned and trained in a server or other computer device and stored.
In another embodiment of the present invention, the service scenario prediction module 526 in the second software architecture diagram may be omitted, that is, the framework layer includes a slice application management module 521, an application management module 522, a network connection management module 523, a network quality detection module 524, and a network connection recommendation module 525.
The methods in the following embodiments may be implemented in an electronic device having the above-described hardware structure and software architecture. The following provides a detailed description of various embodiments of the present application.
In the following, a scenario when one SIM module is installed in the electronic device is described, and another scenario when two SIM modules are installed in the electronic device is described.
In a first scenario, a SIM module is installed in the electronic device.
The SIM module installed in the electronic equipment supports two types of networks, namely 5G network slice and common cellular network, the electronic equipment also supports a wireless local area network, and at least a first application is installed in the electronic equipment.
It should be noted that, because the 5G network slice implements network connection through a 5G independent networking mode, and the normal cellular network implements network connection through a single 2G, 3G, or 4G networking, or a mixed 4G and 5G networking, the network slice of one SIM module and the normal cellular network need to separately establish network connection. When the mobile data function is started after the electronic equipment is started, the electronic equipment establishes the common cellular network connection of the SIM module, but the 5G network slice corresponding to the SIM module does not establish the network connection.
In a first scenario, after the electronic device is started, when the electronic device detects that the first application is started, if the first application needs to consume a flow, the intelligent network selection process of the embodiment of the application is executed, and a target network is selected for the first application to perform service data transmission. The intelligent network selection process comprises the following steps: detecting whether a wireless local area network is connected or not, and detecting the network quality of the wireless local area network;
if the electronic equipment is connected with the wireless local area network before the first application is started and the network quality of the connected wireless local area network is detected to be good, transmitting service data for the first application through the wireless local area network without establishing new network connection;
if the electronic equipment is detected to be connected with the wireless local area network but the network quality of the wireless local area network is poor, or the electronic equipment is detected not to be connected with the wireless local area network, determining the target network of the first application based on the application type of the first application, or determining the target network of the first application based on one of the type of the first application, the remaining free traffic of the data traffic free service and the attribute of the application.
After determining the target network corresponding to the first application, it is further required to determine whether the electronic device has established a network connection corresponding to the target network, and if the target network has not established a connection, establish a network connection of the target network, and transmit service data for the first application through the network connection corresponding to the target network. If the target network is connected, the service data is directly transmitted to the first application through the network connection corresponding to the established target network without establishing a new network connection.
In the following, how the electronic device selects a target network for the first application started in the first scenario to perform service data transmission is specifically described with reference to table 2.
TABLE 2
Figure BDA0002390554500000191
/>
Example one
In a first embodiment, the first application installed in the electronic device is a slicing application.
After the electronic equipment is started, when the electronic equipment starts a first application, executing the intelligent network selection process, and if the network quality of the connected wireless local area network is detected to be good, determining the wireless local area network as a target network corresponding to the first application; if the fact that the electronic equipment is connected with the wireless local area network but the network quality of the wireless local area network is poor is detected, or the fact that the electronic equipment is not connected with the wireless local area network is detected, the network slice of the SIM module is determined to be a target network corresponding to the first application based on the type of the first application.
After the network slice of the SIM module is determined to be the target network corresponding to the first application, if the network slice of the SIM module does not establish network connection, the network slice connection of the SIM module is required to be established after the network slice corresponding to the SIM module is determined to be the target network corresponding to the first application, and service data is transmitted for the first application through the network slice connection of the SIM module.
The establishing of the network slice connection of the SIM module means that the electronic device establishes a data connection channel with an access network of a network slice corresponding to the SIM module. After the data connection channel is established, the first application can send and receive service data through the data channel.
If the electronic device already establishes the network slice connection of the SIM module before the first application is started, the electronic device directly transmits service data for the first application through the network slice connection of the SIM module without establishing the network slice connection of the SIM module again.
In this embodiment, the electronic device is further installed with a plurality of applications, and in some scenarios, the electronic device may start another application when the first application is running.
In an exemplary case, the electronic device installs the first application and the second application, and both the first application and the second application are slice applications, that is, both the first application and the second application correspond to a slice application list of the SIM module. Next, when the electronic device detects that the second application is started under the condition that the first application in the electronic device is started and the service data is transmitted through the network slice connection of the SIM module, if the second application is an application consuming traffic, the electronic device executes the intelligent network selection process again to select a target network for the second application. If the network slice of the SIM module is determined to be the target network corresponding to the second application, since the electronic device already establishes the network connection corresponding to the network slice of the SIM module when the second application is started, after the target network of the second application is determined, the service data is transmitted for the second application directly through the network connection corresponding to the network slice of the SIM module without establishing a new network connection.
In this exemplary case one, the first application and the second application simultaneously use the network connection corresponding to the network slice to transmit traffic data. When the second application is started, the first application started in advance is switched to the background to run, and the service data is continuously transmitted through the network slice connection of the SIM module.
In an exemplary case two, the first application and the third application are installed in the electronic device, and the first application is a slice application, and the third application is a stream-exempt application or a normal application (i.e., neither a stream-exempt application nor a slice application) corresponding to the main card. And on the premise that the electronic equipment has started the first application and transmits service data for the first application through the network slice connection of the SIM module, when the electronic equipment detects that the third application is started, if the wireless local area network connection is established but the network quality is poor or the wireless local area network is not connected, selecting the common cellular network in the SIM module to transmit the service data for the third application. In this embodiment of the application, when the started generic application has no corresponding subscription relationship, a default network corresponding to the default SIM module is selected for the generic application according to the prior art to transmit service data, for example, when the electronic device is connected to a wireless local area network, a wireless local area network is used, when the quality of the wireless local area network connected to the electronic device is poor or the wireless local area network is not connected, the generic cellular network of the SIM module is used to transmit service data when the generic cellular network of the SIM module establishes a connection. In this exemplary case two, the first application is switched to the background and performs traffic data transmission through the network slice of the SIM module after the third application is started, and the third application performs traffic data transmission through the ordinary cellular network of the SIM module. That is to say, the electronic device can establish two or more network connections at the same time, and different applications respectively use different network connections to perform service data transmission, so that network resources are reasonably utilized, and network requirements of different types of applications are met.
And when the first application is closed and the network connection corresponding to the network slice is not used by other applications, the electronic equipment disconnects the network connection corresponding to the network slice. In other words, the network slice connection establishes a connection only when the slice application needs to be used, and the electronic device disconnects the network slice connection of the SIM module when the slice application no longer uses the network connection of the network slice.
Example two
In embodiment two, the first application installed in the electronic device is a stream-less application.
After the electronic equipment is started, when the electronic equipment starts a first application, executing the intelligent network selection process, wherein when the condition that the quality of a wireless local area network connected with the electronic equipment is poor or the wireless local area network is not connected is detected, the common cellular network of the SIM module is determined to be a target network corresponding to the first application based on the type of the first application.
If the ordinary cellular network of the SIM module is connected with the network before the first application is started, the first application directly transmits service data through the ordinary cellular network of the SIM module. If the common cellular network of the SIM module is not connected before the first application is started, the first application transmits service data through the common cellular network of the SIM module after the common cellular network of the SIM module is established.
When a plurality of applications are installed in the electronic device, the method is also similar to the network selection method for starting the plurality of applications in the foregoing embodiment, and details are not described here.
EXAMPLE III
In embodiment three, the first application is both a stream-free application and a slicing application.
After the electronic equipment is started, when the electronic equipment detects that the first application is started, the intelligent network selection process is executed. If the type of the first application is determined to be both slice application and flow-free application, selecting one of the application types as a determination basis according to one of the attributes of the application and the remaining free flow of the data-flow-free service, and determining a target network based on the application type as the determination basis, specifically: when the flow-free application is selected as a determination basis, determining that a common cellular network of the SIM module is a target network of the first application; and when the slice application is selected as a determination basis, determining the network slice of the SIM module as a target network of the first application.
A method of determining the basis for determining the type of application when the application is both a slice application and a stream-free application is described below.
In a possible implementation manner, when the data-free traffic service corresponds to a set traffic limit and the remaining free traffic in the traffic limit corresponding to the data-free traffic service is greater than a set value, selecting the flow-free application as a determination basis; and when the remaining free flow in the flow-free package is smaller than the set value, selecting slice application as a determination basis. For example, the flow-exempt package corresponding to the flow-exempt traffic service includes 30GB of uncharged traffic, and if the flow consumed by the flow-exempt application exceeds 30GB, the extra traffic used is still charged, in this case, if the remaining free traffic of the flow-exempt package is sufficient, the traffic in the flow-exempt package can be preferentially used to save traffic charges, and then the flow-exempt application serves as a determination basis for determining the target network. And if the residual free flow in the stream-free package is insufficient, the slicing application is used as a determination basis for determining the target network.
In another possible implementation, the determination basis is determined according to application attributes, wherein the application attributes include, but are not limited to, a property classification of the application (e.g., online game-like application, news-like application, social-like application, video-like application, etc.), a requirement criterion of the application runtime on a network quality parameter (e.g., latency, bandwidth), and the like. For example, when the application is an online game application and the network is required to have low latency performance, a slice application is selected as a determination basis according to the attribute of the application, so that the network slice is determined as the target network of the application. If the application is an interactive game with high requirement on network delay, in order to ensure the smoothness of the running of the game, the network slice is selected as a determination basis to ensure the game experience of the user.
It is to be understood that in other embodiments, the application attribute may also be a consumption situation of data traffic when the application runs, for example, when the attribute of the application is an application that needs to consume a large amount of traffic, if traffic cost is saved, a stream-free application may be selected as a determination basis.
When determining a target network of the first application type based on the remaining free traffic of the data traffic free service, if the application type of the first application is both slice application of a first SIM module and flow-free application of the first SIM module, determining the remaining free traffic of the data traffic free service of the first SIM module, wherein when the remaining free traffic is greater than a set value, determining that a common cellular network of the first SIM module is the target network corresponding to the first application; and when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application.
When determining that a network slice needs to be selected according to the attribute of the application, if the application type of the first application is both slice application of the first SIM module and flow-free application of the first SIM module, determining that the network slice of the first SIM module is a target network corresponding to the first application.
In another possible embodiment, the determination basis may also be manually set based on a user input setting operation. For example, the electronic device may provide an interface (not shown) that is accessible based on an application management option under a setup application for displaying a network service selectable by a specific application, the interface includes a first button corresponding to a network slicing service and a second button corresponding to a data traffic exempt service, the determination basis is determined in response to a user operating the first button or the second button, the slicing application is used as the determination basis if the first button is selected, and the streaming exempt application is selected as the determination basis if the second button is selected.
In other embodiments, the selection of the type of application to set may be set by the user when the application is first installed; or when the application subscription completes the network slicing service and the data flow-free service, the electronic device prompts the user to select through a prompt interface (not shown), and the setting is performed in response to the selection operation of the user; the application may also be selected and set by the user according to the prompt information displayed by the electronic device when the application is started, which is not limited by the present invention.
In addition, in the third embodiment, when a plurality of applications are installed in the electronic device, the plurality of applications are also started similarly to the first embodiment. And in the process of transmitting service data through the target network connection after the first application is started, if the electronic equipment detects that other applications are started, executing the intelligent network selection process again to select the target network for the started other applications. And if the target network of the started other application is the same as that of the first application, the other application and the first application carry out service data transmission through the same network connection. And if the target network of the started other application is different from that of the first application, the first application and the other application respectively carry out service data transmission through the corresponding target networks.
In some embodiments, when the network connection of the target network of the first application is not used by other applications after the first application is closed, the electronic device disconnects the network connection of the target network of the first application.
In the second scenario, two SIM modules are installed in the electronic device, and the electronic device supports dual SIM modules for dual communications.
The two SIM modules installed in the electronic equipment are respectively a first SIM module and a second SIM module, wherein the first SIM module is a default mobile data SIM module. After the electronic device is powered on and the mobile data function is turned on, the electronic device establishes a normal cellular network connection of the first SIM module, while a network connection corresponding to the second SIM module is not established. The electronic equipment also supports a wireless local area network, and at least a first application is installed in the electronic equipment, wherein the service of the first application needs network connection.
In a second scenario, after the electronic device is powered on, if the electronic device detects that the first application is started, if the first application needs to consume a flow, the intelligent network selection process of the embodiment of the application is executed:
detecting whether a wireless local area network is connected or not and detecting the network quality of the wireless local area network;
if the electronic equipment is connected with a wireless local area network before the first application is started and the network quality of the connected wireless local area network is detected to be good, transmitting service data for the first application through the wireless local area network;
if the electronic equipment is detected to be connected with the wireless local area network but the network quality of the wireless local area network is poor, or the electronic equipment is detected not to be connected with the wireless local area network, determining a target network corresponding to a first application based on the type of the first application, or determining the target network of the first application based on the type of the first application and the priority of the SIM module, or determining the target network of the first application based on the type of the first application and one of the remaining free traffic of the data traffic free service and the attribute of the application, or determining the target network of the first application based on the type of the first application, the priority of the SIM module and one of the remaining free traffic of the data traffic free service and the attribute of the application.
After determining a target network corresponding to the first application, determining whether the electronic device has established a network connection corresponding to the target network, if not, establishing a network connection corresponding to the target network, and transmitting service data for the first application through the network connection corresponding to the target network. And if the target network establishes network connection, transmitting service data for the first application directly through the network connection corresponding to the established target network.
The second scene may be further specifically divided into a plurality of sub-scenes, and the first sub-scene: the application type of the first application is a stream-free application, and a second seed scenario is as follows: the application type of the first application is a slicing application; the third sub-scenario: the application type of the first application is both streaming-free and slicing. In the following, how the electronic device selects a target network for the first application to be started for service data transmission in different sub-scenarios is described by some embodiments.
A first sub-scenario: the application type of the first application is a flow-free application, and a target network of the first application is determined based on the application type of the application or based on the application type of the application and a priority of the SIM module, which is described in detail below with reference to table 3.
TABLE 3
Figure BDA0002390554500000231
Example four
In the fourth embodiment, the first application is a flow-exempt application of the first SIM module, and the target network corresponding to the first application is determined based on an application type of the first application.
After the electronic equipment is started, if the electronic equipment detects that the first application is started, executing the intelligent network selection process, wherein the common cellular network of the first SIM module is determined to be a target network of the first application based on the application type of the first application.
If the electronic equipment does not establish the ordinary cellular network connection of the first SIM module before the first application is started, after the ordinary cellular network of the first SIM module is determined to be a target network corresponding to the first application, the method also comprises the step of establishing the ordinary cellular network connection of the first SIM module, and the first application uses the ordinary cellular network of the first SIM module to carry out service data transmission. If the ordinary cellular network connection of the first SIM module is already established when the first application is started, the ordinary cellular network connection of the first SIM module is directly used to transmit service data for the first application. And the first application uses the flow of the first SIM module when transmitting the service data.
When the first application is closed and the normal cellular network connection of the first SIM module is not used by other applications, the electronic device may retain or disconnect the normal cellular network connection of the first SIM module. In some embodiments, the normal cellular network connection of the first SIM module is established only when it is needed, and the electronic device disconnects the normal cellular network connection of the first SIM module when it is no longer in use.
When a plurality of applications are installed in the electronic device and a scenario of starting the plurality of applications is as described in the foregoing embodiment, no repetition is made.
EXAMPLE five
In embodiment five, the first application is a flow-exempt application of the second SIM module, and the target network corresponding to the first application is determined based on the application type of the first application. When the first application is detected to be started, if the application type of the first application is determined to be the flow-free application of the second SIM module, determining that the common cellular network of the second SIM module is a target network corresponding to the first application.
In this embodiment, if the connection is not established in the normal cellular network of the second SIM module before the first application is started, after determining the target network, the method further includes establishing the normal cellular network connection of the second SIM module, and then transmitting the service data for the first application through the normal cellular network connection of the second SIM module. If the normal cellular network connection of the second SIM module is already established when the first application is started, the normal cellular network connection of the second SIM module is directly used for transmitting service data for the first application. And the first application uses the flow of the second SIM module when transmitting the service data.
The method for establishing the common cellular network connection of the second SIM module comprises the following steps: the electronic device establishes a data connection channel with an access network (base station) of the ordinary cellular network of the second SIM module.
In an embodiment of the present application, if the electronic device already establishes the normal cellular network connection of the first SIM module before establishing the normal cellular network connection of the second SIM module, after establishing the normal cellular network connection of the second SIM module, the normal cellular network connection of the first SIM module still remains connected, that is, the first SIM module and the second SIM module in the electronic device establish the normal cellular network connection at the same time. It is understood that, in some embodiments, after the connection of the ordinary cellular network of the second SIM module is established, if the ordinary cellular network of the first SIM module of the electronic device is not used, the connection of the ordinary cellular network of the first SIM module may also be disconnected, and after the ordinary cellular network of the second SIM module is closed, the ordinary cellular network of the first SIM module is reconnected.
In some embodiments, establishing the network connection for the second SIM module may be established automatically. For example, an "intelligent switching SIM module" function is set in the electronic device, and when the intelligent switching SIM module function is turned on, if it is determined according to the network selection method provided in the present application that a target network of the started first application is a network type corresponding to the second SIM module, service data is automatically transmitted for the first application through the second SIM module, and a normal cellular network of the first SIM module can maintain a network connection state and can also disconnect the network connection. For example, after the function of the intelligent switching SIM module is started, when the first application is started, if it is detected that the application type of the first application is the second SIM module flow-free application, after determining that the ordinary cellular network of the second SIM module is the target network corresponding to the first application based on the application type of the first application, the ordinary cellular network of the second SIM module is automatically switched to perform service data transmission, which is beneficial to saving network traffic cost of a user, and the network selection method of the application is more flexible. Under the condition that the function of the intelligent switching SIM module is closed, when the common cellular network of the second SIM module is determined to be the target network corresponding to the first application according to the network selection method in the application, a prompting interface mode can be adopted to prompt a user to select whether to switch to the second SIM module to establish network connection.
The setup process for the "smart switching SIM module" function is illustrated below in connection with fig. 7A-7D. For convenience of description, the SIM module is taken as a SIM card, the first SIM module is taken as a card 1, and the second SIM module is taken as a card 2. As shown in fig. 7A, it is a SIM card management interface (or first interface), and the first interface can be accessed through a "SIM card management" tab under a "setup" application. And receiving the selection operation of the user on the SIM card management option under the 'setting' application, responding to the selection operation of the user on the SIM card management option under the 'setting' application, and entering an 'SIM card management' interface. The first interface includes an enable switch 601 for card 1, a selection 602 for default mobile data of card 1 and a selection 603 for card 2, respectively, an option 604 for default dial card and an option 605 for turning on call transfer between two cards, and an option 701 for "intelligent switching network card". Wherein, the enable switch 601 of the card 1 is used to enable or disable the card 1; the card selection 602 with default mobile data of card 1 is used for indicating that the mobile communication network connected by default is the mobile communication network of card 1, and the card selection 603 with default mobile data of card 2 is used for indicating that the mobile communication network connected by default is the mobile communication network of card 2; a default dial-card option 604 is used to set a preferred network card when the dialing application is turned on; the open inter-card call forwarding option 605 is used to open or close the inter-card call forwarding function, and these options are similar to the existing similar setup functions and will not be described in detail here. The "smart switch network card" option 701 also displays whether the current state of the smart switch network card function is on or off. The "smart switch network card" option 701 is used for a user to perform relevant settings on the smart switch network card function, for example, the user may click the "smart switch network card" option 701. In response to the user clicking the "switch smart card" option 701, the electronic device switches to a second interface as shown in fig. 7B. The second interface includes a switch 702 and a schematic description information box 7020, where the switch 702 is used for a user to turn on a "smart switch network card" function or turn off the "smart switch network card" function, for example, the user may click on the virtual switch 702 to input an on/off instruction. The schematic description information box 7020 is used to describe the function of the intelligent switching network card, and in this embodiment, the information box displays "fast switching" to highlight the convenience of the switching network card, and it is understood that in other embodiments, other text information boxes and the like may be omitted or replaced. Illustratively, when receiving an ON instruction input by a user operating the virtual switch 702, a third interface as shown in fig. 7C is displayed, where the virtual switch 702 in the third interface is displayed in an ON state (for example, blue indicates the ON state, or "ON" indicates the ON state), which represents that the smart cut-over netcard function is already ON. It is understood that the interfaces in this embodiment are only exemplary, and in other embodiments of the present application, the first interface and the second interface may also be disposed in the same level menu, for example, the switch 702 is disposed in the first interface corresponding to the "smart switch network card" option 701, which is not shown in the drawings.
In some embodiments of the present application, for an application subscribed to the data traffic exempt service through the card 2, when the electronic device cannot obtain information of the streaming exempt application from the operator server, the streaming exempt application needs to be manually set. When the switch 702 is in the on state, as shown in fig. 7C, the third interface further includes an "application for prioritizing card 2 to access internet" option 703 and a "set card 2 package" option 704. The "priority card 2 web applications" option 703 is for the user to manually set the applications that use the card 2 streaming-free service (i.e., the streaming-free applications of card 2). When receiving a selection operation input by the user on the "application accessing the internet with priority card 2" option 703, the electronic device displays a fourth interface as shown in fig. 7D, where a plurality of application icons 705 and option boxes 706 corresponding to the application icons are displayed in the fourth interface. The application icon 705 is used to identify an application installed in the electronic device and the option box 706 is used for the user to select an application using the card 2 streamlessly services. For example, as shown in fig. 7D, when the user operates the option box 706 corresponding to an application icon such as "application a", generation of a selection instruction is triggered, the electronic device sets the application a indicated by the selection instruction as a card 2 flow-free application that uses the flow-free service of the card 2, application information corresponding to the checked application is used to generate a flow-free application list of the card 2, and when the application a is started, it may be determined that the application type of the application a is the flow-free application of the card 2 based on the flow-free application list of the card 2. In this embodiment, since the stream-free application of the card 2 needs to use the card 2 for service number transmission, the stream-free application of the card 2 is related to the smart switching network card, so that the stream-free application of the card 2 can be set through the third interface under the option of the smart switching network card. In other embodiments, the flow-exempt application of the card 1 or the card 2 may be set through other setting entries, for example, the flow-exempt application of the card 1 or the card 2 may be set through a tab such as "traffic management" or "application management" or "cell phone manager" in the "setting" application.
It is to be understood that, when the electronic device directly obtains the application information using the traffic-free data service from the operator server, the "application accessing internet with priority card 2" option 703 in the third interface may be omitted.
The "set card 2 package" option 704 is used for the user to set the flow reminding limit of the card 2, and when the user selects the option 704, the user enters a setting interface (not shown) to set the flow reminding limit. When the flow consumed by the application through the card 2 reaches the flow reminding limit, the electronic equipment generates a prompt message to prompt the user of the use condition of the flow of the card 2. Also included in this fourth interface is a "no flow statistics" switch 707. When the switch 707 is in an on state, the electronic device does not count the traffic consumed by the flow-free application of the card 2 set through the fourth interface when counting whether the traffic consumed by the application through the card 2 reaches the traffic reminding limit. When the switch 707 is in the off state, the electronic device counts whether the flow consumed by the application through the card 2 reaches the flow reminding limit, and counts the flow consumed by the flow-free application of the card 2 set through the fourth interface.
In some optional embodiments, when the smart switch internet card function is started and after the user sets the stream-free application of the card 2, the first time starts an application a set as the stream-free application of the card 2, the electronic device displays a prompt box 81 in an interface of the application a as shown in fig. 8, where the prompt box 81 is used to display prompt information to prompt the user that the application a will use the data traffic free service of the card 2 to surf the internet. The prompt box 81 also includes a confirmation button 811, the confirmation button 811 being used to receive an instruction from the user to determine whether to continue to use the ordinary cellular network of the card 2 for surfing the internet. The prompt box 81 may disappear by any operation when the confirm button 811 is pressed or on an interface other than the prompt box 81. Therefore, the user can know the network connection mode used by the application A conveniently, and can confirm the network connection mode again or change the network connection mode before switching the network conveniently, and the method is more humanized.
In some optional embodiments, when the application starts to use the normal cellular network of the card 2 for service data transmission, a prompt information box 91 is displayed in the interface of the application as shown in fig. 9 for displaying prompt information to prompt the user that the application a has automatically used the card 2 to surf the internet. In some embodiments, the reminder box 91 may automatically turn off after a predetermined period of time (e.g., 3 seconds) has been displayed.
In addition, in this example, when a plurality of applications are installed in the electronic device, during the process of transmitting service data through the ordinary cellular network of the second SIM module after the first application is started, if the electronic device detects that another application is started again, the intelligent network selection process is executed again to select a target network for the started another application to transmit the service data. If the target network of the started other application is different from that of the first application, for example, the target network of the started other application is the normal cellular network of the first SIM module, the other application transmits the service data through the normal cellular network of the first SIM module. At this time, the first application uses the ordinary cellular network of the second SIM module to transmit the service data, consuming the traffic of the second SIM module, and the other applications uses the ordinary cellular network of the first SIM module to transmit the service data, consuming the traffic of the first SIM module. That is, the first SIM module and the second SIM module of the electronic device transmit service data for two different applications at the same time.
In this example, when the first application is closed, the electronic device disconnects the ordinary cellular network connection of the second SIM module if the cellular network of the second SIM module is not being used by other applications. If there are other applications using the normal cellular network connection of the second SIM module, the normal cellular network connection of the second SIM module is continuously maintained.
When a plurality of applications are installed in the electronic device and a scene for starting the plurality of applications is as described in the foregoing embodiment, no repetition is made.
EXAMPLE six
In a sixth embodiment, the first application is a dual-SIM-module flow-exempt application, and the target network corresponding to the first application is determined based on the application type of the first application and the priority of the SIM module.
And when the first application is detected to be started, executing the intelligent network selection process, wherein if the first application is determined to be a dual-SIM flow-free application, the priorities of the first SIM and the second SIM are determined, and then the common cellular network of the SIM with the higher priority is determined to be a target network corresponding to the first application. When the priority of the first SIM module is high, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; and when the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is a target network corresponding to the first application.
If the electronic equipment does not establish the ordinary cellular network connection of the SIM module with high priority before the first application is started, the electronic equipment also comprises a step of establishing the ordinary cellular network connection of the SIM module with high priority after determining that the ordinary cellular network of the SIM module with high priority is the target network corresponding to the first application, and the first application uses the ordinary cellular network connection of the SIM module with high priority to carry out service data transmission. And if the ordinary cellular network connection of the SIM module with high priority is already established when the first application is started, directly using the ordinary cellular network connection of the SIM module with high priority to transmit service data for the first application.
When the first application is closed and the normal cellular network connection of the SIM module with the high priority is not used by other applications, the electronic device may retain or disconnect the normal cellular network connection of the SIM module with the high priority. In some embodiments, the normal cellular network connection of the high-priority SIM module establishes a connection only when needed, and the electronic device disconnects the normal cellular network connection of the high-priority SIM module when the normal cellular network connection of the high-priority SIM module is no longer used.
The following describes an exemplary method for determining the priority of the SIM module.
In some embodiments, the priority of the SIM module is determined based on a user setup operation. For example, when an application subscribes to the same network service through the first SIM module and the second SIM module at the same time, a prompt interface may be displayed on the electronic device, the prompt interface prompts the user to select the first SIM module or the second SIM module, and the priority of the SIM modules may be determined in response to the selection operation of the user. If the user selects the first SIM module, the priority of the first SIM module is high; if the user selects the second SIM module, the priority of the second SIM module is high. In other embodiments, when the application is started, if it is determined that the application type of the application is a dual-SIM-module slice application or a dual-SIM-module non-streaming application, a prompt interface is displayed on the electronic device, and the user is prompted to select the first SIM module or the second SIM module on the prompt interface. In some embodiments, the interface of fig. 7C and 7D described above may also be used to set an application for preferentially selecting the second SIM module, and if the option box 706 corresponding to the application is selected by the user, it may be determined that the second SIM module has a high priority based on the selection of the user.
In other embodiments, the priority of the SIM module may also be automatically determined based on preset rules.
In some embodiments, when the first SIM module and the second SIM module both establish network connection, the preset rule includes: the method comprises the steps of obtaining network quality parameters of network connection established by a first SIM module and a second SIM module, determining the priority of the SIM module with good network quality to be high according to the network quality parameters of the first SIM module and the second SIM module, and if the network quality of the first SIM module is the same as that of the second SIM module, determining the priority of the first SIM module to be high. In still other embodiments, since the flow-free package corresponding to the data traffic-free service may be provided with a flow-free quota, the preset rule may be: the priority of the first SIM module and the priority of the second SIM module are determined according to the residual flow in the package free of streaming, for example, when the first application is started, the residual free flow of the package free of streaming corresponding to the data flow free service subscribed by the first SIM module and the second SIM module is respectively obtained, and the priority of the SIM module with more residual free flow is higher, so that the network flow can be used more reasonably. In still other embodiments, the preset rule may be determined according to historical usage data of the electronic device or a network recommendation model. The historical usage data based on the electronic device is specifically: and acquiring the time and the place of the electronic equipment when the first application is started, and acquiring an SIM module commonly used for the time and the place from the historical use data of the electronic equipment as a high-priority SIM module.
The determination through the network recommendation model specifically comprises the following steps: the method comprises the steps of obtaining the time and the place of the electronic equipment when the first application is started, inputting the time and the place into a network recommendation model, and obtaining a common SIM module corresponding to the time and the place when the first application is started, wherein the common SIM module has high priority. The network recommendation model is obtained by training historical data of the electronic equipment connection network according to a machine learning algorithm. The priority of the SIM module is determined through a network recommendation model determined by a machine learning algorithm, so that the selection of a network connection mode is more intelligent.
A method for obtaining a network recommendation model according to a machine learning algorithm is described below with reference to fig. 10, where the method includes:
step S1001, network connection historical data of the electronic equipment at different time and place are obtained, and the corresponding relation of the time, the place and the network connection historical data is used as a training sample set.
The network connection history data includes, but is not limited to, a cellular network of the first SIM module, a cellular network of the second SIM module, etc. to which the electronic device is connected.
The network connection history data of the time and the place is directly obtained from a storage medium of the electronic device, and can also be obtained from a cloud data center which is communicated with the electronic device.
Step S1002, a network recommendation model is established according to a machine learning algorithm, and the network recommendation model is trained by utilizing the training sample set, wherein the network recommendation model outputs the SIM module with the highest use frequency corresponding to the time and the place according to the time and the place.
The machine learning algorithm includes, but is not limited to, a classification algorithm, a clustering algorithm, a regression algorithm, an enhanced learning algorithm, a transfer learning algorithm, and a deep learning algorithm.
For example, the user may be 9:00-11:00 using a common cellular network in a first SIM module at home to watch the content in the Aiqiyi video, training a network recommendation model by collecting the historical data, and predicting to obtain the SIM module with the highest use probability corresponding to the starting time and the location of the first application as the first SIM module according to the obtained network recommendation model when the user starts the first application at home at 10.
Also for example, the user may be 8 a.m. on monday through friday: 00-12:00 while the company is working, a normal cellular network using a second SIM module. After the network recommendation model is obtained through training of the collected historical data, when the electronic device determines that the application starting time is 10 a.m. monday: 00, if the application starting place is in the company, the network recommendation model outputs the SIM module with the highest use probability as the second SIM module.
The time may be obtained by a local clock of the electronic device, and the location is obtained by a Global Positioning System (GPS) unit (not shown) or an installed map application in the electronic device.
In this fifth embodiment, when the electronic device starts the second application after starting the first application or starts more applications subsequently, the scenario is similar to the case of starting multiple applications as described above, the started second application may perform service data transmission through the same target network connection as the first application, or may establish a network connection corresponding to a target network different from the first application after determining that the target network of the second application is different from the target network of the first application, so that the second application performs service data transmission, and the enumeration is not repeated here. The situation after the first application is closed is the same as the embodiment described above, and is not described in detail.
The second seed scenario: the application type of the first application is a slice application, and a target network of the first application is determined based on the application type of the first application or the application type of the first application and SIM module priority, which is described in detail below with reference to table 4.
TABLE 4
Figure BDA0002390554500000281
Figure BDA0002390554500000291
EXAMPLE seven
In embodiment seven, the first application is a sliced application of a first SIM module, and the target network corresponding to the first application is determined based on an application type of the first application.
And if the electronic equipment detects that the first application is started, executing an intelligent network selection process, wherein the determination of the target network of the first application based on the application type of the first application is specifically based on the slice application of the first SIM module, and the determination of the network slice of the first SIM module as the target network corresponding to the first application based on the slice application of the first SIM module. If the electronic equipment does not establish the network slice connection of the first SIM module before the first application is started, the method further comprises a step of establishing the network slice connection of the first SIM module after determining that the network slice of the first SIM module is a target network corresponding to the first application, and the first application uses the network slice of the first SIM module to transmit service data. If the network slice connection of the first SIM module is already established when the first application is started, the network slice connection of the first SIM module is directly used for transmitting service data for the first application, and the first application transmits the service data by using the flow of the first SIM module.
When the network slice connection of the first SIM module is not used by other applications after the first application is closed, the electronic equipment can reserve or disconnect the network slice connection of the first SIM module. In some embodiments, the network slice connection of the first SIM module establishes a connection only when needed, and the electronic device disconnects the network slice connection of the first SIM module when the network slice connection of the first SIM module is no longer used.
When a plurality of applications are installed in the electronic device and a scenario of starting the plurality of applications is as described in the foregoing embodiment, no repetition is made.
Example eight
In an embodiment eight, the first application is a slice application of the second SIM module, and the target network of the first application is determined based on an application type of the first application. When detecting that a first application is started, executing the intelligent network selection process, wherein the target network of the first application is determined based on the application type of the first application, specifically, the network slice of a second SIM module is determined to be the target network corresponding to the first application based on the slice application of the second SIM module.
If the network slice of the second SIM module does not establish network connection before the first application is started, the method further comprises the step of establishing the network slice connection of the second SIM module after the network slice of the second SIM module is determined to be the target network corresponding to the first application, and the first application uses the network slice connection of the second SIM module to carry out service data transmission. And if the network slice connection of the second SIM module is established when the first application is started, directly using the network slice connection of the second SIM module to transmit service data for the first application, wherein the first application uses the flow of the second SIM module when transmitting the service data.
When the network slice connection of the second SIM module is not used by other applications after the first application is closed, the electronic equipment can reserve or disconnect the network slice connection of the second SIM module. In some embodiments, the network slice connection of the second SIM module establishes a connection only when needed for use, and the electronic device disconnects the network slice connection of the second SIM module when the network slice connection of the second SIM module is no longer in use.
When a plurality of applications are installed in the electronic device and a scenario of starting the plurality of applications is as described in the foregoing embodiment, no repetition is made.
Example nine
In a ninth embodiment, the first application is a dual-SIM-module slice application, and the target network corresponding to the first application is determined based on an application type of the first application and a priority of a SIM module.
When detecting that the first application is started, executing the intelligent network selection process, wherein if the application type of the first application is determined to be double-SIM module slice application, determining the priority of the first SIM module and the second SIM module; and then determining the network slice of the SIM module with high priority as a target network corresponding to the first application. If the priority of the first SIM module is high, the network slice of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application. When the priority of a first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application; and when the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application.
If the electronic equipment does not establish the network slice connection of the SIM module with high priority before the first application is started, the method also comprises a step of establishing the network slice connection of the SIM module with high priority after determining that the network slice of the SIM module with high priority is a target network corresponding to the first application, and the first application uses the network slice of the SIM module with high priority to carry out service data transmission. And if the network slice of the SIM module with high priority is established when the first application is started, directly using the network slice of the SIM module with high priority to transmit service data for the first application.
And when the network slice connection of the SIM module with high priority is not used by other applications after the first application is closed, the electronic equipment disconnects the network slice connection of the SIM module with high priority. In other words, the network slice connection of the SIM module with high priority establishes a connection only when it is needed to be used, and the electronic device disconnects the network slice connection of the SIM module with high priority when the network slice connection of the SIM module with high priority is no longer used.
The method for determining the priority of the first SIM module and the second SIM module is the same as that described above, and is not repeated here.
When a plurality of applications are installed in the electronic device and a scene of starting the plurality of applications is as described in the foregoing embodiments, no repetition is made.
A third sub-scenario, where the application type of the first application is both streaming-free and slicing, and a target network of the first application is determined based on the application type of the first application or based on the application type of the first application and a priority of a SIM module, which is described in detail below with reference to table 5.
TABLE 5
Figure BDA0002390554500000301
Figure BDA0002390554500000311
Example ten
In an embodiment ten, the application type of the first application is a slice application of the first SIM module and a flow-free application of the first SIM module, and as described in the above embodiment, when two different types of application types, namely a slice application and a flow-free application, are involved, a determination basis of an application type is determined first, and then a target network corresponding to the first application is determined based on the determination basis. The determination of the application type as the basis for the determination is similar to the embodiment described above, and a description thereof will not be repeated.
When the electronic equipment detects that the first application is started, if the first application is determined to be both a slice application of the first SIM module and a flow-free application of the first SIM module, determining a determination basis of an application type, and then determining a target network corresponding to the first application based on the application type serving as the determination basis. Specifically, when the flow-free application is used as a determination basis, determining that a common cellular network of a first SIM module is a target network corresponding to the first application; and when the slice application is used as a determination basis, determining the network slice of the first SIM module as a target network corresponding to the first application.
For example, when Huawei video application subscribes the data traffic free service through the first SIM module and subscribes the network slice service through the first SIM module, after the Huawei video application is detected to be started, determining that the Huawei video corresponds to the stream free application list of the first SIM module and the slice application list of the first SIM module, determining that the application type of the Huawei video is the stream free application of the first SIM module and the slice application of the first SIM module, determining a determination basis of the application type, and determining a target network corresponding to the first application based on the application type serving as the determination basis. For example, whether the remaining free flow of the flow-free package of the first SIM module is greater than a preset value is determined, if the remaining free flow of the flow-free package is greater than the preset value, it indicates that the flow of the flow-free package is sufficient, at this time, in order to save the flow cost, the flow-free application is determined as a determination basis, and the ordinary cellular network of the first SIM module is selected as the target network for the Hua video based on the flow-free application. When the remaining free flow of the flow-free package of the first SIM module is smaller than the preset value, the flow of the flow-free package is insufficient, and at the moment, the slice application is determined as a determination basis, and the network slice of the first SIM module is selected as a target network for the Hua video based on the slice application.
Specifically, in some embodiments, if the target network of the first application type is determined based on a remaining free traffic of a data traffic exempt service, determining a remaining free traffic of the data traffic exempt service of the first SIM module, wherein when the remaining free traffic is greater than a set value, determining that a normal cellular network of the first SIM module is the target network corresponding to the first application; and when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to an attribute of an application, it is determined that the network slice of the first SIM module is a target network corresponding to the first application.
EXAMPLE eleven
In an eleventh embodiment, the application type of the first application is a slice application of the second SIM module and a flow-free application of the second SIM module, and the determination basis of the application type is determined first, and then the target network corresponding to the first application is determined based on the application type serving as the determination basis. The determination of the application type as the basis of the determination is similar to the embodiment described above, and the description thereof will not be repeated here.
When the electronic equipment detects that the first application is started, if the first application is determined to correspond to the flow-free application list of the second SIM module and the slice application list of the second SIM module, the first application is determined to be the slice application of the second SIM module and the flow-free application of the second SIM module, the determination basis of the application type is determined, and then the target network of the first application is determined based on the application type serving as the determination basis. When the flow-free application is used as a determination basis, determining that a common cellular network of a second SIM module is a target network corresponding to the first application; and when the network slice is used as a determination basis, determining the network slice of the second SIM module as a target network corresponding to the first application.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic exempt service, determining the remaining free traffic of the data traffic exempt service of the second SIM module, where when the remaining free traffic is greater than a set value, the flow exempt application is determined based on the determination, and the normal cellular network of the second SIM module is determined as the target network corresponding to the first application; and when the residual free flow is smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application on the basis of slice application.
In other embodiments, if it is determined that a network slice needs to be selected according to an attribute of an application, it is determined that the network slice of the second SIM module is a target network corresponding to the first application.
EXAMPLE twelve
In a twelfth embodiment, the first application is a slice application of the first SIM module and a flow-free application of the second SIM module, and the determination basis of the application type is determined first, and then the target network of the first application is determined based on the application type serving as the determination basis. The determination of the application type as the basis of the determination is similar to the embodiment described above, and the description thereof will not be repeated here.
If the first application is detected to be started, when the first application is determined to be both the slice application of the first SIM module and the flow-free application of the second SIM module, determining a determination basis of an application type, and then determining a target network of the first application based on the application type serving as the determination basis. When determining that the flow-free application is used as a determination basis, determining that the common cellular network of the second SIM module is a target network of the first application; when the slicing application is determined as a determination basis, determining that the network slice of the first SIM module is a target network of the first application.
Specifically, in some embodiments, if the target network of the first application type is determined based on a remaining free traffic of a data traffic free service, determining a remaining free traffic of the data traffic free service of the second SIM module, wherein when the remaining free traffic is greater than a set value, determining that a normal cellular network of the second SIM module is the target network corresponding to the first application; and when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, it is determined that the network slice of the first SIM module is a target network corresponding to the first application.
EXAMPLE thirteen
In a thirteenth embodiment, the first application is a flow-free application of the first SIM module and a slice application of the second SIM module, and the determination basis of the application type is determined first, and then the target network of the first application is determined based on the application type serving as the determination basis. The determination of the application type as the basis for the determination is similar to the embodiment described above, and a description thereof will not be repeated.
If the first application is detected to be started, if the first application is determined to correspond to the slice application list of the second SIM module and the flow-free application list of the first SIM module, the first application is determined to be the flow-free application of the first SIM module and the slice application of the second SIM module, the determination basis of the application type is determined, and then the target network of the first application is determined based on the application type serving as the determination basis. And when determining that the non-streaming application serves as a determination basis, determining that the common cellular network of the first SIM module is a target network of the first application, and when determining that the slice application serves as the determination basis, determining that the network slice of the second SIM module is the target network of the first application.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic exempt service, determining the remaining free traffic of the data traffic exempt service of the first SIM module, wherein when the remaining free traffic of the first SIM module is greater than a set value, determining that the normal cellular network of the first SIM module is the target network corresponding to the first application; and when the residual free flow is smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to an attribute of an application, it is determined that the network slice of the second SIM module is a target network corresponding to the first application.
Example fourteen
In a fourteenth embodiment, the first application is a dual-SIM module slicing application and a flow-free application of the first SIM module, and the determination basis of the application type is determined first, and then the target network of the first application is determined based on the application type as the determination basis.
The determination of the application type as the basis for the determination is similar to the embodiment described above, and a description thereof will not be repeated.
If the first application is detected to be started, when the slice application list of the first SIM module, the slice application list of the second SIM module and the flow-free application list of the first SIM module corresponding to the first application are determined, the first application is determined to be a double-SIM module slice application and a flow-free application of the first SIM module, a determination basis of an application type is determined, and then a target network of the first application is determined based on the application type serving as the determination basis. If the slice application is used as a determination basis, determining the priority of the first SIM module and the second SIM module, and then determining the network slice of the SIM module with the higher priority as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application; if the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application; and if the flow-free application is used as a determination basis, determining that the common cellular network of the first SIM module is a target network corresponding to the first application.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic free service, when the remaining free traffic of the data traffic free service of the first SIM module is greater than a set value, the ordinary cellular network of the first SIM module is determined as the target network corresponding to the first application; and when the residual free flow of the data flow free service of the first SIM module is smaller than the set value, determining the network slice of the SIM module with high priority as the target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, the network slice of the SIM module with the higher priority is determined to be the target network corresponding to the first application.
Example fifteen
Fifteenth embodiment, the first application is both a dual SIM slice application and a flow-free application for the second SIM, and the determination of the application type is based on which the target network for the first application is determined.
The determination of the application type as the basis for the determination is similar to the embodiment described above, and a description thereof will not be repeated.
If the first application is detected to be started, when the slice application list of the first SIM module, the slice application list of the second SIM module and the flow-free application list of the second SIM module corresponding to the first application are determined, the first application is determined to be a double-SIM module slice application and a flow-free application of the second SIM module, the determination basis of the application type is determined, and then the target network of the first application is determined based on the application type serving as the determination basis. If the slice application is used as a determination basis, determining the priority of the first SIM module and the second SIM module, and then determining the network slice of the SIM module with the higher priority as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application; if the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application; and if the flow-free application is used as a determination basis, determining that the common cellular network of the second SIM module is a target network corresponding to the first application.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic free service, when the remaining free traffic of the data traffic free service of the second SIM module is greater than a set value, the ordinary cellular network of the second SIM module is determined as the target network corresponding to the first application; and when the residual free flow of the data flow-free service of the second SIM module is smaller than the set value, determining the network slice of the SIM module with high priority as the target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, the network slice of the SIM module with the higher priority is determined to be the target network corresponding to the first application.
Example sixteen
Sixteenth embodiment, the first application is both a dual-SIM-module streaming-free application and a sliced application for the first SIM module, and the determination of the application type is based on the first application, and then the target network of the first application is determined based on the application type as the determination basis.
The determination of the application type as the basis for the determination is similar to the embodiment described above, and a description thereof will not be repeated.
If the first application is detected to be started, if the flow-free application list of the first SIM module, the flow-free application list of the second SIM module, the slice application list of the first SIM module and three subscription relationships corresponding to the first application are determined, determining that the first application is a dual-SIM module flow-free application and a slice application of the first SIM module, determining a determination basis of an application type of the first application, and determining a target network of the first application based on the application type serving as the determination basis. If the slice application is used as a determination basis, determining that the network slice of the first SIM module is a target network corresponding to the first application; if the flow-free application is used as a determination basis, the priority of the first SIM module and the priority of the second SIM module are determined, and then the common cellular network of the SIM module with the high priority is determined as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is the target network corresponding to the first application. Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic exempt service, determining the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module, wherein when at least one of the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module is greater than a set value, determining the normal cellular network of the SIM module with a high priority as the target network corresponding to the first application; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application;
in other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, it is determined that the network slice of the first SIM module is a target network corresponding to the first application.
Example seventeen
Seventeenth embodiment, the first application is both a dual-SIM-module streaming-free application and a second-SIM-module slicing application, and the determination of the application type is based on which the target network of the first application is determined.
If the first application is detected to be started, if the first application is determined to correspond to the flow-free application list of the first SIM module, the flow-free application list of the second SIM module and the slice application list of the second SIM module, the first application is determined to be the flow-free application of the double SIM modules and the slice application of the second SIM module, the determination basis of the application type is determined, and then the target network of the first application is determined based on the application type serving as the determination basis. If the slice application is used as a determination basis, determining that the network slice of the second SIM module is a target network corresponding to the first application; if the flow-free application is used as a determination basis, the priority of the first SIM module and the priority of the second SIM module are determined, and then the common cellular network of the SIM module with the high priority is determined as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is the target network corresponding to the first application.
The determination of the application type on which the determination is based is similar to the embodiment sixteen, and the description thereof is not repeated here.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic exempt service, determining the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module, wherein when at least one of the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module is greater than a set value, determining the normal cellular network of the SIM module with a high priority as the target network corresponding to the first application; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application;
in other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, it is determined that the network slice of the second SIM module is a target network corresponding to the first application.
EXAMPLE eighteen
Eighteen, the first application is both a dual-SIM-module streamless application and a dual-SIM-module sliced application, the target network of the first application being determined based on the application type, the priority of the SIM module, and one of remaining free traffic for data-traffic-free services, an attribute of the application.
If the first application is detected to be started, if the flow-free application list of the first SIM module, the flow-free application list of the second SIM module, the slice application list of the first SIM module and the slice application list of the second SIM module are determined to correspond to the first application, the first application is determined to be a dual-SIM module flow-free application and a dual-SIM module slice application, a determination basis of an application type is determined based on one of the residual free flow of a data flow-free service and the attributes of the application, and then a target network of the first application is determined based on the priority of the SIM module. If the slice application is used as a determination basis, determining the priority of the first SIM module and the second SIM module, and then determining the network slice of the SIM module with the higher priority as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application. If the flow-free application is used as a determination basis, the priority of the first SIM module and the priority of the second SIM module are determined, and then the common cellular network of the SIM module with the high priority is determined as a target network corresponding to the first application: if the priority of the first SIM module is high, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is the target network corresponding to the first application.
The determination of the application type as the basis for the determination is similar to the previous embodiment, and a description thereof will not be repeated.
Specifically, in some embodiments, if the target network of the first application type is determined based on the remaining free traffic of the data traffic exempt service, determining the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module, wherein when at least one of the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module is greater than a set value, determining the normal cellular network of the SIM module with a high priority as the target network corresponding to the first application; and when the residual free flow of the data flow free service of the first SIM module and the residual free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the SIM module with high priority as the target network corresponding to the first application.
In other embodiments, if it is determined that a network slice needs to be selected according to the attribute of the application, the network slice of the SIM module with the higher priority is determined to be the target network corresponding to the first application.
The scenario when multiple applications are installed and launched in the electronic device is similar to that described in the previous embodiments. For example, when the first application started by the electronic device is a news application (for example, today's headline) subscribed to the data traffic exempt service through the second SIM module, the news application performs traffic data transmission through the ordinary cellular network of the second SIM module. When the news application runs, the electronic equipment starts a second application, namely a network mobile application (such as royal glory) subscribed with the network slice service through the first SIM module, transmits service data for the mobile application through the network slice of the first SIM module, and the news application is switched to the background to continue running, and meanwhile, the news application continues to transmit the service data through the common cellular network in the second SIM module. When the electronic equipment starts the third application WeChat and the WeChat is the common application, the service data is transmitted for the WeChat through the common cellular network of the first SIM module, and the news application and the network hand-trip application are both switched to the background to continue running and the network connection mode is kept unchanged.
In some optional embodiments, after determining the target network and before transmitting the service data for the first application through the network connection corresponding to the target network, the network selection method may further include:
acquiring network quality parameters of network connection corresponding to the target network, and determining whether the network quality parameters corresponding to the target network are higher than a set standard;
when the network quality parameter corresponding to the target network is higher than the set standard, transmitting service data for the first application through the network connection corresponding to the target network;
when the network quality parameter corresponding to the target network is lower than the set standard, the method comprises the following steps:
acquiring network quality parameters of other network connections established by the electronic equipment, wherein the other network connections are common cellular networks of SIM modules installed in the electronic equipment; if the network quality parameters of other network connections established by the electronic equipment are higher than the set standard, transmitting service data for the first application through the other network connections established by the electronic equipment; and if the network quality parameters of other network connections established by the electronic equipment are also lower than the set standard, transmitting the service data through the network connection corresponding to the target network.
For example, in a case that the electronic device is not connected to the wlan, if the application type of the first application is a flow-free application of the second SIM module, after determining that the normal cellular network corresponding to the second SIM module is the target network corresponding to the first application and establishing the normal cellular network connection corresponding to the second SIM module, if the network quality of the normal cellular network of the second SIM module is poor and the network quality of the normal cellular network of the first SIM module is good, the service data is transmitted for the first application not through the normal cellular network of the second SIM module, but through the normal cellular network of the first SIM module. The fluency of application surfing can be ensured by selecting the network connection with good network quality as the started first application to transmit the service data.
In some optional embodiments, the network selection method further comprises:
when the network connection corresponding to the target network is used for transmitting service data for the started first application, the electronic equipment also monitors the network quality of the network connection corresponding to the target network and the network quality of other network connections established by the electronic equipment in real time, wherein the other network connections comprise the ordinary cellular network and the wireless local area network of the SIM module, and when the network connection corresponding to the target network is poor in quality and the network quality of the other established ordinary cellular network connections is good, the first application is switched to the other established ordinary cellular network connections for transmitting the service data.
For example, when the application type of the first application is a flow-free application of the second SIM module, and when the first application performs service data transmission through the normal cellular network of the second SIM module, if the electronic device monitors that the quality of the normal cellular network of the second SIM module is poor, the first application is switched to the normal cellular network of the first SIM module to perform service data transmission.
And network connection with good network quality is selected for the application in the application running process, so that the smoothness of application running can be ensured. On the other hand, after the network connection corresponding to the target network is established, two or more network connection paths such as the network connection corresponding to the target network and other established common cellular network connections exist in the electronic device at the same time, when the network quality of the application in use is poor, the application can be directly switched to the network connection with good network quality, the network connection does not need to be re-established before switching, and the blocking phenomenon in the network switching process can be reduced.
In some optional embodiments, the network selection method further comprises:
when the network connection mode of the started application is switched from the network connection corresponding to the target network to other network connections of the electronic equipment, the electronic equipment generates prompt information in the application interface to prompt a user that the network used by the application is switched.
For example, when the flow-free application of the second SIM module uses the normal cellular network corresponding to the second SIM module to perform service data transmission, if the electronic device monitors that the quality of the normal cellular network corresponding to the second SIM module is poor and the quality of the normal cellular network corresponding to the first SIM module is good, the flow-free application of the second SIM module is switched to the normal cellular network corresponding to the first SIM module to perform service data transmission, a prompt interface as shown in fig. 11 is generated, and prompt information 1101 is displayed in the interface, for example, the prompt information indicates that "the current card 2 network is poor and the card 1 network is switched to" to enable the user to know the network connection mode being used by the application. Any operation of the prompt interface after the prompt interface is continuously displayed for a preset time (e.g., 3 seconds) or on an interface other than the prompt interface may cause the prompt interface to disappear. It is understood that, as described in fig. 7A to 7D, the example in the drawings is described by taking a SIM module as an example of a SIM card, and card 1 shown in the drawings corresponds to a first SIM module and card 2 corresponds to a second SIM module.
In other embodiments, the selection of the target network for the application by the network selection method provided by the present application may also be performed not after the application is started, but before the application is started. For example, before the application is started, common applications (also called applications with high starting probability) which are possibly started by a user at the current time and place of the electronic equipment are predicted through historical use data and/or a machine learning model of the electronic equipment, and a target network is selected in advance for the common applications which are possibly started. Specifically, the electronic device obtains information of current time and place, predicts and obtains an application with a high starting probability of the user at the current time and place of the electronic device, determines a target network for the application with the high starting probability according to the network selection method in the application, determines whether the target network corresponding to the common application is established with network connection, and if not, establishes network connection corresponding to the target network of the common application of the user. Therefore, the user can directly use the corresponding network connection when the common application is started, and the network connection efficiency is improved.
The user use habit model is obtained by collecting historical use habit data such as application information, time and place of each application used by a user and training the historical use habit data by using a machine learning algorithm. The machine learning algorithm includes, but is not limited to, a classification algorithm, a clustering algorithm, a regression algorithm, an enhanced learning algorithm, a transfer learning algorithm, and a deep learning algorithm. For example, a user starts an Aichi art video application at a company from 12 pm to 13 pm every Monday to Friday, a mobile phone collects historical use habit data of the user such as time and place of using the Aichi art video, and a user use habit model is obtained through training the collected historical use habit data. When the electronic device sets the current location as 12 pm on tuesday: and 30, inputting a habit model used by the user to obtain a corresponding popular application of the user, namely the love art video.
Referring to fig. 12, the present application provides a network selection method, which is applied to an electronic device, the electronic device may support a wireless local area network and is configured with at least a first SIM module, the first SIM module supports at least one type of network (e.g., a normal cellular network and/or a network slice), and the electronic device is installed with at least a first application.
When the electronic device detects that the first application is started and the traffic of the first application needs to be consumed under the condition that the mobile data function corresponding to the first SIM module is started after the electronic device is started, the electronic device executes the following network selection method to select a target network for the first application so as to transmit the service data. The network selection method comprises the following steps:
s1201, when detecting that the first application is started, the electronic device detects whether the wireless local area network is connected and the network quality of the wireless local area network is good. If the connected wireless local area network is detected and the quality of the wireless local area network is good, executing S1202; if it is detected that the electronic device is connected to the wireless local area network but the network quality of the wireless local area network is poor, or if it is detected that the electronic device is not connected to the wireless local area network, S1203 is executed.
S1202, transmitting service data for the first application through a wireless local area network.
S1203, determining a target network of the first application based on the application type of the first application.
The specific implementation manner of S1203 may refer to the related description of the above embodiments, and is not repeated here.
S1204, judge whether the network connection corresponding to network of the goal has already been set up. If the network connection corresponding to the target network is not established, executing S1205; if the network connection corresponding to the target network is established, S1206 is executed.
And S1205, establishing network connection of a target network, and transmitting service data for the first application through the network connection corresponding to the target network.
And S1206, transmitting the service data for the first application through the network connection corresponding to the target network.
Please refer to fig. 13, which is a schematic structural diagram of an electronic device according to another embodiment of the present application. The electronic device 1500 may include a mobile communication module 1301, a wireless communication module 1302, a SIM module interface module 1303, a processor 1304, and a memory 1305. The various devices described above may be connected by one or more communication buses 1306. The memory 1305 is used to store one or more computer programs 1307. One or more computer programs 1307 are configured to be executed by the processor 1304. The one or more computer programs 1307 include instructions that can be used to perform the steps performed by the electronic device (e.g., a mobile phone) in the embodiments described above to implement the network connection mode selection function when an application in the electronic device is started.
The present embodiment also provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are run on an electronic device, the electronic device is caused to execute the above related method steps to implement the network selection method in the above embodiments.
The present embodiment also provides a computer program product, which when run on a computer causes the computer to execute the relevant steps described above, so as to implement the network selection method in the above embodiment.
In addition, an apparatus, which may be specifically a chip, a component or a module, may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the network selection method in the above-mentioned method embodiments.
The electronic device, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding method provided above, so that the beneficial effects achieved by the electronic device, the computer storage medium, the computer program product, or the chip may refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the foregoing embodiments, it will be clear to those skilled in the art that, for convenience and simplicity of description, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the module or unit is only one type of logical function division, and other division manners may be available in actual implementation, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (29)

1. A network selection method is applied to an electronic device, the electronic device is configured with a first SIM module, at least a first application is installed in the electronic device, a service of the first application requires network connection, the electronic device is configured to generate a subscription relationship for a network service after the first application subscribes the network service to an operator through the first SIM module, the subscription relationship includes application information of the first application and information of the first SIM module, and the subscription relationship corresponds to a type of network of the first SIM module, and the network selection method includes:
when the electronic equipment detects that the first application is started, determining a target network corresponding to the first application based on selection factors, wherein the selection factors comprise:
connection status and network quality of a wireless local area network, an
The application type of the first application is determined through the subscription relation;
judging whether the network connection corresponding to the target network is established;
when the network connection corresponding to the target network is not established, establishing the network connection corresponding to the target network, and transmitting service data for the first application through the network connection corresponding to the target network;
and when the network connection corresponding to the target network is established, transmitting service data for the first application through the network connection corresponding to the target network.
2. The network selection method of claim 1, wherein the selection factors include a connection status and a network quality of a wireless local area network, and an application type of the first application;
the determining a target network corresponding to the first application based on the selection factor includes:
if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application.
3. The network selection method of claim 2, wherein the determining the target network for the first application based on the application type of the first application comprises:
if the application type of the first application is the slice application of the first SIM module, determining that the network slice of the first SIM module is a target network corresponding to the first application;
and if the application type of the first application is the flow-free application of the first SIM module, determining that the common cellular network of the first SIM module is a target network corresponding to the first application.
4. The network selection method of claim 2, wherein the electronic device is further configured with a second SIM module, and wherein determining the target network for the first application based on the application type of the first application comprises:
if the application type of the first application is the slice application of a second SIM module, determining that the network slice of the second SIM module is a target network corresponding to the first application;
and if the application type of the first application is the flow-free application of the second SIM module, determining that the common cellular network of the second SIM module is a target network corresponding to the first application.
5. The network selection method of claim 1, wherein the selection factors further include one of remaining free traffic of the data traffic exempt service, an application attribute;
the determining a target network corresponding to the first application based on the selection factor includes:
if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on one of the application type of the first application, the remaining free traffic of the data traffic free service and the application attribute.
6. The method of claim 5, wherein the determining the target network corresponding to the first application based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service comprises:
if the application type of the first application is both a slice application and a flow-free application for the first SIM module,
determining the remaining free flow of the data flow free service of the first SIM module, wherein when the remaining free flow is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application; or
Determining, based on an application attribute of the first application, that a network slice of the first SIM module is a target network corresponding to the first application.
7. The network selection method of claim 5, wherein the electronic device is further configured with a second SIM module, and wherein determining the target network corresponding to the first application based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service comprises:
if the application type of the first application is both a slice application of the second SIM module and a flow-free application of the second SIM module,
determining the remaining free flow of the data flow free service of the second SIM module, wherein when the remaining free flow is greater than a set value, determining that the common cellular network of the second SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application; or
Determining, based on the application attribute of the first application, that the network slice of the second SIM module is a target network corresponding to the first application.
8. The network selection method of claim 5, wherein the electronic device is further configured with a second SIM module, and wherein determining the target network corresponding to the first application based on one of an application type of the first application and a remaining free traffic and an application attribute of a data traffic exempt service comprises:
if the application type of the first application is both a slice application of the first SIM module and a flow-free application of the second SIM module,
determining the remaining free flow of the data flow free service of the second SIM module, wherein when the remaining free flow is greater than a set value, determining that the common cellular network of the second SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application; or
Determining the network slice of the first SIM module as a target network corresponding to the first application based on the application attribute of the first application.
9. The network selection method of claim 5, wherein the electronic device is further configured with a second SIM module, and wherein determining the target network for the first application based on one of an application type of the first application and a remaining free traffic, an application attribute of a data traffic exempt service comprises:
if the application type of the first application is both the slice application of the second SIM module and the flow-free application of the first SIM module,
determining the remaining free flow of the data flow free service of the first SIM module, wherein when the remaining free flow is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; when the residual free flow is smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application; or
Determining, based on the application attribute of the first application, that the network slice of the second SIM module is a target network corresponding to the first application.
10. The network selection method of claim 1, wherein the electronic device is further configured with a second SIM module, the selection factor further includes a priority of the SIM module, and the determining the target network corresponding to the first application based on the selection factor comprises:
if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application;
and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application and the priority of the SIM module.
11. The network selection method of claim 10, wherein the determining a target network for the first application based on the application type of the first application and the priority of the SIM module comprises:
if the application type of the first application is the slice application of the first SIM module and the slice application of the second SIM module, if the priority of the first SIM module is high, determining that the network slice of the first SIM module is a target network corresponding to the first application; if the priority of the second SIM module is high, determining that the network slice of the second SIM module is a target network corresponding to the first application;
if the application type of the first application is not only the flow-free application of a first SIM module but also the flow-free application of a second SIM module, and if the priority of the first SIM module is high, determining that the common cellular network of the first SIM module is a target network corresponding to the first application; and if the priority of the second SIM module is high, determining that the common cellular network of the second SIM module is a target network corresponding to the first application.
12. The network selection method of claim 1, wherein the electronic device is further configured with a second SIM module, the selection factors further include a priority of the SIM module, and one of a remaining free traffic, an application attribute of the data traffic exempt service, and the determining the target network for the first application based on the selection factors comprises:
if the wireless local area network is connected and the network quality is higher than a set standard, determining that the wireless local area network is a target network corresponding to the first application; and if the network quality of the wireless local area network is lower than a set standard or the electronic equipment is not connected with the wireless local area network, determining a target network corresponding to the first application based on the application type of the first application, the priority of the SIM module and one of the remaining free flow and the application attribute of the data traffic free service.
13. The method of claim 12, wherein the determining the target network corresponding to the first application based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service comprises:
if the application type of the first application is not only the flow-free application of the first SIM module, the slice application of the first SIM module, but also the flow-free application of the second SIM module,
determining the remaining free flow of the data traffic exempting service of the first SIM module and the remaining free flow of the data traffic exempting service of the second SIM module, wherein when at least one of the remaining free flow of the data traffic exempting service of the first SIM module and the remaining free flow of the data traffic exempting service of the second SIM module is greater than a set value, determining a common cellular network of the SIM module with a high priority as a target network corresponding to the first application; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the first SIM module as a target network corresponding to the first application; or
Determining the network slice of the first SIM module as a target network corresponding to the first application based on the application attribute of the first application.
14. The method of claim 12, wherein the determining a target network for the first application based on an application type of the first application, a priority of a SIM module, and one of a free traffic remaining for a data traffic free service and an application attribute comprises:
if the application type of the first application is not only the flow-free application of the first SIM module but also the slice application of the second SIM module and the flow-free application of the second SIM module,
determining the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module, wherein when at least one of the remaining free traffic of the data traffic exempt service of the first SIM module and the remaining free traffic of the data traffic exempt service of the second SIM module is greater than a set value, determining a normal cellular network of an SIM module with a high priority as a target network corresponding to the first application; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the second SIM module as a target network corresponding to the first application; or
Determining, based on the application attribute of the first application, that the network slice of the second SIM module is a target network corresponding to the first application.
15. The method of claim 12, wherein the determining a target network for the first application based on an application type of the first application, a priority of a SIM module, and one of a free traffic remaining for a data traffic free service and an application attribute comprises:
if the application type of the first application is not only the flow-free application of the first SIM module, the slice application of the first SIM module, but also the slice application of the second SIM module,
determining the remaining free flow of the data flow free service of the first SIM module, wherein when the remaining free flow of the data flow free service of the first SIM module is greater than a set value, determining that a common cellular network of the first SIM module is a target network corresponding to the first application; when the remaining free flow of the data flow-free service of the first SIM module is smaller than the set value, determining the network slice of the SIM module with high priority as a target network corresponding to the first application; or
And determining the network slice of the SIM module with high priority as a target network corresponding to the first application based on the application attribute of the first application.
16. The method of claim 12, wherein the determining the target network corresponding to the first application based on the application type of the first application, the priority of the SIM module, and one of a remaining free traffic and an application attribute of a data traffic exempt service comprises:
if the application type of the first application is the slice application of the first SIM module, the flow-free application of the second SIM module and the slice application of the second SIM module,
determining the remaining free flow of the data flow free service of the second SIM module, wherein when the remaining free flow of the data flow free service of the second SIM module is greater than a set value, it is determined that the normal cellular network of the second SIM module is the target network corresponding to the first application; when the remaining free flow of the data flow-free service of the second SIM module is smaller than the set value, determining the network slice of the SIM module with high priority as a target network corresponding to the first application; or
And determining the network slice of the SIM module with high priority as a target network corresponding to the first application based on the application attribute of the first application.
17. The method of claim 12, wherein the determining a target network for the first application based on an application type of the first application, a priority of a SIM module, and one of a free traffic remaining for a data traffic free service and an application attribute comprises:
if the application type of the first application is not only the flow-free application of the first SIM module and the slicing application of the first SIM module, but also the flow-free application of the second SIM module and the slicing application of the second SIM module,
determining the remaining free flow of the data traffic exempting service of the first SIM module and the remaining free flow of the data traffic exempting service of the second SIM module, wherein when at least one of the remaining free flow of the data traffic exempting service of the first SIM module and the remaining free flow of the data traffic exempting service of the second SIM module is greater than a set value, determining a common cellular network of the SIM module with a high priority as a target network corresponding to the first application; when the remaining free flow of the data flow free service of the first SIM module and the remaining free flow of the data flow free service of the second SIM module are both smaller than the set value, determining the network slice of the SIM module with high priority as a target network corresponding to the first application; or
And determining the network slice of the SIM module with high priority as a target network corresponding to the first application based on the application attribute of the first application.
18. The network selection method of any of claims 10 to 17, wherein the priority of the SIM module is determined by:
responding to the selection operation of a user on SIM module management options under the set application, displaying a first interface, displaying the first option on the first interface, responding to the selection operation of the user on the first option, displaying a second interface, and displaying at least one application of network service corresponding to a second SIM module on the second interface, wherein the at least one application comprises the first application;
the electronic equipment receives the selection operation of the user on the first application, responds to the selection operation on the first application, and sets the priority of the second SIM module to be high.
19. A method of network selection according to any of claims 10 to 17, wherein the priority of the SIM module is determined by:
respectively acquiring residual free traffic corresponding to data traffic free services subscribed by the first SIM module and the second SIM module;
determining that the priority of the SIM module with more residual free traffic in the data traffic free service subscribed by the first SIM module and the second SIM module is high.
20. A method of network selection according to any of claims 10 to 17, wherein the priority of the SIM module is determined by:
respectively acquiring network quality parameters of the established network connection of the first SIM module and the second SIM module;
if the network quality parameters of the established network connections of the first SIM module and the second SIM module are the same, the priority of the SIM module which is set as a main SIM module in the first SIM module and the second SIM module is high;
if the network quality parameters of the established network connections of the first SIM module and the second SIM module are different, the SIM module with the high network quality parameters of the established network connections in the first SIM module and the second SIM module has a high priority.
21. A method of network selection according to any of claims 10 to 17, wherein the priority of the SIM module is determined by:
and acquiring the time and the place of the electronic equipment when the first application is started, and acquiring a commonly used SIM module of the time and the place from the historical use data of the electronic equipment as an SIM module with high priority.
22. The method according to any one of claims 1 to 17, wherein at least a second application is further installed in the electronic device, and when the first application is started and then transmits service data through a target network corresponding to the first application, if the electronic device detects that the second application is started, the target network of the second application is determined based on the selection factor, and if the target network corresponding to the second application is different from the target network corresponding to the first application, the first application and the second application respectively perform service data transmission through their corresponding target networks.
23. The method of any one of claims 7 to 17, wherein the establishing a network connection corresponding to the target network and transmitting service data for the first application through the network connection corresponding to the target network includes:
based on the selection operation of a user on the SIM module management option under the setting application, the electronic equipment displays a third interface, wherein the third interface comprises a first button;
and the electronic equipment receives the selection operation of the user on the first button, responds to the selection operation of the first button, starts the function of automatically switching the SIM module, and automatically switches to the second SIM module to establish network connection corresponding to the target network based on the function of automatically switching the SIM module if the target network corresponds to the second SIM module after the target network is determined.
24. The network selection method of claim 23, wherein when automatically switching to the SIM module corresponding to the target network to establish the network connection corresponding to the target network, the electronic device displays a first prompt interface, and the first prompt interface prompts: the first application has automatically used the second SIM module to surf the internet.
25. The network selection method according to any one of claims 1 to 17, wherein when transmitting the service data for the first application through the network connection corresponding to the target network, the network selection method further comprises:
monitoring network quality parameters of network connections corresponding to the target network, determining network quality parameters of other network connections established by the electronic device when the network quality parameters corresponding to the target network are lower than a set standard, and switching the first application to the established other network connections for service data transmission if the network quality parameters of the established other network connections are higher than the set standard.
26. The network selection method of claim 25, wherein if the target network corresponds to a second SIM module and the established other network corresponds to the first SIM module, when the network connection of the second SIM module is switched to the network connection of the first SIM module, the electronic device displays a second prompt interface, and the second prompt interface prompts: and the second SIM module has poor network, and the first application is switched to the first SIM module to surf the internet.
27. A network selection method according to any one of claims 1 to 17, wherein the network selection method further comprises:
acquiring the time and place information of the electronic equipment, acquiring the application with higher starting frequency corresponding to the time and place information of the electronic equipment from the historical use data of the electronic equipment, determining a target network corresponding to the application with higher starting frequency based on the selection factor, establishing network connection corresponding to the target network when determining that the network connection is not established in the target network corresponding to the application with higher starting frequency, and directly utilizing the network connection corresponding to the target network to provide data service for the first application when detecting that the first application is started and if the first application is the same as the application with higher starting frequency.
28. A computer readable storage medium comprising computer instructions which, when run on an electronic device, cause the electronic device to perform the network selection method of any one of claims 1 to 27.
29. An electronic device configured with at least one SIM module, at least a first application being installed in the electronic device, characterized in that the electronic device comprises a processor and a memory, the memory being configured to store instructions, the processor being configured to invoke the instructions in the memory, so that the electronic device performs the network selection method of any one of claims 1 to 27.
CN202010112661.9A 2020-02-24 2020-02-24 Network selection method and electronic equipment Active CN113301586B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010112661.9A CN113301586B (en) 2020-02-24 2020-02-24 Network selection method and electronic equipment
PCT/CN2020/136348 WO2021169497A1 (en) 2020-02-24 2020-12-15 Network selection method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010112661.9A CN113301586B (en) 2020-02-24 2020-02-24 Network selection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113301586A CN113301586A (en) 2021-08-24
CN113301586B true CN113301586B (en) 2023-04-18

Family

ID=77317717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010112661.9A Active CN113301586B (en) 2020-02-24 2020-02-24 Network selection method and electronic equipment

Country Status (2)

Country Link
CN (1) CN113301586B (en)
WO (1) WO2021169497A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112566218B (en) * 2020-12-01 2021-10-26 中兴通讯股份有限公司 SIM card selection method, device, terminal and storage medium
CN114158104B (en) * 2021-12-15 2023-09-22 天翼电信终端有限公司 Network selection method, device, terminal and storage medium
CN115086406B (en) * 2022-06-13 2024-03-01 中国银行股份有限公司 Transaction service continuity guaranteeing method and device
CN115396316A (en) * 2022-08-22 2022-11-25 维沃移动通信有限公司 Service processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106332307A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Method for application program access to network and mobile terminal
CN108632945A (en) * 2017-03-20 2018-10-09 华为技术有限公司 A kind of network slice selection method, user equipment and the network equipment
CN110198555A (en) * 2019-05-21 2019-09-03 中国联合网络通信集团有限公司 A kind of configuration method and device of network slice

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505524B (en) * 2008-02-05 2011-11-16 华为技术有限公司 Method and apparatus for selecting network by user equipment
CN106550410B (en) * 2015-09-17 2020-07-07 华为技术有限公司 Communication control method, controller, user equipment and related device
CN107040481A (en) * 2016-02-04 2017-08-11 中兴通讯股份有限公司 A kind of network section system of selection, strategy-generating method and network node
US11122439B2 (en) * 2016-02-16 2021-09-14 Idac Holdings, Inc. Network slicing operation
CN107318113B (en) * 2016-04-27 2021-09-21 华为技术有限公司 Network slice processing method and device
CN109891832B (en) * 2016-06-15 2022-12-06 交互数字专利控股公司 Network slice discovery and selection
CN106851589B (en) * 2016-12-30 2019-02-19 北京小米移动软件有限公司 Wireless network access method, apparatus and system
EP3780676A4 (en) * 2018-05-14 2021-02-17 Huawei Technologies Co., Ltd. Method for automatically switching sim cards, and electronic apparatus
CN110621045B (en) * 2018-06-20 2022-05-13 华为云计算技术有限公司 Method for service routing of Internet of things

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106332307A (en) * 2015-07-03 2017-01-11 华为技术有限公司 Method for application program access to network and mobile terminal
CN108632945A (en) * 2017-03-20 2018-10-09 华为技术有限公司 A kind of network slice selection method, user equipment and the network equipment
CN110198555A (en) * 2019-05-21 2019-09-03 中国联合网络通信集团有限公司 A kind of configuration method and device of network slice

Also Published As

Publication number Publication date
WO2021169497A1 (en) 2021-09-02
CN113301586A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN113301586B (en) Network selection method and electronic equipment
CN107493597B (en) Method, device and system for reducing power consumption of mobile terminal
CN108632930B (en) Network searching control method and device and mobile terminal
JP6329259B2 (en) Method and apparatus for selecting information push destination terminal
EP2649859B1 (en) Automatically enabling wireless communication
CN110771222B (en) Paging configuration method, device, communication equipment and storage medium
CN111294884A (en) Communication terminal supporting dual-card dual-standby single-pass and data service switching method
WO2021185063A1 (en) Network access method, electronic device, and chip
US20210392578A1 (en) Timer adjustment method and device
EP3706462A1 (en) Method and apparatus for improving network performance
CN113660653B (en) Transmission method and device and electronic equipment
CN114731676A (en) Application method and device of downlink initial BWP, network equipment, terminal and storage medium
CN110337825A (en) Business switch method and device
CN112004252A (en) Terminal communication method and device, terminal and storage medium
US20230180126A1 (en) Methods, and apparatuses for controlling terminal
JP2020053971A (en) Method and apparatus for selecting information pushing terminal
WO2023050350A1 (en) Determination method and apparatus for cfr, and communication device and storage medium
CN112566262B (en) Data processing method and device, communication equipment and storage medium
US20230300722A1 (en) Information transmission method and apparatus
JP6606216B2 (en) Method and terminal for selecting information push destination terminal
US20240040425A1 (en) Data transmission method and apparatus, terminal device, network-side device and chip
CN110662280B (en) Method and device for switching operation modes, readable storage medium and electronic equipment
WO2022205046A1 (en) Information transmission method and apparatus, communication device, and storage medium
WO2022082777A1 (en) Information reporting method and apparatus, and storage medium
CN116724500A (en) Information processing method, system and device, communication equipment and storage medium

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