WO2021238404A1 - Data card switching method and apparatus, and terminal, and storage medium - Google Patents

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

Info

Publication number
WO2021238404A1
WO2021238404A1 PCT/CN2021/084922 CN2021084922W WO2021238404A1 WO 2021238404 A1 WO2021238404 A1 WO 2021238404A1 CN 2021084922 W CN2021084922 W CN 2021084922W WO 2021238404 A1 WO2021238404 A1 WO 2021238404A1
Authority
WO
WIPO (PCT)
Prior art keywords
data card
round
signal
signal threshold
signal strength
Prior art date
Application number
PCT/CN2021/084922
Other languages
French (fr)
Chinese (zh)
Inventor
张峰
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021238404A1 publication Critical patent/WO2021238404A1/en

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

Definitions

  • This application belongs to the field of communication technology, and specifically relates to a data card switching method, device, terminal, and storage medium.
  • the terminal may be a dual-card dual-standby terminal.
  • Dual-card dual-standby terminal means that a terminal can install two data cards at the same time, and the two cards are in standby state.
  • the user can choose to switch the first data card to the second data card. At this time, the user can use the second data card to watch videos or browse information.
  • the embodiments of the present application provide a data card switching method, device, terminal, and storage medium, which can improve the efficiency of data card switching.
  • This technical solution includes:
  • an embodiment of the present application provides a data card switching method, the method includes:
  • the second signal strength value Based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality, perform the comparison between the first data card and the second data card Switch.
  • an embodiment of the present application provides a data card switching device, the device including:
  • a time delay obtaining unit configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card;
  • the data card switching unit is configured to perform the connection between the first data card and the second data link based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality. Switching of the second data card.
  • an embodiment of the present application provides a terminal, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor implements the foregoing when the computer program is executed. The method of any one of the first aspect.
  • an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above is implemented.
  • an embodiment of the present application provides a computer program product, wherein the foregoing computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the foregoing computer program is operable to cause a computer to execute Some or all of the steps described in one aspect.
  • the computer program product may be a software installation package.
  • the embodiment of the present application provides a data card switching method.
  • the terminal can obtain 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 signal strength value of the second data card.
  • data link quality switching between the first data card and the second data card is performed based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
  • FIG. 1 shows a schematic diagram of an application scenario of a data card switching method or a data card switching device applied to an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a data card switching method according to an embodiment of the present application
  • FIG. 3 shows an example schematic diagram of a terminal interface according to an embodiment of the present application
  • FIG. 4 shows a schematic flowchart of a data card switching method according to an embodiment of the present application
  • FIG. 5 shows an example schematic diagram of a terminal interface according to an embodiment of the present application
  • FIG. 6 shows a schematic flowchart of a data card switching method according to an embodiment of the present application
  • FIG. 7 shows a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • FIG. 9 shows a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • FIG. 10 shows an example schematic diagram of a terminal interface according to an embodiment of the present application.
  • FIG. 11 shows a schematic structural diagram of a data card switching device 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.
  • the terminal may be a dual-card dual-standby terminal.
  • Dual-card dual-standby terminal means that a terminal can install two data cards at the same time, and the two cards are in standby state.
  • FIG. 1 shows a schematic diagram of an application scenario of a data card switching method or a data card switching device applied to an embodiment of the present application.
  • the terminal can display the dual card logo on the display screen.
  • both cards can be used as data cards, but only one card can be used as a data card at the same time.
  • 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 data card currently in use.
  • the terminal may set the data card installed in the card slot 1 as the currently used data card.
  • the terminal can use the A data card as the currently used data card by default, that is, the terminal can default the A data card as the first data card.
  • the terminal needs to receive a user's switching instruction for the first data card and the second data card, and the terminal can switch the data card based on the switching instruction.
  • the switching instruction may be, for example, a click switching instruction.
  • the terminal receives the click switch instruction input by the user on the display screen, the terminal can set the B data card as the first data card and the A data card as the second data card.
  • the terminal may send a prompt message, which is used to prompt the user whether to switch the data card.
  • the user can input a switching instruction for the data card, and the terminal can switch the data card based on the received switching instruction.
  • the terminal completes the data card switching, the user can use the second data card to watch videos or browse information.
  • the terminal needs to receive a switching instruction for the data card input, which results in a complicated data card switching operation and low data card switching efficiency.
  • the terminal performs data card switching based on the switching instruction input by the user for the data card
  • the user only chooses based on experience and does not fully consider the information of the first data card and the second data card, resulting in lower signal instructions for the data card after switching , The problem of poor user experience.
  • Fig. 2-Fig. 10 The execution subject of the embodiment shown in Fig. 10 may be, for example, a terminal.
  • FIG. 2 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S101 to S102.
  • S101 Acquire a first signal strength value and a first data link quality of a first data card, and acquire a second signal strength value and a second data link quality of a second data card.
  • the first data card refers to a data card corresponding to cellular data currently used by a terminal that supports dual cards.
  • the first data card may be set when the terminal leaves the factory, or may be set based on a user's setting instruction.
  • the signal strength value refers to the received signal strength indicator value, which is used to characterize the physical quantity of the transmitted signal strength of the data card receiving signal transmission source.
  • the first signal strength value refers to the signal strength value corresponding to the first data card, and does not specifically refer to a certain fixed value.
  • the first signal strength value of the first data card may be -105dB, and the first signal strength value of the first data card may also be -115dB.
  • the second signal strength value refers to the signal strength value corresponding to the second data card, and does not specifically refer to a fixed value.
  • the second signal strength value of the second data card may be -115dB, and the second signal strength value of the second data card may also be -118dB.
  • the data link quality includes, but is not limited to, the data delay of the data card, the network standard, and so on.
  • the data delay may be round-trip delay, for example.
  • Round-Trip Time RTT
  • the round-trip delay is composed of three parts: the propagation time of the link (propagation delay), the processing time of the end system, and the queuing and processing time (queuing delay) in the router cache.
  • the values of the first two parts are relatively fixed for a TCP connection, and the queuing and processing time in the router cache will change with the change of the entire network congestion. Therefore, the change in the round-trip delay reflects the degree of network congestion to a certain extent, and the smaller the round-trip delay, the better the quality of the data link.
  • the first data link quality may be, for example, the first round-trip delay corresponding to the first data card, and does not specifically refer to a certain fixed value.
  • the second data link quality may be, for example, the second round-trip delay corresponding to the second data card, and does not specifically refer to a certain fixed value.
  • the first round-trip time delay represents the total time delay experienced since the terminal uses the first data card to send data to when the terminal receives the confirmation information of the data.
  • the terminal can only use the data main card to transmit data services.
  • the terminal can also use the data primary card and the data secondary card to transmit data services at the same time.
  • the terminal uses the main data card and the auxiliary data card to transmit data services at the same time, the terminal can determine the data service transmission volume of the main data card and the auxiliary data card based on preset rules. The embodiment of the application defaults that the first data card is the main data card, and the second data card is the secondary data card.
  • the terminal when the terminal uses the first data card to transmit data services, the terminal may obtain the first signal strength value and the first round-trip delay of the first data card, and obtain the second signal strength value of the second data card And the second round-trip delay.
  • the terminal supporting dual cards may be Q data cards and R data cards, for example.
  • the terminal can set the first data card as the main data card by default.
  • the terminal can also set the Q data card as the first data card and the R data card as the second data card.
  • the terminal uses the Q data card as the main data card for data transmission based on the factory settings, the terminal can obtain the first signal strength value and the first round-trip delay of the Q data card, and obtain the second signal strength value and the second signal strength of the R data card. Round trip delay.
  • the first signal strength value of the Q data card obtained by the terminal may be, for example, -110dB
  • the first round-trip delay may be, for example, 500ms
  • the second signal strength value of the R data card may be, for example, -118dB
  • the second round-trip delay may be, for example, It can be 550ms.
  • S102 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.
  • the terminal when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may be based on The acquired first signal strength value, second signal strength value, first data link quality, and second data link quality are used to switch between the first data card and the second data card.
  • the terminal when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal can The first signal strength value and the second signal strength value are compared with a plurality of preset signal threshold values to obtain a first comparison result. When the first comparison result does not meet the preset requirement, the terminal may switch the data card based on the first data link quality and the second data link quality.
  • 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 -119dB, for example
  • the second round-trip delay may be 450ms, for example.
  • the terminal determines that the first signal strength value is -120dB, and the second signal strength value may be, for example, -119dB
  • the terminal determines that the second round-trip delay is less than the first round-trip delay, and the terminal can switch the data card, that is, the terminal will R
  • the data card is switched to the first data card
  • the Q data card is switched to the second data card, that is, the terminal uses the R data card as the main data card and the Q data card as the secondary data card.
  • the terminal may send a prompt message for prompting whether to switch between the first data card and the second data card.
  • the terminal receives the confirmation information for the prompt information
  • the terminal can switch between the first data card and the second data card.
  • the Q data card is the first data card
  • the R data card is the second data card.
  • the prompt information sent by the terminal may be, for example, whether the R data card is the first data card and the Q data card is the second data card.
  • an example schematic diagram of the terminal interface may be as shown in FIG. 3.
  • the terminal can switch the R data card to the first data card and the Q data card to the second data card, that is, the terminal can use the R data card as the main data card for data services transmission.
  • the embodiment of the present application provides a data card switching method.
  • the terminal can obtain 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 signal strength value of the second data card.
  • data link quality switching between the first data card and the second data card is performed based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
  • the terminal can directly switch the data card 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, without the need to receive users
  • the switching instruction for the data card can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience.
  • the terminal performs data card switching 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, which can improve data card switching.
  • the accuracy of the data card reduces the instability of the data card network after the user switches the data card based on experience, thereby improving the user experience.
  • FIG. 4 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S201-S206.
  • S201 Acquire the first signal strength value and the first data link quality of the first data card, and acquire the second signal strength value and the second data link quality of the second data card.
  • the terminal when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may set the signal Threshold.
  • 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 includes at least 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 conditions. For example, the number of signal thresholds set by the terminal may be four or six.
  • the first signal threshold set by the terminal based on the magnitude of the signal strength value is -105dB
  • the second signal threshold is -114dB
  • the third signal threshold is -118dB
  • the fourth signal threshold is -120dB.
  • the first data link quality may be, for example, the first round-trip delay corresponding to the first data card, and does not specifically refer to a certain fixed value.
  • the second data link quality may be, for example, the second round-trip delay corresponding to the second data card, and does not specifically refer to a certain fixed value.
  • the first data link quality in the embodiment of the present application may be, for example, the first round-trip delay
  • the second data quality may be, for example, the second round-trip delay.
  • the terminal can only use the data main card to transmit data services.
  • the terminal can also use the data primary card and the data secondary card to transmit data services at the same time.
  • the embodiment of the application defaults that the first data card is the main data card, and the second data card is the secondary data card.
  • the first data link quality is the first round-trip delay
  • the second data link quality is the second round-trip delay.
  • the terminal when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may The magnitude relationship between the first signal intensity value and the first signal threshold value is detected. When the terminal detects that the first signal strength value is greater than the first signal threshold, the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the main data card
  • F data card is a data secondary card.
  • the first signal strength value of the D data card obtained by the terminal may be, for example, -104dB
  • the second signal strength value of the F data card may be, for example, -105dB.
  • the terminal when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay.
  • a relationship between the signal strength value and the signal threshold 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 can be based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay, Switching between the first data card and the second data card is performed, where the second signal threshold is smaller than the first signal threshold.
  • FIG. 6 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S301-S303.
  • S301 when the second signal strength value is greater than the first signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the data master card;
  • S302 when the second signal strength value is greater than the first signal Threshold value, and the first round-trip time delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
  • S303 when the second signal strength value is less than or equal to the first signal threshold, keep the first data The card and the second data card remain unchanged.
  • the terminal can detect whether the second signal strength value is greater than the first signal threshold value.
  • the terminal can detect whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -108dB
  • the second signal strength value of the F data card can be, for example, -104dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal keeps the D data card as the first data card and the F data card as the second data card unchanged.
  • the terminal can detect whether the second signal strength value is greater than the first signal threshold value.
  • the terminal can detect whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal uses the second data card as the main data card and uses the second data card to perform data services transmission.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -108dB
  • the second signal strength value of the F data card can be, for example, -104dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
  • the terminal can detect whether the second signal strength value is greater than the first signal threshold value.
  • the terminal detects that the second signal strength value is less than or equal to the first signal threshold value, it keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal may be, for example, -108dB
  • the second signal strength value of the F data card may be, for example, -108dB.
  • the terminal When the terminal detects that the first signal strength value of -108dB is less than the first signal threshold When -105dB is greater than the second signal threshold -114dB, and the terminal detects that the second signal strength value -108dB is less than the first signal threshold -105dB, the terminal keeps the first data card and the second data card unchanged.
  • the terminal when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay.
  • a relationship between the signal strength value and the signal threshold 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 can be based on the first signal threshold value, the second signal threshold value, the second signal strength value, the first round-trip delay, and the first signal threshold value.
  • the round trip delay is to switch between the first data card and the second data card.
  • the third signal threshold is smaller than the second signal threshold.
  • FIG. 7 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S401 to S404.
  • S401 when the second signal strength value is greater than the first signal threshold, use the second data card as the main data card;
  • S402 when the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and is in the first When the round-trip delay is greater than the second round-trip time delay, the second data card is used as the main data card;
  • S403 when the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and during the first round-trip When the delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
  • S404 when the second signal strength value is less than or equal to the second signal threshold, keep the first data card and the second data card different Change.
  • the terminal can detect whether the second signal strength value is greater than the first signal threshold value.
  • the terminal can use the second data card as the main data card and use the second data card for data service transmission.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the terminal can use the second data card as the main data card, that is, the terminal will
  • the D data card is set as the data secondary card
  • the F data card is set as the data main card
  • the F data card is used for data service transmission.
  • the terminal 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 can detect the magnitude relationship between the second signal strength value and the signal threshold value, that is, the terminal can detect the second signal Whether the strength value is greater than the first signal threshold value and whether the second signal strength value is greater than the second signal threshold value is detected when the terminal detects that the second signal strength value is less than the first signal threshold value.
  • the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal uses the second data card as the main data card and uses the second data card to transmit data services.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -115dB
  • the second signal strength value of the F data card can be, for example, -108dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • 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, and the terminal detects that the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -115dB
  • the second signal strength value of the F data card can be, for example, -108dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card
  • the F data card is the data secondary card.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal detects that the second signal strength value is less than or equal to the second signal threshold value, it keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the 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, -115dB
  • the terminal detects that the second signal strength value of the F data card is less than the first signal strength value of -115dB.
  • the second signal threshold is -114dB, and the terminal keeps the first data card and the second data card unchanged.
  • the terminal when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay.
  • a relationship between the signal strength value and the signal threshold When the terminal detects that the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, the terminal can be based on the second signal threshold value, the third signal threshold value, the second signal strength value, the first round-trip delay, and the first signal threshold value. Two round-trip delay, switching between the first data card and the second data card, wherein the fourth signal threshold is smaller than the third signal threshold.
  • FIG. 8 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S501 to S504.
  • S501 When the second signal strength value is greater than the second signal threshold, the second data card is used as the main data card; S502, when the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and in the first When the round-trip delay is greater than the second round-trip time delay, the second data card is used as the main data card; S503, when the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and during the first round-trip The delay is less than the second round-trip time delay, keeping the first data card and the second data card unchanged; S504, when the second signal strength value is less than or equal to the third signal threshold, keeping the first data card and the second data card different Change.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal may use the second data card as the main data card.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the terminal will use the second data card as the main data card, that is, the terminal will set D
  • the data card is set as the data secondary card
  • the F data card is set as the data main card, and the F data card is used for data service transmission.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • 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, and the terminal detects that the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal uses the second data card as the main data card.
  • the D data card is the first data card
  • the F data card is the 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
  • the first round-trip delay of the F data card is 502ms.
  • the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • 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, and the terminal detects that the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay.
  • the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the 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
  • the first round-trip delay of the F data card is 502ms.
  • the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card
  • the F data card is the data secondary card.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the 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, -118dB
  • the terminal detects that the second signal strength value of the F data card is equal to the first signal strength value of -118dB.
  • the three-signal threshold is -118dB, and the terminal keeps the first data card and the second data card unchanged.
  • the terminal when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay. A relationship between the signal strength value and the signal threshold.
  • the terminal may perform the processing based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching between the first data card and the second data card.
  • FIG. 9 provides a schematic flowchart of a data card switching method according to an embodiment of the present application.
  • the method of the embodiment of the present application may include the following steps S601 to S604.
  • 601 when the second signal strength value is greater than the third signal threshold, the second data card is used as the main data card;
  • 602 When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is greater than the second round-trip delay, the second data card is used as the data master card; 603, when the second The signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is less than the second round-trip delay, keep the first data card and the second data card unchanged;
  • 604 when the second When the signal strength value is less than or equal to the fourth signal threshold, keep the first data card and the second data card unchanged.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal may use the second data card as the main data card.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the terminal will use the second data card as the main data card, that is, the terminal will set D
  • the data card is set as the data secondary card
  • the F data card is set as the data main card, and the F data card is used for data service transmission.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold, and the terminal detects that the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal can detect whether the first round-trip delay is Greater than the second round-trip delay.
  • the terminal uses the second data card as the main data card.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -121dB
  • the second signal strength value of the F data card can be, for example, -119dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal can use the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card to perform Transmission of data services.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold, and the terminal detects that the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal can detect whether the first round-trip delay is Greater than the second round-trip delay.
  • the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the second data card.
  • the first signal strength value of the D data card obtained by the terminal can be, for example, -121dB
  • the second signal strength value of the F data card can be, for example, -119dB
  • the first round-trip delay of the D data card is 502ms
  • the first round-trip delay of the F data card is 502ms.
  • the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card
  • the F data card is the data secondary card.
  • the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value.
  • 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 fourth signal threshold value, the terminal keeps the first data card and the second data card unchanged.
  • the D data card is the first data card
  • the F data card is the 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 second signal strength value of the F data card is equal to the first signal strength value of -120dB.
  • the four-signal threshold is -120dB, and the terminal keeps the first data card and the second data card unchanged.
  • the terminal may send a prompt message, which is used to prompt the user that the first data card and the second data card have been switched and the current data Main card and data vice card.
  • the D data card is the main data card
  • the F data card is the secondary data card.
  • F The data card is the main data card
  • the D data card is the data secondary card.
  • the prompt message sent by the terminal can be, for example, that the switching between the first data card and the second data card has been completed, the F data card is the data main card, and the D data card is the data.
  • 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.
  • the second signal strength value of the first data card and the first data link quality can be obtained, and the second data card of the second data card can be obtained.
  • the signal strength value and the second data link quality are used to switch the data card without receiving a switching instruction input by the user. It can also reduce the bad terminal network quality when switching due to user experience and improve the switching efficiency of the data card.
  • the terminal performs data card switching based on at least four signal thresholds, the accuracy of data card switching by the terminal can be improved, and the misoperation of data card switching when the signal quality of the first data card is good can be reduced, thereby improving the user’s Use experience.
  • the data card switching device provided by the embodiment of the present application will be described in detail below with reference to FIG. 11. It should be noted that the data card switching device shown in FIG. 11 is used to execute the methods of the embodiments shown in FIG. 2 to FIG. 10 of the present application. For ease of description, only the parts related to the embodiments of the present application are shown. For specific technical details that are not disclosed, please refer to the embodiment shown in Figure 2 to Figure 10 of this application.
  • FIG. 11 shows a schematic structural diagram of a data card switching device according to an embodiment of the present application.
  • the data card switching device 1100 can be implemented as all or a part of the user terminal through software, hardware or a combination of the two.
  • the data card switching device 1100 includes a time delay acquiring unit 1101 and a data card switching unit 1102, which are specifically configured to:
  • the delay obtaining unit 1101 is configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card;
  • the data card switching unit 1102 is 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.
  • the data card switching device 1100 further includes a threshold setting unit 1103 for obtaining the first signal strength value and the first data link quality of the first data card, and obtaining the second signal of the second data card
  • the strength value and the quality of the second data link are specifically used for:
  • the signal threshold includes at least a first signal threshold, a second signal threshold, a third signal threshold, and a fourth signal threshold.
  • the first data link quality is a first round-trip delay
  • the second data link quality is a second round-trip delay.
  • the data card switching unit 1102 is configured to be based on the first signal strength value and the second signal strength value.
  • the value, the quality of the first data link and the quality of the second data link are specifically used when switching between the first data card and the second data card:
  • the first data card is performed based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching with the second data card, the second signal threshold is less than the first signal threshold;
  • the first signal strength value is less than or equal to the second signal strength threshold and greater than the third signal threshold, based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay , Switch between the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
  • the fourth signal threshold is smaller than the third signal threshold
  • the fourth signal threshold value When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay and the second round-trip delay, perform the first data card and Switching of the second data card.
  • the data card switching unit 1102 is configured to 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. , Specifically used for:
  • the first data card and the second data card are kept unchanged.
  • the data card switching unit 1102 is configured to perform the first data card and the second data card based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay.
  • the data card is specifically used for:
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the data card switching unit 1102 is configured to perform the first data card and the second round-trip delay 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.
  • the data card is specifically used for:
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the data card switching unit 1102 is configured to perform the first data card and the second round-trip delay 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.
  • the data card is specifically used for:
  • the second data card is used as the first data card
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the embodiment of the present application provides a data card switching device.
  • the time delay acquiring unit 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 first data link quality of the second data card.
  • the data card switching unit can 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 . Therefore, the data card switching device can directly switch the data card 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. There is no need to receive a user's switching instruction for the data card, which can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience.
  • the terminal 1200 may include: at least one processor 1201, at least one network interface 1204, a user interface 1203, a memory 1205, and at least one communication bus 1202.
  • the communication bus 1202 is used to implement connection and communication between these components.
  • the user interface 1203 may include a display screen (Display) and GPS, and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
  • Display display screen
  • GPS GPS
  • 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 and a wireless interface (such as a WI-FI interface).
  • the processor 1201 may include one or more processing cores.
  • the processor 1201 uses various excuses and lines to connect various parts of the entire terminal 1200, and executes the terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1205, and calling data stored in the memory 1205. 1200 various functions and processing data.
  • the processor 1201 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA) Realize in the form of hardware.
  • 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.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the content that the display needs to display; the modem is used for processing wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1201, but may be implemented by a chip alone.
  • the memory 1205 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 1205 includes a non-transitory computer-readable storage medium.
  • the memory 1205 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 1205 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the foregoing method embodiments, etc.; the storage data area can store the data involved in the foregoing method embodiments, etc.
  • the memory 1205 may also be at least one storage device located far away from the foregoing processor 1201.
  • the memory 1205, which is a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program for data card switching.
  • the user interface 1203 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1201 may be used to call an application program for data card switching stored in the memory 1205, And specifically perform the following operations:
  • Switching between the first data card and the second data card is performed based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
  • the processor 1201 is configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card, specifically Used to perform the following steps:
  • the signal threshold includes at least the first signal threshold, the second signal threshold, the third signal threshold, and the fourth signal threshold.
  • the first data link quality is a first round-trip delay
  • the second data link quality is a second round-trip delay
  • the processor 1201 is configured to be based on the first signal strength value, the second signal strength value, and the second
  • the first data link quality and the second data link quality are specifically used to perform the following steps when switching between the first data card and the second data card:
  • the first data card is performed based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching with the second data card, the second signal threshold is less than the first signal threshold;
  • the first signal strength value is less than or equal to the second signal strength threshold and greater than the third signal threshold, based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay , Switch between the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
  • the fourth signal threshold is smaller than the third signal threshold
  • the fourth signal threshold value When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay and the second round-trip delay, perform the first data card and Switching of the second data card.
  • the processor 1201 is configured to 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. To perform the following steps:
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the processor 1201 is configured to perform processing between the first data card and the second data card based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay. When switching, it is specifically used to perform the following steps:
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the processor 1201 is configured to perform processing 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. When switching, it is specifically used to perform the following steps:
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the processor 1201 is configured to perform processing 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. When switching, it is specifically used to perform the following steps:
  • the second data card is used as the first data card
  • the second data card is used as the first data card
  • the first data card and the second data card are kept unchanged.
  • the embodiment of the present application provides a terminal that can obtain 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 , Switching between the first data card and the second data card is performed 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 card 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, without the need to receive users
  • the switching instruction for the data card can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience.
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are realized.
  • the computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, micro drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices , Magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or equipment suitable for storing instructions and/or data.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes a non-transitory computer-readable storage medium storing a computer program.
  • the computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the data card switching method.
  • the technical 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 independently complete or cooperate with other components to complete specific functions.
  • the hardware may be a Field-Programmable Gate Array (FPGA), for example. , Integrated Circuit (IC), etc.
  • FPGA Field-Programmable Gate Array
  • IC Integrated Circuit
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some service interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable 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 various embodiments of the present application.
  • the aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer-readable memory, and the memory can include: flash memory Disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.

Abstract

The present application relates to the technical field of communications, and specifically relates to a data card switching method and apparatus, and a terminal, and a storage medium. The data card switching method comprises: obtaining a first signal strength value and first data link quality of a first data card, and obtaining a second signal strength value and second data link quality of a second data card; and performing switching between the first data card and the second data card on the basis of the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality. Therefore, a terminal can directly perform switching between the data cards on the basis of 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, without receiving a switching instruction of a user for the data cards; thus, operation steps of the data cards are reduced, data card switching time can be reduced, and use experience of the user can further be improved.

Description

数据卡的切换方法、装置、终端及存储介质Data card switching method, device, terminal and storage medium 技术领域Technical field
本申请属于通信技术领域,具体而言,涉及一种数据卡的切换方法、装置、终端及存储介质。This application belongs to the field of communication technology, and specifically relates to a data card switching method, device, terminal, and storage medium.
背景技术Background technique
随着终端技术的发展,终端可以支持的功能越来越多。例如终端可以是双卡双待终端。双卡双待终端是指一个终端可以同时装下两张数据卡,并且这两张卡均处于待机状态。With the development of terminal technology, more and more functions can be supported by the terminal. For example, the terminal may be a dual-card dual-standby terminal. Dual-card dual-standby terminal means that a terminal can install two data cards at the same time, and the two cards are in standby state.
目前,当终端中的第一数据卡的网络质量极差时,用户可以选择将第一数据卡切换至第二数据卡,此时用户可以使用第二数据卡观看视频或者浏览资讯。At present, when the network quality of the first data card in the terminal is extremely poor, the user can choose to switch the first data card to the second data card. At this time, the user can use the second data card to watch videos or browse information.
发明内容Summary of the invention
本申请实施例提供一种数据卡的切换方法、装置、终端及存储介质,可以提高数据卡的切换效率。本技术方案包括:The embodiments of the present application provide a data card switching method, device, terminal, and storage medium, which can improve the efficiency of data card switching. This technical solution includes:
第一方面,本申请实施例提供一种数据卡的切换方法,所述方法包括:In the first aspect, an embodiment of the present application provides a data card switching method, the method includes:
获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;Acquiring the first signal strength value and the first data link quality of the first data card, and acquiring the second signal strength value and the second data link quality of 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, perform the comparison between the first data card and the second data card Switch.
第二方面,本申请实施例提供一种数据卡的切换装置,所述装置包括:In a second aspect, an embodiment of the present application provides a data card switching device, the device including:
时延获取单元,用于获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;A time delay obtaining unit, configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card;
数据卡切换单元,用于基于所述第一信号强度值、所述第二信号强度值、所述第一数据链路质量以及所述第二数据链路质量,进行所述第一数据卡与所述第二数据卡的切换。The data card switching unit is configured to perform the connection between the first data card and the second data link based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality. Switching of the second data card.
第三方面,本申请实施例提供一种终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面任一项所述的方法。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 capable of running on the processor. The processor implements the foregoing when the computer program is executed. The method of any one of the first aspect.
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any one of the above is implemented.
第五方面,本申请实施例提供一种计算机程序产品,其中,上述计算机程序产品包括存储计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the foregoing computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the foregoing computer program is operable to cause a computer to execute Some or all of the steps described in one aspect. The computer program product may be a software installation package.
本申请实施例提供一种数据卡的切换方法,终端可以在获取到第一数据卡的第一信号强度值以及第一数据链路质量,以及第二数据卡的第二信号强度值以及第二数据链路质量时,基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。The embodiment of the present application provides a data card switching method. The terminal can obtain 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 signal strength value of the second data card. In the case of data link quality, switching between the first data card and the second data card is performed based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1示出应用于本申请实施例的数据卡的切换方法或者数据卡的切换装置的应用场景示意图;FIG. 1 shows a schematic diagram of an application scenario of a data card switching method or a data card switching device applied to an embodiment of the present application;
图2示出本申请实施例的一种数据卡的切换方法的流程示意图;FIG. 2 shows a schematic flowchart of a data card switching method according to an embodiment of the present application;
图3示出本申请实施例的一种终端界面的举例示意图;FIG. 3 shows an example schematic diagram of a terminal interface according to an embodiment of the present application;
图4示出本申请实施例的一种数据卡的切换方法的流程示意图FIG. 4 shows a schematic flowchart of a data card switching method according to an embodiment of the present application
图5示出本申请实施例的一种终端界面的举例示意图;FIG. 5 shows an example schematic diagram of a terminal interface according to an embodiment of the present application;
图6示出本申请实施例的一种数据卡的切换方法的流程示意图;FIG. 6 shows a schematic flowchart of a data card switching method according to an embodiment of the present application;
图7示出本申请实施例的一种数据卡的切换方法的流程示意图;FIG. 7 shows a schematic flowchart of a data card switching method according to an embodiment of the present application;
图8示出本申请实施例的一种数据卡的切换方法的流程示意图;FIG. 8 shows a schematic flowchart of a data card switching method according to an embodiment of the present application;
图9示出本申请实施例的一种数据卡的切换方法的流程示意图;FIG. 9 shows a schematic flowchart of a data card switching method according to an embodiment of the present application;
图10示出本申请实施例的一种终端界面的举例示意图;FIG. 10 shows an example schematic diagram of a terminal interface according to an embodiment of the present application;
图11示出本申请实施例一种数据卡的切换装置的结构示意图;FIG. 11 shows a schematic structural diagram of a data card switching device according to an embodiment of the present application;
图12示出本申请实施例的一种终端的结构示意图。FIG. 12 shows a schematic structural diagram of a terminal according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅为本申请实施例的一部分,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those skilled in the art to better understand the solutions of the application, the technical solutions in the embodiments of the application will be clearly and completely described below in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only It is a part of the embodiments of this application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by a person of ordinary skill in the art without creative work shall fall within the protection scope of this application.
随着终端技术的发展,终端可以支持的功能越来越多。例如终端可以是双卡双待终端。双卡双待终端是指一个终端可以同时装下两张数据卡,并且这两张卡均处于待机状态。With the development of terminal technology, more and more functions can be supported by the terminal. For example, the terminal may be a dual-card dual-standby terminal. Dual-card dual-standby terminal means that a terminal can install two data cards at the same time, and the two cards are in standby state.
图1示出应用于本申请实施例的数据卡的切换方法或者数据卡的切换装置的应用场景示意图。当支持双卡的终端中安装有两张卡时,终端可以在显示屏上显示双卡标识。其中,两张卡均可作为数据卡使用,但在同一时刻只能使用一张卡作为流量卡。FIG. 1 shows a schematic diagram of an application scenario of a data card switching method or a data card switching device applied to an embodiment of the present application. When two cards are installed in a terminal that supports dual cards, the terminal can display the dual card logo on the display screen. Among them, both cards can be used as data cards, but only one card can be used as a data card at the same time.
根据一些实施例,终端中安装的双卡例如可以是A数据卡和B数据卡。终端可以设置当前使用的数据卡。例如终端可以设置卡槽1中安装的数据卡为当前使用的数据卡。当用户将A数据卡安装在卡槽1,将B数据卡安装在卡槽2时,终端可以默认使用A数据卡为当前使用的数据卡,即终端可以默认A数据卡为第一数据卡。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 data card currently in use. For example, the terminal may set the data card installed in the card slot 1 as the currently used data card. When the user installs the A data card in the card slot 1 and the B data card in the card slot 2, the terminal can use the A data card as the currently used data card by default, that is, the terminal can default the A data card as the first data card.
易于理解的是,当终端进行第一数据卡和第二数据卡的切换时,终端需要接收用户针对第一数据卡和第二数据卡的切换指令,终端可以基于切换指令进行数据卡的切换。该切换指令例如可以是点击切换指令。当终端接收到用户在显示屏上输入的点击切换指令时,终端可以将B数据卡设置为第一数据卡,将A数据卡设置为第二数据卡。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 user's switching instruction for the first data card and the second data card, and the terminal can switch the data card based on the switching instruction. The switching instruction may be, for example, a click switching instruction. When the terminal receives the click switch instruction input by the user on the display screen, the terminal can set the B data card as the first data card and the A data card as the 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, which is used to prompt the user whether to switch the data card. When the user chooses to switch the data card, the user can input a switching instruction for the data card, and the terminal can switch the data card based on the received switching instruction. When the terminal completes the data card switching, the user can use the second data card to watch videos or browse information. However, in this process, the terminal needs to receive a switching instruction for the data card input, which results in a complicated data card switching operation and low data card switching efficiency. In addition, when the terminal performs data card switching based on the switching instruction input by the user for the data card, the user only chooses based on experience and does not fully consider the information of the first data card and the second data card, resulting in lower signal instructions for the data card after switching , The problem of poor user experience.
下面将结合附图2-附图10,对本申请实施例提供的数据卡的切换方法进行详细介绍。附图2-附图10所示实施例的执行主体例如可以为终端。The method for switching the data card provided by the embodiment of the present application will be described in detail below with reference to FIG. 2 to FIG. 10. Fig. 2-Fig. 10 The execution subject of the embodiment shown in Fig. 10 may be, for example, a terminal.
请参见图2,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图2所示,本申请实施例的所述方法可以包括以下步骤S101-步骤S102。Please refer to FIG. 2, which provides a schematic flowchart of a data card switching method according to 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,获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量。S101: Acquire a first signal strength value and a first data link quality of a first data card, and acquire a second signal strength value and a second data link quality of a second data card.
根据一些实施例,第一数据卡是指支持双卡的终端当前使用的蜂窝数据对应的数据卡。该第一数据卡可以是终端出厂时设置的,还可以是基于用户的设定指令设置的。信号强度值是指接收到的信号强度指示值,用来表征数据卡接收信号发射源的发射信号强弱的物理量。According to some embodiments, the first data card refers to a data card corresponding to cellular data currently used by a terminal that supports dual cards. The first data card may be set when the terminal leaves the factory, or may be set based on a user's setting instruction. The signal strength value refers to the received signal strength indicator value, which is used to characterize the physical quantity of the transmitted signal strength of the data card receiving signal transmission source.
易于理解的是,第一信号强度值是指第一数据卡对应的信号强度值,并不特指某一固定数值。例如第一数据卡的第一信号强度值可以是-105dB,第一数据卡的第一信号强度值还可以是-115dB。第二信号强度值是指第二数据卡对应的信号强度值,并不特指某一固定数值。例如第二数据卡的第二信号 强度值可以是-115dB,第二数据卡的第二信号强度值还可以是-118dB。It is easy to understand that the first signal strength value refers to the signal strength value corresponding to the first data card, and does not specifically refer to a certain fixed value. For example, the first signal strength value of the first data card may be -105dB, and the first signal strength value of the first data card may also be -115dB. The second signal strength value refers to the signal strength value corresponding to the second data card, and does not specifically refer to a fixed value. For example, the second signal strength value of the second data card may be -115dB, and the second signal strength value of the second data card may also be -118dB.
可选的,数据链路质量包括但不限于数据卡的数据时延、网络制式等。其中数据时延例如可以是往返时延。往返时延(Round-Trip Time,RTT),往返时延由三部分组成:链路的传播时间(propagation delay)、末端系统的处理时间、路由器缓存中的排队和处理时间(queuing delay)。其中,前两个部分的值对于一个TCP连接相对固定,路由器缓存中的排队和处理时间会随着整个网络拥塞程度的变化而变化。因此往返时延的变化在一定程度上反应了网络的拥塞程度,并且往返时延的数值越小说明数据链路质量越好。Optionally, the data link quality includes, but is not limited to, the data delay of the data card, the network standard, and so on. The data delay may be round-trip delay, for example. Round-Trip Time (RTT). The round-trip delay is composed of three parts: the propagation time of the link (propagation delay), the processing time of the end system, and the queuing and processing time (queuing delay) in the router cache. Among them, the values of the first two parts are relatively fixed for a TCP connection, and the queuing and processing time in the router cache will change with the change of the entire network congestion. Therefore, the change in the round-trip delay reflects the degree of network congestion to a certain extent, and the smaller the round-trip delay, the better the quality of the data link.
根据一些实施例,第一数据链路质量例如可以是第一数据卡对应的第一往返时延,并不特指某一固定数值。第二数据链路质量例如可以是第二数据卡对应的第二往返时延,并不特指某一固定数值。第一往返时延表示从终端使用第一数据卡发送数据开始,到终端收到该数据的确认信息时,总共经历的时延。According to some embodiments, the first data link quality may be, for example, the first round-trip delay corresponding to the first data card, and does not specifically refer to a certain fixed value. The second data link quality may be, for example, the second round-trip delay corresponding to the second data card, and does not specifically refer to a certain fixed value. The first round-trip time delay represents the total time delay experienced since the terminal uses the first data card to send data to when the terminal receives the confirmation information of the data.
易于理解的是,当第一数据卡为数据主卡,第二数据卡为数据副卡时,终端可以只使用数据主卡进行数据业务的传输。当第一数据卡为数据主卡,第二数据卡为数据副卡时,终端还可以同时使用数据主卡和数据副卡进行数据业务的传输。当终端同时使用数据主卡和数据副卡进行数据业务的传输时,终端可以基于预设规则确定数据主卡和数据副卡的数据业务传输量。本申请实施例默认第一数据卡为数据主卡,第二数据卡为数据副卡。It is easy to understand that when the first data card is a data main card and the second data card is a data secondary card, the terminal can only use the data main card to transmit data services. When the first data card is a data main card and the second data card is a data secondary card, the terminal can also use the data primary card and the data secondary card to transmit data services at the same time. When the terminal uses the main data card and the auxiliary data card to transmit data services at the same time, the terminal can determine the data service transmission volume of the main data card and the auxiliary data card based on preset rules. The embodiment of the application defaults that the first data card is the main data card, and the second data card is the secondary data card.
可选的,当终端使用第一数据卡进行数据业务的传输时,终端可以获取第一数据卡的第一信号强度值以及第一往返时延,并获取第二数据卡的第二信号强度值以及第二往返时延。Optionally, when the terminal uses the first data card to transmit data services, the terminal may obtain the first signal strength value and the first round-trip delay of the first data card, and obtain the second signal strength value of the second data card And the second round-trip delay.
根据一些实施例,终端支持双卡例如可以是Q数据卡和R数据卡。其中基于出厂设置,终端可以默认设置第一数据卡为数据主卡。基于出厂设置,终端还可以设置Q数据卡为第一数据卡并设置R数据卡为第二数据卡。终端基于出厂设置使用Q数据卡作为数据主卡进行数据传输时,终端可以获取Q数据卡的第一信号强度值以及第一往返时延,并获取R数据卡的第二信号强度值以及第二往返时延。终端获取到的Q数据卡的第一信号强度值例如可以是-110dB,第一往返时延例如可以是500ms,R数据卡的第二信号强度值例如可以是-118dB,第二往返时延例如可以是550ms。According to some embodiments, the terminal supporting dual cards may be Q data cards and R data cards, for example. Based on the factory settings, the terminal can set the first data card as the main data card by default. Based on the factory settings, the terminal can also set the Q data card as the first data card and the R data card as the second data card. When the terminal uses the Q data card as the main data card for data transmission based on the factory settings, the terminal can obtain the first signal strength value and the first round-trip delay of the Q data card, and obtain the second signal strength value and the second signal strength of the R data card. Round trip delay. The first signal strength value of the Q data card obtained by the terminal may be, for example, -110dB, the first round-trip delay may be, for example, 500ms, the second signal strength value of the R data card may be, for example, -118dB, and the second round-trip delay may be, for example, It can be 550ms.
S102,基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。S102: 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.
根据一些实施例,终端获取到第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量时,终端可以基于获取到的第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。According to some embodiments, when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may be based on The acquired first signal strength value, second signal strength value, first data link quality, and second data link quality are used to switch between the first data card and the second data card.
易于理解的是,当终端获取到第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量时,终端可以将第一信号强度值与和第二信号强度值与多个预设信号阈值的进行对比,获取到第一对比结果。在第一对比结果不符合预设要求时,终端可以基于第一数据链路质量和第二数据链路质量进行数据卡的切换。It is easy to understand that when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal can The first signal strength value and the second signal strength value are compared with a plurality of preset signal threshold values to obtain a first comparison result. When the first comparison result does not meet the preset requirement, the terminal may switch the data card based on the first data link quality and the second data link quality.
可选的,Q数据卡为第一数据卡,R数据卡为第二数据卡时,终端获取到的Q数据卡的第一信号强度值例如可以是-120dB,第一往返时延例如可以是500ms,R数据卡的第二信号强度值例如可以是-119dB,第二往返时延例如可以是450ms。当终端确定第一信号强度值为-120dB,第二信号强度值例如可以是-119dB时,终端确定第二往返时延小于第一往返时延,终端可以进行数据卡的切换,即终端将R数据卡切换为第一数据卡,Q数据卡切换为第二数据卡,即终端将R数据卡作为数据主卡,将Q数据卡作为数据副卡。Optionally, when the Q data card is the first data card and the R data card is the second data card, the first signal strength value of the Q data card acquired by the terminal may be, for example, -120dB, and the first round-trip delay may be, for example, 500ms, the second signal strength value of the R data card may be -119dB, for example, and the second round-trip delay may be 450ms, for example. When the terminal determines that the first signal strength value is -120dB, and the second signal strength value may be, for example, -119dB, the terminal determines that the second round-trip delay is less than the first round-trip delay, and the terminal can switch the data card, that is, the terminal will R The data card is switched to the first data card, and the Q data card is switched to the second data card, that is, the terminal uses the R data card as the main data card and the Q data card as the secondary data card.
根据一些实施例,当终端进行第一数据卡与第二数据卡的切换时,终端可以发出提示信息,该提示信息用于提示是否进行第一数据卡与第二数据卡的切换。当终端接收到针对提示信息的确认信息时,终端可以进行第一数据卡与第二数据卡的切换。例如终端未进行第一数据卡与第二数据卡的切换之前,Q数据卡为第一数据卡,R数据卡为第二数据卡。当终端进行第一数据卡与第二数据卡的切换时,终端发出的提示信息例如可以是是否将R数据卡为第一数据卡,Q数据卡为第二数据卡。此时,终端界面的举例示意图可以如图3所示。当终端接收到针对提示信息的确认信息时,终端可以将R数据卡切换为第一数据卡,Q数据卡切换为第二数据卡,即终端可以使用R数据卡作为数据主卡进行数据业务的传输。According to some embodiments, when the terminal switches between the first data card and the second data card, the terminal may send a prompt message for prompting whether to switch between the first data card and the second data card. When the terminal receives the confirmation information for the prompt information, the terminal can switch between the first data card and the second data card. For example, before the terminal switches 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 information sent by the terminal may be, for example, whether the R data card is the first data card and the Q data card is the second data card. At this time, an example schematic diagram of the terminal interface may be as shown in FIG. 3. When the terminal receives the confirmation message for the prompt message, the terminal can switch the R data card to the first data card and the Q data card to the second data card, that is, the terminal can use the R data card as the main data card for data services transmission.
本申请实施例提供一种数据卡的切换方法,终端可以在获取到第一数据卡的第一信号强度值以及第一数据链路质量,以及第二数据卡的第二信号强度值以及第二数据链路质量时,基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。因此终端可以直接基于第一数据卡的第一信号强度值以及第一数据链路质量以及第二数据卡的第二信号强度值以及第二数据链路质量进行数据卡的切换,不需要接收用户针对数据卡的切换指令,可以减少数据卡的切换步骤,减少数据卡的切换时间,提高数据卡的切换效率,进而可以提升用户的使用体验。另外,终端基于第一数据卡的第一信号强度值以及第一数据链路质量以及第二数据卡的第二信号强度值以及第二数据链路质量进行数据卡的切换,可以提高数据卡切换的准确性,减少由于用户基于经验进行数据卡切换后数据卡网络不稳定的情况,进而可以提升用户的使用体验。The embodiment of the present application provides a data card switching method. The terminal can obtain 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 signal strength value of the second data card. In the case of data link quality, switching between the first data card and the second data card is performed 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 card 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, without the need to receive users The switching instruction for the data card can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience. In addition, the terminal performs data card switching 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, which can improve data card switching. The accuracy of the data card reduces the instability of the data card network after the user switches the data card based on experience, thereby improving the user experience.
请参见图4,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图4所示,本申请实施例的所述方法可以包括以下步骤S201-步骤S206。Refer to FIG. 4, which provides a schematic flowchart of a data card switching method according to 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-S206.
S201,获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量。S201: Acquire the first signal strength value and the first data link quality of the first data card, and acquire the second signal strength value and the second data link quality of the second data card.
根据一些实施例,终端获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量时,终端可以设置信号阈值。信号阈值可以是终端基于信号强度值的大小设置的。终端设置的信号阈值至少包括第一信号阈值、第二信号阈值、第三信号阈值以及第四信号阈值。终端设置的信号阈值的数量可以基于实际使用情况确定,例如终端设置的信号阈值的数量可以是四个,也可以是六个。According to some embodiments, when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may set the signal Threshold. 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 includes at least 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 conditions. For example, the number of signal thresholds set by the terminal may be four or six.
易于理解的是,例如终端基于信号强度值的大小设置的第一信号阈值为-105dB、第二信号阈值为-114dB、第三信号阈值为-118dB和第四信号阈值为-120dB。It is easy to understand that, for example, the first signal threshold set by the terminal based on the magnitude of the signal strength value is -105dB, the second signal threshold is -114dB, the third signal threshold is -118dB, and the fourth signal threshold is -120dB.
根据一些实施例,第一数据链路质量例如可以是第一数据卡对应的第一往返时延,并不特指某一固定数值。第二数据链路质量例如可以是第二数据卡对应的第二往返时延,并不特指某一固定数值。本申请实施例的第一数据链路质量例如可以是第一往返时延,第二数据质量例如可以是第二往返时延。According to some embodiments, the first data link quality may be, for example, the first round-trip delay corresponding to the first data card, and does not specifically refer to a certain fixed value. The second data link quality may be, for example, the second round-trip delay corresponding to the second data card, and does not specifically refer to a certain fixed value. The first data link quality in the embodiment of the present application may be, for example, the first round-trip delay, and the second data quality may be, for example, the second round-trip delay.
易于理解的是,当第一数据卡为数据主卡,第二数据卡为数据副卡时,终端可以只使用数据主卡进行数据业务的传输。当第一数据卡为数据主卡,第二数据卡为数据副卡时,终端还可以同时使用数据主卡和数据副卡进行数据业务的传输。本申请实施例默认第一数据卡为数据主卡,第二数据卡为数据副卡。It is easy to understand that when the first data card is a data main card and the second data card is a data secondary card, the terminal can only use the data main card to transmit data services. When the first data card is a data main card and the second data card is a data secondary card, the terminal can also use the data primary card and the data secondary card to transmit data services at the same time. The embodiment of the application defaults that the first data card is the main data card, and the second data card is the secondary data card.
具体过程如上所述,此处不再赘述。The specific process is as described above and will not be repeated here.
S202,第一数据链路质量为第一往返时延,第二数据链路质量为第二往返时延,当第一信号强度值大于第一信号阈值时,保持第一数据卡与第二数据卡不变。S202. The first data link quality is the first round-trip delay, and the second data link quality is the second round-trip delay. When the first signal strength value is greater than the first signal threshold, the first data card and the second data are maintained The card remains unchanged.
根据一些实施例,当终端获取到第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量时,终端可以检测第一信号强度值和第一信号阈值的大小关系。当终端检测到第一信号强度值大于第一信号阈值时,终端保持第一数据卡和第二数据卡不变。According to some embodiments, when the terminal obtains the first signal strength value and the first data link quality of the first data card, and obtains the second signal strength value and the second data link quality of the second data card, the terminal may The magnitude relationship between the first signal intensity value and the first signal threshold value is detected. When the terminal detects that the first signal strength value is greater than the first signal threshold, the terminal keeps the first data card and the second data card unchanged.
易于理解的是,终端获取第一数据卡的第一信号强度值以及第一往返时延,并获取数据副卡的第二信号强度值以及第二往返时延之前,D数据卡为数据主卡,F数据卡为数据副卡。终端获取到的D数据卡的第一信号强度值例如可以是-104dB,F数据卡的第二信号强度值例如可以是-105dB。当终端检测到第一信号强度值-104dB大于第一信号阈值-105dB时,终端保持第一数据卡和第二数据卡不变,即D数据卡为数据主卡,F数据卡为数据副卡。此时,终端界面的举例示意图可以如图5所示。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 main data card , F data card is a data secondary card. The first signal strength value of the D data card obtained 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 strength value -104dB is greater than the first signal threshold -105dB, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the main data card, and the F data card is the secondary data card. . At this time, an example schematic diagram of the terminal interface may be as shown in FIG. 5.
S203,当第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第二信号阈值小于第一信号阈值。S203: When the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, perform the first signal based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. For switching between the data card and the second data card, the second signal threshold is smaller than the first signal threshold.
根据一些实施例,当终端获取到第一数据卡的第一信号强度值以及第一往返时延,并获取第二数据卡的第二信号强度值以及第二往返时延时,终端可以检测第一信号强度值和信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,终端可以基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换, 其中,第二信号阈值小于第一信号阈值。According to some embodiments, when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay. A relationship between the signal strength value and the signal threshold. 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 can be based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay, Switching between the first data card and the second data card is performed, where the second signal threshold is smaller than the first signal threshold.
根据一些实施例,请参见图6,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图6所示,本申请实施例的所述方法可以包括以下步骤S301-步骤S303。S301,当第二信号强度值大于第一信号阈值,且第一往返时延大于第二往返时延时,将第二数据卡作为数据主卡;S302,当第二信号强度值大于第一信号阈值,且第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;S303,当第二信号强度值小于或者等于第一信号阈值时,保持第一数据卡与第二数据卡不变。According to some embodiments, please refer to FIG. 6, which provides a schematic flowchart 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-S303. S301, when the second signal strength value is greater than the first signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the data master card; S302, when the second signal strength value is greater than the first signal Threshold value, and the first round-trip time delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged; S303, when the second signal strength value is less than or equal to the first signal threshold, keep the first data The card and the second data card remain unchanged.
易于理解的是,当终端检测到第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,终端可以检测第二信号强度值是否大于第一信号阈值。当终端检测到第二信号强度值大于第一信号阈值时,终端可以检测第一往返时延是否大于第二往返时延。当终端检测到第二信号强度值大于第一信号阈值,且第一往返时延小于第二往返时延时,终端保持第一数据卡和第二数据卡不变。It is easy to understand 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 can 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 can detect whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the second signal strength value is greater than the first signal threshold, and the first round-trip time delay is less than the second round-trip time delay, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-108dB,F数据卡的第二信号强度值例如可以是-104dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为550ms时,终端保持D数据卡为第一数据卡和F数据卡为第二数据卡不变。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -108dB, the second signal strength value of the F data card can be, for example, -104dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 550 ms, 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 easy to understand 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 can 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 can detect whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the second signal strength value is greater than the first signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the terminal uses the second data card as the main data card and uses the second data card to perform data services transmission.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-108dB,F数据卡的第二信号强度值例如可以是-104dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为450ms时,终端将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -108dB, the second signal strength value of the F data card can be, for example, -104dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 450ms, the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
易于理解的是,当终端检测到第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,终端可以检测第二信号强度值是否大于第一信号阈值。当终端检测到第二信号强度值小于或者等于第一信号阈值时,保持第一数据卡与第二数据卡不变。例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-108dB,F数据卡的第二信号强度值例如可以是-108dB,当终端检测到第一信号强度值-108dB小于第一信号阈值-105dB且大于第二信号阈值-114dB时,且终端检测到第二信号强度值-108dB小于第一信号阈值-105dB时,终端保持第一数据卡与第二数据卡不变。It is easy to understand 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 can 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 less than or equal to the first signal threshold value, it keeps the first data card and the second data card unchanged. For example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal may be, for example, -108dB, and the second signal strength value of the F data card may be, for example, -108dB. When the terminal detects that the first signal strength value of -108dB is less than the first signal threshold When -105dB is greater than the second signal threshold -114dB, and the terminal detects that the second signal strength value -108dB is less than the first signal threshold -105dB, the terminal keeps the first data card and the second data card unchanged.
S204,当第一信号强度值小于或者等于第二信号强度阈值且大于第三信号阈值时,基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第三信号阈值小于第二信号阈值。S204: When the first signal strength value is less than or equal to the second signal strength threshold and greater than the third signal threshold, based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay. Delay, switch between the first data card and the second data card, and the third signal threshold is smaller than the second signal threshold.
根据一些实施例,当终端获取到第一数据卡的第一信号强度值以及第一往返时延,并获取第二数据卡的第二信号强度值以及第二往返时延时,终端可以检测第一信号强度值和信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值时,终端可以基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换。其中,第三信号阈值小于第二信号阈值。According to some embodiments, when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay. A relationship between the signal strength value and the signal threshold. 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 can be based on the first signal threshold value, the second signal threshold value, the second signal strength value, the first round-trip delay, and the first signal threshold value. Second, the round trip delay is to switch between the first data card and the second data card. Wherein, the third signal threshold is smaller than the second signal threshold.
根据一些实施例,请参见图7,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图7所示,本申请实施例的所述方法可以包括以下步骤S401-步骤S404。S401,当第二信号强度值大于第一信号阈值时,将第二数据卡作为数据主卡;S402,当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为数据主卡;S403,当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;S404,当第二信号强度值小于或者等于第二信号阈值时,保持第一数据卡与第二数据卡不变。According to some embodiments, please refer to FIG. 7, which provides a schematic flowchart 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 strength value is greater than the first signal threshold, use the second data card as the main data card; S402, when the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and is in the first When the round-trip delay is greater than the second round-trip time delay, the second data card is used as the main data card; S403, when the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and during the first round-trip When the delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged; S404, when the second signal strength value is less than or equal to the second signal threshold, keep the first data card and the second data card different Change.
易于理解的是,当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值时,终端可以检测第二信号强度值是否大于第一信号阈值。当终端检测到第二信号强度值大于第一信 号阈值时,终端可以将第二数据卡作为数据主卡,并使用第二数据卡进行数据业务的传输。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 value and greater than the third signal threshold value, the terminal can 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 can use the second data card as the main data card and use the second data card for data service transmission.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-115dB,F数据卡的第二信号强度值例如可以是-104dB时,终端可以将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. When the first signal strength value of the D data card obtained by the terminal can be, for example, -115dB, and the second signal strength value of the F data card can be, for example, -104dB, the terminal can use the second data card as the main data card, that is, the terminal will The D data card is set as the data secondary card, and the F data card is set as the data main card, and the F data card is used 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 value and greater than the third signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value, that is, the terminal can detect the second signal Whether the strength value is greater than the first signal threshold value and whether the second signal strength value is greater than the second signal threshold value is detected when the terminal detects that the second signal strength value is less than the first signal threshold value. 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, and the terminal detects that the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is greater than the second round-trip time delay, the terminal uses the second data card as the main data card and uses the second data card to transmit data services.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-115dB,F数据卡的第二信号强度值例如可以是-108dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为450ms时,终端将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -115dB, the second signal strength value of the F data card can be, for example, -108dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 450ms, the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
易于理解的是,当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且终端检测到第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,终端可以检测第一往返时延是否大于第二往返时延。当终端检测到第一往返时延小于第二往返时延时,终端保持第一数据卡与第二数据卡不变。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 value and greater than the third signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. 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, and the terminal detects that the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is less than the second round-trip time delay, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-115dB,F数据卡的第二信号强度值例如可以是-108dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为555ms时,终端保持第一数据卡与第二数据卡不变,即D数据卡为数据主卡,F数据卡为数据副卡。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -115dB, the second signal strength value of the F data card can be, for example, -108dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 555 ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card, and the F data card is the data secondary card.
易于理解的是,当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第二信号强度值小于或者等于第二信号阈值时,保持第一数据卡与第二数据卡不变。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 value and greater than the third signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the second signal strength value is less than or equal to the second signal threshold value, it keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-108dB,F数据卡的第二信号强度值例如可以是-115dB,终端检测到F数据卡的第二信号强度值-115dB小于第二信号阈值-114dB,终端保持第一数据卡与第二数据卡不变。Optionally, for example, the D data card is the first data card, and the F data card is the 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, -115dB, and the terminal detects that the second signal strength value of the F data card is less than the first signal strength value of -115dB. The second signal threshold is -114dB, and the terminal keeps the first data card and the second data card unchanged.
S205,当第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第四信号阈值小于第三信号阈值。S205: When the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, based on the second signal threshold value, the third signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip time Delay, switch between the first data card and the second data card, and the fourth signal threshold is smaller than the third signal threshold.
根据一些实施例,当终端获取到第一数据卡的第一信号强度值以及第一往返时延,并获取第二数据卡的第二信号强度值以及第二往返时延时,终端可以检测第一信号强度值和信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,终端可以基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,其中,第四信号阈值小于第三信号阈值。According to some embodiments, when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay. A relationship between the signal strength value and the signal threshold. When the terminal detects that the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, the terminal can be based on the second signal threshold value, the third signal threshold value, the second signal strength value, the first round-trip delay, and the first signal threshold value. Two round-trip delay, switching between the first data card and the second data card, wherein the fourth signal threshold is smaller than the third signal threshold.
根据一些实施例,请参见图8,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图8所示,本申请实施例的所述方法可以包括以下步骤S501-步骤S504。S501,当第二信号强度值大于第二信号阈值时,将第二数据卡作为数据主卡;S502,当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为数据主卡;S503,当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;S504,当第二信号强度值小于或者等于第三信号阈值时,保持第一数据卡与第二数据卡不变。According to some embodiments, please refer to FIG. 8, which provides a schematic flowchart of a data card switching method 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 strength value is greater than the second signal threshold, the second data card is used as the main data card; S502, when the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and in the first When the round-trip delay is greater than the second round-trip time delay, the second data card is used as the main data card; S503, when the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and during the first round-trip The delay is less than the second round-trip time delay, keeping the first data card and the second data card unchanged; S504, when the second signal strength value is less than or equal to the third signal threshold, keeping the first data card and the second data card different Change.
易于理解的是,当终端检测到第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值 时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第二信号强度值大于第二信号阈值时,终端可以将第二数据卡作为数据主卡。It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the second signal strength value is greater than the second signal threshold, the terminal may use the second data card as the main data card.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-119dB,F数据卡的第二信号强度值例如可以是-113dB时,终端将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. When the first signal strength value of the D data card acquired by the terminal can be, for example, -119dB, and the second signal strength value of the F data card can be, for example, -113dB, the terminal will use the second data card as the main data card, that is, the terminal will set D The data card is set as the data secondary card, and the F data card is set as the data main card, and the F data card is used 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 third signal threshold value and greater than the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. 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, and the terminal detects that the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is greater than the second round-trip time delay, the terminal uses the second data card as the main data card.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-119dB,F数据卡的第二信号强度值例如可以是-115dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为450ms时,终端将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the 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 the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 450ms, the terminal uses the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card for data Transmission of business.
易于理解的是,当终端检测到第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且终端检测到第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值时,终端可以检测第一往返时延是否大于第二往返时延。当终端检测到第一往返时延小于第二往返时延时,终端保持第一数据卡与第二数据卡不变。It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. 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, and the terminal detects that the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, the terminal can detect Whether the first round-trip delay is greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is less than the second round-trip time delay, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-119dB,F数据卡的第二信号强度值例如可以是-115dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为555ms时,终端保持第一数据卡与第二数据卡不变,即D数据卡为数据主卡,F数据卡为数据副卡。Optionally, for example, the D data card is the first data card, and the F data card is the 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 the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 555 ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card, and the F data card is the data secondary card.
易于理解的是,当终端检测到第一信号强度值小于或者等于第二信号阈值且大于第三信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第二信号强度值小于或者等于第三信号阈值时,终端保持第一数据卡与第二数据卡不变。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 value and greater than the third signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the second signal strength value is less than or equal to the third signal threshold, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-119dB,F数据卡的第二信号强度值例如可以是-118dB,终端检测到F数据卡的第二信号强度值-118dB等于第三信号阈值-118dB,终端保持第一数据卡与第二数据卡不变。Optionally, for example, the D data card is the first data card, and the F data card is the 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, -118dB, and the terminal detects that the second signal strength value of the F data card is equal to the first signal strength value of -118dB. The three-signal threshold is -118dB, and the terminal keeps the first data card and the second data card unchanged.
S206,当第一信号强度值小于或者等于第四信号阈值时,基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换。S206: When the first signal strength value is less than or equal to the fourth signal threshold value, perform the first data based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switch between the card and the second data card.
根据一些实施例,当终端获取到第一数据卡的第一信号强度值以及第一往返时延,并获取第二数据卡的第二信号强度值以及第二往返时延时,终端可以检测第一信号强度值和信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第四信号阈值时,终端可以基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换。According to some embodiments, when the terminal obtains the first signal strength value and the first round-trip time delay of the first data card, and obtains the second signal strength value and the second round-trip time delay of the second data card, the terminal can detect the first signal strength value and the second round-trip time delay. A relationship between the signal strength value and the signal threshold. When the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal may perform the processing based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching between the first data card and the second data card.
根据一些实施例,请参见图9,为本申请实施例提供了一种数据卡的切换方法的流程示意图。如图9所示,本申请实施例的所述方法可以包括以下步骤S601-步骤S604。601,当第二信号强度值大于第三信号阈值时,将第二数据卡作为数据主卡;602,当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为数据主卡;603,当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;604,当第二信号强度值小于或者等于第四信号阈值时,保持第一数据卡与第二数据卡不变。According to some embodiments, please refer to FIG. 9, which provides a schematic flowchart of a data card switching method according to an embodiment of the present application. 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 strength value is greater than the third signal threshold, the second data card is used as the main data card; 602, When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is greater than the second round-trip delay, the second data card is used as the data master card; 603, when the second The signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is less than the second round-trip delay, keep the first data card and the second data card unchanged; 604, when the second When the signal strength value is less than or equal to the fourth signal threshold, keep the first data card and the second data card unchanged.
易于理解的是,当终端检测到第一信号强度值小于或者等于第四信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第二信号强度值大于第三信号阈值时,终端可以将第二数据卡作为数据主卡。It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the second signal strength value is greater than the third signal threshold, the terminal may use the second data card as the main data card.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一 信号强度值例如可以是-121dB,F数据卡的第二信号强度值例如可以是-117dB时,终端将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. When the first signal strength value of the D data card obtained by the terminal can be, for example, -121dB, and the second signal strength value of the F data card can be, for example, -117dB, the terminal will use the second data card as the main data card, that is, the terminal will set D The data card is set as the data secondary card, and the F data card is set as the data main card, and the F data card is used 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 fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold, and the terminal detects that the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal can detect whether the first round-trip delay is Greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is greater than the second round-trip time delay, the terminal uses the second data card as the main data card.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-121dB,F数据卡的第二信号强度值例如可以是-119dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为450ms时,终端可以将第二数据卡作为数据主卡,即终端将D数据卡设置为数据副卡,并将F数据卡设置为数据主卡,并使用F数据卡进行数据业务的传输。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -121dB, the second signal strength value of the F data card can be, for example, -119dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 450ms, the terminal can use the second data card as the main data card, that is, the terminal sets the D data card as the data secondary card, and sets the F data card as the data main card, and uses the F data card to perform Transmission of data services.
易于理解的是,当终端检测到第一信号强度值小于或者等于第四信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第四信号阈值,且终端检测到第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,终端可以检测第一往返时延是否大于第二往返时延。当终端检测到第一往返时延小于第二往返时延时,终端保持第一数据卡与第二数据卡不变。It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and the signal threshold value. When the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold, and the terminal detects that the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, the terminal can detect whether the first round-trip delay is Greater than the second round-trip delay. When the terminal detects that the first round-trip time delay is less than the second round-trip time delay, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-121dB,F数据卡的第二信号强度值例如可以是-119dB,D数据卡的第一往返时延为502ms,F数据卡的第二往返时延为555ms时,终端保持第一数据卡与第二数据卡不变,即D数据卡为数据主卡,F数据卡为数据副卡。Optionally, for example, the D data card is the first data card, and the F data card is the second data card. The first signal strength value of the D data card obtained by the terminal can be, for example, -121dB, the second signal strength value of the F data card can be, for example, -119dB, the first round-trip delay of the D data card is 502ms, and the first round-trip delay of the F data card is 502ms. When the second round-trip delay is 555 ms, the terminal keeps the first data card and the second data card unchanged, that is, the D data card is the data main card, and the F data card is the data secondary card.
易于理解的是,当终端检测到第一信号强度值小于或者等于第四信号阈值时,终端可以检测第二信号强度值与信号阈值的大小关系。当终端检测到第一信号强度值小于或者等于第四信号阈值,且终端检测到第二信号强度值小于或者等于第四信号阈值时,终端保持第一数据卡与第二数据卡不变。It is easy to understand that when the terminal detects that the first signal strength value is less than or equal to the fourth signal threshold value, the terminal can detect the magnitude relationship between the second signal strength value and 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 fourth signal threshold value, the terminal keeps the first data card and the second data card unchanged.
可选的,例如D数据卡为第一数据卡,F数据卡为第二数据卡。终端获取到的D数据卡的第一信号强度值例如可以是-121dB,F数据卡的第二信号强度值例如可以是-120dB,终端检测到F数据卡的第二信号强度值-120dB等于第四信号阈值-120dB,终端保持第一数据卡与第二数据卡不变。Optionally, for example, the D data card is the first data card, and the F data card is the 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, and the terminal detects that the second signal strength value of the F data card is equal to the first signal strength value of -120dB. The four-signal threshold is -120dB, and the terminal keeps the first data card and the second data card unchanged.
根据一些实施例,当终端进行第一数据卡与第二数据卡的切换之后,终端可以发出提示信息,该提示信息用于提示用户第一数据卡与第二数据卡已完成切换以及当前的数据主卡和数据副卡。例如终端未进行第一数据卡与第二数据卡的切换之前,D数据卡为数据主卡,F数据卡为数据副卡,当终端进行第一数据卡与第二数据卡的切换之后,F数据卡为数据主卡,D数据卡为数据副卡,终端发出的提示信息例如可以是第一数据卡与第二数据卡的切换已完成,F数据卡为数据主卡,D数据卡为数据副卡。此时,终端界面的举例示意图可以如图10所示。According to some embodiments, after the terminal switches between the first data card and the second data card, the terminal may send a prompt message, which is used to prompt the user that the first data card and the second data card have been switched and the current data Main card and data vice card. For example, before the terminal performs the switching between the first data card and the second data card, the D data card is the main data card, and the F data card is the secondary data card. When the terminal performs the switching between the first data card and the second data card, F The data card is the main data card, and the D data card is the data secondary card. The prompt message sent by the terminal can be, for example, that the switching between the first data card and the second data card has been completed, the F data card is the data main card, and the D data card is the data. Vice 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. By setting a signal threshold, the second signal strength value of the first data card and the first data link quality can be obtained, and the second data card of the second data card can be obtained. The signal strength value and the second data link quality are used to switch the data card without receiving a switching instruction input by the user. It can also reduce the bad terminal network quality when switching due to user experience and improve the switching efficiency of the data card. In addition, when the terminal performs data card switching based on at least four signal thresholds, the accuracy of data card switching by the terminal can be improved, and the misoperation of data card switching when the signal quality of the first data card is good can be reduced, thereby improving the user’s Use experience.
下面将结合附图11,对本申请实施例提供的数据卡的切换装置进行详细介绍。需要说明的是,附图11所示的数据卡的切换装置,用于执行本申请图2-图10所示实施例的方法,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请图2-图10所示的实施例。The data card switching device provided by the embodiment of the present application will be described in detail below with reference to FIG. 11. It should be noted that the data card switching device shown in FIG. 11 is used to execute the methods of the embodiments shown in FIG. 2 to FIG. 10 of the present application. For ease of description, only the parts related to the embodiments of the present application are shown. For specific technical details that are not disclosed, please refer to the embodiment shown in Figure 2 to Figure 10 of this application.
请参见图11,其示出本申请实施例的数据卡的切换装置的结构示意图。该数据卡的切换装置1100可以通过软件、硬件或者两者的结合实现成为用户终端的全部或一部分。根据一些实施例,该数据卡的切换装置1100包括时延获取单元1101和数据卡切换单元1102,具体用于:Please refer to FIG. 11, which shows a schematic structural diagram of a data card switching device according to an embodiment of the present application. The data card switching device 1100 can be implemented as all or a part of the user terminal through software, hardware or a combination of the two. According to some embodiments, the data card switching device 1100 includes a time delay acquiring unit 1101 and a data card switching unit 1102, which are specifically configured to:
时延获取单元1101,用于获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;The delay obtaining unit 1101 is configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card;
数据卡切换单元1102,用于基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。The data card switching unit 1102 is 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.
根据一些实施例,该数据卡的切换装置1100还包括阈值设置单元1103,用于获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量,具体用于:According to some embodiments, the data card switching device 1100 further includes a threshold setting unit 1103 for obtaining the first signal strength value and the first data link quality of the first data card, and obtaining the second signal of the second data card The strength value and the quality of the second data link are specifically used for:
设置信号阈值,信号阈值至少包括第一信号阈值、第二信号阈值、第三信号阈值以及第四信号阈值。Set the signal threshold. The signal threshold includes at least a first signal threshold, a second signal threshold, a third signal threshold, and a fourth signal threshold.
根据一些实施例,第一数据链路质量为第一往返时延,第二数据链路质量为第二往返时延,数据卡切换单元1102,用于基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换时,具体用于:According to some embodiments, 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 1102 is configured to be based on the first signal strength value and the second signal strength value. The value, the quality of the first data link and the quality of the second data link are specifically used when switching between the first data card and the second data card:
当第一信号强度值大于第一信号阈值时,保持第一数据卡与第二数据卡不变;When the first signal strength value is greater than the first signal threshold value, keep the first data card and the second data card unchanged;
当第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第二信号阈值小于第一信号阈值;When 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 first data card is performed based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching with the second data card, the second signal threshold is less than the first signal threshold;
当第一信号强度值小于或者等于第二信号强度阈值且大于第三信号阈值时,基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第三信号阈值小于第二信号阈值;When the first signal strength value is less than or equal to the second signal strength threshold and greater than the third signal threshold, based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay , Switch between the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
当第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第四信号阈值小于第三信号阈值;When the first signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, 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, Switching between the first data card and the second data card, the fourth signal threshold is smaller than the third signal threshold;
当第一信号强度值小于或者等于第四信号阈值时,基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换。When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay and the second round-trip delay, perform the first data card and Switching of the second data card.
根据一些实施例,数据卡切换单元1102,用于基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于:According to some embodiments, the data card switching unit 1102 is configured to 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. , Specifically used for:
当第二信号强度值大于第一信号阈值,且第一往返时延大于第二往返时延时,进行第一数据卡与第二数据卡的切换;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is greater than the second round-trip time delay, switching between the first data card and the second data card is performed;
当第二信号强度值大于第一信号阈值,且第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第一信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the first signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,数据卡切换单元1102,用于基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于:According to some embodiments, the data card switching unit 1102 is configured to perform the first data card and the second data card based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay. When the data card is switched, it is specifically used for:
当第二信号强度值大于第一信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the first signal threshold, use the second data card as the first data card;
当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第二信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the second signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,数据卡切换单元1102,用于基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于:According to some embodiments, the data card switching unit 1102 is configured to perform the first data card and the second round-trip delay 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. When the data card is switched, it is specifically used for:
当第二信号强度值大于第二信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the second signal threshold value, use the second data card as the first data card;
当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第三信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the third signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,数据卡切换单元1102,用于基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于:According to some embodiments, the data card switching unit 1102 is configured to perform the first data card and the second round-trip delay 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. When the data card is switched, it is specifically used for:
当第二信号强度值大于第三信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the third signal threshold, the second data card is used as the first data card;
当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第四信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the fourth signal threshold value, the first data card and the second data card are kept unchanged.
本申请实施例提供一种数据卡的切换装置,时延获取单元获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量,数据卡切换单元可以基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。因此数据卡的切换装置可以直接基于第一数据卡的第一信号强度值以及第一数据链路质量以及第二数据卡的第二信号强度值以及第二数据链路质量进行数据卡的切换,不需要接收用户针对数据卡的切换指令,可以减少数据卡的切换步骤,减少数据卡的切换时间,提高数据卡的切换效率,进而可以提升用户的使用体验。The embodiment of the present application provides a data card switching device. The time delay acquiring unit 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 first data link quality of the second data card. 2. Data link quality. The data card switching unit can 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 . Therefore, the data card switching device can directly switch the data card 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. There is no need to receive a user's switching instruction for the data card, which can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience.
请参见图12,为本申请实施例提供的一种终端的结构示意图。如图12所示,所述终端1200可以包括:至少一个处理器1201,至少一个网络接口1204,用户接口1203,存储器1205,至少一个通信总线1202。Refer to FIG. 12, which is a schematic structural diagram of a terminal provided in an embodiment of this application. 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, a memory 1205, and at least one communication bus 1202.
其中,通信总线1202用于实现这些组件之间的连接通信。Among them, the communication bus 1202 is used to implement connection and communication between these components.
其中,用户接口1203可以包括显示屏(Display)和GPS,可选用户接口1203还可以包括标准的有线接口、无线接口。Among them, the user interface 1203 may include a display screen (Display) and GPS, and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
其中,网络接口1204可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Among them, the network interface 1204 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
其中,处理器1201可以包括一个或者多个处理核心。处理器1201利用各种借口和线路连接整个终端1200内的各个部分,通过运行或执行存储在存储器1205内的指令、程序、代码集或指令集,以及调用存储在存储器1205内的数据,执行终端1200的各种功能和处理数据。可选的,处理器1201可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable LogicArray,PLA)中的至少一种硬件形式来实现。处理器1201可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1201中,单独通过一块芯片进行实现。The processor 1201 may include one or more processing cores. The processor 1201 uses various excuses and lines to connect various parts of the entire terminal 1200, and executes the terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory 1205, and calling data stored in the memory 1205. 1200 various functions and processing data. Optionally, the processor 1201 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA) Realize in the form of hardware. 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. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the content that the display needs to display; the modem is used for processing wireless communication. It is understandable that the above-mentioned modem may not be integrated into the processor 1201, but may be implemented by a chip alone.
其中,存储器1205可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器1205包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1205可用于存储指令、程序、代码、代码集或指令集。存储器1205可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器1205可选的还可以是至少一个位于远离前述处理器1201的存储装置。如图12所示,作为一种计算机存储介质的存储器1205中可以包括操作系统、网络通信模块、用户接口模块以及用于数据卡的切换的应用程序。The memory 1205 may include random access memory (RAM) or read-only memory (Read-Only Memory). Optionally, the memory 1205 includes a non-transitory computer-readable storage medium. The memory 1205 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 1205 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the foregoing method embodiments, etc.; the storage data area can store the data involved in the foregoing method embodiments, etc. Optionally, the memory 1205 may also be at least one storage device located far away from the foregoing processor 1201. As shown in FIG. 12, the memory 1205, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for data card switching.
在图12所示的终端1200中,用户接口1203主要用于为用户提供输入的接口,获取用户输入的数据;而处理器1201可以用于调用存储器1205中存储的数据卡的切换的应用程序,并具体执行以下操作:In the terminal 1200 shown in FIG. 12, the user interface 1203 is mainly used to provide an input interface for the user to obtain data input by the user; and the processor 1201 may be used to call an application program for data card switching stored in the memory 1205, And specifically perform the following operations:
获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;Acquiring the first signal strength value and the first data link quality of the first data card, and acquiring the second signal strength value and the second data link quality of the second data card;
基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。Switching between the first data card and the second data card is performed based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality.
根据一些实施例,处理器1201用于获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量,具体用于执行以下步骤:According to some embodiments, the processor 1201 is configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card, specifically Used to perform the following steps:
设置信号阈值,信号阈值至少包括第一信号阈值、第二信号阈值、第三信号阈值以及第四信号阈 值。Set the signal threshold. The signal threshold includes at least the first signal threshold, the second signal threshold, the third signal threshold, and the fourth signal threshold.
根据一些实施例,第一数据链路质量为第一往返时延,第二数据链路质量为第二往返时延,处理器1201用于基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换时,具体用于执行以下步骤:According to some embodiments, the first data link quality is a first round-trip delay, and the second data link quality is a second round-trip delay, and the processor 1201 is configured to be based on the first signal strength value, the second signal strength value, and the second The first data link quality and the second data link quality are specifically used to perform the following steps when switching between the first data card and the second data card:
当第一信号强度值大于第一信号阈值时,保持第一数据卡与第二数据卡不变;When the first signal strength value is greater than the first signal threshold value, keep the first data card and the second data card unchanged;
当第一信号强度值小于或者等于第一信号阈值且大于第二信号阈值时,基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第二信号阈值小于第一信号阈值;When 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 first data card is performed based on the first signal threshold value, the second signal strength value, the first round-trip delay, and the second round-trip delay. Switching with the second data card, the second signal threshold is less than the first signal threshold;
当第一信号强度值小于或者等于第二信号强度阈值且大于第三信号阈值时,基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第三信号阈值小于第二信号阈值;When the first signal strength value is less than or equal to the second signal strength threshold and greater than the third signal threshold, based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay , Switch between the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
当第一信号强度值小于或者等于第三信号阈值且大于第四信号阈值时,基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换,第四信号阈值小于第三信号阈值;When the first signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, 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, Switching between the first data card and the second data card, the fourth signal threshold is smaller than the third signal threshold;
当第一信号强度值小于或者等于第四信号阈值时,基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换。When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay and the second round-trip delay, perform the first data card and Switching of the second data card.
根据一些实施例,处理器1201用于基于第一信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于执行以下步骤:According to some embodiments, the processor 1201 is configured to 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. To perform the following steps:
当第二信号强度值大于第一信号阈值,且第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值大于第一信号阈值,且第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第一信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the first signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,处理器1201用于基于第一信号阈值、第二信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于执行以下步骤:According to some embodiments, the processor 1201 is configured to perform processing between the first data card and the second data card based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second round-trip delay. When switching, it is specifically used to perform the following steps:
当第二信号强度值大于第一信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the first signal threshold, use the second data card as the first data card;
当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第一信号阈值且大于第二信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第二信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the second signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,处理器1201用于基于第二信号阈值、第三信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于执行以下步骤:According to some embodiments, the processor 1201 is configured to perform processing 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. When switching, it is specifically used to perform the following steps:
当第二信号强度值大于第二信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the second signal threshold value, use the second data card as the first data card;
当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第二信号阈值且大于第三信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the second signal threshold and greater than the third signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第三信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the third signal threshold value, the first data card and the second data card are kept unchanged.
根据一些实施例,处理器1201用于基于第三信号阈值、第四信号阈值、第二信号强度值、第一往返时延以及第二往返时延,进行第一数据卡与第二数据卡的切换时,具体用于执行以下步骤:According to some embodiments, the processor 1201 is configured to perform processing 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. When switching, it is specifically used to perform the following steps:
当第二信号强度值大于第三信号阈值时,将第二数据卡作为第一数据卡;When the second signal strength value is greater than the third signal threshold, the second data card is used as the first data card;
当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延大于第二往返时延时,将第二数据卡作为第一数据卡;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is greater than the second round-trip time delay, the second data card is used as the first data card;
当第二信号强度值小于或者等于第三信号阈值且大于第四信号阈值,且在第一往返时延小于第二往返时延时,保持第一数据卡与第二数据卡不变;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged;
当第二信号强度值小于或者等于第四信号阈值时,保持第一数据卡与第二数据卡不变。When the second signal strength value is less than or equal to the fourth signal threshold value, the first data card and the second data card are kept unchanged.
本申请实施例提供一种终端,可以在获取到第一数据卡的第一信号强度值以及第一数据链路质量,以及第二数据卡的第二信号强度值以及第二数据链路质量时,基于第一信号强度值、第二信号强度值、第一数据链路质量以及第二数据链路质量,进行第一数据卡与第二数据卡的切换。因此终端可以直接基于第一数据卡的第一信号强度值以及第一数据链路质量以及第二数据卡的第二信号强度值以及第二数据链路质量进行数据卡的切换,不需要接收用户针对数据卡的切换指令,可以减少数据卡的切换步骤,减少数据卡的切换时间,提高数据卡的切换效率,进而可以提升用户的使用体验。The embodiment of the present application provides a terminal that can obtain 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 , Switching between the first data card and the second data card is performed 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 card 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, without the need to receive users The switching instruction for the data card can reduce the switching steps of the data card, reduce the switching time of the data card, and improve the switching efficiency of the data card, thereby improving the user experience.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述方法的步骤。其中,计算机可读存储介质可以包括但不限于任何类型的盘,包括软盘、光盘、DVD、CD-ROM、微型驱动器以及磁光盘、ROM、RAM、EPROM、EEPROM、DRAM、VRAM、闪速存储器设备、磁卡或光卡、纳米系统(包括分子存储器IC),或适合于存储指令和/或数据的任何类型的媒介或设备。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are realized. The computer-readable storage medium may include, but is not limited to, any type of disk, including floppy disks, optical disks, DVDs, CD-ROMs, micro drives, and magneto-optical disks, ROM, RAM, EPROM, EEPROM, DRAM, VRAM, flash memory devices , Magnetic or optical cards, nanosystems (including molecular memory ICs), or any type of media or equipment suitable for storing instructions and/or data.
本申请实施例还提供一种计算机程序产品,该计算机程序产品包括存储计算机程序的非瞬时性计算机可读存储介质,该计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种数据卡的切换方法的部分或全部步骤。The embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause a computer to execute any of the methods described in the above-mentioned method embodiments. Part or all of the steps of the data card switching method.
本领域的技术人员可以清楚地了解到本申请的技术方案可借助软件和/或硬件来实现。本说明书中的“单元”和“模块”是指能够独立完成或与其他部件配合完成特定功能的软件和/或硬件,其中硬件例如可以是现场可编程门阵列(Field-ProgrammaBLE Gate Array,FPGA)、集成电路(Integrated Circuit,IC)等。Those skilled in the art can clearly understand that the technical 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 independently complete or cooperate with other components to complete specific functions. The hardware may be a Field-Programmable Gate Array (FPGA), for example. , Integrated Circuit (IC), etc.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, certain steps can be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些服务接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some service interfaces, devices or units, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable memory. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, A number of instructions are included to enable 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 various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通进程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing relevant hardware through a program. The program can be stored in a computer-readable memory, and the memory can include: flash memory Disk, Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disk or optical disk, etc.
以上所述者,仅为本公开的示例性实施例,不能以此限定本公开的范围。即但凡依本公开教导所作的等效变化与修饰,皆仍属本公开涵盖的范围内。本领域技术人员在考虑说明书及实践这里的公开 后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未记载的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的范围和精神由权利要求限定。The foregoing are only exemplary embodiments of the present disclosure, and cannot be used to limit the scope of the present disclosure. That is, all equivalent changes and modifications made in accordance with the teachings of the present disclosure still fall within the scope of the present disclosure. Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the disclosure herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not recorded in the present disclosure. . The description and the embodiments are only regarded as exemplary, and the scope and spirit of the present disclosure are defined by the claims.

Claims (20)

  1. 一种数据卡的切换方法,其特征在于,所述方法包括:A method for switching data cards, characterized in that the method includes:
    获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;Acquiring the first signal strength value and the first data link quality of the first data card, and acquiring the second signal strength value and the second data link quality of 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, perform the comparison between the first data card and the second data card Switch.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    设置信号阈值,所述信号阈值至少包括第一信号阈值、第二信号阈值、第三信号阈值以及第四信号阈值。A signal threshold is set, and the signal threshold includes at least a first signal threshold, a second signal threshold, a third signal threshold, and a fourth signal threshold.
  3. 根据权利要求2所述的方法,其特征在于,所述第一数据链路质量为第一往返时延,所述第二数据链路质量为第二往返时延,所述基于所述第一信号强度值、所述第二信号强度值、所述第一数据链路质量以及所述第二数据链路质量,进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to claim 2, wherein the first data link quality is a first round-trip delay, the second data link quality is a second round-trip delay, and the first data link quality is based on the first round-trip delay. The signal strength value, the second signal strength value, the first data link quality, and the second data link quality, and switching the first data card and the second data card includes:
    当所述第一信号强度值大于所述第一信号阈值时,保持所述第一数据卡与所述第二数据卡不变;When the first signal strength value is greater than the first signal threshold value, keeping the first data card and the second data card unchanged;
    当所述第一信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值时,基于所述第一信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第二信号阈值小于所述第一信号阈值;When the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, based on the first signal threshold value, the second signal strength value, and the first round-trip delay And the second round-trip delay for switching between the first data card and the second data card, and the second signal threshold is less than the first signal threshold;
    当所述第一信号强度值小于或者等于所述第二信号强度阈值且大于所述第三信号阈值时,基于所述第一信号阈值、所述第二信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第三信号阈值小于所述第二信号阈值;When the first signal strength value is less than or equal to the second signal strength threshold value and greater than the third signal threshold value, based on the first signal threshold value, the second signal threshold value, and the second signal strength value , The first round-trip delay and the second round-trip delay, switch the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
    当所述第一信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值时,基于所述第二信号阈值、所述第三信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第四信号阈值小于所述第三信号阈值;When the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, based on the second signal threshold value, the third signal threshold value, the second signal strength value, The first round-trip delay and the second round-trip delay are used to switch between the first data card and the second data card, and the fourth signal threshold is smaller than the third signal threshold;
    当所述第一信号强度值小于或者等于所述第四信号阈值时,基于所述第三信号阈值、所述第四信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换。When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay, and The second round-trip delay is used to switch the first data card and the second data card.
  4. 根据权利要求3所述的方法,其特征在于,所述基于所述第一信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to claim 3, wherein said performing said operation based on said first signal threshold value, said second signal strength value, said first round-trip delay and said second round-trip delay. Switching between the first data card and the second data card includes:
    当所述第二信号强度值大于所述第一信号阈值,且所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为数据主卡;When the second signal strength value is greater than the first signal threshold, and the first round-trip time delay is greater than the second round-trip time delay, using the second data card as a data master card;
    当所述第二信号强度值大于所述第一信号阈值,且所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged ;
    当所述第二信号强度值小于或者等于所述第一信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the first signal threshold value, keep the first data card and the second data card unchanged.
  5. 根据权利要求3所述的方法,其特征在于,所述基于所述第一信号阈值、所述第二信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to claim 3, wherein the method is based on the first signal threshold, the second signal threshold, the second signal strength value, the first round-trip delay, and the second signal The round-trip delay, the switching of the first data card and the second data card, includes:
    当所述第二信号强度值大于所述第一信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the first signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第二信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the second signal threshold value, keep the first data card and the second data card unchanged.
  6. 根据权利要求3所述的方法,其特征在于,所述基于所述第二信号阈值、所述第三信号阈值、 所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to claim 3, wherein the method is based on the second signal threshold, the third signal threshold, the second signal strength value, the first round-trip delay, and the second signal The round-trip delay, the switching of the first data card and the second data card, includes:
    当所述第二信号强度值大于所述第二信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the second signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第二信号阈值且大于所述第三信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第二信号阈值且大于所述第三信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第三信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the third signal threshold, keep the first data card and the second data card unchanged.
  7. 根据权利要求3所述的方法,其特征在于,所述基于所述第三信号阈值、所述第四信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to claim 3, wherein the method is based on the third signal threshold, the fourth signal threshold, the second signal strength value, the first round-trip delay, and the second signal The round-trip delay, the switching of the first data card and the second data card, includes:
    当所述第二信号强度值大于所述第三信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the third signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第四信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the fourth signal threshold value, keep the first data card and the second data card unchanged.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述进行所述第一数据卡与所述第二数据卡的切换,包括:The method according to any one of claims 1 to 7, wherein the switching between the first data card and the second data card comprises:
    发出第一提示信息;Send out the first prompt message;
    当接收到针对所述第一提示信息的确认信息时,进行所述第一数据卡与所述第二数据卡的切换。When the confirmation message for the first prompt message is received, switching between the first data card and the second data card is performed.
  9. 根据权利要求1至7中任一项所述的方法,其特征在于,所述进行所述第一数据卡与所述第二数据卡的切换之后,还包括:The method according to any one of claims 1 to 7, wherein after the switching between the first data card and the second data card, the method further comprises:
    发出第二提示信息,所述第二提示信息包括切换完成信息以及当前的数据主卡和当前的数据副卡的信息。A second prompt message is issued, and the second prompt message includes switching completion information and information about the current main data card and the current secondary data card.
  10. 一种数据卡的切换装置,其特征在于,所述装置包括:A data card switching device, characterized in that the device includes:
    时延获取单元,用于获取第一数据卡的第一信号强度值以及第一数据链路质量,并获取第二数据卡的第二信号强度值以及第二数据链路质量;A time delay obtaining unit, configured to obtain the first signal strength value and the first data link quality of the first data card, and obtain the second signal strength value and the second data link quality of the second data card;
    数据卡切换单元,用于基于所述第一信号强度值、所述第二信号强度值、所述第一数据链路质量以及所述第二数据链路质量,进行所述第一数据卡与所述第二数据卡的切换。The data card switching unit is configured to perform the connection between the first data card and the second data link based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality. Switching of the second data card.
  11. 根据权利要求10所述的装置,其特征在于,所述数据卡的切换装置还包括阈值设置单元,用于:The device according to claim 10, wherein the data card switching device further comprises a threshold setting unit, configured to:
    设置信号阈值,所述信号阈值至少包括第一信号阈值、第二信号阈值、第三信号阈值以及第四信号阈值。A signal threshold is set, and the signal threshold includes at least a first signal threshold, a second signal threshold, a third signal threshold, and a fourth signal threshold.
  12. 根据权利要求10所述的装置,其特征在于,所述第一数据链路质量为第一往返时延,所述第二数据链路质量为第二往返时延,所述数据卡切换单元,用于基于所述第一信号强度值、所述第二信号强度值、所述第一数据链路质量以及所述第二数据链路质量,进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The apparatus according to claim 10, wherein 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 is For performing the first data card and the second data based on the first signal strength value, the second signal strength value, the first data link quality, and the second data link quality When the card is switched, it is specifically used for:
    当所述第一信号强度值大于所述第一信号阈值时,保持所述第一数据卡与所述第二数据卡不变;When the first signal strength value is greater than the first signal threshold value, keeping the first data card and the second data card unchanged;
    当所述第一信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值时,基于所述第一信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第二信号阈值小于所述第一信号阈值;When the first signal strength value is less than or equal to the first signal threshold value and greater than the second signal threshold value, based on the first signal threshold value, the second signal strength value, and the first round-trip delay And the second round-trip delay for switching between the first data card and the second data card, and the second signal threshold is less than the first signal threshold;
    当所述第一信号强度值小于或者等于所述第二信号强度阈值且大于所述第三信号阈值时,基于所述第一信号阈值、所述第二信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第三信号阈值小于所述第二信号阈值;When the first signal strength value is less than or equal to the second signal strength threshold value and greater than the third signal threshold value, based on the first signal threshold value, the second signal threshold value, and the second signal strength value , The first round-trip delay and the second round-trip delay, switch the first data card and the second data card, and the third signal threshold is less than the second signal threshold;
    当所述第一信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值时,基于所述第二信号阈值、所述第三信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换,所述第四信号阈值小于所述第三信号阈值;When the first signal strength value is less than or equal to the third signal threshold value and greater than the fourth signal threshold value, based on the second signal threshold value, the third signal threshold value, the second signal strength value, The first round-trip delay and the second round-trip delay are used to switch between the first data card and the second data card, and the fourth signal threshold is smaller than the third signal threshold;
    当所述第一信号强度值小于或者等于所述第四信号阈值时,基于所述第三信号阈值、所述第四信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换。When the first signal strength value is less than or equal to the fourth signal threshold value, based on the third signal threshold value, the fourth signal threshold value, the second signal strength value, the first round-trip delay, and The second round-trip delay is used to switch the first data card and the second data card.
  13. 根据权利要求10所述的装置,其特征在于,所述数据卡切换单元,用于基于所述第一信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The device according to claim 10, wherein the data card switching unit is configured to be based on the first signal threshold, the second signal strength value, the first round-trip delay, and the second signal The round-trip delay, when switching the first data card and the second data card, is specifically used for:
    当所述第二信号强度值大于所述第一信号阈值,且所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为数据主卡;When the second signal strength value is greater than the first signal threshold, and the first round-trip time delay is greater than the second round-trip time delay, using the second data card as a data master card;
    当所述第二信号强度值大于所述第一信号阈值,且所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is greater than the first signal threshold, and the first round-trip delay is less than the second round-trip time delay, keep the first data card and the second data card unchanged ;
    当所述第二信号强度值小于或者等于所述第一信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the first signal threshold value, keep the first data card and the second data card unchanged.
  14. 根据权利要求10所述的装置,其特征在于,所述数据卡切换单元,用于基于所述第一信号阈值、所述第二信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The device according to claim 10, wherein the data card switching unit is configured to be based on the first signal threshold, the second signal threshold, the second signal strength value, and the first round-trip signal. The delay and the second round-trip delay, when switching the first data card and the second data card, are specifically used for:
    当所述第二信号强度值大于所述第一信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the first signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第一信号阈值且大于所述第二信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the first signal threshold and greater than the second signal threshold, and the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第二信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the second signal threshold value, keep the first data card and the second data card unchanged.
  15. 根据权利要求10所述的装置,其特征在于,所述数据卡切换单元,用于基于所述第二信号阈值、所述第三信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The device according to claim 10, wherein the data card switching unit is configured to be based on the second signal threshold, the third signal threshold, the second signal strength value, and the first round-trip signal. The delay and the second round-trip delay, when switching the first data card and the second data card, are specifically used for:
    当所述第二信号强度值大于所述第二信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the second signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第二信号阈值且大于所述第三信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第二信号阈值且大于所述第三信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the second signal threshold value and greater than the third signal threshold value, and when the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第三信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the third signal threshold, keep the first data card and the second data card unchanged.
  16. 根据权利要求10所述的装置,其特征在于,所述数据卡切换单元,用于基于所述第三信号阈值、所述第四信号阈值、所述第二信号强度值、所述第一往返时延以及所述第二往返时延,进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The device according to claim 10, wherein the data card switching unit is configured to be based on the third signal threshold, the fourth signal threshold, the second signal strength value, and the first round-trip signal. The delay and the second round-trip delay, when switching the first data card and the second data card, are specifically used for:
    当所述第二信号强度值大于所述第三信号阈值时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is greater than the third signal threshold value, using the second data card as the data master card;
    当所述第二信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值,且在所述第一往返时延大于所述第二往返时延时,将所述第二数据卡作为所述数据主卡;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is greater than the second round-trip time delay, the second A data card as the main data card;
    当所述第二信号强度值小于或者等于所述第三信号阈值且大于所述第四信号阈值,且在所述第一往返时延小于所述第二往返时延时,保持所述第一数据卡与所述第二数据卡不变;When the second signal strength value is less than or equal to the third signal threshold and greater than the fourth signal threshold, and when the first round-trip delay is less than the second round-trip time delay, the first The data card and the second data card remain unchanged;
    当所述第二信号强度值小于或者等于所述第四信号阈值时,保持所述第一数据卡与所述第二数据卡不变。When the second signal strength value is less than or equal to the fourth signal threshold value, keep the first data card and the second data card unchanged.
  17. 根据权利要求10至16任一项所述的装置,其特征在于,所述数据卡切换单元,用于进行所述第一数据卡与所述第二数据卡的切换时,具体用于:The device according to any one of claims 10 to 16, wherein the data card switching unit is configured to switch between the first data card and the second data card, and is specifically configured to:
    发出第一提示信息;Send out the first prompt message;
    当接收到针对所述第一提示信息的确认信息时,进行所述第一数据卡与所述第二数据卡的切换。When the confirmation message for the first prompt message is received, switching between the first data card and the second data card is performed.
  18. 根据权利要求10至16任一项所述的装置,其特征在于,所述数据卡切换装置还包括信息提示单元,用于进行所述第一数据卡与所述第二数据卡的切换之后,发出第二提示信息,所述第二提示信息包括切换完成信息以及当前的数据主卡和当前的数据副卡的信息。The device according to any one of claims 10 to 16, wherein the data card switching device further comprises an information prompt unit configured to switch between the first data card and the second data card, A second prompt message is issued, and the second prompt message includes switching completion information and information about the current main data card and the current secondary data card.
  19. 一种终端,包括存储器、处理器以及存储在存储器中并可在处理器上运行的计算机程序,其特征在于,处理器执行计算机程序时实现上述权利要求1-9中任一项方法。A terminal comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the method in any one of claims 1-9 when the processor executes the computer program.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现上述权利要求1-9中任一项方法。A computer-readable storage medium with a computer program stored thereon, characterized in that, when the program is executed by a processor, it implements the method in any one of claims 1-9.
PCT/CN2021/084922 2020-05-29 2021-04-01 Data card switching method and apparatus, and terminal, and storage medium WO2021238404A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2021238404A1 true WO2021238404A1 (en) 2021-12-02

Family

ID=72349746

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084922 WO2021238404A1 (en) 2020-05-29 2021-04-01 Data card switching method and apparatus, and 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection
CN105208205A (en) * 2015-08-27 2015-12-30 努比亚技术有限公司 Data service switching apparatus and method
CN106817731A (en) * 2015-11-30 2017-06-09 华为终端(东莞)有限公司 The method for switching network and terminal device of terminal
CN109151954A (en) * 2018-10-16 2019-01-04 奇酷互联网络科技(深圳)有限公司 Mobile terminal and its double card method for switching network and storage medium
CN110876173A (en) * 2018-08-29 2020-03-10 中兴通讯股份有限公司 Switching method and terminal
CN111654852A (en) * 2020-05-29 2020-09-11 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium
CN112235780A (en) * 2020-09-24 2021-01-15 紫光展锐(重庆)科技有限公司 Data service switching method, equipment, device and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN110611941A (en) * 2019-08-23 2019-12-24 珠海格力电器股份有限公司 Network switching method and device
CN110913384A (en) * 2019-11-11 2020-03-24 宇龙计算机通信科技(深圳)有限公司 Dial card switching method and device, storage medium and terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection
CN105208205A (en) * 2015-08-27 2015-12-30 努比亚技术有限公司 Data service switching apparatus and method
CN106817731A (en) * 2015-11-30 2017-06-09 华为终端(东莞)有限公司 The method for switching network and terminal device of terminal
CN110876173A (en) * 2018-08-29 2020-03-10 中兴通讯股份有限公司 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
CN111654852A (en) * 2020-05-29 2020-09-11 Oppo广东移动通信有限公司 Data card switching method and device, terminal and storage medium
CN112235780A (en) * 2020-09-24 2021-01-15 紫光展锐(重庆)科技有限公司 Data service switching method, equipment, device and storage medium

Also Published As

Publication number Publication date
CN111654852A (en) 2020-09-11
CN111654852B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
WO2021238404A1 (en) Data card switching method and apparatus, and terminal, and storage medium
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN107770758A (en) The bluetooth of Baffle Box of Bluetooth returns even method, Baffle Box of Bluetooth and storage medium
WO2019071612A1 (en) Method for supporting both voice service and data service and terminal
CN104540176B (en) Wireless network access method, device and terminal
WO2022156736A1 (en) Voice fallback method and apparatus, and user equipment
US10045263B2 (en) Network switching method and terminal device
US11496946B2 (en) Transmission path switching method and apparatus
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
US11832150B2 (en) Call record synchronization method, cloud platform, and terminal
US9025448B2 (en) Methods and apparatuses for accessing internet
JP2020511819A (en) Network connection method and device
WO2021022720A1 (en) Bluetooth-based data transmission method, storage medium and terminal
WO2019136821A1 (en) Network selection method and apparatus of terminal, computer device, and storage medium
JP2017531336A (en) Trunking communication service processing method, core network device, UE, and storage medium
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN104424949A (en) Method for transmitting and receiving voice packet and electronic device implementing the same
WO2015131624A1 (en) Method and device for controlling wireless network connection
US9998704B2 (en) Video communication method and system, and terminal
EP3300302A1 (en) Method for implementing application and service controller
US11477591B2 (en) Audio data processing method, terminal device, and storage medium
US10142923B2 (en) Using a single packet data network for data transfers to manage network resources
EP3518513A1 (en) Streaming data acquisition method, device, and system
CN109429285B (en) Data processing method, network equipment and computer storage medium
WO2018201988A1 (en) System information transmission method, terminal and base station

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21812578

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21812578

Country of ref document: EP

Kind code of ref document: A1