CN111654852B - Data card switching method and device, terminal and storage medium - Google Patents

Data card switching method and device, terminal and storage medium Download PDF

Info

Publication number
CN111654852B
CN111654852B CN202010476235.3A CN202010476235A CN111654852B CN 111654852 B CN111654852 B CN 111654852B CN 202010476235 A CN202010476235 A CN 202010476235A CN 111654852 B CN111654852 B CN 111654852B
Authority
CN
China
Prior art keywords
data card
data
strength value
signal strength
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010476235.3A
Other languages
Chinese (zh)
Other versions
CN111654852A (en
Inventor
张峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010476235.3A priority Critical patent/CN111654852B/en
Publication of CN111654852A publication Critical patent/CN111654852A/en
Priority to PCT/CN2021/084922 priority patent/WO2021238404A1/en
Application granted granted Critical
Publication of CN111654852B publication Critical patent/CN111654852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

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

Abstract

The application belongs to the technical field of communication, and particularly relates to a method, a device, a terminal and a storage medium for switching a data card. The switching method of the data card comprises the following steps: acquiring a first signal strength value and a first data link quality of a first data card, and acquiring a second signal strength value and a second data link quality of a second data card; and switching the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality and the second data link quality. Therefore, the terminal can directly switch the data cards based on the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card, and does not need to receive a switching instruction of a user for the data cards, so that the operation steps of the data cards are reduced, the switching time of the data cards can be reduced, and the use experience of the user can be improved.

Description

Data card switching method and device, terminal and storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a data card switching method, a data card switching device, a terminal and a storage medium.
Background
With the development of terminal technology, more and more functions can be supported by a terminal. For example, the terminal may be a dual card dual standby terminal. The dual-card dual-standby terminal means that one terminal can simultaneously mount two data cards, and the two cards are in a standby state.
Currently, when the network quality of the first data card in the terminal is very poor, the user may choose to switch the first data card to the second data card, and at this time, the user may use the second data card to watch video or browse information.
Disclosure of Invention
The embodiment of the application provides a data card switching method, a data card switching device, a terminal and a storage medium, and can improve the data card switching efficiency. The technical scheme comprises the following steps:
in a first aspect, an embodiment of the present application provides a method for switching a data card, where the method includes:
acquiring a first signal strength value and a first data link quality of a first data card, and acquiring a second signal strength value and a second data link quality of a second data card;
and switching the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality and the second data link quality.
In a second aspect, an embodiment of the present application provides a switching apparatus for data cards, where the apparatus includes:
the time delay obtaining unit is used for obtaining a first signal strength value and a first data link quality of a first data card and obtaining a second signal strength value and a second data link quality of a second data card;
a data card switching unit, configured to switch between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method of any one of the above first aspects when executing the computer program.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program is used for implementing any one of the methods described above when executed by a processor.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
In the method for switching data cards, a terminal may perform switching between a first data card and a second data card based on a first signal strength value, a second signal strength value, a first data link quality, and a second data link quality when obtaining the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card. Therefore, the terminal can directly switch the data cards based on the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card, and does not need to receive a switching instruction of a user for the data cards, so that the operation steps of the data cards are reduced, the switching time of the data cards can be reduced, and the use experience of the user can be improved.
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 embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic view illustrating an application scenario of a data card switching method or a data card switching apparatus according to an embodiment of the present application;
fig. 2 is a schematic flowchart illustrating a method for switching data cards according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating an example of a terminal interface according to an embodiment of the application;
fig. 4 is a schematic flowchart illustrating a method for switching data cards according to an embodiment of the present application
FIG. 5 is a schematic diagram illustrating an example of a terminal interface according to an embodiment of the present application;
fig. 6 is a schematic flowchart illustrating a method for switching a data card according to an embodiment of the present application;
fig. 7 is a schematic flowchart illustrating a method for switching a data card according to an embodiment of the present application;
fig. 8 is a schematic flowchart illustrating a method for switching a data card according to an embodiment of the present application;
fig. 9 is a schematic flowchart illustrating a method for switching a data card according to an embodiment of the present application;
FIG. 10 is an exemplary diagram illustrating a terminal interface according to an embodiment of the application;
fig. 11 is a schematic structural diagram illustrating a switching device of a data card according to an embodiment of the present application;
fig. 12 shows a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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 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.
With the development of terminal technology, more and more functions can be supported by a terminal. For example, the terminal may be a dual card dual standby terminal. The dual-card dual-standby terminal means that one terminal can load two data cards at the same time, and the two cards are in a standby state.
Fig. 1 is a schematic view illustrating an application scenario of a data card switching method or a data card switching apparatus applied to an embodiment of the present application. When two cards are installed in the dual card-capable terminal, the terminal may display a dual card identifier on a display screen. Both cards can be used as data cards, but only one card can be used as a traffic card at the same time.
According to some embodiments, the dual cards installed in the terminal may be, for example, an a data card and a B data card. The terminal can set the currently used data card. For example, the terminal may set the data card mounted in the card slot 1 as the currently used data card. When a user installs the data card a in the card slot 1 and the data card B in the card slot 2, the terminal may default to use the data card a as the currently used data card, that is, the terminal may default to use the data card a as the first data card.
It is easy to understand that when the terminal switches between the first data card and the second data card, the terminal needs to receive a switching instruction of the user for the first data card and the second data card, and the terminal can switch between the data cards based on the switching instruction. The switch command may be, for example, a click switch command. When the terminal receives a click switching instruction input by a user on the display screen, the terminal can set the B data card as a first data card and set the A data card as a second data card.
Optionally, when the network quality of the first data card in the terminal is extremely poor, the terminal may send a prompt message, where the prompt message is used to prompt the user whether to switch the data card. When the user selects to switch the data cards, the user can input a switching instruction for the data cards, and the terminal can switch the data cards based on the received switching instruction. When the terminal completes the switching of the data card, the user can watch the video or browse the information by using the second data card. However, in this process, the terminal needs to receive a switching instruction input for the data card, which results in complex data card switching operation and low data card switching efficiency. In addition, when the terminal switches the data card based on the switching instruction input by the user for the data card, the user only selects based on experience, and does not fully consider the information of the first data card and the second data card, which causes the problems of low signal instruction of the switched data card and poor user experience.
The following describes in detail a switching method for a data card according to an embodiment of the present application with reference to fig. 2 to fig. 10. The execution bodies of the embodiments shown in fig. 2-10 may be terminals, for example.
Referring to fig. 2, a schematic flow chart of a method for switching a data card is provided in an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application may include the following steps S101 to S102.
S101, a first signal strength value and a first data link quality of a first data card are obtained, and a second signal strength value and a second data link quality of a second data card are obtained.
According to some embodiments, the first data card refers to a data card corresponding to cellular data currently used by the dual-card-capable terminal. The first data card may be configured when the terminal leaves a factory, or may be configured based on a setting instruction of a user. The signal strength value is a received signal strength indicating value and is a physical quantity for representing the strength of a transmitting signal of a data card receiving signal transmitting source.
It is easy to understand that the first signal strength value refers to a signal strength value corresponding to the first data card, and does not refer to a fixed value. For example, the first signal strength value for the first data card may be-105 dB and the first signal strength value for the first data card may also be-115 dB. The second signal strength value refers to a signal strength value corresponding to the second data card, and is not particularly limited to a fixed value. For example, the second signal strength value for the second data card may be-115 dB and the second signal strength value for the second data card may also be-118 dB.
Optionally, the data link quality includes, but is not limited to, data latency of the data card, network type, and the like. Where the data delay may be, for example, a round trip delay. Round-Trip Time (RTT), which consists of three parts: propagation delay of the link, processing time of the end system, queuing in the router cache and processing time (queuing delay). The values of the first two parts are relatively fixed for one TCP connection, and the queuing and processing time in the router buffer can change along with the change of the congestion degree of the whole network. Therefore, the variation of the round trip delay reflects the congestion degree of the network to a certain extent, and the smaller the value of the round trip delay is, the better the quality of the data link is.
According to some embodiments, the first data link quality may be, for example, a first round trip delay corresponding to the first data card, and does not refer to a fixed value. The second data link quality may be, for example, a second round trip delay corresponding to the second data card, and is not particularly limited to a fixed value. The first round trip delay represents the total delay experienced by the terminal from the beginning of transmitting data using the first data card to the time when the terminal receives the acknowledgement for the data.
It is easy to understand that, when the first data card is a data master card and the second data card is a data slave card, the terminal may transmit the data service only by using the data master card. When the first data card is a data main card and the second data card is a data auxiliary card, the terminal can also transmit data service by using the data main card and the data auxiliary card at the same time. When the terminal uses the data main card and the data auxiliary card simultaneously to transmit the data service, the terminal may determine the data service transmission amount of the data main card and the data auxiliary card based on a preset rule. In the embodiment of the application, the first data card is defaulted to be a data main card, and the second data card is defaulted to be a data auxiliary card.
Optionally, when the terminal uses the first data card to perform data service transmission, the terminal may obtain a first signal strength value and a first round-trip delay of the first data card, and obtain a second signal strength value and a second round-trip delay of the second data card.
According to some embodiments, the terminal support dual cards may be, for example, a Q data card and an R data card. The terminal can default the first data card to be a data master card based on factory settings. Based on factory settings, the terminal can also set the Q data card as a first data card and set the R data card as a second data card. When the terminal uses the Q data card as a data master card for data transmission based on factory settings, the terminal may obtain a first signal strength value and a first round-trip delay of the Q data card, and obtain a second signal strength value and a second round-trip delay of the R data card. The first signal strength value of the Q data card acquired by the terminal may be-110 dB, the first round trip delay may be 500ms, for example, the second signal strength value of the r data card may be-118 dB, for example, and the second round trip delay may be 550ms, for example.
S102, switching between the first data card and the second data card is carried out based on the first signal strength value, the second signal strength value, the first data link quality and the second data link quality.
According to some embodiments, when the terminal acquires a first signal strength value and a first data link quality of the first data card and acquires a second signal strength value and a second data link quality of the second data card, the terminal may perform switching between the first data card and the second data card based on the acquired first signal strength value, second signal strength value, first data link quality, and second data link quality.
It is easy to understand that, when the terminal acquires the first signal strength value and the first data link quality of the first data card and acquires the second signal strength value and the second data link quality of the second data card, the terminal may compare the first signal strength value and the second signal strength value with a plurality of preset signal thresholds to acquire the first comparison result. When the first comparison result does not meet the preset requirement, the terminal can switch the data card based on the first data link quality and the second data link quality.
Optionally, when the Q data card is a first data card and the R data card is a second data card, the first signal strength value of the Q data card acquired by the terminal may be, for example, -120dB, the first round-trip delay may be, for example, 500ms, the second signal strength value of the R data card may be, for example, -119dB, and the second round-trip delay may be, for example, 450ms. When the terminal determines that the first signal strength value is-120 dB and the second signal strength value may be-119 dB, for example, the terminal determines that the second round-trip delay is smaller than the first round-trip delay, and the terminal may perform switching of the data card, that is, the terminal switches the R data card to the first data card and the Q data card to the second data card, that is, the terminal uses the R data card as a data master card and the Q data card as a data slave card.
According to some embodiments, when the terminal performs switching between the first data card and the second data card, the terminal may send a prompt message, where the prompt message is used to prompt whether to perform switching between the first data card and the second data card. When the terminal receives the confirmation information aiming at the prompt information, the terminal can switch the first data card and the second data card. For example, before the terminal does not switch between the first data card and the second data card, the Q data card is the first data card, and the R data card is the second data card. When the terminal switches between the first data card and the second data card, the prompt message sent by the terminal may be, for example, whether the R data card is the first data card or not, and the Q data card is the second data card. At this time, an example diagram of the terminal interface may be as shown in fig. 3. When the terminal receives the confirmation information for the prompt information, the terminal can switch the R data card to the first data card and switch the Q data card to the second data card, that is, the terminal can use the R data card as a data master card to transmit data services.
The embodiment of the application provides a data card switching method, and a terminal can perform switching between a first data card and a second data card based on a first signal strength value, a second signal strength value, a first data link quality and a second data link quality when the terminal acquires the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card. Therefore, the terminal can directly switch the data cards based on the first signal intensity value and the first data link quality of the first data card and the second signal intensity value and the second data link quality of the second data card, does not need to receive a switching instruction of a user for the data cards, can reduce the switching steps of the data cards, reduces the switching time of the data cards, improves the switching efficiency of the data cards, and further can improve the use experience of the user. In addition, the terminal switches the data cards based on the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card, so that the accuracy of switching the data cards can be improved, the situation that a network of the data cards is unstable after the users switch the data cards based on experience is reduced, and the use experience of the users can be improved.
Referring to fig. 4, a schematic flow chart of a method for switching a data card is provided in an embodiment of the present application. As shown in fig. 4, the method of the embodiment of the present application may include the following steps S201 to S206.
S201, obtain a first signal strength value and a first data link quality of the first data card, and obtain a second signal strength value and a second data link quality of the second data card.
According to some embodiments, the terminal may set a signal threshold when obtaining a first signal strength value and a first data link quality for a first data card and obtaining a second signal strength value and a second data link quality for a second data card. The signal threshold may be set by the terminal based on the magnitude of the signal strength value. The signal threshold set by the terminal at least comprises a first signal threshold, a second signal threshold, a third signal threshold and a fourth signal threshold. The number of signal thresholds set by the terminal may be determined based on actual usage, for example, the number of signal thresholds set by the terminal may be four or six.
It is easily understood that, for example, the terminal sets the first signal threshold value to-105 dB, the second signal threshold value to-114 dB, the third signal threshold value to-118 dB, and the fourth signal threshold value to-120 dB based on the magnitude of the signal strength value.
According to some embodiments, the first data link quality may be, for example, a first round trip delay corresponding to the first data card, and does not refer to a fixed value. The second data link quality may be, for example, a second round trip delay corresponding to the second data card, and is not particularly limited to a fixed value. The first data link quality of the embodiments of the present application may be, for example, a first round trip delay, and the second data quality may be, for example, a second round trip delay.
It is easy to understand that, when the first data card is a data master card and the second data card is a data slave card, the terminal may only use the data master card to transmit data services. When the first data card is a data main card and the second data card is a data auxiliary card, the terminal can also transmit data service by using the data main card and the data auxiliary card at the same time. In the embodiment of the application, the first data card is defaulted to be a data main card, and the second data card is defaulted to be a data auxiliary card.
The specific process is as described above, and is not described herein again.
And S202, the first data link quality is a first round-trip delay, the second data link quality is a second round-trip delay, and when the first signal strength value is greater than a first signal threshold value, the first data card and the second data card are kept unchanged.
According to some embodiments, when the terminal acquires a first signal strength value and a first data link quality of a first data card, and acquires a second signal strength value and a second data link quality of a second data card, the terminal may detect a magnitude relationship between the first signal strength value and a first signal threshold. When the terminal detects that the first signal strength value is larger than the first signal threshold value, the terminal keeps the first data card and the second data card unchanged.
It is easy to understand that, before the terminal obtains the first signal strength value and the first round-trip delay of the first data card and obtains the second signal strength value and the second round-trip delay of the data secondary card, the D data card is the data primary card and the F data card is the data secondary card. The first signal strength value of the D data card acquired by the terminal may be, for example, -104db, and the second signal strength value of the f data card may be, for example, -105dB. When the terminal detects that the first signal intensity value-104 dB is greater than the first signal threshold value-105 dB, the terminal keeps the first data card and the second data card unchanged, namely the D data card is a data main card, and the F data card is a data auxiliary card. At this time, an exemplary diagram of the terminal interface may be as shown in fig. 5.
S203, when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, performing a switch between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, where the second signal threshold is smaller than the first signal threshold.
According to some embodiments, when the terminal acquires a first signal strength value and a first round-trip delay of the first data card, and acquires a second signal strength value and a second round-trip delay of the second data card, the terminal may detect a magnitude relationship between the first signal strength value and a signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the terminal may perform switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay, where the second signal threshold is smaller than the first signal threshold.
According to some embodiments, please refer to fig. 6, which provides a schematic flow chart of a data card switching method according to an embodiment of the present application. As shown in fig. 6, the method of the embodiment of the present application may include the following steps S301 to S303. S301, when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card; s302, when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged; and S303, when the second signal intensity value is smaller than or equal to the first signal threshold value, keeping the first data card and the second data card unchanged.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, the terminal may detect whether the second signal strength value is greater than the first signal threshold value. When the terminal detects that the second signal strength value is greater than the first signal threshold, the terminal may detect whether the first round trip delay is greater than the second round trip delay. And when the terminal detects that the second signal strength value is larger than the first signal threshold value and the first round-trip delay is smaller than the second round-trip delay, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -108db, the second signal strength value of the F data card may be, for example, -104db, the first round trip delay of the D data card is 502ms, and the second round trip delay of the F data card is 550ms, where the terminal keeps the D data card as the first data card and the F data card as the second data card unchanged.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, the terminal may detect whether the second signal strength value is greater than the first signal threshold value. When the terminal detects that the second signal strength value is greater than the first signal threshold, the terminal may detect whether the first round trip delay is greater than the second round trip delay. And when the terminal detects that the second signal strength value is greater than the first signal threshold value and the first round-trip delay is greater than the second round-trip delay, the terminal takes the second data card as a data main card and uses the second data card to transmit the data service.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -108db, the second signal strength value of the F data card may be, for example, -104db, the first round-trip delay of the D data card is 502ms, and the second round-trip delay of the F data card is 450ms, the terminal uses the second data card as a data master card, that is, the terminal sets the D data card as a data slave card, sets the F data card as a data master card, and uses the F data card for data service transmission.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, the terminal may detect whether the second signal strength value is greater than the first signal threshold value. And when the terminal detects that the second signal strength value is smaller than or equal to the first signal threshold value, keeping the first data card and the second data card unchanged. For example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be-108db, for example, the second signal strength value of the f data card may be-108 dB, and when the terminal detects that the first signal strength value-108 dB is smaller than the first signal threshold value-105 dB and larger than the second signal threshold value-114 dB, and the terminal detects that the second signal strength value-108 dB is smaller than the first signal threshold value-105 dB, the terminal keeps the first data card and the second data card unchanged.
And S204, when the first signal strength value is smaller than or equal to the second signal strength threshold and larger than the third signal threshold, switching the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the third signal threshold is smaller than the second signal threshold.
According to some embodiments, when the terminal obtains a first signal strength value and a first round-trip delay of the first data card, and obtains a second signal strength value and a second round-trip delay of the second data card, the terminal may detect a magnitude relationship between the first signal strength value and a signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, the terminal may perform switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay. Wherein the third signal threshold is less than the second signal threshold.
According to some embodiments, please refer to fig. 7, which provides a schematic flow chart of a data card switching method according to an embodiment of the present application. As shown in fig. 7, the method of the embodiment of the present application may include the following steps S401 to S404. S401, when the second signal intensity value is larger than the first signal threshold value, taking the second data card as a data master card; s402, when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card; s403, when the second signal strength value is smaller than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged; s404, when the second signal intensity value is smaller than or equal to the second signal threshold value, keeping the first data card and the second data card unchanged.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, the terminal may detect whether the second signal strength value is greater than the first signal threshold value. When the terminal detects that the second signal strength value is greater than the first signal threshold, the terminal may use the second data card as a data master card and use the second data card for data service transmission.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. When the first signal strength value of the D data card acquired by the terminal may be-115db, for example, and the second signal strength value of the F data card may be-104 dB, for example, the terminal may use the second data card as a data master card, that is, the terminal sets the D data card as a data slave card, and sets the F data card as a data master card, and uses the F data card to perform data service transmission.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal may detect the magnitude relationship between the second signal strength value and the signal threshold, that is, the terminal may detect whether the second signal strength value is greater than the first signal threshold and whether the second signal strength value is greater than the second signal threshold when the terminal detects that the second signal strength value is less than the first signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the terminal detects that the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the terminal may detect whether the first round trip delay is larger than the second round trip delay. And when the terminal detects that the first round-trip delay is greater than the second round-trip delay, the terminal takes the second data card as a data main card and uses the second data card to transmit the data service.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -115db, the second signal strength value of the F data card may be, for example, -108db, the first round-trip delay of the D data card is 502ms, and the second round-trip delay of the F data card is 450ms, the terminal uses the second data card as a data master card, that is, the terminal sets the D data card as a data slave card, sets the F data card as a data master card, and uses the F data card for data service transmission.
It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal may detect the magnitude relationship between the second signal strength value and the signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the terminal detects that the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the terminal may detect whether the first round trip delay is larger than the second round trip delay. And when the terminal detects that the first round-trip delay is smaller than the second round-trip delay, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -115db, the second signal strength value of the F data card may be, for example, -108db, the first round-trip delay of the D data card is 502ms, and the second round-trip delay of the F data card is 555ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is a data master card, and the F data card is a data slave card.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal may detect the magnitude relationship between the second signal strength value and the signal threshold. And when the terminal detects that the second signal strength value is smaller than or equal to the second signal threshold value, keeping the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal can be-108dB, the second signal strength value of the F data card can be-115 dB, the terminal detects that the-115 dB value of the second signal strength value of the F data card is smaller than the-114 dB value of the second signal threshold, and the terminal keeps the first data card and the second data card unchanged.
S205, when the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, switching between the first data card and the second data card is performed based on the second signal threshold, the third signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, and the fourth signal threshold is smaller than the third signal threshold.
According to some embodiments, when the terminal obtains a first signal strength value and a first round-trip delay of the first data card, and obtains a second signal strength value and a second round-trip delay of the second data card, the terminal may detect a magnitude relationship between the first signal strength value and a signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, the terminal may perform handover between the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay, where the fourth signal threshold is smaller than the third signal threshold.
According to some embodiments, please refer to fig. 8, which provides a flowchart illustrating a method for switching a data card according to an embodiment of the present application. As shown in fig. 8, the method of the embodiment of the present application may include the following steps S501 to S504. S501, when the second signal intensity value is larger than a second signal threshold value, taking a second data card as a data main card; s502, when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card; s503, when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged; s504, when the second signal strength value is smaller than or equal to the third signal threshold value, the first data card and the second data card are kept unchanged.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold. When the terminal detects that the second signal strength value is greater than the second signal threshold value, the terminal may use the second data card as the data master card.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. When the first signal intensity value of the D data card acquired by the terminal may be-119db, for example, and the second signal intensity value of the F data card may be-113 dB, for example, the terminal sets the second data card as a data master card, that is, the terminal sets the D data card as a data slave card, and sets the F data card as a data master card, and uses the F data card to perform data service transmission.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal may detect the magnitude relationship between the second signal strength value and the signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, and the terminal detects that the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, the terminal may detect whether the first round trip delay is larger than the second round trip delay. And when the terminal detects that the first round-trip delay is larger than the second round-trip delay, the terminal takes the second data card as a data master card.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card obtained by the terminal may be, for example, -119db, the second signal strength value of the F data card may be, for example, -115db, the first round-trip delay of the D data card is 502ms, and when the second round-trip delay of the F data card is 450ms, the terminal uses the second data card as a data master card, that is, the terminal sets the D data card as a data slave card and sets the F data card as a data master card, and uses the F data card to perform data service transmission.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold. When the terminal detects that the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, and the terminal detects that the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, the terminal may detect whether the first round trip delay is larger than the second round trip delay. And when the terminal detects that the first round-trip delay is smaller than the second round-trip delay, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -119db, the second signal strength value of the F data card may be, for example, -115db, the first round-trip delay of the D data card is 502ms, and the second round-trip delay of the F data card is 555ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is a data master card, and the F data card is a data slave card.
It is easily understood that when the terminal detects that the first signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal may detect the magnitude relationship between the second signal strength value and the signal threshold. And when the terminal detects that the second signal strength value is smaller than or equal to the third signal threshold value, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal can be 119dB, the second signal strength value of the F data card can be 118dB, the terminal detects that the second signal strength value of the F data card, 118dB is equal to the third signal threshold value, 118dB, and the terminal keeps the first data card and the second data card unchanged.
S206, when the first signal strength value is smaller than or equal to the fourth signal threshold, switching between the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay.
According to some embodiments, when the terminal obtains a first signal strength value and a first round-trip delay of the first data card, and obtains a second signal strength value and a second round-trip delay of the second data card, the terminal may detect a magnitude relationship between the first signal strength value and a signal threshold. When the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold, the terminal may perform handover between the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay.
Referring to fig. 9, a flow chart of a method for switching a data card according to some embodiments is shown. As shown in fig. 9, the method of the embodiment of the present application may include the following steps S601 to S604. 601, when the second signal intensity value is larger than a third signal threshold value, taking the second data card as a data master card; 602, when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card; 603, when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, and when the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged; and 604, when the second signal strength value is less than or equal to the fourth signal threshold value, keeping the first data card and the second data card unchanged.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold value. When the terminal detects that the second signal strength value is greater than the third signal threshold value, the terminal may use the second data card as a data master card.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. When the first signal strength value of the D data card acquired by the terminal may be-121db, and the second signal strength value of the F data card may be-117 dB, for example, the terminal sets the second data card as the data master card, that is, the terminal sets the D data card as the data slave card and sets the F data card as the data master card, and uses the F data card to perform data service transmission.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold value. When the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value and the terminal detects that the second signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, the terminal may detect whether the first round trip delay is greater than the second round trip delay. And when the terminal detects that the first round-trip delay is larger than the second round-trip delay, the terminal takes the second data card as a data master card.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card obtained by the terminal may be, for example, -121db, the second signal strength value of the F data card may be, for example, -119db, the first round trip delay of the D data card is 502ms, and the second round trip delay of the F data card is 450ms, the terminal may use the second data card as a data master card, that is, the terminal sets the D data card as a data slave card and sets the F data card as a data master card, and uses the F data card to perform data service transmission.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold value. When the terminal detects that the first signal strength value is smaller than or equal to the fourth signal threshold and the terminal detects that the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, the terminal may detect whether the first round trip delay is larger than the second round trip delay. And when the terminal detects that the first round-trip delay is smaller than the second round-trip delay, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -121db, the second signal strength value of the F data card may be, for example, -119db, the first round-trip delay of the D data card is 502ms, and the second round-trip delay of the F data card is 555ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is a data master card, and the F data card is a data slave card.
It is to be understood that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal may detect the magnitude relationship of the second signal strength value to the signal threshold value. And when the terminal detects that the first signal strength value is smaller than or equal to the fourth signal threshold value and the terminal detects that the second signal strength value is smaller than or equal to the fourth signal threshold value, the terminal keeps the first data card and the second data card unchanged.
Optionally, for example, the D data card is a first data card, and the F data card is a second data card. The first signal strength value of the D data card acquired by the terminal may be, for example, -121db, the second signal strength value of the F data card may be, for example, -120dB, the terminal detects that the-120 dB second signal strength value of the F data card is equal to the-120 dB fourth signal threshold, and the terminal keeps the first data card and the second data card unchanged.
According to some embodiments, after the terminal performs the switching between the first data card and the second data card, the terminal may send a prompt message for prompting the user that the switching between the first data card and the second data card is completed and the current data main card and the current data auxiliary card. For example, before the terminal does not perform switching between the first data card and the second data card, the D data card is the data master card, the F data card is the data slave card, after the terminal performs switching between the first data card and the second data card, the F data card is the data master card, the D data card is the data slave card, and the prompt message sent by the terminal may be, for example, that switching between the first data card and the second data card is completed, the F data card is the data master card, and the D data card is the data slave card. At this time, an example schematic diagram of the terminal interface may be as shown in fig. 10.
The embodiment of the application provides a data card switching method, and by setting a signal threshold, switching of data cards can be performed based on an acquired first signal strength value and first data link quality of a first data card and an acquired second signal strength value and second data link quality of a second data card, without receiving a switching instruction input by a user, so that the situation of poor terminal network quality when switching is performed due to user experience can be reduced, and the switching efficiency of the data cards is improved. In addition, when the terminal switches the data cards based on at least four signal thresholds, the accuracy of switching the data cards by the terminal can be improved, misoperation of switching the data cards when the signal quality of the first data card is good is reduced, and the use experience of a user can be improved.
The following describes in detail a switching device of a data card according to an embodiment of the present application with reference to fig. 11. It should be noted that, the data card switching apparatus shown in fig. 11 is used for executing the method of the embodiment shown in fig. 2 to fig. 10 of the present application, and for convenience of description, only the portion related to the embodiment of the present application is shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 2 to fig. 10 of the present application.
Please refer to fig. 11, which illustrates a schematic structural diagram of a switching device of a data card according to an embodiment of the present application. The switching device 1100 of the data card can be implemented as all or a part of the user terminal by software, hardware or a combination of both. According to some embodiments, the data card switching apparatus 1100 includes a latency obtaining unit 1101 and a data card switching unit 1102, and is specifically configured to:
a delay obtaining unit 1101, configured to obtain a first signal strength value and a first data link quality of a first data card, and obtain a second signal strength value and a second data link quality of a second data card;
the data card switching unit 1102 is configured to switch the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
According to some embodiments, the data card switching apparatus 1100 further includes a threshold setting unit 1103, configured to obtain a first signal strength value and a first data link quality of the first data card, and obtain a second signal strength value and a second data link quality of the second data card, and specifically configured to:
setting signal thresholds, wherein the signal thresholds at least comprise a first signal threshold, a second signal threshold, a third signal threshold and a fourth signal threshold.
According to some embodiments, the first data link quality is a first round trip delay, the second data link quality is a second round trip delay, and the data card switching unit 1102 is configured to, when performing switching between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality, specifically:
when the first signal intensity value is larger than the first signal threshold value, keeping the first data card and the second data card unchanged;
when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, switching the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the second signal threshold is smaller than the first signal threshold;
when the first signal strength value is smaller than or equal to the second signal strength threshold and larger than a third signal threshold, switching the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the third signal threshold is smaller than the second signal threshold;
when the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, switching the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the fourth signal threshold is smaller than the third signal threshold;
and when the first signal strength value is smaller than or equal to the fourth signal threshold, switching the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay.
According to some embodiments, the data card switching unit 1102 is configured to, when performing switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, specifically:
when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is larger than the second round-trip delay, switching the first data card and the second data card;
when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the first signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the data card switching unit 1102 is configured to, when performing switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay, specifically:
when the second signal intensity value is larger than the first signal threshold value, the second data card is used as the first data card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is less than or equal to the second signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the data card switching unit 1102 is configured to, when switching between the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, specifically:
when the second signal intensity value is larger than a second signal threshold value, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is less than or equal to the third signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the data card switching unit 1102 is configured to, when switching between the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, specifically:
when the second signal intensity value is larger than a third signal threshold value, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the fourth signal threshold value, keeping the first data card and the second data card unchanged.
An embodiment of the present application provides a switching apparatus for a data card, where a delay obtaining unit obtains a first signal strength value and a first data link quality of a first data card, and obtains a second signal strength value and a second data link quality of a second data card, and a data card switching unit may perform switching between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality. Therefore, the switching device of the data card can directly switch the data card based on the first signal intensity value of the first data card, the first data link quality, the second signal intensity value of the second data card and the second data link quality, does not need to receive a switching instruction of a user for the data card, can reduce the switching steps of the data card, reduces the switching time of the data card, improves the switching efficiency of the data card, and further can improve the use experience of the user.
Please refer to fig. 12, which is a schematic structural diagram of a terminal according to an embodiment of the present disclosure. As shown in fig. 12, the terminal 1200 may include: at least one processor 1201, at least one network interface 1204, a user interface 1203, memory 1205, at least one communication bus 1202.
Wherein a communication bus 1202 is used to enable connective communication between these components.
The user interface 1203 may include a Display screen (Display) and a GPS, and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
The network interface 1204 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Processor 1201 may include, among other things, one or more processing cores. The processor 1201 interfaces various components throughout the terminal 1200 using various interfaces and lines to perform various functions and manipulate data of the terminal 1200 by executing or performing instructions, programs, code sets, or instruction sets stored in the memory 1205, as well as invoking data stored in the memory 1205. Optionally, the processor 1201 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1201 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1201, and may be implemented by a single chip.
The Memory 1205 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1205 includes a non-transitory computer-readable medium (non-transitory computer-readable storage medium). The memory 1205 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1205 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1205 may also optionally be at least one storage device located remotely from the processor 1201 described previously. As shown in fig. 12, a memory 1205 as a kind of computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for switching of a data card.
In the terminal 1200 shown in fig. 12, the user interface 1203 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 1201 may be configured to invoke an application program for switching the data card stored in the memory 1205, and specifically perform the following operations:
acquiring a first signal strength value and a first data link quality of a first data card, and acquiring a second signal strength value and a second data link quality of a second data card;
and switching the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality and the second data link quality.
According to some embodiments, the processor 1201 is configured to obtain a first signal strength value and a first data link quality of a first data card, and obtain a second signal strength value and a second data link quality of a second data card, and specifically configured to perform the following steps:
setting signal thresholds, wherein the signal thresholds at least comprise a first signal threshold, a second signal threshold, a third signal threshold and a fourth signal threshold.
According to some embodiments, the first data link quality is a first round trip delay, the second data link quality is a second round trip delay, and the processor 1201 is configured to, when performing handover between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality, specifically perform the following steps:
when the first signal intensity value is larger than the first signal threshold value, keeping the first data card and the second data card unchanged;
when the first signal strength value is smaller than or equal to a first signal threshold value and larger than a second signal threshold value, switching the first data card and the second data card based on the first signal threshold value, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the second signal threshold value is smaller than the first signal threshold value;
when the first signal strength value is smaller than or equal to the second signal strength threshold and larger than a third signal threshold, switching the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the third signal threshold is smaller than the second signal threshold;
when the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, switching the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the fourth signal threshold is smaller than the third signal threshold;
and when the first signal strength value is smaller than or equal to the fourth signal threshold, switching the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay.
According to some embodiments, the processor 1201 is configured to, when performing a handover between a first data card and a second data card based on a first signal threshold, a second signal strength value, a first round trip delay, and a second round trip delay, specifically configured to perform the following steps:
when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is larger than the first signal threshold value and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the first signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the processor 1201 is configured to, when performing a handover between a first data card and a second data card based on a first signal threshold, a second signal strength value, a first round trip delay, and a second round trip delay, specifically configured to perform the following steps:
when the second signal intensity value is larger than the first signal threshold value, the second data card is used as the first data card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the second signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the processor 1201 is configured to, when performing a handover between a first data card and a second data card based on a second signal threshold, a third signal threshold, a second signal strength value, a first round trip delay, and a second round trip delay, specifically configured to perform the following steps:
when the second signal strength value is larger than a second signal threshold value, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the third signal threshold value, keeping the first data card and the second data card unchanged.
According to some embodiments, the processor 1201 is configured to, when performing a handover between the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay, specifically configured to perform the following steps:
when the second signal intensity value is larger than a third signal threshold value, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the first data card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the fourth signal threshold value, keeping the first data card and the second data card unchanged.
The embodiment of the application provides a terminal, which can perform switching between a first data card and a second data card based on a first signal strength value, a second signal strength value, first data link quality and second data link quality when the first signal strength value and the first data link quality of the first data card and the second signal strength value and the second data link quality of the second data card are obtained. Therefore, the terminal can directly switch the data cards based on the first signal intensity value and the first data link quality of the first data card and the second signal intensity value and the second data link quality of the second data card, does not need to receive a switching instruction of a user for the data cards, can reduce the switching steps of the data cards, reduces the switching time of the data cards, improves the switching efficiency of the data cards, and further can improve the use experience of the user.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-mentioned method. The computer-readable storage medium may include, but is not limited to, any type of disk including floppy disks, optical disks, DVD, CD-ROMs, microdrive, and magneto-optical disks, ROMs, RAMs, EPROMs, EEPROMs, DRAMs, VRAMs, flash memory devices, magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or device suitable for storing instructions and/or data.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to execute part or all of the steps of any one of the data card switching methods as described in the above method embodiments.
It is clear to a person skilled in the art that the solution of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can perform a specific function independently or in cooperation with other components, where the hardware may be, for example, a Field-ProgrammaBLE Gate Array (FPGA), an Integrated Circuit (IC), or the like.
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 the related descriptions of other embodiments.
In the several 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 division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some service interfaces, devices or units, and may be an electrical 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, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application, in essence or part of the technical solutions contributing to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
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 a program, which is stored in a computer-readable memory, and the memory may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
The above description is merely an exemplary embodiment of the present disclosure, and the scope of the present disclosure is not limited thereto. It is intended that all equivalent variations and modifications made in accordance with the teachings of the present disclosure be covered thereby. Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (8)

1. A method for switching data cards, the method comprising:
acquiring a first signal strength value and a first data link quality of a first data card, acquiring a second signal strength value and a second data link quality of a second data card, and setting signal thresholds, wherein the signal thresholds at least comprise a first signal threshold, a second signal threshold, a third signal threshold and a fourth signal threshold;
performing handover between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality, where the first data link quality is a first round trip delay, and the second data link quality is a second round trip delay;
wherein the switching between the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality comprises:
when the first signal strength value is larger than the first signal threshold value, keeping the first data card and the second data card unchanged;
when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the second signal strength value is larger than the first signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card;
when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the second signal strength value is larger than the first signal threshold, and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, and the second signal strength value is smaller than or equal to the first signal threshold, keeping the first data card and the second data card unchanged.
2. The method of claim 1, wherein the performing the handover of the first data card to the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality further comprises:
when the first signal strength value is smaller than or equal to the second signal threshold and larger than a third signal threshold, switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the third signal threshold is smaller than the second signal threshold;
when the first signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold, performing switching between the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round-trip delay and the second round-trip delay, wherein the fourth signal threshold is smaller than the third signal threshold;
when the first signal strength value is smaller than or equal to the fourth signal threshold, performing handover between the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay.
3. The method of claim 2, wherein the switching between the first data card and the second data card based on the first signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay comprises:
when the second signal strength value is larger than the first signal threshold value, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the second signal strength value is smaller than or equal to the second signal threshold value, keeping the first data card and the second data card unchanged.
4. The method of claim 2, wherein the switching the first data card and the second data card based on the second signal threshold, the third signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay comprises:
when the second signal strength value is larger than the second signal threshold value, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the second signal threshold and larger than the third signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
when the second signal strength value is smaller than or equal to the third signal threshold value, the first data card and the second data card are kept unchanged.
5. The method of claim 2, wherein the switching the first data card and the second data card based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round trip delay, and the second round trip delay comprises:
when the second signal strength value is larger than the third signal threshold value, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is larger than the second round-trip delay, taking the second data card as the data master card;
when the second signal strength value is smaller than or equal to the third signal threshold and larger than the fourth signal threshold and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
when the second signal strength value is smaller than or equal to the fourth signal threshold value, the first data card and the second data card are kept unchanged.
6. A switching device for data cards, the device comprising:
a delay obtaining unit, configured to obtain a first signal strength value and a first data link quality of a first data card, obtain a second signal strength value and a second data link quality of a second data card, and set a signal threshold, where the signal threshold at least includes a first signal threshold, a second signal threshold, a third signal threshold, and a fourth signal threshold;
a data card switching unit, configured to switch the first data card and the second data card based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality, where the first data link quality is a first round trip delay, and the second data link quality is a second round trip delay;
the data card switching unit is specifically configured to keep the first data card and the second data card unchanged when the first signal strength value is greater than the first signal threshold;
when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the second signal strength value is larger than the first signal threshold, and the first round-trip delay is larger than the second round-trip delay, taking the second data card as a data master card;
when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, the second signal strength value is larger than the first signal threshold, and the first round-trip delay is smaller than the second round-trip delay, keeping the first data card and the second data card unchanged;
and when the first signal strength value is smaller than or equal to the first signal threshold and larger than the second signal threshold, and the second signal strength value is smaller than or equal to the first signal threshold, keeping the first data card and the second data card unchanged.
7. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of any of the preceding claims 1-5 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of the preceding claims 1 to 5.
CN202010476235.3A 2020-05-29 2020-05-29 Data card switching method and device, terminal and storage medium Active CN111654852B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010476235.3A CN111654852B (en) 2020-05-29 2020-05-29 Data card switching method and device, terminal and storage medium
PCT/CN2021/084922 WO2021238404A1 (en) 2020-05-29 2021-04-01 Data card switching method and apparatus, and terminal, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010476235.3A CN111654852B (en) 2020-05-29 2020-05-29 Data card switching method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111654852A CN111654852A (en) 2020-09-11
CN111654852B true CN111654852B (en) 2022-11-08

Family

ID=72349746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010476235.3A Active CN111654852B (en) 2020-05-29 2020-05-29 Data card switching method and device, terminal and storage medium

Country Status (2)

Country Link
CN (1) CN111654852B (en)
WO (1) WO2021238404A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654852B (en) * 2020-05-29 2022-11-08 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium
CN112235780B (en) * 2020-09-24 2023-02-10 紫光展锐(重庆)科技有限公司 Data service switching method, equipment, device and storage medium
CN113225726B (en) * 2021-03-22 2023-05-16 闻泰通讯股份有限公司 Terminal-based switching method and device, terminal and storage medium
CN113573260A (en) * 2021-06-30 2021-10-29 广州市瀚云信息技术有限公司 Communication signal adjusting method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913384A (en) * 2019-11-11 2020-03-24 宇龙计算机通信科技(深圳)有限公司 Dial card switching method and device, storage medium and terminal

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101933464B1 (en) * 2012-09-19 2018-12-28 삼성전자주식회사 Apparatas and method for changing a connection state of network in an electronic device
CN105208205A (en) * 2015-08-27 2015-12-30 努比亚技术有限公司 Data service switching apparatus and method
CN106817731B (en) * 2015-11-30 2020-08-25 华为终端有限公司 Network switching method of terminal and terminal equipment
CN107889138A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 Communication link quality determines method, communication link system of selection and its device
CN107396412B (en) * 2017-08-09 2020-12-15 惠州Tcl移动通信有限公司 Switching method of IMS voice call network, storage equipment and mobile terminal
CN110876173B (en) * 2018-08-29 2022-02-18 中兴通讯股份有限公司 Switching method and terminal
CN109151954A (en) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its double card method for switching network and storage medium
CN110611941A (en) * 2019-08-23 2019-12-24 珠海格力电器股份有限公司 Network switching method and device
CN111654852B (en) * 2020-05-29 2022-11-08 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium
CN112235780B (en) * 2020-09-24 2023-02-10 紫光展锐(重庆)科技有限公司 Data service switching method, equipment, device and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913384A (en) * 2019-11-11 2020-03-24 宇龙计算机通信科技(深圳)有限公司 Dial card switching method and device, storage medium and terminal

Also Published As

Publication number Publication date
WO2021238404A1 (en) 2021-12-02
CN111654852A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111654852B (en) Data card switching method and device, terminal and storage medium
CN111240837B (en) Resource allocation method, device, terminal and storage medium
US11151010B2 (en) Resource configuration method, mobile terminal and storage medium
EP3385835B1 (en) Method and apparatus for configuring accelerator
WO2019042294A1 (en) Resource allocation method and related product
US10045263B2 (en) Network switching method and terminal device
US11182210B2 (en) Method for resource allocation and terminal device
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
EP3779690A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
CN110708733A (en) Network connection control method and device, storage medium and electronic equipment
CN112219423B (en) Transmission path switching method and device
CN112464095B (en) Message pushing method, device, terminal and storage medium
WO2021129111A1 (en) Session creation method, network element and computer-readable storage medium
CN111669322B (en) Relay bridging method and gateway
CN107148035B (en) Frequency band selection method and device and wireless equipment
CN110913450A (en) Control method and device for mobile hotspot, mobile terminal and storage medium
CN112491978B (en) Scheduling method and device
CN112738726B (en) Positioning method, positioning device, terminal and storage medium
CN112506460A (en) Screen control authority sharing method and device, terminal and storage medium
CN111767074A (en) Configuration updating method, device, terminal and storage medium
CN111338905A (en) Application node data processing method and device
CN113726608B (en) Data processing method and device
CN112423051B (en) Shared screen switching method, device, terminal and storage medium
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN111782100A (en) Method, device, terminal and storage medium for previewing background picture

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