CN110856162A - Network configuration method and related device - Google Patents
Network configuration method and related device Download PDFInfo
- Publication number
- CN110856162A CN110856162A CN201911136881.9A CN201911136881A CN110856162A CN 110856162 A CN110856162 A CN 110856162A CN 201911136881 A CN201911136881 A CN 201911136881A CN 110856162 A CN110856162 A CN 110856162A
- Authority
- CN
- China
- Prior art keywords
- base station
- sim card
- data transmission
- transmission task
- network
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/183—Processing at user equipment or user record carrier
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/14—Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a network configuration method and a related device, wherein the method comprises the following steps: detecting whether a second service exists to trigger a second SIM card to carry out access of a second network in the process that the terminal carries out the first service through the first SIM card; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. By implementing the embodiment of the application, the terminal can realize the function of executing the service by two SIM cards in parallel, and the data processing efficiency of the terminal is improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a network configuration method and a related apparatus.
Background
With the advancement of mobile communication technology, a terminal device may set two SIM cards, including, for example, card 1 and card 2; at present, when the card 1 is a main card for surfing the internet and is connected with a data network, the data network of the card 1 is interrupted due to the fact that the card 2 calls, and therefore a user cannot surf the internet continuously while calling and answering the call, and user experience is affected.
Disclosure of Invention
The embodiment of the application provides a network configuration method and a related device, which are beneficial to realizing the function that a terminal executes services in parallel through two SIM cards, and the data processing efficiency of the terminal is improved.
In a first aspect, an embodiment of the present application provides a network configuration method, which is applied to a terminal, where the terminal includes a first SIM card and a second SIM card, and the first SIM card is accessed to a first network, and the method includes:
detecting whether a second service exists to trigger the second SIM card to access a second network in the process that the terminal carries out a first service through the first SIM card; if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network; judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access the second network to execute the second service, wherein the third base station does not include a base station with the same type as the second base station.
In a second aspect, an embodiment of the present application provides a network configuration apparatus, which is applied to a terminal, where the terminal includes a first SIM card and a second SIM card, the first SIM card is accessed into a first network, the network configuration apparatus includes a processing unit and a communication unit, where,
the processing unit is configured to detect, by the communication unit, whether a second service exists to trigger the second SIM card to perform access to a second network in a process that the terminal performs the first service through the first SIM card; if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network; the base station is used for judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed; and if so, adjusting the first base station to which the first SIM card is currently in communication connection to be a third base station, and controlling the second SIM card to access the second network through the communication unit to execute the second service, where the third base station does not include a base station of the same type as the second base station.
In a third aspect, an embodiment of the present application provides a terminal, including a controller, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the controller, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods of the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 2A is a schematic flowchart of a network configuration method according to an embodiment of the present application;
fig. 2B is a schematic structural diagram of a 5G NR network in which a terminal is connected to an SA networking mode according to an embodiment of the present application;
fig. 2C is an architectural diagram of a 5G NR network in which a terminal is connected to an NSA networking mode according to an embodiment of the present application;
fig. 2D is an architectural diagram of another 5G NR network with a terminal connected to an NSA networking mode according to an embodiment of the present application;
fig. 2E is a schematic structural diagram of another 5G NR network with a terminal connected to an NSA networking mode according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another network configuration method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another network configuration method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 6 is a block diagram of functional units of a network configuration apparatus according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The following describes embodiments of the present application in detail.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure, where the terminal includes a processor, a Memory, a signal processor, a communication interface, a touch screen, a WiFi module, a speaker, a microphone, a first SIM card, a second SIM card, a Random Access Memory (RAM), a camera, and the like.
The storage, the signal processor, the WiFi module, the touch screen, the loudspeaker, the microphone, the first SIM card, the second SIM card, the RAM and the camera are connected with the processor, and the communication interface is connected with the signal processor.
Optionally, the first SIM card supports connection with a 5G NR network and a 4G/3G/2G network, and the second SIM card supports connection with a 4G/3G/2G network.
Different network configuration modes are stored in the memory, and the terminal calls the different network configuration modes in the memory according to the service conditions executed by the first SIM card and the second SIM card so that the first SIM card and the second SIM card are connected with different access networks to execute different services.
Among other things, a terminal may include various handheld devices, vehicle-mounted devices, wearable devices (e.g., smartwatches, smartbands, pedometers, etc.), computing devices or other processing devices connected to a wireless modem, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and so on, having wireless communication functions. For convenience of description, the above-mentioned devices are collectively referred to as a terminal.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a network configuration method provided in an embodiment of the present application, and the method is applied to a terminal, where the terminal includes a first SIM card and a second SIM card, and the first SIM card is accessed to a first network. As shown in the figure, the network configuration method includes:
step 201, the terminal detects whether a second service exists to trigger a second SIM card to perform access to a second network during a process of performing a first service through the first SIM card.
The first SIM card is a main network card of the terminal, the terminal is connected with the Internet through the first SIM card, and the first service comprises data downloading and/or data uploading from the Internet. The second service comprises answering the call, dialing the call, receiving and sending short messages and multimedia messages.
When the first SIM card is accessed into the first network, the first network can be accessed through different base stations. For example, the network accessed by the first SIM card is a core network of the nth generation mobile communication technology, and in a specific access process, the terminal may access the core network of the nth generation mobile communication technology through a base station of the nth generation mobile communication technology and a base station of the mth generation mobile communication technology, N, M is a positive integer.
Specifically, the first network may be a 5G NR network, where the 5G NR network refers to a fifth generation mobile communication technology (5GNew Radio, 5G NR) and includes two networking modes, namely Non-independent Networking (NSA) and independent networking (SA).
Step 202, if yes, the terminal acquires a first base station in the first network, which is currently in communication connection with the first SIM card.
Wherein, in case that the first network is a 5G NR network, the communicatively connected first base station includes the following three cases: the 5G base station, the 4G base station and the 5G base station are in parallel, and the three modes are adopted.
If the terminal is connected to the 5G NR network in the SA networking mode, the first base station only includes the 5G base station, specifically, please refer to fig. 2B, where fig. 2B is a schematic diagram of an architecture of the 5G NR network in the SA networking mode connected to the terminal, and an access network type of the terminal in the diagram is a 5G access network type.
If the terminal is connected to the 5G NR network in the NSA networking mode, please refer to fig. 2C, where fig. 2C is a schematic structural diagram of the 5G NR network in which the terminal is connected to the NSA networking mode, as shown in the figure, the terminal is communicatively connected to the 5G base station to form a 5G access network; the 5G base station is in communication connection with the 4G base station; the 5G base station is in communication connection with the 5G core network/4G core network, or the 4G base station is in communication connection with the 5G core network/4G core network, or the 5G base station and the 4G base station are in communication connection with the 5G core network/4G core network at the same time (the dotted line in the figure indicates an optional connection state, specifically, the core network is in communication connection with at least one of the 5G base station and the 4G base station).
Referring to fig. 2D, fig. 2D is another schematic diagram of a 5G NR network in which a terminal is connected to an NSA networking mode, where as shown, the terminal is communicatively connected to a 4G base station to form a 4G access network; the 4G base station is in communication connection with the 5G base station; the 4G base station is in communication connection with a 5G core network/4G core network, or the 5G base station is in communication connection with the 5G core network/4G core network, or the 5G base station and the 4G base station are in communication connection with the 5G core network/4G core network at the same time (the dotted line in the figure indicates an optional connection state, specifically, the core network is in communication connection with at least one of the 5G base station and the 4G base station).
Referring to fig. 2E, fig. 2E is another schematic diagram of a 5G NR network in which a terminal is connected to an NSA networking mode, where as shown in the figure, the terminal is communicatively connected to a 4G base station and a 5G base station to form a offloading mode; the 4G base station is in communication connection with the 5G base station; the 4G base station is in communication connection with a 5G core network/4G core network, or the 5G base station is in communication connection with the 5G core network/4G core network, or the 5G base station and the 4G base station are in communication connection with the 5G core network/4G core network at the same time (the dotted line in the figure indicates an optional connection state, specifically, the core network is in communication connection with at least one of the 5G base station and the 4G base station).
In step 203, the terminal determines whether the first base station includes a base station of the same type as a second base station to which the second SIM card is to be accessed.
Wherein, in case of a 5G NR network as the first network, the second network may be a 4G network.
And the second base station is determined according to a second network to which the second SIM card needs to be accessed. The specific determination mode may be preset and adjusted according to the actual network environment terminal. For example, a 2G/3G/4G network corresponds to a 2G/3G/4G base station, respectively, and a 5G network may be a 4G/5G base station (the 5G network includes an NSA networking mode and an SA networking mode); when accessing a 5G network, the terminal needs to flexibly adjust a specific corresponding base station. In the case of a 4G network when the second network is the 4G base station.
Specifically, if the terminal is connected to a 5G NR network in an SA networking mode, as shown in fig. 2B, the first SIM card is communicatively connected to a 5G base station, the first base station is a 5G base station, when the second SIM card requests to access a 4G network, the second SIM card needs to be communicatively connected to a 4G base station, and the second base station is a 4G base station, so that the first base station does not include a base station with the same type as the second base station.
Specifically, as shown in fig. 2C, the terminal is connected to a 5G NR network in an NSA networking mode, the first SIM card is connected to a 5G base station, the first base station is the 5G base station, when the second SIM card requests to access the 4G network, the second SIM card needs to be in communication connection with the 4G base station, and the second base station is the 4G base station; thus, as in the case shown in fig. 2C, the first base station therefore does not include a base station of the same type as the second base station.
Specifically, as shown in fig. 2D, the terminal is connected to a 5G NR network in an NSA networking mode, the first SIM card is communicatively connected to a 4G base station, the first base station is a 4G base station, when the second SIM card requests to access the 4G network, the second SIM card needs to be communicatively connected to the 4G base station, and the second base station is a 4G base station, so that the first base station includes base stations with the same type as the second base station.
Specifically, as shown in fig. 2E, the first SIM card is communicatively connected to the 4G base station and the 5G base station at the same time, the first base station is the 4G base station and the 5G base station, when the second SIM card requests to access the 4G network, the second SIM card needs to be communicatively connected to the 4G base station, and the second base station is the 4G base station, so that the first base station includes base stations with the same type as the second base station.
And 204, if so, the terminal adjusts the first base station to which the first SIM card is currently in communication connection as a third base station, and controls the second SIM card to access the second network to execute the second service.
Wherein the third base station does not include a base station of the same type as the second base station. In the case of a 5G NR network as the first network, the third base station is a 5G base station.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
In one possible example, after determining whether a base station of the same type as a second base station to which a second SIM card is to be accessed is included in a first base station, before adjusting the first base station to which the first SIM card is currently connected to a third base station, the method further includes: determining at least one data transmission task transmitted through a second base station in the first service; determining a data packet currently transmitted by each data transmission task in at least one data transmission task; and detecting that the data packet currently transmitted by each data transmission task is completely transmitted.
The first service may include a plurality of data transmission tasks of a plurality of application programs operated by the current terminal, such as uploading files, downloading files, playing videos and audios on line, and transmitting game data. In the process of data transmission, each data transmission task transmits data in the form of data packets, at least one data packet of data is transmitted in a single transmission process, and the data packets are the minimum transmission unit of the access network.
Specifically, in this example, before adjusting the base station to which the first SIM card is communicatively connected to the third base station, the terminal first determines that transmission of a currently transmitted data packet in at least one current data transmission task is completed, and then performs an operation for each data transmission task according to the second access network configuration mode.
In this example, it can be seen that, when determining that the first base station to which the current communication connection of the first SIM card needs to be adjusted is the third base station, the terminal first determines that the data packet transmission of each data transmission task is completed, and then performs an operation of adjusting the access network configuration mode, thereby avoiding a situation that information is lost due to incomplete data packet transmission caused by directly adjusting the base station to which the communication connection is connected in the transmission process.
In one possible example, the terminal adjusts the first base station to which the first SIM card is currently connected as a third base station, including: determining at least one data transmission task transmitted through a second base station in the first service; determining the priority of each data transmission task in at least one data transmission task; transferring the data transmission task of which the priority is the first preset priority in at least one data transmission task to the third base station for transmission; suspending a data transmission task of which the priority is a second preset priority in at least one data transmission task, wherein the first preset priority is higher than the second preset priority; and terminating the data transmission task of which the priority is the third preset priority in the at least one data transmission task, wherein the second preset priority is higher than the third preset priority.
Optionally, the priority of the data transmission task may be manually set according to a user, for example, the user may determine the application programs corresponding to the first preset priority, the second preset priority, and the third preset priority according to personal intention. The priority corresponding to the application program to which the data transmission task belongs and the priority of the data transmission task. For example, if the priority of the first application program is a first preset priority, the priority corresponding to the first data transmission task currently executed in the first application program is the first preset priority.
Optionally, the priority may be determined according to a usage duration within a preset duration before the current time point. Specifically, the terminal determines a first number of currently running application programs, detects a currently running main program and an application program currently displayed on a screen, and determines that the priority of a data transmission task executed by the currently running main program is a first preset priority. Determining a second number of application programs except the main program in the first number of application programs, determining the running time of the second number of application programs in a preset time length before the current time point, determining the priority of the application programs according to the running time of the application programs, and further determining the priority of the data transmission task. For example, the preset duration before the current time point is one week, the number of the applications operated by the current terminal is 10, the terminal determines a main program firstly, the priority of a data transmission task executed by the main program is a first preset priority, secondly, the terminal determines the operation durations of 9 applications except the main program in one week before the current time point, the priority of the application with the operation duration being greater than the first duration among the 9 applications is determined as the first preset priority, the priority of the application with the operation duration being less than the first duration and greater than the second duration among the 9 applications is determined as the second preset priority, wherein the first duration is greater than the second duration; the priority of the application program with the use time length less than the second time length in the 9 application programs is a third preset priority; the priority of the application program to which the data transmission task belongs and the priority of the data transmission task.
Therefore, in this example, the terminal performs, for the data transmission tasks of different priorities, the operation of transferring the transmission by the base station, pausing the operation and terminating the operation, so as to implement reasonable configuration of resources and improve the data processing efficiency of the terminal.
In one possible example, the first base station that adjusts the current communication connection of the first SIM card is a third base station, including: determining a data transmission task to be executed in a first service and a task type of the data transmission task to be executed; determining the timeliness of a data transmission task to be executed according to the task type; determining a transmission strategy of a data transmission task to be executed according to timeliness, wherein the transmission strategy comprises the steps of suspending the data transmission task or executing the data transmission task through the third base station or terminating the data transmission task; and executing the data transmission operation according to the transmission strategy of the data transmission task to be executed.
The data transmission task to be executed refers to a data transmission task to be executed by the second base station in the first service. Specifically, in the case of a 5G NR network as the first network, the data transmission task to be performed refers to a data transmission task to be performed by a 4G base station in the first service
The task types comprise downloading files, uploading files, acquiring information, navigating in real time, uploading and downloading game data, communicating information, acquiring web pages and the like. The terminal firstly determines whether an application program to which a data transmission task to be executed belongs is a main program (and a program displayed by a current display screen), and if so, the timeliness of the data transmission task to be executed is high; secondly, the terminal judges the task type of the data transmission task to be executed belonging to the non-main program and determines the corresponding timeliness according to the task type, specifically, the terminal can preset the timeliness of each task type, for example, real-time navigation, uploading and downloading of game data, high timeliness of communication information, file downloading, file uploading, information acquisition and low timeliness of webpage acquisition. And the terminal transfers the data transmission task with high timeliness to the 5G base station to continue execution, and suspends or terminates the data transmission task with low timeliness. Further, the terminal can judge suspension or termination of the data transmission task according to the network condition of the 5G base station, suspend the low-timeliness data transmission task when the network condition meets the preset condition (the network condition of the 5G base station can be good), and transfer the suspended low-timeliness data transmission task to the 5G access network for transmission when detecting that the high-timeliness data transmission task is completed; and when the network condition does not meet the preset condition (the network condition of the 5G base station can be poor), terminating the data transmission task with low timeliness.
Therefore, in this example, the terminal may execute different operations for the data transmission task according to timeliness of the data transmission task, so as to quickly ensure transmission of necessary information when the second SIM card is accessed to the second network, implement parallel processing of services, and improve efficiency of data processing of the terminal.
In one possible example, the first base station that adjusts the current communication connection of the first SIM card is a third base station, including: determining at least one data transmission task transmitted through a second base station in the first service; transferring at least one data transmission task to the third base station for transmission; or, terminating at least one data transmission task; alternatively, at least one data transfer task is suspended.
Therefore, in this example, the terminal performs operations of transferring, suspending and terminating for the data transmission task to meet the requirement of the second SIM card for network access, so that the flexibility of processing data by the terminal is improved, and the efficiency of processing data is improved.
In one possible example, after determining whether the first base station includes a base station of the same type as a second base station to which the second SIM card is to be accessed, the method further includes: if not, the second SIM card is accessed into the second network to execute the second service.
In this example, when the terminal determines that the first base station does not include the second base station, the second SIM card accesses the second network through the second base station to execute the second service, so that the parallel execution of the first service and the second service is realized, and the efficiency of data processing is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a network configuration method provided in an embodiment of the present application, and the method is applied to a terminal, where the terminal includes a first SIM card and a second SIM card, and the first SIM card is accessed to a first network. As shown in the figure, the network configuration method includes:
In step 305, the terminal determines the priority of each data transmission task in at least one data transmission task.
And 308, the terminal terminates the data transmission task of which the priority is the third preset priority in the at least one data transmission task, wherein the second preset priority is higher than the third preset priority.
In step 309, the terminal accesses the second network to execute the second service.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
Referring to fig. 4, fig. 4 is a schematic flowchart of a network configuration method provided in an embodiment of the present application, and the method is applied to a terminal, where the terminal includes a first SIM card and a second SIM card, and the first SIM card is accessed to a first network. As shown in the figure, the network configuration method includes:
step 401, during the process of performing the first service through the first SIM card, the terminal detects whether a second service exists to trigger a second SIM card to perform access to a second network.
In step 405, the terminal determines a data packet currently transmitted by each data transmission task in at least one data transmission task.
In step 406, the terminal detects that the currently transmitted data packet of each data transmission task is completely transmitted.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
Consistent with the embodiments shown in fig. 2A, fig. 3, and fig. 4, please refer to fig. 5, and fig. 5 is a schematic structural diagram of a terminal 500 according to an embodiment of the present application, as shown in the figure, the terminal 500 includes an application processor 510, a memory 520, a communication interface 530, and one or more programs 521, where the one or more programs 521 are stored in the memory 520 and configured to be executed by the application processor 510, and the one or more programs 521 include instructions for:
detecting whether a second service exists to trigger the second SIM card to access a second network in the process that the terminal carries out a first service through the first SIM card;
if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network;
judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed;
if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access the second network to execute the second service, wherein the third base station does not include a base station with the same type as the second base station.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
In a possible example, after the determining whether the first base station includes a base station of the same type as the second base station to which the second SIM card is to be accessed, and before the first base station to which the first SIM card is currently connected is adjusted to be a third base station, the instructions in the program are specifically configured to perform the following operations: determining at least one data transmission task transmitted by the second base station in the first service; determining a data packet currently transmitted by each data transmission task in the at least one data transmission task; and detecting that the data packet currently transmitted by each data transmission task is completely transmitted.
In one possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the instructions in the program are specifically configured to perform the following operations: determining at least one data transmission task transmitted by the second base station in the first service; determining a priority of each data transmission task in the at least one data transmission task; transferring the data transmission task of which the priority is the first preset priority in the at least one data transmission task to the third base station for transmission; suspending a data transmission task of which the priority is a second preset priority in the at least one data transmission task, wherein the first preset priority is higher than the second preset priority; and terminating the data transmission task of which the priority is a third preset priority in the at least one data transmission task, wherein the second preset priority is higher than the third preset priority.
In one possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the instructions in the program are specifically configured to perform the following operations: determining at least one data transmission task transmitted through an access network type of the second network in the first service; determining a data transmission task to be executed in the first service and a task type of the data transmission task to be executed; determining the timeliness of the data transmission task to be executed according to the task type; determining a transmission strategy of the data transmission task to be executed according to the timeliness, wherein the transmission strategy comprises the steps of suspending the data transmission task or executing the data transmission task through the third base station or terminating the data transmission task; and executing data transmission operation according to the transmission strategy of the data transmission task to be executed.
In one possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the instructions in the program are specifically configured to perform the following operations: determining at least one data transmission task transmitted by the second base station in the first service; transferring the at least one data transmission task to the third base station for transmission; or, terminating the at least one data transmission task; alternatively, the at least one data transfer task is suspended.
In a possible example, after the determining whether the first base station includes a base station of the same type as the second base station to which the second SIM card is to be accessed, the instructions in the program are specifically configured to perform the following operations: and if not, the second SIM card is accessed into the second network to execute the second service.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art would readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one control 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. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 6 is a block diagram of functional units of a network configuration apparatus 600 according to an embodiment of the present application. The network configuration apparatus 600 is applied to a terminal, the terminal includes a first SIM card and a second SIM card, the first SIM card is accessed to a first network, the network configuration apparatus 600 includes a processing unit 601 and a communication unit 602, where:
the processing unit 601 is configured to detect, through the communication unit 602, whether a second service exists to trigger the second SIM card to perform access to a second network in a process that the terminal performs the first service through the first SIM card; if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network; the base station is used for judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed; and if so, adjusting the first base station to which the first SIM card is currently in communication connection to be a third base station, and controlling the second SIM card to access the second network through the communication unit 602 to execute the second service, where the third base station does not include a base station of the same type as the second base station.
The network configuration apparatus 600 may further include a storage unit 603, where the storage unit 603 is configured to store program codes and data of an electronic device. The processing unit 601 may be a processor, the communication unit 602 may be a touch display screen or a transceiver, and the storage unit 603 may be a memory.
It can be seen that, in the embodiment of the present application, in the process that the terminal performs the first service through the first SIM card, it is detected whether the second service exists to trigger the second SIM card to perform the access of the second network; if so, acquiring a first base station which is in communication connection with a first SIM card in a first network; judging whether the first base station comprises a base station with the same type as a second base station to which a second SIM card is to be accessed; if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access a second network to execute a second service, wherein the third base station does not include a base station with the same type as the second base station. Therefore, in the embodiment of the application, when the terminal detects that the second SIM card needs to access the network, the base station in communication connection with the first SIM card is adjusted, so as to avoid conflict when the first SIM card and the second SIM card execute services, implement parallel execution of the first service and the second service, and improve the data processing efficiency of the terminal.
In a possible example, after the determining whether the first base station includes a base station of the same type as the second base station to which the second SIM card is to be accessed, and before the first base station to which the first SIM card is currently connected is adjusted to be a third base station, the processing unit 601 is specifically configured to: determining at least one data transmission task transmitted by the second base station in the first service; determining a data packet currently transmitted by each data transmission task in the at least one data transmission task; and detecting that the data packet currently transmitted by each data transmission task is completely transmitted.
In a possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the processing unit 601 is specifically configured to: determining at least one data transmission task transmitted by the second base station in the first service; determining a priority of each data transmission task in the at least one data transmission task; transferring the data transmission task of which the priority is the first preset priority in the at least one data transmission task to the third base station for transmission; suspending a data transmission task of which the priority is a second preset priority in the at least one data transmission task, wherein the first preset priority is higher than the second preset priority; and terminating the data transmission task of which the priority is a third preset priority in the at least one data transmission task, wherein the second preset priority is higher than the third preset priority.
In a possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the processing unit 601 is specifically configured to: determining at least one data transmission task transmitted through an access network type of the second network in the first service; determining a data transmission task to be executed in the first service and a task type of the data transmission task to be executed; determining the timeliness of the data transmission task to be executed according to the task type; determining a transmission strategy of the data transmission task to be executed according to the timeliness, wherein the transmission strategy comprises the steps of suspending the data transmission task or executing the data transmission task through the third base station or terminating the data transmission task; and executing data transmission operation according to the transmission strategy of the data transmission task to be executed.
In a possible example, in terms of the adjusting the first base station to which the first SIM card is currently connected to be a third base station, the processing unit 601 is specifically configured to: determining at least one data transmission task transmitted by the second base station in the first service; transferring the at least one data transmission task to the third base station for transmission; or, terminating the at least one data transmission task; alternatively, the at least one data transfer task is suspended.
In a possible example, after the determining whether the first base station includes a base station of the same type as the second base station to which the second SIM card is to be accessed, the processing unit 601 is specifically configured to: and if not, the second SIM card is accessed into the second network to execute the second service.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, 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 of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. 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, each functional unit in the embodiments of the present application may be integrated into one control 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 may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (10)
1. A network configuration method is applied to a terminal, wherein the terminal comprises a first SIM card and a second SIM card, and the first SIM card is accessed into a first network, and the method comprises the following steps:
detecting whether a second service exists to trigger the second SIM card to access a second network in the process that the terminal carries out a first service through the first SIM card;
if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network;
judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed;
if so, adjusting the first base station of the current communication connection of the first SIM card to be a third base station, and controlling the second SIM card to access the second network to execute the second service, wherein the third base station does not include a base station with the same type as the second base station.
2. The method according to claim 1, wherein after determining whether the first base station includes a base station of the same type as a second base station to which the second SIM card is to be accessed, and before adjusting the first base station to which the first SIM card is currently connected to a third base station, the method further comprises:
determining at least one data transmission task transmitted by the second base station in the first service;
determining a data packet currently transmitted by each data transmission task in the at least one data transmission task;
and detecting that the data packet currently transmitted by each data transmission task is completely transmitted.
3. The method according to claim 1 or 2, wherein the adjusting the first base station to which the first SIM card is currently connected is a third base station, and comprises:
determining at least one data transmission task transmitted by the second base station in the first service;
determining a priority of each data transmission task in the at least one data transmission task;
transferring the data transmission task of which the priority is the first preset priority in the at least one data transmission task to the third base station for transmission;
suspending a data transmission task of which the priority is a second preset priority in the at least one data transmission task, wherein the first preset priority is higher than the second preset priority;
and terminating the data transmission task of which the priority is a third preset priority in the at least one data transmission task, wherein the second preset priority is higher than the third preset priority.
4. The method according to claim 1 or 2, wherein the adjusting the first base station to which the first SIM card is currently connected is a third base station, and comprises:
determining a data transmission task to be executed in the first service and a task type of the data transmission task to be executed;
determining the timeliness of the data transmission task to be executed according to the task type;
determining a transmission strategy of the data transmission task to be executed according to the timeliness, wherein the transmission strategy comprises the steps of suspending the data transmission task or executing the data transmission task through the third base station or terminating the data transmission task;
and executing data transmission operation according to the transmission strategy of the data transmission task to be executed.
5. The method according to claim 1 or 2, wherein the adjusting the first base station to which the first SIM card is currently connected is a third base station, and comprises:
determining at least one data transmission task transmitted by the second base station in the first service;
transferring the at least one data transmission task to the third base station for transmission;
or, terminating the at least one data transmission task;
alternatively, the at least one data transfer task is suspended.
6. The method according to any one of claims 1 to 5, wherein after determining whether the first base station includes a base station of the same type as a second base station to which the second SIM card is to be accessed, the method further comprises:
and if not, the second SIM card is accessed into the second network to execute the second service.
7. Network configuration device, applied to a terminal comprising a first SIM card and a second SIM card, the first SIM card being accessed to a first network, comprising a processing unit and a communication unit, wherein,
the processing unit is configured to detect, by the communication unit, whether a second service exists to trigger the second SIM card to perform access to a second network in a process that the terminal performs the first service through the first SIM card; if so, acquiring a first base station which is in communication connection with the first SIM card currently in the first network; the base station is used for judging whether the first base station comprises a base station with the same type as a second base station to which the second SIM card is to be accessed; and if so, adjusting the first base station to which the first SIM card is currently in communication connection to be a third base station, and controlling the second SIM card to access the second network through the communication unit to execute the second service, where the third base station does not include a base station of the same type as the second base station.
8. The apparatus according to claim 7, wherein after said determining whether the first base station includes a base station of a same type as a second base station to which the second SIM card is to be accessed, the apparatus further adjusts the first base station to which the first SIM card is currently connected to a third base station,
the processing unit is further configured to determine at least one data transmission task transmitted through the second base station in the first service; and the data packet determining module is used for determining the data packet currently transmitted by each data transmission task in the at least one data transmission task; and detecting that the data packet currently transmitted by each data transmission task is completely transmitted.
9. A terminal comprising a processor, memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
10. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911136881.9A CN110856162B (en) | 2019-11-19 | 2019-11-19 | Network configuration method and related device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911136881.9A CN110856162B (en) | 2019-11-19 | 2019-11-19 | Network configuration method and related device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110856162A true CN110856162A (en) | 2020-02-28 |
CN110856162B CN110856162B (en) | 2022-05-17 |
Family
ID=69602578
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911136881.9A Active CN110856162B (en) | 2019-11-19 | 2019-11-19 | Network configuration method and related device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110856162B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113078921A (en) * | 2021-03-01 | 2021-07-06 | 北京小米移动软件有限公司 | Data processing method, device and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036350A (en) * | 2009-09-25 | 2011-04-27 | 三星电子株式会社 | Protocol processing method for multi-sim terminal and apparatus for multi-sim terminal |
US20160380662A1 (en) * | 2015-06-26 | 2016-12-29 | At&T Intellectual Property I, L.P. | Wireless communication device |
-
2019
- 2019-11-19 CN CN201911136881.9A patent/CN110856162B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036350A (en) * | 2009-09-25 | 2011-04-27 | 三星电子株式会社 | Protocol processing method for multi-sim terminal and apparatus for multi-sim terminal |
US20160380662A1 (en) * | 2015-06-26 | 2016-12-29 | At&T Intellectual Property I, L.P. | Wireless communication device |
Non-Patent Citations (1)
Title |
---|
VIVO: "RP-191898 "Report of phase 1 Multi-SIM email discussion"", 《3GPP TSG_RAN\TSG_RAN》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113078921A (en) * | 2021-03-01 | 2021-07-06 | 北京小米移动软件有限公司 | Data processing method, device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110856162B (en) | 2022-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11432262B2 (en) | Communication method for implementing dual card, dual standby and dual pass connections in a terminal | |
US12041646B2 (en) | Packet offloading method, mobile terminal, and storage medium | |
CN109803325B (en) | Data distribution method and device, mobile terminal and storage medium | |
CN113316133B (en) | Communication method and terminal for realizing dual-card dual-standby dual-channel | |
CN110996376B (en) | Service data transmission method, device, storage medium and terminal | |
JP7048762B2 (en) | HARQ-ACK codebook determination method and terminal | |
CN110324859B (en) | Method for selecting transmission resource of sidelink, configuration method, terminal and network equipment | |
WO2017166839A1 (en) | Methods for configuring and sending preamble, and related devices | |
CN109274596B (en) | Data transmission method and related device | |
CN110049531B (en) | Network resource sharing method and related device | |
CN107041170B (en) | Data sending method, device and terminal | |
CN112997528B (en) | Network switching method and related equipment | |
JP6695980B2 (en) | Using network-assisted protocols to improve network utilization | |
CN105978582A (en) | Single-baseband dual-channel communication method and communication device | |
WO2023221794A1 (en) | Control method, communication device, and storage medium | |
CN105813226A (en) | Document transmission method and device | |
JP7322346B2 (en) | Resource setting method and equipment | |
CN109803454B (en) | Data transmission control method and related product | |
CN109587053B (en) | Network shunting method and related equipment | |
CN108990156B (en) | Wireless local area network communication method and terminal | |
CN110856162B (en) | Network configuration method and related device | |
CN109495931B (en) | Data transmission method for link aggregation and related device | |
CN111817830B (en) | Transmission and reception control method, terminal and network side equipment | |
CN112770107B (en) | Modification method of load bearing and related device | |
CN110945827B (en) | Method, device, communication equipment and storage medium for configuring downlink control information |
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 |