Automatic switching method and device of 5G network, storage medium and mobile terminal

文档序号:118409 发布日期:2021-10-19 浏览:36次 中文

阅读说明:本技术 一种5g网络的自动切换方法、装置、存储介质及移动终端 (Automatic switching method and device of 5G network, storage medium and mobile terminal ) 是由 聂谋荣 于 2021-04-19 设计创作,主要内容包括:本申请公开了一种5G网络的自动切换方法、装置、存储介质及移动终端,所述方法包括检测移动终端配置的第一SIM卡的第一信号数据是否满足预设条件;若所述第一信号数据未满足预设条件,则获取移动终端配置的第二SIM卡的第二信号数据;基于所述第一信号数据和所述第二信号数据,确定所述移动终端对应的目标SIM卡,并控制所述目标SIM卡连接5G网络。本实施例通过在第一SIM卡的第一信号数据不满足预设条件时,获取第二SIM卡的第二信号数据,并基于第一信号数据和第二信号数据来确定连接5G网络的SIM卡,从而实现了连接5G网络的SIM卡的自动切换,可以避免因使用5G网络上的SIM卡处于无5G覆盖或者覆盖区域信号质量差,而影响用户语音数据的使用的问题。(The application discloses an automatic switching method, an automatic switching device, a storage medium and a mobile terminal of a 5G network, wherein the method comprises the steps of detecting whether first signal data of a first SIM card configured by the mobile terminal meets a preset condition; if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained; and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network. In the embodiment, when the first signal data of the first SIM card does not satisfy the preset condition, the second signal data of the second SIM card is acquired, and the SIM card connected to the 5G network is determined based on the first signal data and the second signal data, so that the automatic switching of the SIM card connected to the 5G network is realized, and the problem that the use of the voice data of the user is affected because the SIM card on the 5G network is in a state without 5G coverage or the coverage area has poor signal quality can be avoided.)

1. An automatic switching method for a 5G network is applied to a mobile terminal configured with at least two SIM cards, and specifically comprises the following steps:

detecting whether first signal data of a first SIM card configured by a mobile terminal meets a preset condition, wherein the first SIM card is an SIM card connected with a 5G network in the mobile terminal;

if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained;

and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to connect a 5G network, wherein the target SIM card is a first SIM card or a second SIM card.

2. The method according to claim 1, wherein the first signal data includes a first download speed, and the detecting whether the first signal data of the first SIM card configured by the mobile terminal satisfies a preset condition specifically includes:

comparing the first download speed with a preset download speed threshold;

and if the first downloading speed is less than a preset downloading speed threshold value, judging that the first signal data does not meet a preset condition.

3. The automatic switching method of a 5G network according to claim 2, wherein the first signal data further includes signal strength, and the comparing the first download speed with a preset download speed threshold specifically includes:

comparing the signal strength with a preset signal strength threshold;

if the signal intensity is smaller than the preset signal intensity threshold, comparing the first downloading speed with a preset downloading speed threshold;

and if the signal intensity is greater than or equal to a preset signal intensity threshold value, keeping the first SIM card connected with the 5G network.

4. The automatic switching method of 5G network according to claim 1, wherein the first signal data comprises a first download speed, and the second signal data comprises a second download speed; the determining, based on the first signal data and the second signal data, a target SIM card corresponding to the mobile terminal specifically includes:

comparing the first download speed with the second download speed;

if the first downloading speed is greater than or equal to the second downloading speed, taking the first SIM as a target SIM card corresponding to the mobile terminal;

and if the first downloading speed is lower than the second downloading speed, taking the second SIM card as a target SIM card corresponding to the mobile terminal.

5. The method according to claim 1, wherein the obtaining second signal data of a second SIM card configured by the mobile terminal if the first signal data does not satisfy a preset condition specifically comprises:

if the first signal data does not meet the preset conditions, triggering a second SIM card configured by the mobile terminal to search for a 5G network;

and if the second SIM card searches the 5G network, acquiring second signal data of the second SIM card.

6. The method of automatic switching of a 5G network according to claim 5, further comprising:

and if the second SIM card does not search the 5G network, keeping the first SIM card connected with the 5G network.

7. The method according to claim 5, wherein if the first signal data does not satisfy a preset condition, the triggering the second SIM card configured by the mobile terminal to search for the 5G network specifically comprises:

and if the first signal data do not meet the preset conditions, switching the 5G network function to a second SIM card through a mobile terminal background, and triggering the second SIM card to search for the 5G network.

8. An automatic switching device of a 5G network, characterized in that the automatic switching device comprises:

the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether first signal data of a first SIM card configured by the mobile terminal meets a preset condition, wherein the first SIM card is an SIM card connected with a 5G network in the mobile terminal;

the acquisition module is used for acquiring second signal data of a second SIM card configured by the mobile terminal when the first signal data does not meet a preset condition;

and the determining module is used for determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network, wherein the target SIM card is a first SIM card or a second SIM card.

9. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the method for automatic handover of a 5G network according to any one of claims 1-7.

10. A mobile terminal, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;

the communication bus realizes connection communication between the processor and the memory;

the processor, when executing the computer readable program, implements the steps in the method for automatic handover of a 5G network according to any of claims 1-7.

Technical Field

The present application relates to the field of mobile terminal technologies, and in particular, to an automatic switching method and apparatus for a 5G network, a storage medium, and a mobile terminal.

Background

With the rapid development of communication technology, the popularity of mobile terminals with built-in dual SIM cards or multiple SIM cards is increasing. However, when the existing mobile terminal registers in the 5G network, only one SIM card of the dual SIM card or the multi SIM card configured in the mobile terminal is registered in the 5G network, which requires the user to preset the use of the SIM card in the 5G network, and when the SIM card in the 5G network is in a state without 5G coverage or the signal quality of the coverage area is poor, the use of the voice data of the user is affected, thereby causing inconvenience to the user.

Thus, the prior art has yet to be improved and enhanced.

Disclosure of Invention

The technical problem to be solved by the present application is to provide an automatic switching method and apparatus for a 5G network, a storage medium, and a mobile terminal, aiming at the deficiencies of the prior art.

In order to solve the foregoing technical problem, a first aspect of the embodiments of the present application provides an automatic switching method for a 5G network, which is applied to a mobile terminal configured with at least two SIM cards, where the method specifically includes:

detecting whether first signal data of a first SIM card configured by a mobile terminal meets a preset condition, wherein the first SIM card is an SIM card connected with a 5G network in the mobile terminal;

if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained;

and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to connect a 5G network, wherein the target SIM card is a first SIM card or a second SIM card.

The method for automatically switching the 5G network, wherein the first signal data includes a first download speed, and the detecting whether the first signal data of the first SIM card configured by the mobile terminal meets a preset condition specifically includes:

comparing the first download speed with a preset download speed threshold;

and if the first downloading speed is less than a preset downloading speed threshold value, judging that the first signal data does not meet a preset condition.

The automatic switching method of the 5G network, wherein the first signal data further includes signal strength, and the comparing the first download speed with a preset download speed threshold specifically includes:

comparing the signal strength with a preset signal strength threshold;

if the signal intensity is smaller than the preset signal intensity threshold, comparing the first downloading speed with a preset downloading speed threshold;

and if the signal intensity is greater than or equal to a preset signal intensity threshold value, keeping the first SIM card connected with the 5G network.

The automatic switching method of the 5G network, wherein the first signal data comprises a first downloading speed, and the second signal data comprises a second downloading speed; the determining, based on the first signal data and the second signal data, a target SIM card corresponding to the mobile terminal specifically includes:

comparing the first download speed with the second download speed;

if the first downloading speed is greater than or equal to the second downloading speed, taking the first SIM as a target SIM card corresponding to the mobile terminal;

and if the first downloading speed is lower than the second downloading speed, taking the second SIM card as a target SIM card corresponding to the mobile terminal.

The method for automatically switching the 5G network, wherein if the first signal data does not satisfy the preset condition, acquiring second signal data of a second SIM card configured by the mobile terminal specifically includes:

if the first signal data does not meet the preset conditions, triggering a second SIM card configured by the mobile terminal to search for a 5G network;

and if the second SIM card searches the 5G network, acquiring second signal data of the second SIM card.

The automatic switching method of the 5G network, wherein the method further comprises the following steps:

and if the second SIM card does not search the 5G network, keeping the first SIM card connected with the 5G network.

The method for automatically switching the 5G network, wherein if the first signal data does not satisfy a preset condition, triggering a second SIM card configured by the mobile terminal to search the 5G network specifically includes:

and if the first signal data do not meet the preset conditions, switching the 5G network function to a second SIM card through a mobile terminal background, and triggering the second SIM card to search for the 5G network.

A second aspect of the embodiments of the present application provides an automatic switching device for a 5G network, where the automatic switching device includes:

the mobile terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting whether first signal data of a first SIM card configured by the mobile terminal meets a preset condition, wherein the first SIM card is an SIM card connected with a 5G network in the mobile terminal;

the acquisition module is used for acquiring second signal data of a second SIM card configured by the mobile terminal when the first signal data does not meet a preset condition;

and the determining module is used for determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network, wherein the target SIM card is a first SIM card or a second SIM card.

A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement steps in an automatic handover method for a 5G network as described in any one of the above.

A fourth aspect of the embodiments of the present application provides a mobile terminal, which includes: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;

the communication bus realizes connection communication between the processor and the memory;

the processor, when executing the computer readable program, implements the steps in the automatic handover method for a 5G network as described in any one of the above.

Has the advantages that: compared with the prior art, the application provides an automatic switching method, an automatic switching device, a storage medium and a mobile terminal of a 5G network, wherein the method comprises the steps of detecting whether first signal data of a first SIM card configured by the mobile terminal meets a preset condition; if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained; and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network. In the embodiment, when the first signal data of the first SIM card does not satisfy the preset condition, the second signal data of the second SIM card is acquired, and the SIM card connected to the 5G network is determined based on the first signal data and the second signal data, so that the automatic switching of the SIM card connected to the 5G network is realized, and the problem that the use of the voice data of the user is affected because the SIM card on the 5G network is in a state without 5G coverage or the coverage area has poor signal quality can be avoided.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without any inventive work.

Fig. 1 is a flowchart of an automatic handover method of a 5G network provided in the present application.

Fig. 2 is a schematic structural diagram of an automatic switching apparatus of a 5G network provided in the present application.

Fig. 3 is a schematic structural diagram of a mobile terminal provided in the present application.

Detailed Description

The present application provides an automatic switching method, an apparatus, a storage medium and a mobile terminal for a 5G network, and in order to make the purpose, technical solution and effect of the present application clearer and clearer, the present application is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.

It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

In particular implementations, the mobile terminals described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptops, or tablets with touch-sensitive surfaces (e.g., touch screens and/or touch pads). It should also be understood that in some embodiments, the device is not a portable communication device, but is a desktop computer having a touch-sensitive surface (e.g., a touch-sensitive display screen and/or touchpad).

In the discussion that follows, a mobile terminal that includes a display and a touch-sensitive surface is described. However, it should be understood that the mobile terminal may also include one or more other physical user interface devices, such as a physical keyboard, mouse, and/or joystick.

The mobile terminal supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a video conferencing application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a data camera application, a digital video camera application, a web browsing application, a digital music player application, and/or a digital video playing application, etc.

Various applications that may be executed on the mobile terminal may use at least one common physical user interface device, such as a touch-sensitive surface. The first or more functions of the touch-sensitive surface and the corresponding information displayed on the terminal may be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical framework (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.

It should be understood that, the sequence numbers and sizes of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process is determined by its function and inherent logic, and should not constitute any limitation on the implementation process of this embodiment.

The inventor finds that with the rapid development of communication technology, the popularity of mobile terminals with built-in dual SIM cards or multiple SIM cards is higher and higher. However, when the existing mobile terminal registers in the 5G network, only one SIM card of the dual SIM card or the multi SIM card configured in the mobile terminal is registered in the 5G network, which requires the user to preset the use of the SIM card in the 5G network, and when the SIM card in the 5G network is in a state without 5G coverage or the signal quality of the coverage area is poor, the use of the voice data of the user is affected, thereby causing inconvenience to the user.

In order to solve the above problem, in the embodiment of the present application, whether first signal data of a first SIM card configured by a mobile terminal meets a preset condition is detected; if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained; and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network. In the embodiment, when the first signal data of the first SIM card does not satisfy the preset condition, the second signal data of the second SIM card is acquired, and the SIM card connected to the 5G network is determined based on the first signal data and the second signal data, so that the automatic switching of the SIM card connected to the 5G network is realized, and the problem that the use of the voice data of the user is affected because the SIM card on the 5G network is in a state without 5G coverage or the coverage area has poor signal quality can be avoided.

The following further describes the content of the application by describing the embodiments with reference to the attached drawings.

The present embodiment provides an automatic switching method for a 5G network, as shown in fig. 1, the method includes:

s10, detecting whether the first signal data of the first SIM card configured by the mobile terminal meets a preset condition.

Specifically, the mobile terminal is configured with at least two SIM cards and works in a communication service mode provided by the at least two SIM cards. For example, the mobile terminal is configured with two SIMs, i.e., a SIM card a and a SIM card B, respectively, and then the mobile terminal operates in a communication service mode provided by the SIM card a or a communication service mode provided by the SIM card B. The first SIM card is one of at least two SIM cards configured for the mobile terminal, and the mobile terminal works in a communication mode of the first SIM card, wherein the communication mode of the first SIM card adopts a 5G network communication model. It can be understood that the first SIM card is connected to the 5G network, and the mobile terminal operates in the communication service mode of the 5G network through the first SIM card.

The preset condition is preset and is used for balancing whether the first SIM card can be continuously used for connecting the 5G network, and when the first signal data meets the preset condition, the first SIM card can be continuously adopted for connecting the 5G network; when the first signal data meets the preset condition, it indicates that the first SIM card does not meet the requirement, and at this time, it is required to determine whether the SIM connected to the 5G network can be switched. In a specific implementation manner of this embodiment, the first signal data may include a first download speed, and the preset condition may include a preset download speed threshold. Correspondingly, the detecting whether the first signal data of the first SIM card configured by the mobile terminal meets the preset condition specifically includes:

comparing the first download speed with a preset download speed threshold;

if the first downloading speed is smaller than a preset downloading speed threshold value, judging that the first signal data does not meet a preset condition;

and if the downloading speed is greater than or equal to a preset downloading speed threshold value, judging that the first signal data meets a preset condition.

Specifically, the preset download speed threshold is preset, for example, 100kbps or the like. When the first download speed is lower than the preset download speed threshold, it is indicated that the download speed of the 5G network to which the first SIM card is connected does not meet the requirement, and at this time, the 5G network needs to be switched and connected, so that the subsequent operation of acquiring the second signal data of the second SIM card in the mobile terminal is performed. When the first download speed is greater than or equal to the preset download speed threshold, it is indicated that the download speed of the 5G network to which the first SIM card is connected meets the requirement, and at this time, the SIM card connected to the 5G network does not need to be switched. Therefore, when the download speed is greater than or equal to the preset download speed threshold, the first SIM card is saved to continue to be connected with the 5G network so as to finish the operation. In addition, in order to ensure the signal quality of the 5G network connected to the mobile terminal, whether the first signal data of the first SIM card configured by the mobile terminal meets the preset condition may be obtained and detected once every preset time interval, or whether the first signal data of the first SIM card configured by the mobile terminal meets the preset condition may be detected in real time.

In an implementation manner of this implementation, the first signal data further includes a signal strength, and the comparing the first download speed with a preset download speed threshold specifically includes:

comparing the signal strength with a preset signal strength threshold;

if the signal intensity is smaller than the preset signal intensity threshold, comparing the first downloading speed with a preset downloading speed threshold;

and if the signal intensity is greater than or equal to a preset signal intensity threshold value, keeping the first SIM card connected with the 5G network.

And if the second SIM card does not search the 5G network, keeping the first SIM card connected with the 5G network.

Specifically, the signal strength is a signal strength at which the mobile terminal is currently located, and is used for reflecting network signal quality of the mobile terminal, a preset signal strength threshold is preset, for example, -95dBm, and the like, when the signal strength is smaller than the preset signal strength threshold, it indicates that the first SIM card is connected to the 5G network and may not meet the requirement, and at this time, the first download speed needs to be compared with the preset download speed threshold; on the contrary, when the signal strength is greater than or equal to the preset signal strength threshold value, the specification that the first SIM card is connected with the 5G network can meet the requirement without switching the SIM card connected with the 5G network.

Based on this, in one implementation manner of this embodiment, the preset condition may include that the download speed is less than a download speed threshold, and the signal strength is less than a signal strength threshold; the first signal data not meeting the preset condition means that the first signal data does not meet the conditions that the download speed is less than the download speed threshold and the signal intensity is less than the signal intensity threshold. In practical application, the signal strength and the first download speed of the first SIM card may be obtained at the same time, and the first download speed and the download speed threshold, and the signal strength threshold are compared, respectively, and when the download speed is smaller than the download speed threshold and the signal strength is smaller than the signal strength threshold, it is determined that the first signal data does not satisfy the preset condition. Therefore, the first downloading speed is compared with the downloading speed threshold value and the signal strength is compared with the signal strength threshold value synchronously, so that the speed of judging whether the first signal data meets the preset condition can be increased, and the automatic switching speed of the 5G network can be increased. Of course, in practical applications, the first download speed may be compared with a download speed threshold, and when the first download speed is smaller than the download speed threshold, the signal strength may be compared with a signal strength threshold.

And S20, if the first signal data does not meet the preset condition, acquiring second signal data of a second SIM card configured by the mobile terminal.

Specifically, the second SIM card is one of at least two SIM cards configured for the mobile terminal, and the second SIM card is different from the first SIM card. For example, the mobile terminal includes SIM card a and SIM card B, the first SIM card is SIM card a, and then the second SIM card is SIM card B. When the number of the SIM cards configured by the mobile terminal is greater than 2, the SIM cards configured by the mobile terminal still have at least two remaining SIM cards in addition to the first SIM card, at this time, one SIM card may be randomly selected from the remaining SIM cards of the mobile terminal as the second SIM card, or the priority of each remaining SIM card is obtained, the SIM card with the highest priority is selected from the remaining SIM cards as the second SIM card based on the priority of each SIM card, or each SIM card in the remaining SIM cards is used as the second SIM card, and the second signal data corresponding to each second SIM card is obtained respectively.

In an implementation manner of this embodiment, if the first signal data does not satisfy the preset condition, the acquiring second signal data of a second SIM card configured by the mobile terminal specifically includes:

if the first signal data does not meet the preset conditions, triggering a second SIM card configured by the mobile terminal to search for a 5G network;

and if the second SIM card searches the 5G network, acquiring second signal data of the second SIM card.

Specifically, the second signal data is signal data when a 5G network is connected through a second SIM card, where the 5G network connected with the second SIM card is a 5G network provided by a network operator corresponding to the second SIM card, and the 5G network connected with the first SIM card is a 5G network provided by a network operator corresponding to the first SIM card. For example, the network operator corresponding to the first SIM card is connected, and the network operator corresponding to the second SIM card is mobile, then the 5G network connected to the first SIM card is the 5G network provided for the connection, and the 5G network connected to the second SIM card is the 5G network provided for the mobile.

In an implementation manner of this embodiment, when the second SIM card configured in the mobile terminal is triggered to search for the 5G network, the mobile terminal is not switched to the second SIM card, but the search operation of the second SIM card is placed in a background, and at this time, the mobile terminal continuously connects the 5G network with the first SIM card, so that a problem that the 5G network cannot be connected or the 5G network signal quality is worse due to the fact that the 5G network is directly switched to the second SIM card can be avoided. Based on this, if the first signal data does not satisfy the preset condition, triggering the second SIM card configured by the mobile terminal to search for the 5G network specifically includes: and if the first signal data do not meet the preset conditions, switching the 5G network function to a second SIM card through a mobile terminal background, and triggering the second SIM card to search for the 5G network.

S30, determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to connect with a 5G network.

Specifically, the target SIM card is a first SIM card or a second SIM card, and it can be understood that the target SIM card is the first SIM card, or the target SIM card is the second SIM card, when the target SIM card is the first SIM card, it indicates that the network does not need to be switched, and at this time, it is ensured that the first SIM card is connected with the 5G network; when the target SIM card is a second SIM card, the network switching is required, and the 5G network is switched to the second SIM card so as to connect the 5G network through the second SIM card.

In one implementation manner of this embodiment, the first signal data includes a first download speed, and the second signal data includes a second download speed; the determining, based on the first signal data and the second signal data, a target SIM card corresponding to the mobile terminal specifically includes:

comparing the first download speed with the second download speed;

if the first downloading speed is greater than or equal to the second downloading speed, taking the first SIM as a target SIM card corresponding to the mobile terminal;

and if the first downloading speed is lower than the second downloading speed, taking the second SIM card as a target SIM card corresponding to the mobile terminal.

Specifically, the first download speed is greater than or equal to the second download speed, which indicates that the network quality of the 5G network corresponding to the first SIM card is greater than the network quality of the 5G network corresponding to the second SIM card, so that the first SIM card is used as the target SIM card corresponding to the mobile terminal; the first download speed is lower than the second download speed, which indicates that the network quality of the 5G network corresponding to the second SIM card is higher than the network quality of the 5G network corresponding to the first SIM card, so that the second SIM card is used as the target SIM card corresponding to the mobile terminal.

In addition, when the number of the SIM cards assembled in the mobile terminal is greater than 2, the mobile terminal may also have a plurality of remaining SIM cards except the first SIM card, so that the mobile terminal may correspond to a plurality of second SIM cards, and when the first SIM card is used as a target SIM card corresponding to the mobile terminal, it may be detected whether all the remaining SIM cards are used as the second SIM cards, and if all the remaining SIM cards are used as the second SIM cards, the first SIM card is used as the target SIM card corresponding to the mobile terminal; if the remaining SIM cards which are not used as the second SIM card exist, the remaining SIM cards may be used as the second SIM card and the step of acquiring the second signal data of the second SIM card may be executed again, so as to select the SIM card with the best network quality as the SIM card connected to the 5G.

Of course, when the second SIM card is used as the target SIM card corresponding to the mobile terminal, the network switching operation may be directly completed, or it is detected whether the download speed corresponding to the second SIM card is the SIM card with the maximum download speed corresponding to all the remaining SIM cards, if so, the second SIM card is used as the target SIM card corresponding to the mobile terminal, and if not, the SIM with the maximum download speed may be used as the target SIM card. When detecting whether the download speed corresponding to the second SIM card is the SIM card with the highest download speed corresponding to all the remaining SIM cards, the SIM card used for connecting the mobile terminal to the 5G may be switched to the second SIM card, and then the download speeds corresponding to all the remaining SIM cards except the first SIM card and the second SIM card are obtained, so that the mobile terminal is in a bad network signal state within the time of obtaining the download speed corresponding to each remaining SIM card, which brings convenience to the user.

In summary, the present embodiment provides an automatic switching method for a 5G network, where the method includes detecting whether first signal data of a first SIM card configured by a mobile terminal meets a preset condition; if the first signal data do not meet the preset conditions, second signal data of a second SIM card configured by the mobile terminal are obtained; and determining a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and controlling the target SIM card to be connected with a 5G network. In the embodiment, when the first signal data of the first SIM card does not satisfy the preset condition, the second signal data of the second SIM card is acquired, and the SIM card connected to the 5G network is determined based on the first signal data and the second signal data, so that the automatic switching of the SIM card connected to the 5G network is realized, and the problem that the use of the voice data of the user is affected because the SIM card on the 5G network is in a state without 5G coverage or the coverage area has poor signal quality can be avoided.

Based on the above automatic switching method of the 5G network, this embodiment provides an automatic switching device of the 5G network, as shown in fig. 2, where the automatic switching device includes:

the detection module 100 is configured to detect whether first signal data of a first SIM card configured in the mobile terminal meets a preset condition, where the first SIM card is an SIM card connected to a 5G network in the mobile terminal;

an obtaining module 200, configured to obtain second signal data of a second SIM card configured by the mobile terminal when the first signal data does not meet a preset condition;

a determining module 300, configured to determine a target SIM card corresponding to the mobile terminal based on the first signal data and the second signal data, and control the target SIM card to connect to a 5G network, where the target SIM card is a first SIM card or a second SIM card.

In one implementation, the detection module is specifically configured to:

comparing the first download speed with a preset download speed threshold;

and if the first downloading speed is less than a preset downloading speed threshold value, judging that the first signal data does not meet a preset condition.

In one implementation, the first signal data further includes a signal strength, and the detection module is specifically configured to:

comparing the signal strength with a preset signal strength threshold;

if the signal intensity is smaller than the preset signal intensity threshold, comparing the first downloading speed with a preset downloading speed threshold;

and if the signal intensity is greater than or equal to a preset signal intensity threshold value, keeping the first SIM card connected with the 5G network.

In one implementation, the first signal data includes a first download speed, and the second signal data includes a second download speed; the determining module is specifically configured to:

comparing the first download speed with the second download speed;

if the first downloading speed is greater than or equal to the second downloading speed, taking the first SIM as a target SIM card corresponding to the mobile terminal;

and if the first downloading speed is lower than the second downloading speed, taking the second SIM card as a target SIM card corresponding to the mobile terminal.

In one implementation, the obtaining module is specifically configured to:

if the first signal data does not meet the preset conditions, triggering a second SIM card configured by the mobile terminal to search for a 5G network;

and if the second SIM card searches the 5G network, acquiring second signal data of the second SIM card.

In one implementation, the obtaining module is further configured to:

and if the second SIM card does not search the 5G network, keeping the first SIM card connected with the 5G network.

In one implementation, the obtaining module is specifically configured to:

and if the first signal data do not meet the preset conditions, switching the 5G network function to a second SIM card through a mobile terminal background, and triggering the second SIM card to search for the 5G network.

Based on the automatic switching method of the 5G network, the present embodiment provides a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps in the automatic switching method of the 5G network according to the foregoing embodiment.

Based on the above automatic switching method of the 5G network, the present application further provides a mobile terminal, as shown in fig. 3, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.

Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.

The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.

The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the mobile terminal, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store 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, may also be transient storage media.

In addition, the working process of the automatic switching device of the 5G network, the storage medium and the specific process loaded and executed by the multiple instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:网状网络系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!