[go: up one dir, main page]

WO2021253966A1 - Data service communication method, terminal, electronic device and storage medium - Google Patents

Data service communication method, terminal, electronic device and storage medium Download PDF

Info

Publication number
WO2021253966A1
WO2021253966A1 PCT/CN2021/088493 CN2021088493W WO2021253966A1 WO 2021253966 A1 WO2021253966 A1 WO 2021253966A1 CN 2021088493 W CN2021088493 W CN 2021088493W WO 2021253966 A1 WO2021253966 A1 WO 2021253966A1
Authority
WO
WIPO (PCT)
Prior art keywords
sim card
amount
data
cycle time
threshold
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2021/088493
Other languages
French (fr)
Chinese (zh)
Inventor
张峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of WO2021253966A1 publication Critical patent/WO2021253966A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/22Performing reselection for specific purposes for handling the traffic
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present disclosure relates to the field of wireless communication technology, and in particular to a data service communication method, terminal, electronic device and storage medium.
  • SIM Subscriber Identity Module
  • USIM Universal Subscriber Identity Module
  • Global User Identity Module Global User Identity Module
  • Each SIM/USIM card can support one or more network standards, and two SIM/USIM cards can belong to the same operator or can also belong to different operators.
  • the mobile terminal supports the registration of two SIM/USIM cards in one or more networks respectively, so that voice services or data services can be performed through each SIM/USIM card.
  • SIM/USIM cards when a terminal is performing data service communication, usually only one of the SIM/USIM cards can be used to transmit or receive data, for example, a SIM/USIM card configured as a master card is used for data communication. Only when the signal quality of the main card is very poor, the switch to the secondary card will be triggered for data service communication. Or whether to switch to the secondary card for data service communication is manually configured by the user.
  • the purpose of the present disclosure is to provide a data service communication method, terminal, electronic device, and storage medium, at least to a certain extent, to overcome the problems of unsmooth data service communication and poor user experience in related technologies.
  • a data service communication method is provided, which is applied to a terminal including a first SIM card and a second SIM card, including: when the first SIM card and the second SIM card meet the preset requirements When the conditions are met, periodically detect the amount of received data and the amount of sent data of the first SIM card in each cycle time.
  • the first SIM card is the SIM card currently undergoing data service communication; according to the received data within the current cycle time
  • the amount of data and the amount of sent data determine a switching strategy between the first SIM card and the second SIM card.
  • a terminal including: a first SIM card, a second SIM card, and an application processor connected to the first SIM card and the second SIM card, respectively; wherein, the application processing The device is used to: when it is detected that a preset condition is satisfied between the first SIM card and the second SIM card, periodically detect the amount of received data and the amount of sent data of the first SIM card in each period; according to the current The received data volume and the sent data volume within the cycle time determine the switching strategy between the first SIM card and the second SIM card.
  • an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions Perform the above-mentioned data service communication method.
  • a computer-readable storage medium on which a computer program is stored, and the computer program implements the above-mentioned data service communication method when the computer program is executed by a processor.
  • the data service communication method under the condition that it is ensured that the first SIM card that is currently in data service communication and the second SIM card that is not in data service communication meet the preset conditions, real-time monitoring is performed.
  • the received data volume and the sent data volume of the first SIM card for data service communication are used to determine whether data service switching needs to be performed, and the SIM card switching can be performed in a timely manner before the data service is stuck.
  • Fig. 1 is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present disclosure.
  • Fig. 2 shows a flow chart of a data service communication method in an embodiment of the present disclosure.
  • Fig. 3 shows a flowchart of another data service communication method in an embodiment of the present disclosure.
  • Fig. 4 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.
  • Fig. 5 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.
  • Fig. 6 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.
  • Fig. 7 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.
  • Fig. 8 shows a schematic diagram of a data service communication device in an embodiment of the present disclosure.
  • FIG. 9 shows a schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • the example embodiments can be implemented in various forms, and should not be construed as being limited to the examples set forth herein; on the contrary, the provision of these embodiments makes the present disclosure more comprehensive and complete, and fully conveys the concept of the example embodiments To those skilled in the art.
  • the described features, structures or characteristics can be combined in one or more embodiments in any suitable way.
  • plural means at least two, such as two, three, etc., unless otherwise specifically defined.
  • And/or describes the association relationship of the associated objects, indicating that there can be three relationships, such as A and/or B, which can indicate the existence of A alone, B alone, and both A and B.
  • the symbol “/” generally indicates that the associated objects before and after are in an “or” relationship.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features.
  • SIM/USIM cards when a terminal supporting dual-card dual-standby performs data service communication, usually only one of the SIM/USIM cards can be used to transmit or receive data, such as the SIM/USIM configured as the main card. Card for data communication. And only when the signal quality of the main card is very poor, the switch to the secondary card will be triggered for data service communication. Or whether to switch to the secondary card for data service communication is manually configured by the user. Such a switching strategy will cause problems such as unsmooth data service communication, stalling, and even data service communication interruption, resulting in poor user experience.
  • the embodiments of the present disclosure provide a data service communication method and terminal, which can determine whether the current data service needs to be switched to another SIM/USIM card by monitoring the real-time data volume of the SIM/USIM card currently undergoing data service communication , To avoid data business jams, interruptions and other issues, thereby improving user experience.
  • the terminal in the embodiment of the present disclosure may be, for example, various terminal devices that support dual-card dual-standby.
  • Dual card dual standby means that two SIM/USIM cards are installed in the terminal. Through the terminal's underlying software and control chip, the two cards can be registered in their respective supported networks and stand by in their respective registered networks.
  • the data service communication method and terminal in the embodiments of the present disclosure take a dual-card terminal as an example, the present disclosure is not limited to this. For example, more SIM/USIM cards may be installed. Terminal.
  • Fig. 1 is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present disclosure.
  • the terminal device 700 shown in FIG. 1 is only an example, and should not bring any limitation to the function and scope of use of the embodiment of the present disclosure.
  • the terminal device 700 can be a mobile phone, a game console, a tablet computer, an e-book reader, a smart glasses, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a smart home device, AR (Augmented Reality) , Augmented reality) equipment, VR (Virtual Reality, virtual reality) equipment and other mobile terminal equipment.
  • AR Algmented Reality
  • Augmented reality Augmented reality
  • VR Virtual Reality, virtual reality
  • the terminal device of the present disclosure includes at least a processor and a memory.
  • the memory is used to store one or more programs.
  • the processor can implement the data service communication method of the exemplary embodiment of the present disclosure. .
  • the terminal device 700 may include: a processor 710, an internal memory 721, an external memory interface 722, a universal serial bus (USB) interface 730, a charging management module 740, and a power management module 741, battery 742, mobile communication module 750, antenna 751, wireless communication module 760, antenna 761, audio module 770, speaker 771, receiver 772, microphone 773, earphone interface 774, sensor module 780, display screen 790, camera module 791 , Indicator 792, motor 793, button 794, Subscriber Identification Module (SIM) card module 795, etc.
  • SIM Subscriber Identification Module
  • the sensor module 780 may include a depth sensor 7801, a pressure sensor 7802, a gyroscope sensor 7803, an air pressure sensor 7804, a magnetic sensor 7805, an acceleration sensor 7806, a distance sensor 7807, a proximity light sensor 7808, a fingerprint sensor 7809, a temperature sensor 7810, and a touch sensor. 7811, ambient light sensor 7812, bone conduction sensor 7813, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 700.
  • the terminal device 700 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 710 may include one or more processing units.
  • the processor 710 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or Neural-etwork Processing Unit (NPU), etc.
  • AP application processor
  • GPU graphics processing unit
  • ISP image Signal Processor
  • controller video codec
  • digital signal processor Digital Signal Processor
  • NPU Neural-etwork Processing Unit
  • a memory may be provided in the processor 710 for storing instructions and data.
  • the USB interface 730 is an interface that complies with the USB standard specification, and specifically may be a MiniUSB interface, a MicroUSB interface, a USBTypeC interface, and so on.
  • the USB interface 730 can be used to connect a charger to charge the terminal device 700, and can also be used to transfer data between the terminal device 700 and peripheral devices. It can also be used to connect earphones and play audio through earphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the charging management module 740 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 741 is used to connect the battery 742, the charging management module 740, and the processor 710.
  • the power management module 741 receives input from the battery 742 and/or the charging management module 740, and supplies power to the processor 710, the internal memory 721, the display screen 790, the camera module 791, and the wireless communication module 760.
  • the wireless communication function of the terminal device 700 can be implemented by the antenna 751, the antenna 761, the mobile communication module 750, the wireless communication module 760, the modem processor, and the baseband processor.
  • the mobile communication module 750 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 700.
  • the wireless communication module 760 can provide wireless local area networks (Wireless Local Area Networks, WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (Bluetooth, BT), and global navigation satellites used on the terminal device 700.
  • WLAN Wireless Local Area Networks
  • Wi-Fi Wireless Fidelity
  • Bluetooth Bluetooth
  • BT Bluetooth
  • global navigation satellites used on the terminal device 700.
  • System Global Navigation Satellite System, GNSS
  • FM Frequency Modulation
  • NFC Near Field Communication
  • Infrared Infrared, IR
  • the terminal device 700 implements a display function through a GPU, a display screen 790, an application processor, and the like.
  • the GPU is an image processing microprocessor, which is connected to the display screen 790 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 710 may include one or more GPUs that execute program instructions to generate or change display information.
  • the terminal device 700 can implement a shooting function through an ISP, a camera module 791, a video codec, a GPU, a display screen 790, and an application processor.
  • the terminal device 700 may include 1 or N camera modules 791, and N is a positive integer greater than 1. If the terminal device 700 includes N cameras, one of the N cameras is the main camera.
  • the internal memory 721 may be used to store computer executable program code, where the executable program code includes instructions.
  • the internal memory 721 may include a program storage area and a data storage area.
  • the external memory interface 722 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 700.
  • the terminal device 700 can implement audio functions through an audio module 770, a speaker 771, a receiver 772, a microphone 773, a headphone interface 774, and an application processor. For example, music playback, recording, etc.
  • the audio module 770 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 770 can also be used to encode and decode audio signals.
  • the audio module 770 may be provided in the processor 710, or part of the functional modules of the audio module 770 may be provided in the processor 710.
  • the speaker 771 also called “speaker” is used to convert audio electrical signals into sound signals.
  • the terminal device 700 can listen to music through the speaker 771, or listen to a hands-free call.
  • the receiver 772 also called “earpiece”, is used to convert audio electrical signals into sound signals. When the terminal device 700 answers a call or voice message, it can receive the voice by bringing the receiver 772 close to the human ear.
  • Microphone 773 also called “microphone” or “microphone”
  • the terminal device 700 may be provided with at least one microphone 773.
  • the earphone interface 774 is used to connect wired earphones.
  • the depth sensor 7801 is used to obtain depth information of the scene.
  • the pressure sensor 7802 is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the gyroscope sensor 7803 may be used to determine the movement posture of the terminal device 700.
  • the air pressure sensor 7804 is used to measure air pressure.
  • the magnetic sensor 7805 includes a Hall sensor.
  • the terminal device 700 can use the magnetic sensor 7805 to detect the opening and closing of the flip holster.
  • the acceleration sensor 7806 can detect the magnitude of the acceleration of the terminal device 700 in various directions (generally three axes).
  • the distance sensor 7807 is used to measure distance.
  • the proximity light sensor 7808 may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the fingerprint sensor 7809 is used to collect fingerprints.
  • the temperature sensor 7810 is used to detect temperature.
  • the touch sensor 7811 may transmit the detected touch operation to the application processor to determine the type of the touch event.
  • the visual output related to the touch operation may be provided through the display screen 790.
  • the ambient light sensor 7812 is used to sense the brightness of the ambient light.
  • the bone conduction sensor 7813 can acquire vibration signals.
  • the button 794 includes a power button, a volume button, and so on.
  • the button 794 may be a mechanical button. It can also be a touch button.
  • the motor 793 can generate vibration prompts. The motor 793 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • the indicator 792 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.
  • the SIM card module 795 is used to connect to a SIM card, such as Nano SIM, Micro SIM, and so on.
  • the terminal device 700 interacts with the network through the SIM card to realize functions such as voice service communication and data service communication.
  • voice service communication may include services such as making and receiving phone calls and video calls
  • data services may include: browsing web pages, online games, video buffering, downloading/uploading data, instant messaging, and so on.
  • the SIM card module 795 supports the insertion of at least two SIM cards (SIM 1 and SIM 2). One of them is configured as the primary card, and the other is configured as the secondary card.
  • Both the main card and the secondary card can support data services, but in the data service communication process, only one of the cards can be used for data services at the same time.
  • the SIM card module 795 can also be implemented as a virtual SIM card function, or the SIM card module can also be a soft SIM card.
  • SIM 1 and SIM 2 can belong to the same operator or different operators.
  • SIM 1 belongs to the operator China Mobile
  • SIM 2 belongs to the operator China Unicom; or both SIM 1 and SIM 2 belong to China Mobile or China China Unicom, etc.
  • SIM 1 and SIM 2 can support one or more network standards, such as LTE, LTE-A (Evolved LTE) or NR (New Radio), or WCDMA (Wideband Code Division) Multiple Access, Wideband Code Division Multiple Access) or HSPA (High Speed Packet Access, High Speed Packet Access).
  • LTE Long Term Evolution
  • LTE-A Evolution-A
  • NR New Radio
  • WCDMA Wideband Code Division Multiple Access
  • HSPA High Speed Packet Access, High Speed Packet Access
  • the SIM 1 and the SIM 2 can be registered in their respective connected network devices, so that the terminal device 700 can perform a data service or a voice service through the SIM 1 or the SIM 2. Since the information of SIM 1 and SIM 2 is registered in the network equipment, when SIM 1 or SIM 2 is called, such as a voice or video call to the terminal number (such as mobile phone number) corresponding to SIM 1, the network equipment can be under its jurisdiction Paging to the terminal device 700 within the range, thereby establishing a communication connection between the caller and the terminal device 700 for the voice call or video call; or, another user gives the instant messaging client ( When a logged-in user of WeChat, QQ, etc. sends an instant message, the network device can also find the terminal device 700 and send the instant message to the terminal 700 through the SIM card of the terminal device 700 currently allowed to conduct data services (such as the instant message Communication client).
  • data services such as the instant message Communication client
  • the network equipment is MME (Mobility Management Entity, mobility management entity); under the NR network standard, if the network equipment is a virtual network equipment AMF (Access and Mobility Management Function) built on the hardware platform, access and Mobile management function).
  • MME Mobility Management Entity, mobility management entity
  • AMF Access and Mobility Management Function
  • SIM 1 and SIM 2 can register with the same network device.
  • the data communication function of the wireless communication module 760 in the terminal device 700 needs to be turned off.
  • the user manually turns off the data communication function of the wireless communication module 760 through the provided user interface.
  • the wireless communication module 760 can provide WiFi data communication functions.
  • the current terminal device 700 is also provided with a flight mode switch, and the user can turn on or off the flight mode in the provided user interface.
  • the flight mode is turned on, the terminal device 700 cannot communicate with other devices through the mobile communication module 750 or the wireless communication module 760. Therefore, in order for the terminal device 700 to communicate through the mobile communication module 750, it is necessary to ensure that the flight mode is turned off.
  • Fig. 2 shows a flow chart of a data service communication method in an embodiment of the present disclosure.
  • the method provided by the embodiment of the present disclosure may be executed by the terminal device 700 shown in FIG. 1.
  • the data service communication method 10 includes:
  • step S102 when the first SIM card and the second SIM card meet the preset conditions, periodically detect the received data volume and the sent data volume of the first SIM card currently in data service communication within each period.
  • the signal condition of the first SIM card and the signal condition of the second SIM card can be monitored in real time.
  • the signal strength of the first SIM card and the second SIM card may be monitored separately.
  • the signal strength may be RSRP (Reference Signal Receiving Power) of the signals of the first SIM card and the second SIM card.
  • RSRP refers to the measured received power on the reference signal. Taking the 4G mobile communication system LTE (Long Term Evolution) as an example, RSRP refers to all REs (Resource Elements) of the cell-specific reference signal (Reference Signal). ) Is the average value of the received signal power.
  • the signal strength may also be RSSI (Received Signal Strength Indicator) of the signals of the first SIM card and the second SIM card.
  • RSSI refers to the received signal strength indicator, which includes reference signals, data signals, interference signals, and noise signals. Still taking the LTE system as an example, the RSSI usually refers to the average value of the total power on the OFDM (Orthogonal Frequency Division Multiplexing, Orthogonal Frequency Division Multiplexing) symbol containing the reference signal of the antenna port 0.
  • OFDM Orthogonal Frequency Division Multiplexing, Orthogonal Frequency Division Multiplexing
  • the foregoing preset condition may include, for example, that the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to the preset signal strength threshold THs.
  • the signal strength threshold THs may be set to 10 dB, for example.
  • the signal quality of the signal of the first SIM card and the signal of the second SIM card can also be detected separately.
  • the signal quality may be, for example, SINR (Signal to Interference plus Noise Ratio, signal to interference and noise ratio).
  • SINR refers to the ratio of the received useful signal power to the received interference signal and noise power, which is used to measure the quality of the signal.
  • the signal quality can also be SNR (Signal Noise Ratio, SNR).
  • SNR Synignal Noise Ratio
  • SNR refers to the ratio of useful signal power to the sum of interference and noise power, which can directly reflect the quality of the received signal.
  • the signal quality may also be RSRQ (Reference Signal Received Quality, reference signal received quality), which can usually be calculated by RSRP and RSSI.
  • RSRQ Reference Signal Received Quality, reference signal received quality
  • the foregoing preset condition may include, for example, that the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality threshold THq.
  • the signal strength and signal quality of the first SIM card and the second SIM card can also be monitored at the same time.
  • the aforementioned preset conditions can include, for example: the signal strength of the first SIM card and the signal of the second SIM card.
  • the absolute value of the difference between the intensities is less than or equal to the preset signal strength threshold THs, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality Threshold THq.
  • the received data amount Rx ⁇ of the first SIM card currently undergoing data service communication in each period can be periodically determined. And the amount of sent data Tx ⁇ for detection.
  • the first SIM card may be, for example, a SIM card configured as a primary card
  • the second SIM card may be, for example, a SIM card configured as a secondary card.
  • the first SIM card when the data service is switched to the secondary card for communication, the first SIM card may also be the secondary card, and the second SIM card may be the primary card.
  • the period may be configured as 5 seconds, for example, but the present disclosure is not limited to this, and in actual applications, the period may be set according to actual conditions. Or, in some embodiments, the period may also be set by the user through a user interface, for example. For example, several cycle time options can be provided to the user, which can be selected by the user in the interface.
  • the received data amount Rx ⁇ n of the first SIM card in the cycle time can be calculated by the following formula (1)
  • the sent data amount Tx ⁇ n can be calculated by the following formula (2).
  • Rx n is the received data amount accumulated by the first SIM card in the first n cycles
  • Rx n-1 is the received data amount accumulated by the first SIM card in the first n-1 cycles
  • Tx n is the amount of transmitted data accumulated by the first SIM card in the previous n cycles
  • Tx n-1 is the amount of transmitted data accumulated by the first SIM card in the previous n-1 cycles.
  • the amount of data sent and received in each cycle time of statistics can be the amount of data in the application layer, for example, the amount of data in the sending and receiving buffers in the application layer client software participating in data service communication. .
  • the amount of sent data and the amount of received data may also be the amount of data in the receiving and sending data buffer in the mobile communication protocol adopted by the first SIM card, such as the buffer in the MAC (Medium Access Control) layer.
  • step S104 a switching strategy between the first SIM card and the second SIM card is determined according to the amount of received data and the amount of sent data within the current cycle time.
  • the terminal device 700 when it is determined to switch the data service currently in communication to the second SIM card, the terminal device 700 also needs to send a data switch related message to the network device registered with it through the first SIM card to notify the network
  • the device switches the transmission path of the current data service in the core network. For example, the network device connected to the second SIM card is notified through the network device connected to the first SIM card to establish a new data transmission path for it, and the routing device is notified to route the subsequent data of the data service to be associated with the second SIM card On the new data transmission path.
  • the data service communication method when it is ensured that the signal of the first SIM card that is currently in data service communication and the signal of the second SIM card that is not in data service communication meet a preset condition, Through real-time monitoring of the received data volume and the sent data volume of the first SIM card currently in data service communication, it is judged whether it is necessary to perform data service switching, and the SIM card can be processed in time before the data service is stuck. Switch to ensure smooth data service communication and improve user experience.
  • Fig. 3 shows a flowchart of another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 3 further shows an exemplary implementation of the foregoing step S104.
  • step S104 may include:
  • step S1042A when the amount of received data within the current cycle time is 0, it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.
  • step S1044A If the amount of sent data in the current cycle time is greater than the first threshold TH1, then go to step S1044A; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S1046A.
  • step S1044A it is determined to switch the data service to the second SIM card.
  • step S1046A continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.
  • step S1048A it is determined whether the cumulative value of the amount of data sent by the first SIM card in the subsequent cycles is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the cycles is equal to 0.
  • step S1044A is entered, Determine to switch the data service to the second SIM card.
  • the card switching for the data service is not performed.
  • Fig. 4 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 4 further shows another exemplary implementation of the above step S104.
  • step S104 may include:
  • step S1042B when the amount of received data within the current cycle time is not 0, it is determined whether the amount of received data within the current cycle time is greater than the amount of sent data.
  • step S1044B is entered.
  • the amount of received data Rx ⁇ n in the current cycle time is greater than the amount of transmitted data Tx ⁇ n , it indicates that the current downlink data can be received normally, and there is no need to switch the data service to the second SIM card. Since the amount of data on the downlink is usually greater than the amount of uplink data (except for services such as file uploads by users), if the amount of received data Rx ⁇ n in the current cycle time is less than the amount of transmitted data Tx ⁇ n , it is necessary to further determine whether The data service needs to be switched to the second SIM card.
  • step S1044B it is determined whether the ratio between the amount of received data and the amount of transmitted data in the current cycle time is less than the second threshold TH2.
  • step S1046B If the ratio between the amount of received data and the amount of sent data in the current cycle time is less than the second threshold TH2, go to step S1046B; otherwise, if the ratio between the amount of received data and the amount of sent data in the current cycle time is greater than the second threshold TH2, go to step S1052B.
  • step S1046B continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.
  • step S1048B it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.
  • step S1050B If the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle is still less than the second threshold TH2, go to step S1050B; otherwise, if the received data volume of the first SIM card in the next cycle If the ratio to the amount of sent data is greater than the second threshold TH2, the switching of the card used for the data service is not performed.
  • step S1050B it is determined to switch the data service to the second SIM card.
  • step S1052B continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.
  • step S1054B it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.
  • step S1050B If the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2, go to step S1050B; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data within the preset number of subsequent cycles is not all less than the second threshold TH2, and the switching of the card used for the data service is not performed.
  • the switching of the card for the data service is not performed.
  • the amount of data sent is 0, which may be caused by poor uplink quality, but it may also be because there is no uplink data to be sent currently. If there is downlink data transmission, the uplink usually needs to send a corresponding feedback signal, so that the amount of transmitted data cannot be zero. Therefore, when there is no uplink data to be sent, it may also be because there is no downlink data to be sent. In this case, you can also determine whether it needs to be sent by first judging whether the amount of sent data in each cycle time is 0. The data service is switched to the second SIM card, thereby providing a simpler and more efficient decision-making method.
  • Fig. 5 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 5 further shows another exemplary implementation of the above step S104.
  • step S104 may include:
  • step S1042C it is determined whether the amount of transmitted data within the current cycle time is zero.
  • the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed.
  • This operation can further simplify the method for determining whether to switch the data service to the second SIM card provided by the embodiment of the present disclosure.
  • step S1044C is entered.
  • step S1044C when the amount of received data within the current cycle time is 0, it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.
  • step S1046C If the amount of sent data in the current cycle time is greater than the first threshold TH1, then go to step S1046C; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S1048C.
  • step S1046C it is determined to switch the data service to the second SIM card.
  • step S1048C continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.
  • step S1050C it is determined whether the cumulative value of the amount of data sent by the first SIM card in the following several cycle times is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the several cycle times is equal to 0.
  • step S1046C is entered, Determine to switch the data service to the second SIM card.
  • the card switching for the data service is not performed.
  • Fig. 6 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 6 further shows another exemplary implementation of the above step S104.
  • step S104 may include:
  • step S1042D it is determined whether the amount of transmitted data within the current cycle time is zero.
  • the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed.
  • This operation can further simplify the method for determining whether to switch the data service to the second SIM card provided by the embodiment of the present disclosure.
  • step S1044D is entered.
  • step SS1044D when the amount of received data in the current cycle time is not 0, it is determined whether the amount of received data in the current cycle time is greater than the amount of sent data.
  • step S1046D is entered.
  • the amount of received data Rx ⁇ n in the current cycle time is greater than the amount of transmitted data Tx ⁇ n , it indicates that the current downlink data can be received normally, and there is no need to switch the data service to the second SIM card. Since the amount of data on the downlink is usually greater than the amount of uplink data (except for services such as file uploads by users), if the amount of received data Rx ⁇ n in the current cycle time is less than the amount of transmitted data Tx ⁇ n , it is necessary to further determine whether The data service needs to be switched to the second SIM card.
  • step S1046D it is determined whether the ratio between the amount of received data and the amount of transmitted data within the current cycle time is less than the second threshold TH2.
  • step S1048D If the ratio between the amount of received data and the amount of sent data in the current cycle time is less than the second threshold TH2, go to step S1048D; otherwise, if the ratio between the amount of received data and the amount of sent data in the current cycle time is greater than the second threshold TH2, go to step S1054D.
  • step S1048D continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.
  • step S1050D it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.
  • step S1052D If the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time is still less than the second threshold TH2, go to step S1052D; otherwise, if the first SIM card receives data volume in the next cycle time If the ratio to the amount of sent data is greater than the second threshold TH2, the switching of the card used for the data service is not performed.
  • step S1052D it is determined to switch the data service to the second SIM card.
  • step S1054D continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.
  • step S1056D it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.
  • step S1052D is entered; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data within the preset number of subsequent cycles is not all less than the second threshold TH2, and the switching of the card used for the data service is not performed.
  • Step S1052D is entered, and it is determined to switch the data service to the second SIM card.
  • the switching of the card for the data service is not performed.
  • Fig. 7 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.
  • the method provided by the embodiment of the present disclosure may also be executed by the terminal device 700 shown in FIG. 1.
  • the data service communication method 20 includes:
  • step S202 it is determined whether the respective signals of the first SIM card and the second SIM card that have both registered data services in the network meet a preset condition.
  • step S204 If the respective signals of the first SIM card and the second SIM card meet the preset conditions, then go to step S204; otherwise, if the respective signals of the first SIM card and the second SIM card do not meet the preset conditions, then go to Step S228.
  • the foregoing preset conditions may include: the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to the preset signal strength threshold THs; or, the signal quality of the first SIM card The absolute value of the difference between the signal quality of the second SIM card and the signal quality is less than or equal to the preset signal quality threshold THq; or, the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card The value is less than or equal to the preset signal strength threshold THs, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality threshold THq.
  • step S204 it is determined whether the amount of transmitted data within the current cycle time is zero.
  • step S228 is entered, and the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed.
  • step S206 is entered.
  • step S206 it is determined whether the amount of received data within the current cycle time is zero.
  • step S208 If the amount of received data in the current cycle time is 0, go to step S208; otherwise, if the amount of received data in the current cycle time is not 0, go to step S216.
  • step S208 it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.
  • step S210 If the amount of sent data in the current cycle time is greater than the first threshold TH1, go to step S210; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S212.
  • step S210 it is determined to switch the data service to the second SIM card.
  • step S212 continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.
  • step S214 it is determined whether the cumulative value of the amount of data sent by the first SIM card in the following several cycle times is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the several cycle times is equal to 0.
  • step S210 is entered. Determine to switch the data service to the second SIM card.
  • step S228 is entered, and the switching of the card used for the data service is not performed.
  • step S216 it is determined whether the amount of received data within the current cycle time is greater than the amount of transmitted data.
  • step S228 is entered, and the switching of the card used for the data service is not performed.
  • step S218 is entered.
  • step S2128 it is determined whether the ratio between the amount of received data and the amount of transmitted data in the current cycle time is less than the second threshold TH2.
  • step S220 If the ratio between the amount of received data and the amount of sent data in the current period is less than the second threshold TH2, go to step S220; otherwise, if the ratio between the amount of received data and the amount of sent data in the current period is greater than the second threshold TH2, go to step S224.
  • step S220 continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.
  • step S222 it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.
  • step S210 determines to switch the data service to the second SIM card; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data of a SIM card in the next cycle is greater than the second threshold TH2, then step S228 is entered, and the switching of the card used for the data service is not performed.
  • step S224 continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.
  • step S2266 it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.
  • step S210 is entered to determine to switch the data service to the second SIM card; otherwise, if the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is not all less than the second threshold TH2, go to step S228, Switching of cards used for data services is not performed.
  • step S2208 the switching of the card used for the data service is not performed.
  • the embodiments of the present disclosure do not limit the value to be determined (such as the above-mentioned received data volume, sent data volume, received data volume between the received data volume and the sent data volume).
  • the behavior when the ratio, signal strength, signal quality, etc.) are equal to the thresholds such as the aforementioned data volume threshold 0, first threshold TH1, second threshold TH2, signal strength threshold THs, signal quality threshold THq, etc.).
  • the value to be determined When the value to be determined is equal to the relevant threshold value, it can be configured to perform a corresponding operation whose value to be determined is greater than the relevant threshold value, or it can also be configured to perform a corresponding operation whose value to be determined is less than the relevant threshold value.
  • the specific configuration method can be set according to actual needs in actual applications, and the present disclosure is not limited thereto.
  • Fig. 8 shows a schematic diagram of a data service communication device in an embodiment of the present disclosure.
  • the data service communication apparatus 30 shown in FIG. 8 may be installed in the terminal device 700 shown in FIG. 1, for example.
  • the data service communication device 30 includes: a data volume detection module 302 and a service switching decision module 304.
  • the data amount detection module 302 is configured to periodically detect the first SIM that is currently in data service communication when it is detected that the signal of the first SIM card and the signal of the second SIM card meet a preset condition. The amount of data received and sent by the card in each cycle time.
  • the service switching decision module 304 is configured to determine whether to switch the data service to the second SIM card according to the received data volume and the sent data volume within the current cycle time.
  • the data service communication device when it is ensured that the signal of the first SIM card that is currently in data service communication and the signal of the second SIM card that is not in data service communication meet a preset condition, Through real-time monitoring of the received data volume and the sent data volume of the first SIM card currently in data service communication, it is judged whether it is necessary to perform data service switching, and the SIM card can be processed in time before the data service is stuck. Switch to ensure smooth data service communication and improve user experience.
  • the service switching decision module 304 includes: a first judgment module and a first execution module.
  • the first judgment module is used for judging whether the amount of sent data in the current period is greater than the first threshold when the amount of sent data in the current period is not 0 and the amount of received data is 0; the first execution The module is used to determine to switch the data service to the second SIM card when the amount of sent data in the current cycle time is greater than the first threshold; and/or, when the data service is switched to the second SIM card in the current cycle time
  • the amount of sent data is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle in subsequent cycles; when the first SIM card sends in several subsequent cycles
  • the cumulative value of the amount of data is greater than the first threshold and the amount of data received by the first SIM card in each of the several cycles is 0, it is determined to switch the data service to the second SIM card .
  • the service switching decision module 304 includes: a second judgment module and a second execution module.
  • the second judgment module is used for judging whether the amount of received data in the current period is less than the amount of sent data when the amount of sent data in the current period is not 0 and the amount of received data is not 0, And whether the ratio between the received data volume and the sent data volume in the current cycle time is less than a second threshold; the second execution module is used for when the received data volume in the current cycle time is less than the sent data volume , And when the ratio between the received data volume and the sent data volume in the current cycle time is less than the second threshold, continue to detect the received data volume and the received data volume of the first SIM card in the next cycle time The amount of sent data; when the ratio between the amount of received data and the amount of sent data of the first SIM card in the next cycle time is still less than the second threshold, it is determined to switch the data service To the second SIM card; and/or, when the amount of received data in the current cycle time is less than the amount of sent data, and
  • the service switching decision module 304 includes: a third judgment module and a third execution module.
  • the third judgment module is used for judging whether the amount of sent data in the current cycle time is greater than the first threshold when the amount of received data in the current cycle time is 0; the third execution module is used for When the amount of sent data is greater than the first threshold, it is determined to switch the data service to the second SIM card; and/or, when the amount of sent data within the current cycle time is less than the first threshold , Continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle; when the cumulative value of the data sent volume of the first SIM card in the subsequent cycles is greater than the first SIM card When a threshold value is reached and the amount of received data of the first SIM card in each of the several period times is 0, it is determined to switch the data service to the second SIM card.
  • the service switching decision module 304 includes: a fourth judgment module and a fourth execution module.
  • the fourth judgment module is used to judge whether the received data volume in the current cycle time is less than the sent data volume when the received data volume in the current cycle time is not 0, and the received data volume in the current cycle time Whether the ratio between the amount of data and the amount of sent data is less than a second threshold; the fourth execution module is used for when the amount of received data in the current cycle time is less than the amount of sent data, and the amount of data in the current cycle time When the ratio between the amount of received data and the amount of sent data is less than the second threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in the next cycle; when the When the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time is still less than the second threshold, determining to switch the data service to the second SIM card; And/or, when the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the fourth judgment
  • the first SIM card is configured as a primary card of the terminal
  • the second SIM card is configured as a secondary card of the terminal.
  • the preset condition includes: the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to a third threshold; or, the The absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the fourth threshold; or, the signal strength of the first SIM card is equal to that of the second SIM card.
  • the absolute value of the difference between the signal strengths is less than or equal to the third threshold, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the The fourth threshold.
  • the data service communication device 30 further includes: a data registration module, configured to perform data service registration in the respective connected networks through the first SIM card and the second SIM card, respectively.
  • the network standards supported by the first SIM card and the second SIM card include: LTE standard or NR standard.
  • the exemplary embodiments described herein can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present disclosure.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • Including several instructions to make a computing device which can be a personal computer, a server, a terminal device, or a network device, etc.
  • a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned method of this specification is stored.
  • various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code.
  • the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.
  • a program product 900 for implementing the above method according to an embodiment of the present disclosure is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be installed in a terminal device, For example, running on a personal computer.
  • the program product of the present disclosure is not limited thereto.
  • the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.
  • the program product can use any combination of one or more readable media.
  • the readable medium may be a readable signal medium or a readable storage medium.
  • the readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.
  • the program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
  • the program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages.
  • the programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on.
  • the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using Internet service providers). Shanglai is connected via the Internet).
  • LAN local area network
  • WAN wide area network
  • an external computing device for example, using Internet service providers.
  • Shanglai is connected via the Internet.
  • modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.

Landscapes

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

Abstract

Provided are a data service communication method, a terminal, an electronic device, and a storage medium. The data service communication method is applied to a terminal device including a first SIM card and a second SIM card. The method comprises: when a first SIM card and a second SIM card meet a pre-set condition, periodically measuring a received data volume and a transmitted data volume of the first SIM card within each periodic time, wherein the first SIM card is a SIM card that is currently performing data service communication; and determining a switching strategy between the first SIM card and the second SIM card according to the received data volume and the transmitted data volume within the current periodic time. (FIG. 2)

Description

数据业务通信方法、终端、电子设备及存储介质Data service communication method, terminal, electronic equipment and storage medium

交叉引用cross reference

本公开要求于2020年6月15日提交的申请号为202010542109.3名称为“数据业务通信方法、终端、电子设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。This disclosure claims the priority of a Chinese patent application entitled "Data service communication method, terminal, electronic equipment and storage medium" filed on June 15, 2020 with the application number 202010542109.3. The entire content of the Chinese patent application is incorporated by reference. Incorporated into this article.

技术领域Technical field

本公开涉及无线通信技术领域,尤其涉及一种数据业务通信方法、终端、电子设备及存储介质。The present disclosure relates to the field of wireless communication technology, and in particular to a data service communication method, terminal, electronic device and storage medium.

背景技术Background technique

随着移动终端设备应用的普及,包含两张SIM(Subscriber Identity Module,用户识别模块)/USIM(University Subscriber Identity Module,全球用户识别模块)卡的终端越来越受到用户的青睐。每张SIM/USIM卡可以支持一种或多种网络制式,两张SIM/USIM卡可以同属于一个运营商或者也可以属于不同运营商。移动终端支持两张SIM/USIM卡分别在一个或多个网络中注册,从而可以通过每张SIM/USIM卡进行语音业务或数据业务。With the popularization of mobile terminal device applications, terminals containing two SIM (Subscriber Identity Module)/USIM (University Subscriber Identity Module, Global User Identity Module) cards are becoming more and more popular among users. Each SIM/USIM card can support one or more network standards, and two SIM/USIM cards can belong to the same operator or can also belong to different operators. The mobile terminal supports the registration of two SIM/USIM cards in one or more networks respectively, so that voice services or data services can be performed through each SIM/USIM card.

目前,终端在进行数据业务通信时,通常仅能使用其中一张SIM/USIM卡来传输或接收数据,例如使用被配置为主卡的SIM/USIM卡来进行数据通信。仅当主卡的信号质量非常差时,才会触发切换到副卡上来进行数据业务通信。或者是否切换到副卡进行数据业务通信由用户来手动进行配置。At present, when a terminal is performing data service communication, usually only one of the SIM/USIM cards can be used to transmit or receive data, for example, a SIM/USIM card configured as a master card is used for data communication. Only when the signal quality of the main card is very poor, the switch to the secondary card will be triggered for data service communication. Or whether to switch to the secondary card for data service communication is manually configured by the user.

需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the background art section above is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to those of ordinary skill in the art.

公开内容Public content

本公开的目的在于提供一种数据业务通信方法、终端、电子设备及存储介质,至少在一定程度上克服相关技术中数据业务通信不流畅,用户体验差的问题。The purpose of the present disclosure is to provide a data service communication method, terminal, electronic device, and storage medium, at least to a certain extent, to overcome the problems of unsmooth data service communication and poor user experience in related technologies.

根据本公开的一个方面,提供一种数据业务通信方法,应用于包含第一SIM卡和第二SIM卡的终端中,包括:当所述第一SIM卡与所述第二SIM卡满足预设条件时,周期地检测第一SIM卡在各周期时间内的接收数据量和发送数据量,所述第一SIM卡为当前正在进行数据业务通信的SIM卡;根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略。According to one aspect of the present disclosure, a data service communication method is provided, which is applied to a terminal including a first SIM card and a second SIM card, including: when the first SIM card and the second SIM card meet the preset requirements When the conditions are met, periodically detect the amount of received data and the amount of sent data of the first SIM card in each cycle time. The first SIM card is the SIM card currently undergoing data service communication; according to the received data within the current cycle time The amount of data and the amount of sent data determine a switching strategy between the first SIM card and the second SIM card.

根据本公开的另一个方面,提供一种终端,包括:第一SIM卡和第二SIM卡及分别与所述第一SIM卡和第二SIM卡连接的应用处理器;其中,所述应用处理器用于:当检测到所述第一SIM卡与所述第二SIM卡之间满足预设条件时,周期地检测第一SIM卡在各周期时间内的接收数据量和发送数据量;根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略。According to another aspect of the present disclosure, there is provided a terminal, including: a first SIM card, a second SIM card, and an application processor connected to the first SIM card and the second SIM card, respectively; wherein, the application processing The device is used to: when it is detected that a preset condition is satisfied between the first SIM card and the second SIM card, periodically detect the amount of received data and the amount of sent data of the first SIM card in each period; according to the current The received data volume and the sent data volume within the cycle time determine the switching strategy between the first SIM card and the second SIM card.

根据本公开的再一个方面,提供一种电子设备,包括:处理器;以及存储器,用于存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述的数据业务通信方法。According to another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the executable instructions Perform the above-mentioned data service communication method.

根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的数据业务通信方法。According to another aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and the computer program implements the above-mentioned data service communication method when the computer program is executed by a processor.

根据本公开实施例提供的数据业务通信方法,在确保当前正在进行数据业务通信的第一SIM卡与未进行数据业务通信的第二SIM卡满足预设条件的情况下,通过实时监测当前正在进行数据业务通信的第一SIM卡的接收数据量和发送数据量,来判断是否需要执行数据业务的切换,可以在数据业务出现卡顿等现象之前,及时地进行SIM卡的切换。According to the data service communication method provided by the embodiments of the present disclosure, under the condition that it is ensured that the first SIM card that is currently in data service communication and the second SIM card that is not in data service communication meet the preset conditions, real-time monitoring is performed. The received data volume and the sent data volume of the first SIM card for data service communication are used to determine whether data service switching needs to be performed, and the SIM card switching can be performed in a timely manner before the data service is stuck.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure.

附图说明Description of the drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The drawings herein are incorporated into the specification and constitute a part of the specification, show embodiments consistent with the disclosure, and are used together with the specification to explain the principle of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.

图1是本公开一个示例性实施例提供的终端的结构示意图。Fig. 1 is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present disclosure.

图2示出本公开实施例中一种数据业务通信方法流程图。Fig. 2 shows a flow chart of a data service communication method in an embodiment of the present disclosure.

图3示出本公开实施例中另一种数据业务通信方法流程图。Fig. 3 shows a flowchart of another data service communication method in an embodiment of the present disclosure.

图4示出本公开实施例中再一种数据业务通信方法流程图。Fig. 4 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.

图5示出本公开实施例中再一种数据业务通信方法流程图。Fig. 5 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.

图6示出本公开实施例中再一种数据业务通信方法流程图。Fig. 6 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.

图7示出本公开实施例中再一种数据业务通信方法流程图。Fig. 7 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure.

图8示出本公开实施例中一种数据业务通信装置示意图。Fig. 8 shows a schematic diagram of a data service communication device in an embodiment of the present disclosure.

图9示出本公开实施例中一种计算机可读存储介质的示意图。FIG. 9 shows a schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure.

具体实施方式detailed description

现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. However, the example embodiments can be implemented in various forms, and should not be construed as being limited to the examples set forth herein; on the contrary, the provision of these embodiments makes the present disclosure more comprehensive and complete, and fully conveys the concept of the example embodiments To those skilled in the art. The described features, structures or characteristics can be combined in one or more embodiments in any suitable way.

此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。In addition, the drawings are only schematic illustrations of the present disclosure, and are not necessarily drawn to scale. The same reference numerals in the figures denote the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in the form of software, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.

此外,在本公开的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示单独存在A、单独存在B及同时存在A和B三种情况。符号“/”一般表示前后关联对象是一种“或”的关系。术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。In addition, in the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise specifically defined. "And/or" describes the association relationship of the associated objects, indicating that there can be three relationships, such as A and/or B, which can indicate the existence of A alone, B alone, and both A and B. The symbol "/" generally indicates that the associated objects before and after are in an "or" relationship. The terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include one or more of these features.

如上述,在相关技术中,支持双卡双待的终端在进行数据业务通信时,通常仅能使用其中一张SIM/USIM卡来传输或接收数据,例如使用被配置为主卡的SIM/USIM卡来进行数据通信。且仅当主卡的信号质量非常差时,才会触发切换到副卡上来进行数据业务通信。或者是否切换到副卡进行数据业务通信由用户来手动进行配置。这样的切换策略会导致数据业务通信不流畅、出现卡顿,甚至数据业务通信中断等问题,用户体验差。As mentioned above, in related technologies, when a terminal supporting dual-card dual-standby performs data service communication, usually only one of the SIM/USIM cards can be used to transmit or receive data, such as the SIM/USIM configured as the main card. Card for data communication. And only when the signal quality of the main card is very poor, the switch to the secondary card will be triggered for data service communication. Or whether to switch to the secondary card for data service communication is manually configured by the user. Such a switching strategy will cause problems such as unsmooth data service communication, stalling, and even data service communication interruption, resulting in poor user experience.

本公开实施例提供一种数据业务通信方法及终端,可以通过监测当前正在进行数据业务通信的SIM/USIM卡的实时数据量,判断是否需要将当前的数据业务切换到其他SIM/USIM卡上进行,避免出现数据业务卡顿、中断等问题,从而提升用户体验。The embodiments of the present disclosure provide a data service communication method and terminal, which can determine whether the current data service needs to be switched to another SIM/USIM card by monitoring the real-time data volume of the SIM/USIM card currently undergoing data service communication , To avoid data business jams, interruptions and other issues, thereby improving user experience.

本公开实施例中的终端例如可以为支持双卡双待的各种终端设备。双卡双待即在终端中安装两张SIM/USIM卡,通过终端的底层软件和控制芯片,使两张卡可以分别在各自支持的网络中进行注册,并分别在各自注册的网络中待机。The terminal in the embodiment of the present disclosure may be, for example, various terminal devices that support dual-card dual-standby. Dual card dual standby means that two SIM/USIM cards are installed in the terminal. Through the terminal's underlying software and control chip, the two cards can be registered in their respective supported networks and stand by in their respective registered networks.

本领域技术人员应理解的是,虽然本公开实施例中的数据业务通信方法和终端以双卡终端为例,但本公开不以此为限,如还可以为安装有更多SIM/USIM卡的终端。Those skilled in the art should understand that although the data service communication method and terminal in the embodiments of the present disclosure take a dual-card terminal as an example, the present disclosure is not limited to this. For example, more SIM/USIM cards may be installed. Terminal.

图1是本公开一个示例性实施例提供的终端的结构示意图。Fig. 1 is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present disclosure.

需要说明的是本公开实施例对终端的具体形式不做特殊限制,图1示出的终端设备700仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。It should be noted that the embodiment of the present disclosure does not impose special restrictions on the specific form of the terminal. The terminal device 700 shown in FIG. 1 is only an example, and should not bring any limitation to the function and scope of use of the embodiment of the present disclosure.

终端设备700可以是手机、游戏主机、平板电脑、电子书阅读器、智能眼镜、MP4(MovingPicture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、智能家居设备、AR(Augmented Reality,增强现实)设备、VR(Virtual Reality,虚拟现实)设备等移动终端设备。The terminal device 700 can be a mobile phone, a game console, a tablet computer, an e-book reader, a smart glasses, an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player, a smart home device, AR (Augmented Reality) , Augmented reality) equipment, VR (Virtual Reality, virtual reality) equipment and other mobile terminal equipment.

本公开的终端设备至少包括处理器和存储器,存储器用于存储一个或多个程序,当一个或多个程序被处理器执行时,使得处理器可以实现本公开示例性实施方式的数据业务通信方法。The terminal device of the present disclosure includes at least a processor and a memory. The memory is used to store one or more programs. When the one or more programs are executed by the processor, the processor can implement the data service communication method of the exemplary embodiment of the present disclosure. .

具体的,如图1所示,终端设备700可以包括:处理器710、内部存储器721、外部存储器接口722、通用串行总线(Universal Serial Bus,USB)接口730、充电管理模块740、电源管理模块741、电池742、移动通信模块750、天线751、无线通信模块760、天线761、音频模块770、扬声器771、受话器772、麦克风773、耳机接口774、传感器模块780、显示屏790、摄像模组791、指示器792、马达793、按 键794以及用户标识(Subscriber Identification Module,SIM)卡模块795等。其中传感器模块780可以包括深度传感器7801、压力传感器7802、陀螺仪传感器7803、气压传感器7804、磁传感器7805、加速度传感器7806、距离传感器7807、接近光传感器7808、指纹传感器7809、温度传感器7810、触摸传感器7811、环境光传感器7812及骨传导传感器7813等。Specifically, as shown in FIG. 1, the terminal device 700 may include: a processor 710, an internal memory 721, an external memory interface 722, a universal serial bus (USB) interface 730, a charging management module 740, and a power management module 741, battery 742, mobile communication module 750, antenna 751, wireless communication module 760, antenna 761, audio module 770, speaker 771, receiver 772, microphone 773, earphone interface 774, sensor module 780, display screen 790, camera module 791 , Indicator 792, motor 793, button 794, Subscriber Identification Module (SIM) card module 795, etc. The sensor module 780 may include a depth sensor 7801, a pressure sensor 7802, a gyroscope sensor 7803, an air pressure sensor 7804, a magnetic sensor 7805, an acceleration sensor 7806, a distance sensor 7807, a proximity light sensor 7808, a fingerprint sensor 7809, a temperature sensor 7810, and a touch sensor. 7811, ambient light sensor 7812, bone conduction sensor 7813, etc.

可以理解的是,本申请实施例示意的结构并不构成对终端设备700的具体限定。在本申请另一些实施例中,终端设备700可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 700. In other embodiments of the present application, the terminal device 700 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

处理器710可以包括一个或多个处理单元,例如:处理器710可以包括应用处理器(Application Processor,AP)、调制解调处理器、图形处理器(Graphics Processing Unit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP)、基带处理器和/或神经网络处理器(Neural-etwork Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。另外,处理器710中还可以设置存储器,用于存储指令和数据。The processor 710 may include one or more processing units. For example, the processor 710 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or Neural-etwork Processing Unit (NPU), etc. Among them, the different processing units may be independent devices or integrated in one or more processors. In addition, a memory may be provided in the processor 710 for storing instructions and data.

USB接口730是符合USB标准规范的接口,具体可以是MiniUSB接口,MicroUSB接口,USBTypeC接口等。USB接口730可以用于连接充电器为终端设备700充电,也可以用于终端设备700与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 730 is an interface that complies with the USB standard specification, and specifically may be a MiniUSB interface, a MicroUSB interface, a USBTypeC interface, and so on. The USB interface 730 can be used to connect a charger to charge the terminal device 700, and can also be used to transfer data between the terminal device 700 and peripheral devices. It can also be used to connect earphones and play audio through earphones. The interface can also be used to connect other electronic devices, such as AR devices.

充电管理模块740用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块741用于连接电池742、充电管理模块740与处理器710。电源管理模块741接收电池742和/或充电管理模块740的输入,为处理器710、内部存储器721、显示屏790、摄像模组791和无线通信模块760等供电。The charging management module 740 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. The power management module 741 is used to connect the battery 742, the charging management module 740, and the processor 710. The power management module 741 receives input from the battery 742 and/or the charging management module 740, and supplies power to the processor 710, the internal memory 721, the display screen 790, the camera module 791, and the wireless communication module 760.

终端设备700的无线通信功能可以通过天线751、天线761、移动通信模块750、无线通信模块760、调制解调处理器以及基带处理器等实现。The wireless communication function of the terminal device 700 can be implemented by the antenna 751, the antenna 761, the mobile communication module 750, the wireless communication module 760, the modem processor, and the baseband processor.

移动通信模块750可以提供应用在终端设备700上的包括2G/3G/4G/5G等无线通信的解决方案。The mobile communication module 750 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the terminal device 700.

无线通信模块760可以提供应用在终端设备700上的包括无线局域网(Wireless Local Area Networks,WLAN)(如无线保真(Wireless Fidelity,Wi-Fi)网络)、蓝牙(Bluetooth,BT)、全球导航卫星系统(Global Navigation Satellite System,GNSS)、调频(Frequency Modulation,FM)、近距离无线通信技术(Near Field Communication,NFC)、红外技术(Infrared,IR)等无线通信的解决方案。The wireless communication module 760 can provide wireless local area networks (Wireless Local Area Networks, WLAN) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (Bluetooth, BT), and global navigation satellites used on the terminal device 700. System (Global Navigation Satellite System, GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (Infrared, IR) and other wireless communication solutions.

终端设备700通过GPU、显示屏790及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏790和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器710可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device 700 implements a display function through a GPU, a display screen 790, an application processor, and the like. The GPU is an image processing microprocessor, which is connected to the display screen 790 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 710 may include one or more GPUs that execute program instructions to generate or change display information.

终端设备700可以通过ISP、摄像模组791、视频编解码器、GPU、显示屏790及应用处理器等实现拍摄功能。在一些实施例中,终端设备700可以包括1个或N个摄像模组791,N为大于1的正整数,若终端设备700包括N个摄像头,N个摄像头中有一个是主摄像头。The terminal device 700 can implement a shooting function through an ISP, a camera module 791, a video codec, a GPU, a display screen 790, and an application processor. In some embodiments, the terminal device 700 may include 1 or N camera modules 791, and N is a positive integer greater than 1. If the terminal device 700 includes N cameras, one of the N cameras is the main camera.

内部存储器721可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器721可以包括存储程序区和存储数据区。外部存储器接口722可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备700的存储能力。The internal memory 721 may be used to store computer executable program code, where the executable program code includes instructions. The internal memory 721 may include a program storage area and a data storage area. The external memory interface 722 may be used to connect an external memory card, such as a Micro SD card, so as to expand the storage capacity of the terminal device 700.

终端设备700可以通过音频模块770、扬声器771、受话器772、麦克风773、耳机接口774及应用处理器等实现音频功能。例如音乐播放、录音等。The terminal device 700 can implement audio functions through an audio module 770, a speaker 771, a receiver 772, a microphone 773, a headphone interface 774, and an application processor. For example, music playback, recording, etc.

音频模块770用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块770还可以用于对音频信号编码和解码。在一些实施例中,音频模块770可以设置于处理器710中,或将音频模块770的部分功能模块设置于处理器710中。The audio module 770 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 770 can also be used to encode and decode audio signals. In some embodiments, the audio module 770 may be provided in the processor 710, or part of the functional modules of the audio module 770 may be provided in the processor 710.

扬声器771,也称“喇叭”,用于将音频电信号转换为声音信号。终端设备700可以通过扬声器771收听音乐,或收听免提通话。受话器772,也称“听筒”,用于将音频电信号转换成声音信号。当终端设备700接听电话或语音信息时,可以通过将受话器772靠近人耳接听语音。麦克风773,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风773发声,将声音信号输入到麦克风773。终端设备700可以设置至少一个麦克风773。耳机接口774用于连接有线耳机。The speaker 771, also called "speaker", is used to convert audio electrical signals into sound signals. The terminal device 700 can listen to music through the speaker 771, or listen to a hands-free call. The receiver 772, also called "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device 700 answers a call or voice message, it can receive the voice by bringing the receiver 772 close to the human ear. Microphone 773, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 773 through the mouth to make a sound, and input the sound signal to the microphone 773. The terminal device 700 may be provided with at least one microphone 773. The earphone interface 774 is used to connect wired earphones.

针对终端设备700包括的传感器,深度传感器7801用于获取景物的深度信息。压力传感器7802用于感受压力信号,可以将压力信号转换成电信号。陀螺仪传感器7803可以用于确定终端设备700的运动姿态。气压传感器7804用于测量气压。磁传感器7805包括霍尔传感器。终端设备700可以利用磁 传感器7805检测翻盖皮套的开合。加速度传感器7806可检测终端设备700在各个方向上(一般为三轴)加速度的大小。距离传感器7807用于测量距离。接近光传感器7808可以包括例如发光二极管(LED)和光检测器,例如光电二极管。指纹传感器7809用于采集指纹。温度传感器7810用于检测温度。触摸传感器7811可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏790提供与触摸操作相关的视觉输出。环境光传感器7812用于感知环境光亮度。骨传导传感器7813可以获取振动信号。For the sensors included in the terminal device 700, the depth sensor 7801 is used to obtain depth information of the scene. The pressure sensor 7802 is used to sense the pressure signal and can convert the pressure signal into an electrical signal. The gyroscope sensor 7803 may be used to determine the movement posture of the terminal device 700. The air pressure sensor 7804 is used to measure air pressure. The magnetic sensor 7805 includes a Hall sensor. The terminal device 700 can use the magnetic sensor 7805 to detect the opening and closing of the flip holster. The acceleration sensor 7806 can detect the magnitude of the acceleration of the terminal device 700 in various directions (generally three axes). The distance sensor 7807 is used to measure distance. The proximity light sensor 7808 may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The fingerprint sensor 7809 is used to collect fingerprints. The temperature sensor 7810 is used to detect temperature. The touch sensor 7811 may transmit the detected touch operation to the application processor to determine the type of the touch event. The visual output related to the touch operation may be provided through the display screen 790. The ambient light sensor 7812 is used to sense the brightness of the ambient light. The bone conduction sensor 7813 can acquire vibration signals.

按键794包括开机键,音量键等。按键794可以是机械按键。也可以是触摸式按键。马达793可以产生振动提示。马达793可以用于来电振动提示,也可以用于触摸振动反馈。指示器792可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The button 794 includes a power button, a volume button, and so on. The button 794 may be a mechanical button. It can also be a touch button. The motor 793 can generate vibration prompts. The motor 793 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. The indicator 792 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, and so on.

SIM卡模块795用于连接SIM卡,例如Nano SIM、Micro SIM等。终端设备700通过SIM卡和网络交互,实现语音业务通信以及数据业务通信等功能。语音业务通信如可以包括:接打电话、视频通话等业务,数据业务如可以包括:浏览网页、网络游戏、视频缓冲、下载/上传数据、即时通信等。在本公开示例性实施例中,以双卡手机为例,SIM卡模块795支持插入至少两张SIM卡(SIM 1和SIM 2)。其中一张被配置为主卡,另一张被配置为副卡。主卡和副卡均可以支持数据业务,但在数据业务通信过程中,在同一时间仅支持通过其中一张卡进行数据业务。需要说明的是,SIM卡模块795也可以实现为虚拟的SIM卡功能,或者SIM卡模块也可以为软SIM卡。The SIM card module 795 is used to connect to a SIM card, such as Nano SIM, Micro SIM, and so on. The terminal device 700 interacts with the network through the SIM card to realize functions such as voice service communication and data service communication. For example, voice service communication may include services such as making and receiving phone calls and video calls, and data services may include: browsing web pages, online games, video buffering, downloading/uploading data, instant messaging, and so on. In an exemplary embodiment of the present disclosure, taking a dual-SIM mobile phone as an example, the SIM card module 795 supports the insertion of at least two SIM cards (SIM 1 and SIM 2). One of them is configured as the primary card, and the other is configured as the secondary card. Both the main card and the secondary card can support data services, but in the data service communication process, only one of the cards can be used for data services at the same time. It should be noted that the SIM card module 795 can also be implemented as a virtual SIM card function, or the SIM card module can also be a soft SIM card.

其中SIM 1和SIM 2可以同属于一个运营商或者也可以属于不同运营商,例如SIM 1属于运营商中国移动,SIM 2属于运营商中国联通;或者,SIM 1和SIM 2均属于中国移动或中国联通等。此外,SIM 1和SIM 2可以支持一种或多种网络制式,网络制式如可以为LTE、LTE-A(演进LTE)或NR(New Radio,新无线电),或者还可以为WCDMA(Wideband Code Division Multiple Access,宽带码分多址)或HSPA(High Speed Packet Access,高速分组接入)。Among them, SIM 1 and SIM 2 can belong to the same operator or different operators. For example, SIM 1 belongs to the operator China Mobile, and SIM 2 belongs to the operator China Unicom; or both SIM 1 and SIM 2 belong to China Mobile or China China Unicom, etc. In addition, SIM 1 and SIM 2 can support one or more network standards, such as LTE, LTE-A (Evolved LTE) or NR (New Radio), or WCDMA (Wideband Code Division) Multiple Access, Wideband Code Division Multiple Access) or HSPA (High Speed Packet Access, High Speed Packet Access).

SIM 1和SIM 2可以分别在各自连接的网络设备中进行注册,从而使得终端设备700可以通过SIM1或SIM 2进行数据业务或语音业务。由于网络设备中登记有SIM 1和SIM 2的信息,SIM 1或SIM 2被呼叫时,如有人语音呼叫或视频呼叫SIM 1对应的终端号码(如手机号)时,网络设备可以再其管辖的范围内寻呼到终端设备700,从而建立主叫与终端设备700之间的通信连接,以进行该语音通话或视频通话;或者,有其他用户给装载于终端设备700中的即时通信客户端(如微信、QQ等)的登录用户发送即时消息时,网络设备也可以找到该终端设备700,并通过终端设备700当前允许进行数据业务的SIM卡将该即时消息发送给终端700(如其中的即时通信客户端)。The SIM 1 and the SIM 2 can be registered in their respective connected network devices, so that the terminal device 700 can perform a data service or a voice service through the SIM 1 or the SIM 2. Since the information of SIM 1 and SIM 2 is registered in the network equipment, when SIM 1 or SIM 2 is called, such as a voice or video call to the terminal number (such as mobile phone number) corresponding to SIM 1, the network equipment can be under its jurisdiction Paging to the terminal device 700 within the range, thereby establishing a communication connection between the caller and the terminal device 700 for the voice call or video call; or, another user gives the instant messaging client ( When a logged-in user of WeChat, QQ, etc. sends an instant message, the network device can also find the terminal device 700 and send the instant message to the terminal 700 through the SIM card of the terminal device 700 currently allowed to conduct data services (such as the instant message Communication client).

LTE网络制式下,该网络设备如为MME(Mobility Management Entity,移动管理实体);NR网络制式下,该网络设备如为基于硬件平台建立的虚拟网络设备AMF(Access and Mobility Management Function,接入和移动管理功能)。Under the LTE network standard, if the network equipment is MME (Mobility Management Entity, mobility management entity); under the NR network standard, if the network equipment is a virtual network equipment AMF (Access and Mobility Management Function) built on the hardware platform, access and Mobile management function).

本领域技术人员应理解的是,在SIM 1和SIM 2同属一个运营商并支持同一种网络制式的情况下,SIM 1和SIM 2可以向同一个网络设备进行注册。Those skilled in the art should understand that when SIM 1 and SIM 2 belong to the same operator and support the same network standard, SIM 1 and SIM 2 can register with the same network device.

此外,通常在通过终端设备700的移动通信模块750进行数据业务通信时,需要将终端设备700中无线通信模块760的数据通信功能关闭。例如,由用户通过提供的用户界面手动的关闭无线通信模块760的数据通信功能。如上述,该无线通信模块760如可以提供WiFi数据通信功能等。In addition, usually when data service communication is performed through the mobile communication module 750 of the terminal device 700, the data communication function of the wireless communication module 760 in the terminal device 700 needs to be turned off. For example, the user manually turns off the data communication function of the wireless communication module 760 through the provided user interface. As mentioned above, the wireless communication module 760 can provide WiFi data communication functions.

此外,目前的终端设备700中还设置有飞行模式的开关,用户可以在提供的用户界面中打开或关闭飞行模式。当飞行模式被打开时,终端设备700无法通过移动通信模块750或无线通信模块760与其他设备进行通信。因此,为了使终端设备700可以通过移动通信模块750进行通信,需要确保飞行模式处于关闭状态。In addition, the current terminal device 700 is also provided with a flight mode switch, and the user can turn on or off the flight mode in the provided user interface. When the flight mode is turned on, the terminal device 700 cannot communicate with other devices through the mobile communication module 750 or the wireless communication module 760. Therefore, in order for the terminal device 700 to communicate through the mobile communication module 750, it is necessary to ensure that the flight mode is turned off.

下面,将结合附图及实施例对本公开示例实施例中的数据业务通信方法的各个步骤进行更详细的说明。Hereinafter, each step of the data service communication method in the exemplary embodiment of the present disclosure will be described in more detail with reference to the accompanying drawings and embodiments.

图2示出本公开实施例中一种数据业务通信方法流程图。本公开实施例提供的方法如可以由图1中所示的终端设备700执行。Fig. 2 shows a flow chart of a data service communication method in an embodiment of the present disclosure. For example, the method provided by the embodiment of the present disclosure may be executed by the terminal device 700 shown in FIG. 1.

参考图2,数据业务通信方法10包括:Referring to FIG. 2, the data service communication method 10 includes:

在步骤S102中,当第一SIM卡与第二SIM卡满足预设条件时,周期地检测当前正在进行数据业务通信的第一SIM卡在各周期时间内的接收数据量和发送数据量。In step S102, when the first SIM card and the second SIM card meet the preset conditions, periodically detect the received data volume and the sent data volume of the first SIM card currently in data service communication within each period.

在终端设备700通过第一SIM卡进行数据业务的过程中,可以实时监测第一SIM卡的信号情况和第二SIM卡的信号情况。When the terminal device 700 performs data services through the first SIM card, the signal condition of the first SIM card and the signal condition of the second SIM card can be monitored in real time.

在一些实施例中,例如,可以分别监测第一SIM卡和第二SIM卡的信号强度。信号强度如可以为 第一SIM卡和第二SIM卡信号的RSRP(Reference Signal Receiving Power,参考信号接收功率)。RSRP是指测量到的参考信号上的接收功率,以4G移动通信系统LTE(Long Term Evolution,长期演进)为例,RSRP是指小区专属参考信号(Reference Signal)的所有RE(Resource Element,资源元素)上接收到的信号功率的平均值。In some embodiments, for example, the signal strength of the first SIM card and the second SIM card may be monitored separately. For example, the signal strength may be RSRP (Reference Signal Receiving Power) of the signals of the first SIM card and the second SIM card. RSRP refers to the measured received power on the reference signal. Taking the 4G mobile communication system LTE (Long Term Evolution) as an example, RSRP refers to all REs (Resource Elements) of the cell-specific reference signal (Reference Signal). ) Is the average value of the received signal power.

或者,信号强度还可以为第一SIM卡和第二SIM卡信号的RSSI(Received Signal Strength Indicator,接收信号强度指示)。RSSI是指接收到的信号强度指示,该信号包括了参考信号、数据信号、干扰信号及噪声信号等。仍以LTE系统为例,RSSI通常是指包含天线端口0的参考信号的OFDM(Orthogonal Frequency Division Multiplexing,正交频分多路复用)符号上的总功率的平均值。Alternatively, the signal strength may also be RSSI (Received Signal Strength Indicator) of the signals of the first SIM card and the second SIM card. RSSI refers to the received signal strength indicator, which includes reference signals, data signals, interference signals, and noise signals. Still taking the LTE system as an example, the RSSI usually refers to the average value of the total power on the OFDM (Orthogonal Frequency Division Multiplexing, Orthogonal Frequency Division Multiplexing) symbol containing the reference signal of the antenna port 0.

上述的预设条件例如可以包括:第一SIM卡的信号强度与第二SIM卡的信号强度之间差值的绝对值小于或等于预设的信号强度阈值THs。以信号强度为RSSP为例,该信号强度阈值THs例如可以被设置为10dB。The foregoing preset condition may include, for example, that the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to the preset signal strength threshold THs. Taking the signal strength as the RSSP as an example, the signal strength threshold THs may be set to 10 dB, for example.

在一些实施例中,还可以分别检测第一SIM卡和第二SIM卡信号的信号质量。信号质量例如可以为SINR(Signal to Interference plus Noise Ratio,信干噪声比)。SINR是指接收到的有用信号功率与接收到的干扰信号和噪声功率的比值,其用于衡量信号的质量。In some embodiments, the signal quality of the signal of the first SIM card and the signal of the second SIM card can also be detected separately. The signal quality may be, for example, SINR (Signal to Interference plus Noise Ratio, signal to interference and noise ratio). SINR refers to the ratio of the received useful signal power to the received interference signal and noise power, which is used to measure the quality of the signal.

或者,信号质量还可以为SNR(Signal Noise Ratio,SNR)SNR是指有用信号功率与干扰和噪声功率之和的比值,可直接反映接收信号的质量。Alternatively, the signal quality can also be SNR (Signal Noise Ratio, SNR). SNR refers to the ratio of useful signal power to the sum of interference and noise power, which can directly reflect the quality of the received signal.

再或者,信号质量还可以为RSRQ(Reference Signal Received Quality,参考信号接收质量),其通常可以通过RSRP和RSSI来计算。Alternatively, the signal quality may also be RSRQ (Reference Signal Received Quality, reference signal received quality), which can usually be calculated by RSRP and RSSI.

上述的预设条件例如可以包括:第一SIM卡的信号质量与第二SIM卡的信号质量之间差值的绝对值小于或等于预设的信号质量阈值THq。The foregoing preset condition may include, for example, that the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality threshold THq.

在一些实施例中,例如还可以同时监测第一SIM卡和第二SIM卡的信号强度和信号质量,上述的预设条件例如可以包括:第一SIM卡的信号强度与第二SIM卡的信号强度之间差值的绝对值小于或等于预设的信号强度阈值THs,并且第一SIM卡的信号质量与第二SIM卡的信号质量之间差值的绝对值小于或等于预设的信号质量阈值THq。In some embodiments, for example, the signal strength and signal quality of the first SIM card and the second SIM card can also be monitored at the same time. The aforementioned preset conditions can include, for example: the signal strength of the first SIM card and the signal of the second SIM card. The absolute value of the difference between the intensities is less than or equal to the preset signal strength threshold THs, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality Threshold THq.

在第一SIM卡的信号与第二SIM卡的信号之间满足上述的预设条件时,可以周期地对当前正在进行数据业务通信的第一SIM卡在各周期时间内的接收数据量Rx Δ和发送数据量Tx Δ进行检测。 When the above-mentioned preset condition is satisfied between the signal of the first SIM card and the signal of the second SIM card, the received data amount Rx Δ of the first SIM card currently undergoing data service communication in each period can be periodically determined. And the amount of sent data Tx Δ for detection.

在一些实施例中,第一SIM卡例如可以为被配置为主卡的SIM卡,第二SIM卡例如可以为被配置为副卡的SIM卡。或者,当数据业务被切换到副卡中进行通信后,第一SIM卡也可以为该副卡,而第二SIM卡为主卡。In some embodiments, the first SIM card may be, for example, a SIM card configured as a primary card, and the second SIM card may be, for example, a SIM card configured as a secondary card. Or, when the data service is switched to the secondary card for communication, the first SIM card may also be the secondary card, and the second SIM card may be the primary card.

周期例如可以被配置为5秒,但本公开不以此为限,在实际应用中该周期可以根据实际情况进行设置。或者,在一些实施例中,该周期例如还可以通过用户界面由用户进行设置。例如,可以提供给用户几个周期时间选项,由用户通过在界面中进行选择。The period may be configured as 5 seconds, for example, but the present disclosure is not limited to this, and in actual applications, the period may be set according to actual conditions. Or, in some embodiments, the period may also be set by the user through a user interface, for example. For example, several cycle time options can be provided to the user, which can be selected by the user in the interface.

在第n个周期内,第一SIM卡在该周期时间内的接收数据量Rx Δn如可以通过下述公式(1)计算,发送数据量Tx Δn如可以通过下述公式(2)计算。 In the nth cycle, the received data amount Rx Δn of the first SIM card in the cycle time can be calculated by the following formula (1), and the sent data amount Tx Δn can be calculated by the following formula (2).

Rx Δn=Rx n-Rx n-1……(1) Rx Δn =Rx n -Rx n-1 ……(1)

Tx Δn=Tx n-Tx n-1……(2) Tx Δn = Tx n -Tx n-1 ……(2)

其中,Rx n为第一SIM卡在前n个周期内累积的接收数据量,Rx n-1为第一SIM卡在前n-1个周期内累积的接收数据量。Tx n为第一SIM卡在前n个周期内累积的发送数据量,Tx n-1为第一SIM卡在前n-1个周期内累积的发送数据量。 Among them, Rx n is the received data amount accumulated by the first SIM card in the first n cycles, and Rx n-1 is the received data amount accumulated by the first SIM card in the first n-1 cycles. Tx n is the amount of transmitted data accumulated by the first SIM card in the previous n cycles, and Tx n-1 is the amount of transmitted data accumulated by the first SIM card in the previous n-1 cycles.

需要说明的是,统计的每个周期时间内的发送数据量和接收数据量可以为应用层的数据量,例如为参与数据业务通信的应用层客户端软件中发送缓存和接收缓存中的数据量。或者,发送数据量和接收数据量也可以为第一SIM卡采用的移动通信协议中的收发数据缓存中的数据量,如MAC(Medium Access Control,媒体接入控制)层中的缓存等。It should be noted that the amount of data sent and received in each cycle time of statistics can be the amount of data in the application layer, for example, the amount of data in the sending and receiving buffers in the application layer client software participating in data service communication. . Alternatively, the amount of sent data and the amount of received data may also be the amount of data in the receiving and sending data buffer in the mobile communication protocol adopted by the first SIM card, such as the buffer in the MAC (Medium Access Control) layer.

在步骤S104中,根据当前周期时间内的接收数据量和发送数据量,确定第一SIM卡与第二SIM卡的切换策略。In step S104, a switching strategy between the first SIM card and the second SIM card is determined according to the amount of received data and the amount of sent data within the current cycle time.

在依次获得各周期时间内的接收数据量和发送数据量后,可以在每周期内,依次地根据当前周期时间内的Rx Δ和发送数据量Tx Δ来确定是否将当前正在通信的数据业务切换到第二SIM卡上。 After obtaining the received data volume and the sent data volume in each cycle time in turn, you can determine whether to switch the currently communicating data service according to the Rx Δ and the sent data volume Tx Δ in the current cycle time in turn during each cycle. Go to the second SIM card.

在一些实施例中,当确定将当前正在通信的数据业务切换到第二SIM卡上时,终端设备700还需要通过第一SIM卡向其注册的网络设备发送数据切换相关的消息,以通知网络设备在核心网中切换当前数据业务的传输路径。例如,通过与第一SIM卡连接的网络设备通知与第二SIM卡连接的网络设备为其建立新的数据传输路径,并通知路由设备将该数据业务后续的数据路由到与第二SIM卡关联的新的数据传输路径上。In some embodiments, when it is determined to switch the data service currently in communication to the second SIM card, the terminal device 700 also needs to send a data switch related message to the network device registered with it through the first SIM card to notify the network The device switches the transmission path of the current data service in the core network. For example, the network device connected to the second SIM card is notified through the network device connected to the first SIM card to establish a new data transmission path for it, and the routing device is notified to route the subsequent data of the data service to be associated with the second SIM card On the new data transmission path.

根据本公开实施例提供的数据业务通信方法,在确保当前正在进行数据业务通信的第一SIM卡的信号与未进行数据业务通信的第二SIM卡的信号之间满足预设条件的情况下,通过实时监测当前正在进行数据业务通信的第一SIM卡的接收数据量和发送数据量,来判断是否需要执行数据业务的切换,可以在数据业务出现卡顿等现象之前,及时地进行SIM卡的切换,从而保证数据业务通信的流畅,提升用户的体验。According to the data service communication method provided by the embodiment of the present disclosure, when it is ensured that the signal of the first SIM card that is currently in data service communication and the signal of the second SIM card that is not in data service communication meet a preset condition, Through real-time monitoring of the received data volume and the sent data volume of the first SIM card currently in data service communication, it is judged whether it is necessary to perform data service switching, and the SIM card can be processed in time before the data service is stuck. Switch to ensure smooth data service communication and improve user experience.

图3示出本公开实施例中另一种数据业务通信方法流程图。与图2所示的数据业务通信方法10不同的是,图3所示的数据业务通信方法进一步示出上述步骤S104的一种示例性实施方式。Fig. 3 shows a flowchart of another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 3 further shows an exemplary implementation of the foregoing step S104.

如图3所示,步骤S104如可以包括:As shown in FIG. 3, step S104 may include:

在步骤S1042A中,当当前周期时间内的接收数据量为0时,判断当前周期时间内的发送数据量是否大于第一阈值TH1。In step S1042A, when the amount of received data within the current cycle time is 0, it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.

如果当前周期时间内的发送数据量大于第一阈值TH1,则进入步骤S1044A;如果当前周期时间内的发送数据量小于第一阈值TH1,进入步骤S1046A。If the amount of sent data in the current cycle time is greater than the first threshold TH1, then go to step S1044A; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S1046A.

假设当前周期为n,如果接收数据量Rx Δn为0,则判断当前周期时间内的发送数据量Tx Δn是否大于第一阈值TH1。 Assuming that the current period is n, if the amount of received data Rx Δn is 0, it is determined whether the amount of transmitted data Tx Δn within the current period is greater than the first threshold TH1.

如果检测到当前周期内接收数据量为0,则有可能使下行链路数据发生卡顿,需要及时地根据发送数据量来确定是否将数据业务切换到第二SIM卡上。If it is detected that the amount of received data in the current cycle is 0, it may cause the downlink data to be stuck, and it is necessary to determine whether to switch the data service to the second SIM card according to the amount of transmitted data in a timely manner.

在步骤S1044A中,确定将数据业务切换到第二SIM卡上。In step S1044A, it is determined to switch the data service to the second SIM card.

当当前周期时间内的发送数据量Tx Δn大于第一阈值TH1时,确定将数据业务切换到第二SIM卡上。 When the amount of sent data Tx Δn in the current cycle time is greater than the first threshold TH1, it is determined to switch the data service to the second SIM card.

在步骤S1046A中,继续检测后续周期第一SIM卡在各周期时间内的接收数据量和发送数据量。In step S1046A, continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.

仍以当前周期为周期n为例,当当前周期时间内的发送数据量Tx Δn小于第一阈值TH1时,继续检测后续周期第一SIM卡在各周期时间内的接收数据量和发送数据量。如检测后续周期n+1、周期n+2等周期时间内的接收数据量和发送数据量。 Still taking the current cycle as cycle n as an example, when the transmitted data amount Tx Δn in the current cycle time is less than the first threshold TH1, continue to detect the received data amount and the transmitted data amount of the first SIM card in each cycle time in the subsequent cycle. Such as detecting the amount of received data and the amount of sent data in the subsequent period n+1, period n+2, etc.

在步骤S1048A中,判断第一SIM卡在后续若干周期时间内的发送数据量的累计值是否大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量是否均为0。In step S1048A, it is determined whether the cumulative value of the amount of data sent by the first SIM card in the subsequent cycles is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the cycles is equal to 0.

也即判断第一SIM卡在后续若干周期时间内的接收数据量是否均为0,并且这些若干周期累计的发送数据量是否大于第一TH1。That is, it is determined whether the received data amount of the first SIM card in the following several cycles are all 0, and whether the accumulated transmitted data amount of these several cycles is greater than the first TH1.

如果第一SIM卡在后续若干周期时间内的发送数据量的累计值大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量均为0,则进入步骤S1044A,确定将数据业务切换到第二SIM卡上。If the cumulative value of the amount of data sent by the first SIM card in the subsequent cycles is greater than the first threshold TH1, and the amount of data received by the first SIM card in each of the cycles is 0, then step S1044A is entered, Determine to switch the data service to the second SIM card.

否则,如果在累计值还未大于第一阈值TH1之前,后续周期中出现某个周期时间内的接收数据量不为0,则不执行用于数据业务的卡的切换。Otherwise, if the amount of received data within a certain period of time in the subsequent period is not 0 before the accumulated value is not greater than the first threshold TH1, the card switching for the data service is not performed.

图4示出本公开实施例中再一种数据业务通信方法流程图。与图2所示的数据业务通信方法10不同的是,图4所示的数据业务通信方法进一步示出上述步骤S104的另一种示例性实施方式。Fig. 4 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 4 further shows another exemplary implementation of the above step S104.

如图4所示,步骤S104如可以包括:As shown in Fig. 4, step S104 may include:

在步骤S1042B中,当当前周期时间内的接收数据量不为0时,判断当前周期时间内的接收数据量是否大于发送数据量。In step S1042B, when the amount of received data within the current cycle time is not 0, it is determined whether the amount of received data within the current cycle time is greater than the amount of sent data.

如果当前周期时间内的接收数据量大于发送数据量,不执行用于数据业务的卡的切换。If the amount of received data in the current cycle time is greater than the amount of sent data, the switching of the card used for the data service is not performed.

否则,如果当前周期时间内的接收数据量小于发送数据量,则进入步骤S1044B。Otherwise, if the amount of received data in the current cycle time is less than the amount of sent data, step S1044B is entered.

假设当前周期为n,如果接收数据量Rx Δn不为0,则判断当前周期时间内的接收数据量Rx Δn是否大于发送数据量Tx ΔnAssuming that the current cycle is n, if the amount of received data Rx Δn is not 0, it is determined whether the amount of received data Rx Δn within the current cycle time is greater than the amount of transmitted data Tx Δn .

如果当前周期时间内的接收数据量Rx Δn大于发送数据量Tx Δn,说明当前下行链路数据可以正常接收,无需将数据业务切换到第二SIM卡上。而由于通常下行链路的数据量会大于上行链路数据量(用户进行文件上传等业务除外),如果当前周期时间内的接收数据量Rx Δn小于发送数据量Tx Δn,则需要进一步来确定是否需要将数据业务切换到第二SIM卡上。 If the amount of received data Rx Δn in the current cycle time is greater than the amount of transmitted data Tx Δn , it indicates that the current downlink data can be received normally, and there is no need to switch the data service to the second SIM card. Since the amount of data on the downlink is usually greater than the amount of uplink data (except for services such as file uploads by users), if the amount of received data Rx Δn in the current cycle time is less than the amount of transmitted data Tx Δn , it is necessary to further determine whether The data service needs to be switched to the second SIM card.

在步骤S1044B中,判断当前周期时间内的接收数据量与发送数据量之间的比值是否小于第二阈值TH2。In step S1044B, it is determined whether the ratio between the amount of received data and the amount of transmitted data in the current cycle time is less than the second threshold TH2.

如果当前周期时间内的接收数据量与发送数据量之间的比值小于第二阈值TH2,进入步骤S1046B;否则,如果当前周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,进入步骤S1052B。If the ratio between the amount of received data and the amount of sent data in the current cycle time is less than the second threshold TH2, go to step S1046B; otherwise, if the ratio between the amount of received data and the amount of sent data in the current cycle time is greater than the second threshold TH2, go to step S1052B.

仍以当前周期为周期n为例,对周期n周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn是否小于第二阈值TH2进行判断。 Still taking the current period as period n as an example, it is judged whether the ratio Rx Δn /Tx Δn between the amount of received data Rx Δn and the amount of transmitted data Tx Δn within the period of period n is smaller than the second threshold TH2.

在步骤S1046B中,继续检测第一SIM卡在下个周期时间内的接收数据量与发送数据量。In step S1046B, continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.

当前周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn小于第二阈值TH2时,继续检测第一SIM卡在下一个周期即周期n+1的周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1When TH2 ratio Rx Δn between the amount of data received in the current time period and the amount of transmission data Rx Δn Tx Δn / Tx Δn less than the second threshold value, continues to be detected during the next cycle, cycle time period n + 1 the first SIM card The amount of received data Rx Δn+1 and the amount of transmitted data Tx Δn+1 .

在步骤S1048B中,判断第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值是否仍然小于第二阈值TH2。In step S1048B, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.

如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值仍然小于第二阈值TH2,则进入步骤S1050B;否则,如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,则不执行用于数据业务的卡的切换。If the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle is still less than the second threshold TH2, go to step S1050B; otherwise, if the received data volume of the first SIM card in the next cycle If the ratio to the amount of sent data is greater than the second threshold TH2, the switching of the card used for the data service is not performed.

对周期n+1周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1是否仍然小于第二阈值TH2进行判断。 It is judged whether the ratio Rx Δn+1 /Tx Δn+1 between the received data amount Rx Δn+1 and the transmitted data amount Tx Δn+1 within the period of period n+1 is still smaller than the second threshold TH2.

在步骤S1050B中,确定将数据业务切换到第二SIM卡上。In step S1050B, it is determined to switch the data service to the second SIM card.

当周期n+1周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1仍然小于第二阈值TH2时,确定将数据业务切换到第二SIM卡上。 When the ratio Rx Δn+1 /Tx Δn+1 between the received data amount Rx Δn+1 and the transmitted data amount Tx Δn+1 in the period n+1 period is still less than the second threshold TH2, it is determined to switch the data service To the second SIM card.

在步骤S1052B中,继续检测后续预设数量周期第一SIM卡在各周期时间内的接收数据量与发送数据量。In step S1052B, continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.

当周期n的周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn大于第二阈值TH2时,继续检测后续预设数量周期第一SIM卡在各周期时间内的接收数据量与发送数据量。 When the ratio Rx Δn /Tx Δn between the amount of received data Rx Δn and the amount of transmitted data Tx Δn within the period of period n is greater than the second threshold TH2, continue to detect the subsequent preset number of cycles of the first SIM card in each cycle time The amount of received data and the amount of sent data within.

以预设数量为2为例,则继续检测周期n+1和周期n+2各自周期时间内的接收数据量和发送数据量。Taking the preset number of 2 as an example, continue to detect the amount of received data and the amount of transmitted data within the respective period of period n+1 and period n+2.

在步骤S1054B中,判断第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值是否均小于第二阈值TH2。In step S1054B, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.

如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值均小于所述第二阈值TH2,进入步骤S1050B中;否则,如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值未均小于所述第二阈值TH2,不执行用于数据业务的卡的切换。If the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2, go to step S1050B; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data within the preset number of subsequent cycles is not all less than the second threshold TH2, and the switching of the card used for the data service is not performed.

仍以预设数量为2为例,当周期n+1的周期时间内的接收数据量Rx Δn+1和发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1小于第二阈值TH2,且周期n+2的周期时间内的接收数据量Rx Δn+2和发送数据量Tx Δn+2之间的比值Rx Δn+2/Tx Δn+2也小于第二阈值TH2时,进入步骤S1050B,确定将数据业务切换到第二SIM卡上。 Still taking the preset number of 2 as an example, when the ratio Rx Δn+1 /Tx Δn+1 between the amount of received data Rx Δn+1 and the amount of transmitted data Tx Δn +1 in the period of period n+1 is less than the first When the second threshold TH2, and the ratio Rx Δn+2 /Tx Δn+2 between the received data amount Rx Δn+2 and the transmitted data amount Tx Δn +2 in the period of period n+2 is also less than the second threshold TH2, Go to step S1050B to determine to switch the data service to the second SIM card.

而如果比值Rx Δn+1/Tx Δn+1和/或比值Rx Δn+2/Tx Δn+2大于第二阈值TH2时,则不执行用于数据业务的卡的切换。 If the ratio Rx Δn+1 /Tx Δn+1 and/or the ratio Rx Δn+2 /Tx Δn+2 is greater than the second threshold TH2, the switching of the card for the data service is not performed.

通常发送数据量为0,有可能是因为上行链路质量差导致的,但也有可能是因为当前并没有上行链路数据需要发送。而如果有下行链路数据发送,上行链路通常需要发送相应的反馈信号,从而使得发送数据量不可能为0。因而,当没有上行链路数据需要发送时,也可能是因为没有下行链路数据需要发送,在此情况下,也可以先通过判断各周期时间内的发送数据量是否为0,来确定是否需要将数据业务切换到第二SIM卡上,从而提供一种更为简单且高效的决策方法。Usually the amount of data sent is 0, which may be caused by poor uplink quality, but it may also be because there is no uplink data to be sent currently. If there is downlink data transmission, the uplink usually needs to send a corresponding feedback signal, so that the amount of transmitted data cannot be zero. Therefore, when there is no uplink data to be sent, it may also be because there is no downlink data to be sent. In this case, you can also determine whether it needs to be sent by first judging whether the amount of sent data in each cycle time is 0. The data service is switched to the second SIM card, thereby providing a simpler and more efficient decision-making method.

图5示出本公开实施例中再一种数据业务通信方法流程图。与图2所示的数据业务通信方法10不同的是,图5所示的数据业务通信方法进一步示出上述步骤S104的再一种示例性实施方式。Fig. 5 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 5 further shows another exemplary implementation of the above step S104.

如图5所示,步骤S104如可以包括:As shown in FIG. 5, step S104 may include:

在步骤S1042C中,判断当前周期时间内的发送数据量是否为0。In step S1042C, it is determined whether the amount of transmitted data within the current cycle time is zero.

如果当前周期时间内的发送数据量为0,则不执行用于数据业务的卡的切换。也即对于当前周期时间内的发送数据量为0的情况,则无论接收数据量状态如何,均不执行用于数据业务的SIM卡的切换。该操作可以进一步简化本公开实施例提供的是否将数据业务切换到第二SIM卡上的确定方法。If the amount of sent data in the current cycle time is 0, the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed. This operation can further simplify the method for determining whether to switch the data service to the second SIM card provided by the embodiment of the present disclosure.

否则,如果当前周期时间内的发送数据量不为0,则进入步骤S1044C。Otherwise, if the amount of sent data in the current cycle time is not 0, step S1044C is entered.

在步骤S1044C中,当当前周期时间内的接收数据量为0时,判断当前周期时间内的发送数据量是否大于第一阈值TH1。In step S1044C, when the amount of received data within the current cycle time is 0, it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.

如果当前周期时间内的发送数据量大于第一阈值TH1,则进入步骤S1046C;如果当前周期时间内的发送数据量小于第一阈值TH1,进入步骤S1048C。If the amount of sent data in the current cycle time is greater than the first threshold TH1, then go to step S1046C; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S1048C.

假设当前周期为n,如果接收数据量Rx Δn为0,则判断当前周期时间内的发送数据量Tx Δn是否大于第一阈值TH1。 Assuming that the current period is n, if the amount of received data Rx Δn is 0, it is determined whether the amount of transmitted data Tx Δn within the current period is greater than the first threshold TH1.

如果检测到当前周期内接收数据量为0,则有可能使下行链路数据发生卡顿,需要及时地根据发送数据量来确定是否将数据业务切换到第二SIM卡上。If it is detected that the amount of received data in the current cycle is 0, it may cause the downlink data to be stuck, and it is necessary to determine whether to switch the data service to the second SIM card according to the amount of sent data in time.

在步骤S1046C中,确定将数据业务切换到第二SIM卡上。In step S1046C, it is determined to switch the data service to the second SIM card.

当当前周期时间内的发送数据量Tx Δn大于第一阈值TH1时,确定将数据业务切换到第二SIM卡上。 When the amount of sent data Tx Δn in the current cycle time is greater than the first threshold TH1, it is determined to switch the data service to the second SIM card.

在步骤S1048C中,继续检测后续周期第一SIM卡在各周期时间内的接收数据量和发送数据量。In step S1048C, continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.

仍以当前周期为周期n为例,当当前周期时间内的发送数据量Tx Δn小于第一阈值TH1时,继续检测后续周期第一SIM卡在各周期时间内的接收数据量和发送数据量。如检测后续周期n+1、周期n+2等周期时间内的接收数据量和发送数据量。 Still taking the current cycle as cycle n as an example, when the transmitted data amount Tx Δn in the current cycle time is less than the first threshold TH1, continue to detect the received data amount and the transmitted data amount of the first SIM card in each cycle time in the subsequent cycle. Such as detecting the amount of received data and the amount of sent data in the subsequent period n+1, period n+2, etc.

在步骤S1050C中,判断第一SIM卡在后续若干周期时间内的发送数据量的累计值是否大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量是否均为0。In step S1050C, it is determined whether the cumulative value of the amount of data sent by the first SIM card in the following several cycle times is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the several cycle times is equal to 0.

也即判断第一SIM卡在后续若干周期时间内的接收数据量是否均为0,并且这些若干周期累计的发送数据量是否大于第一TH1。That is, it is determined whether the received data amount of the first SIM card in the following several cycles are all 0, and whether the accumulated transmitted data amount of these several cycles is greater than the first TH1.

如果第一SIM卡在后续若干周期时间内的发送数据量的累计值大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量均为0,则进入步骤S1046C,确定将数据业务切换到第二SIM卡上。If the cumulative value of the amount of data sent by the first SIM card in the subsequent cycles is greater than the first threshold TH1, and the amount of data received by the first SIM card in each of the cycles is 0, then step S1046C is entered, Determine to switch the data service to the second SIM card.

否则,如果在累计值还未大于第一阈值TH1之前,后续周期中出现某个周期时间内的接收数据量不为0,则不执行用于数据业务的卡的切换。Otherwise, if the amount of received data within a certain period of time in the subsequent period is not 0 before the accumulated value is not greater than the first threshold TH1, the card switching for the data service is not performed.

图6示出本公开实施例中再一种数据业务通信方法流程图。与图2所示的数据业务通信方法10不同的是,图6所示的数据业务通信方法进一步示出上述步骤S104的再一种示例性实施方式。Fig. 6 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. Different from the data service communication method 10 shown in FIG. 2, the data service communication method shown in FIG. 6 further shows another exemplary implementation of the above step S104.

如图6所示,步骤S104如可以包括:As shown in Fig. 6, step S104 may include:

在步骤S1042D中,判断当前周期时间内的发送数据量是否为0。In step S1042D, it is determined whether the amount of transmitted data within the current cycle time is zero.

如果当前周期时间内的发送数据量为0,则不执行用于数据业务的卡的切换。也即对于当前周期时间内的发送数据量为0的情况,则无论接收数据量状态如何,均不执行用于数据业务的SIM卡的切换。该操作可以进一步简化本公开实施例提供的是否将数据业务切换到第二SIM卡上的确定方法。If the amount of sent data in the current cycle time is 0, the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed. This operation can further simplify the method for determining whether to switch the data service to the second SIM card provided by the embodiment of the present disclosure.

否则,如果当前周期时间内的发送数据量不为0,则进入步骤S1044D。Otherwise, if the amount of sent data within the current cycle time is not 0, step S1044D is entered.

在步骤SS1044D中,当当前周期时间内的接收数据量不为0时,判断当前周期时间内的接收数据量是否大于发送数据量。In step SS1044D, when the amount of received data in the current cycle time is not 0, it is determined whether the amount of received data in the current cycle time is greater than the amount of sent data.

如果当前周期时间内的接收数据量大于发送数据量,则不执行用于数据业务的卡的切换。If the amount of received data in the current cycle time is greater than the amount of transmitted data, the switching of the card used for the data service is not performed.

否则,如果当前周期时间内的接收数据量小于发送数据量,则进入步骤S1046D。Otherwise, if the amount of received data in the current cycle time is less than the amount of sent data, step S1046D is entered.

假设当前周期为n,如果接收数据量Rx Δn不为0,则判断当前周期时间内的接收数据量Rx Δn是否大于发送数据量Tx ΔnAssuming that the current cycle is n, if the amount of received data Rx Δn is not 0, it is determined whether the amount of received data Rx Δn within the current cycle time is greater than the amount of transmitted data Tx Δn .

如果当前周期时间内的接收数据量Rx Δn大于发送数据量Tx Δn,说明当前下行链路数据可以正常接收,无需将数据业务切换到第二SIM卡上。而由于通常下行链路的数据量会大于上行链路数据量(用户进行文件上传等业务除外),如果当前周期时间内的接收数据量Rx Δn小于发送数据量Tx Δn,则需要进一步来确定是否需要将数据业务切换到第二SIM卡上。 If the amount of received data Rx Δn in the current cycle time is greater than the amount of transmitted data Tx Δn , it indicates that the current downlink data can be received normally, and there is no need to switch the data service to the second SIM card. Since the amount of data on the downlink is usually greater than the amount of uplink data (except for services such as file uploads by users), if the amount of received data Rx Δn in the current cycle time is less than the amount of transmitted data Tx Δn , it is necessary to further determine whether The data service needs to be switched to the second SIM card.

在步骤S1046D中,判断当前周期时间内的接收数据量与发送数据量之间的比值是否小于第二阈值TH2。In step S1046D, it is determined whether the ratio between the amount of received data and the amount of transmitted data within the current cycle time is less than the second threshold TH2.

如果当前周期时间内的接收数据量与发送数据量之间的比值小于第二阈值TH2,进入步骤S1048D;否则,如果当前周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,进入步骤S1054D。If the ratio between the amount of received data and the amount of sent data in the current cycle time is less than the second threshold TH2, go to step S1048D; otherwise, if the ratio between the amount of received data and the amount of sent data in the current cycle time is greater than the second threshold TH2, go to step S1054D.

仍以当前周期为周期n为例,对周期n周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn是否小于第二阈值TH2进行判断。 Still taking the current period as period n as an example, it is judged whether the ratio Rx Δn /Tx Δn between the amount of received data Rx Δn and the amount of transmitted data Tx Δn within the period of period n is smaller than the second threshold TH2.

在步骤S1048D中,继续检测第一SIM卡在下个周期时间内的接收数据量与发送数据量。In step S1048D, continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.

当前周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn小于第二阈值TH2时,继续检测第一SIM卡在下一个周期即周期n+1的周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1When TH2 ratio Rx Δn between the amount of data received in the current time period and the amount of transmission data Rx Δn Tx Δn / Tx Δn less than the second threshold value, continues to be detected during the next cycle, cycle time period n + 1 the first SIM card The amount of received data Rx Δn+1 and the amount of transmitted data Tx Δn+1 .

在步骤S1050D中,判断第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值是否仍然小于第二阈值TH2。In step S1050D, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.

如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值仍然小于第二阈值TH2,则进入步骤S1052D;否则,如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,则不执行用于数据业务的卡的切换。If the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time is still less than the second threshold TH2, go to step S1052D; otherwise, if the first SIM card receives data volume in the next cycle time If the ratio to the amount of sent data is greater than the second threshold TH2, the switching of the card used for the data service is not performed.

对周期n+1周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1是否仍然小于第二阈值TH2进行判断。 It is judged whether the ratio Rx Δn+1 /Tx Δn+1 between the received data amount Rx Δn+1 and the transmitted data amount Tx Δn+1 within the period of period n+1 is still smaller than the second threshold TH2.

在步骤S1052D中,确定将数据业务切换到第二SIM卡上。In step S1052D, it is determined to switch the data service to the second SIM card.

当周期n+1周期时间内的接收数据量Rx Δn+1与发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1仍然小于第二阈值TH2时,确定将数据业务切换到第二SIM卡上。 When the ratio Rx Δn+1 /Tx Δn+1 between the amount of received data Rx Δn+1 and the amount of transmitted data Tx Δn+1 within the period of period n+1 is still less than the second threshold TH2, it is determined to switch the data service Go to the second SIM card.

在步骤S1054D中,继续检测后续预设数量周期第一SIM卡在各周期时间内的接收数据量与发送数据量。In step S1054D, continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.

当周期n的周期时间内的接收数据量Rx Δn与发送数据量Tx Δn之间的比值Rx Δn/Tx Δn大于第二阈值TH2时,继续检测后续预设数量周期第一SIM卡在各周期时间内的接收数据量与发送数据量。 When the ratio Rx Δn /Tx Δn between the amount of received data Rx Δn and the amount of transmitted data Tx Δn within the period of period n is greater than the second threshold TH2, continue to detect the subsequent preset number of cycles of the first SIM card in each cycle time The amount of received data and the amount of sent data within.

以预设数量为2为例,则继续检测周期n+1和周期n+2各自周期时间内的接收数据量和发送数据量。Taking the preset number of 2 as an example, continue to detect the amount of received data and the amount of transmitted data within the respective period of period n+1 and period n+2.

在步骤S1056D中,判断第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值是否均小于第二阈值TH2。In step S1056D, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.

如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值均小于所述第二阈值TH2,进入步骤S1052D中;否则,如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值未均小于所述第二阈值TH2,不执行用于数据业务的卡的切换。If the ratio between the received data volume and the sent data volume of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2, step S1052D is entered; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data within the preset number of subsequent cycles is not all less than the second threshold TH2, and the switching of the card used for the data service is not performed.

仍以预设数量为2为例,当周期n+1的周期时间内的接收数据量Rx Δn+1和发送数据量Tx Δn+1之间的比值Rx Δn+1/Tx Δn+1小于第二阈值TH2,且周期n+2的周期时间内的接收数据量Rx Δn+2和发送数据量Tx Δn+2之间的比值Rx Δn+2/Tx Δn+2也小于第二阈值TH2时,进入步骤S1052D,确定将数据业务切换到第二SIM卡上。 Still taking the preset number of 2 as an example, when the ratio Rx Δn+1 /Tx Δn+1 between the amount of received data Rx Δn+1 and the amount of transmitted data Tx Δn +1 in the period of period n+1 is less than the first When the second threshold TH2, and the ratio Rx Δn+2 /Tx Δn+2 between the received data amount Rx Δn+2 and the transmitted data amount Tx Δn +2 in the period of period n+2 is also smaller than the second threshold TH2, Step S1052D is entered, and it is determined to switch the data service to the second SIM card.

而如果比值Rx Δn+1/Tx Δn+1和/或比值Rx Δn+2/Tx Δn+2大于第二阈值TH2时,则不执行用于数据业务的卡的切换。 If the ratio Rx Δn+1 /Tx Δn+1 and/or the ratio Rx Δn+2 /Tx Δn+2 is greater than the second threshold TH2, the switching of the card for the data service is not performed.

图7示出本公开实施例中再一种数据业务通信方法流程图。本公开实施例提供的方法如也可以由图1中所示的终端设备700执行。Fig. 7 shows a flowchart of yet another data service communication method in an embodiment of the present disclosure. The method provided by the embodiment of the present disclosure may also be executed by the terminal device 700 shown in FIG. 1.

参考图7,数据业务通信方法20包括:Referring to FIG. 7, the data service communication method 20 includes:

在步骤S202中,判断均在网络中注册了数据业务的第一SIM卡和第二SIM卡各自的信号之间是否满足预设条件。In step S202, it is determined whether the respective signals of the first SIM card and the second SIM card that have both registered data services in the network meet a preset condition.

如果第一SIM卡和第二SIM卡各自的信号之间满足预设条件,则进入步骤S204;否则,如果第一SIM卡和第二SIM卡各自的信号之间不满足预设条件,则进入步骤S228。If the respective signals of the first SIM card and the second SIM card meet the preset conditions, then go to step S204; otherwise, if the respective signals of the first SIM card and the second SIM card do not meet the preset conditions, then go to Step S228.

如上述预设条件可以包括:第一SIM卡的信号强度与第二SIM卡的信号强度之间差值的绝对值小于或等于预设的信号强度阈值THs;或者,第一SIM卡的信号质量与第二SIM卡的信号质量之间差值的绝对值小于或等于预设的信号质量阈值THq;再或者,第一SIM卡的信号强度与第二SIM卡的信号强度之间差值的绝对值小于或等于预设的信号强度阈值THs,并且第一SIM卡的信号质量与第二SIM卡的信号质量之间差值的绝对值小于或等于预设的信号质量阈值THq。For example, the foregoing preset conditions may include: the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to the preset signal strength threshold THs; or, the signal quality of the first SIM card The absolute value of the difference between the signal quality of the second SIM card and the signal quality is less than or equal to the preset signal quality threshold THq; or, the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card The value is less than or equal to the preset signal strength threshold THs, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the preset signal quality threshold THq.

在步骤S204中,判断当前周期时间内的发送数据量是否为0。In step S204, it is determined whether the amount of transmitted data within the current cycle time is zero.

如果当前周期时间内的发送数据量为0,则进入步骤S228,不执行用于数据业务的卡的切换。也即对于当前周期时间内的发送数据量为0的情况,则无论接收数据量状态如何,均不执行用于数据业务的SIM卡的切换。If the amount of sent data in the current cycle time is 0, step S228 is entered, and the switching of the card used for the data service is not performed. That is, for the case that the amount of sent data in the current cycle time is 0, no matter what the status of the amount of received data is, the switching of the SIM card used for the data service is not performed.

否则,如果当前周期时间内的发送数据量不为0,则进入步骤S206。Otherwise, if the amount of sent data in the current cycle time is not 0, step S206 is entered.

在步骤S206中,判断当前周期时间内的接收数据量是否为0。In step S206, it is determined whether the amount of received data within the current cycle time is zero.

如果当前周期时间内的接收数据量为0,则进入步骤S208;否则,如果当前周期时间内的接收数据量不为0,则进入步骤S216。If the amount of received data in the current cycle time is 0, go to step S208; otherwise, if the amount of received data in the current cycle time is not 0, go to step S216.

在步骤S208中,判断当前周期时间内的发送数据量是否大于第一阈值TH1。In step S208, it is determined whether the amount of transmitted data within the current cycle time is greater than the first threshold TH1.

如果当前周期时间内的发送数据量大于第一阈值TH1,则进入步骤S210;如果当前周期时间内的发送数据量小于第一阈值TH1,进入步骤S212。If the amount of sent data in the current cycle time is greater than the first threshold TH1, go to step S210; if the amount of sent data in the current cycle time is less than the first threshold TH1, go to step S212.

如果检测到当前周期内接收数据量为0,则有可能使下行链路数据发生卡顿,需要及时地根据发送数据量来确定是否将数据业务切换到第二SIM卡上。If it is detected that the amount of received data in the current cycle is 0, it may cause the downlink data to be stuck, and it is necessary to determine whether to switch the data service to the second SIM card according to the amount of transmitted data in a timely manner.

在步骤S210中,确定将数据业务切换到第二SIM卡上。In step S210, it is determined to switch the data service to the second SIM card.

在步骤S212中,继续检测后续周期第一SIM卡在各周期时间内的接收数据量和发送数据量。In step S212, continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle.

在步骤S214中,判断第一SIM卡在后续若干周期时间内的发送数据量的累计值是否大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量是否均为0。In step S214, it is determined whether the cumulative value of the amount of data sent by the first SIM card in the following several cycle times is greater than the first threshold TH1, and whether the amount of data received by the first SIM card in each of the several cycle times is equal to 0.

也即判断第一SIM卡在后续若干周期时间内的接收数据量是否均为0,并且这些若干周期累计的发送数据量是否大于第一TH1。That is, it is determined whether the received data amount of the first SIM card in the following several cycles are all 0, and whether the accumulated transmitted data amount of these several cycles is greater than the first TH1.

如果第一SIM卡在后续若干周期时间内的发送数据量的累计值大于第一阈值TH1,且第一SIM卡在各所述若干周期时间内的接收数据量均为0,则进入步骤S210,确定将数据业务切换到第二SIM卡上。If the cumulative value of the amount of data sent by the first SIM card in the subsequent cycles is greater than the first threshold TH1, and the amount of data received by the first SIM card in each of the cycles is 0, then step S210 is entered. Determine to switch the data service to the second SIM card.

否则,如果在累计值还未大于第一阈值TH1之前,后续周期中出现某个周期时间内的接收数据量不为0,则进入步骤S228,不执行用于数据业务的卡的切换。Otherwise, if the amount of received data within a certain period of time in the subsequent period is not 0 before the cumulative value is not greater than the first threshold TH1, then step S228 is entered, and the switching of the card used for the data service is not performed.

在步骤S216中,判断当前周期时间内的接收数据量是否大于发送数据量。In step S216, it is determined whether the amount of received data within the current cycle time is greater than the amount of transmitted data.

如果当前周期时间内的接收数据量大于发送数据量,则进入步骤S228,不执行用于数据业务的卡的切换。If the amount of received data in the current cycle time is greater than the amount of sent data, step S228 is entered, and the switching of the card used for the data service is not performed.

否则,如果当前周期时间内的接收数据量小于发送数据量,则进入步骤S218。Otherwise, if the amount of received data in the current cycle time is less than the amount of sent data, step S218 is entered.

在步骤S218中,判断当前周期时间内的接收数据量与发送数据量之间的比值是否小于第二阈值TH2。In step S218, it is determined whether the ratio between the amount of received data and the amount of transmitted data in the current cycle time is less than the second threshold TH2.

如果当前周期时间内的接收数据量与发送数据量之间的比值小于第二阈值TH2,进入步骤S220;否则,如果当前周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,进入步骤S224。If the ratio between the amount of received data and the amount of sent data in the current period is less than the second threshold TH2, go to step S220; otherwise, if the ratio between the amount of received data and the amount of sent data in the current period is greater than the second threshold TH2, go to step S224.

在步骤S220中,继续检测第一SIM卡在下个周期时间内的接收数据量与发送数据量。In step S220, continue to detect the received data volume and the sent data volume of the first SIM card in the next cycle time.

在步骤S222中,判断第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值是否仍然小于第二阈值TH2。In step S222, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle time is still less than the second threshold TH2.

如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值仍然小于第二阈值TH2, 则进入步骤S210,确定将数据业务切换到第二SIM卡上;否则,如果第一SIM卡在下个周期时间内的接收数据量与发送数据量之间的比值大于第二阈值TH2,则进入步骤S228,不执行用于数据业务的卡的切换。If the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the next cycle is still less than the second threshold TH2, go to step S210 to determine to switch the data service to the second SIM card; otherwise, if the first SIM card The ratio between the amount of received data and the amount of transmitted data of a SIM card in the next cycle is greater than the second threshold TH2, then step S228 is entered, and the switching of the card used for the data service is not performed.

在步骤S224中,继续检测后续预设数量周期第一SIM卡在各周期时间内的接收数据量与发送数据量。In step S224, continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle within a predetermined number of subsequent cycles.

在步骤S226中,判断第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值是否均小于第二阈值TH2。In step S226, it is determined whether the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is less than the second threshold TH2.

如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值均小于所述第二阈值TH2,进入步骤S210,确定将数据业务切换到第二SIM卡上;否则,如果第一SIM卡在所述预设数量的后续各周期时间内的接收数据量与发送数据量之间的比值未均小于所述第二阈值TH2,则进入步骤S228,不执行用于数据业务的卡的切换。If the ratio between the amount of received data and the amount of transmitted data of the first SIM card within the preset number of subsequent cycles is less than the second threshold TH2, step S210 is entered to determine to switch the data service to the second SIM card; otherwise, if the ratio between the amount of received data and the amount of transmitted data of the first SIM card in the preset number of subsequent cycles is not all less than the second threshold TH2, go to step S228, Switching of cards used for data services is not performed.

在步骤S228中,不执行用于数据业务的卡的切换。In step S228, the switching of the card used for the data service is not performed.

需要注意的是,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。It should be noted that the above-mentioned drawings are only schematic illustrations of the processing included in the method according to the exemplary embodiments of the present disclosure, and are not intended for limitation. It is easy to understand that the processing shown in the above drawings does not indicate or limit the time sequence of these processings. In addition, it is easy to understand that these processes can be executed synchronously or asynchronously in multiple modules, for example.

此外,需要说明的是,上述各实施例提供的数据业务通信方法中,本公开实施例不限定待判决值(如上述的接收数据量、发送数据量、接收数据量与发送数据量之间的比值、信号强度、信号质量等)与各阈值(如上述的数据量阈值0、第一阈值TH1、第二阈值TH2、信号强度阈值THs、信号质量阈值THq等)之间相等时的行为。当待判决值与相关阈值相等时,可以配置为执行待判决值大于相关阈值的对应操作,或者也可以配置为执行待判决值小于相关阈值的对应操作。具体的配置方式可以在实际应用中,根据实际需求来设定,本公开不以此为限。In addition, it should be noted that in the data service communication methods provided by the foregoing embodiments, the embodiments of the present disclosure do not limit the value to be determined (such as the above-mentioned received data volume, sent data volume, received data volume between the received data volume and the sent data volume). The behavior when the ratio, signal strength, signal quality, etc.) are equal to the thresholds (such as the aforementioned data volume threshold 0, first threshold TH1, second threshold TH2, signal strength threshold THs, signal quality threshold THq, etc.). When the value to be determined is equal to the relevant threshold value, it can be configured to perform a corresponding operation whose value to be determined is greater than the relevant threshold value, or it can also be configured to perform a corresponding operation whose value to be determined is less than the relevant threshold value. The specific configuration method can be set according to actual needs in actual applications, and the present disclosure is not limited thereto.

下述为本公开装置实施例,可以用于执行本公开方法实施例。对于本公开装置实施例中未披露的细节,请参照本公开方法实施例。The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details that are not disclosed in the device embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.

图8示出本公开实施例中一种数据业务通信装置示意图。图8所示的数据业务通信装置30例如可以被设置于图1所示的终端设备700中。Fig. 8 shows a schematic diagram of a data service communication device in an embodiment of the present disclosure. The data service communication apparatus 30 shown in FIG. 8 may be installed in the terminal device 700 shown in FIG. 1, for example.

参考图8,数据业务通信装置30包括:数据量检测模块302和业务切换判决模块304。Referring to FIG. 8, the data service communication device 30 includes: a data volume detection module 302 and a service switching decision module 304.

其中,数据量检测模块302用于当检测到所述第一SIM卡的信号与所述第二SIM卡的信号之间满足预设条件时,周期地检测当前正在进行数据业务通信的第一SIM卡在各周期时间内的接收数据量和发送数据量。Wherein, the data amount detection module 302 is configured to periodically detect the first SIM that is currently in data service communication when it is detected that the signal of the first SIM card and the signal of the second SIM card meet a preset condition. The amount of data received and sent by the card in each cycle time.

业务切换判决模块304用于根据当前周期时间内的所述接收数据量和所述发送数据量,确定是否将所述数据业务切换到所述第二SIM卡上。The service switching decision module 304 is configured to determine whether to switch the data service to the second SIM card according to the received data volume and the sent data volume within the current cycle time.

根据本公开实施例提供的数据业务通信装置,在确保当前正在进行数据业务通信的第一SIM卡的信号与未进行数据业务通信的第二SIM卡的信号之间满足预设条件的情况下,通过实时监测当前正在进行数据业务通信的第一SIM卡的接收数据量和发送数据量,来判断是否需要执行数据业务的切换,可以在数据业务出现卡顿等现象之前,及时地进行SIM卡的切换,从而保证数据业务通信的流畅,提升用户的体验。According to the data service communication device provided by the embodiment of the present disclosure, when it is ensured that the signal of the first SIM card that is currently in data service communication and the signal of the second SIM card that is not in data service communication meet a preset condition, Through real-time monitoring of the received data volume and the sent data volume of the first SIM card currently in data service communication, it is judged whether it is necessary to perform data service switching, and the SIM card can be processed in time before the data service is stuck. Switch to ensure smooth data service communication and improve user experience.

在一些实施例中,业务切换判决模块304包括:第一判断模块和第一执行模块。第一判断模块用于当当前周期时间内的所述发送数据量不为0且所述接收数据量为0时,判断当前周期时间内的所述发送数据量是否大于第一阈值;第一执行模块用于当当前周期时间内的所述发送数据量大于所述第一阈值时,确定将所述数据业务切换到所述第二SIM卡上;和/或,当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。In some embodiments, the service switching decision module 304 includes: a first judgment module and a first execution module. The first judgment module is used for judging whether the amount of sent data in the current period is greater than the first threshold when the amount of sent data in the current period is not 0 and the amount of received data is 0; the first execution The module is used to determine to switch the data service to the second SIM card when the amount of sent data in the current cycle time is greater than the first threshold; and/or, when the data service is switched to the second SIM card in the current cycle time When the amount of sent data is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each cycle in subsequent cycles; when the first SIM card sends in several subsequent cycles When the cumulative value of the amount of data is greater than the first threshold and the amount of data received by the first SIM card in each of the several cycles is 0, it is determined to switch the data service to the second SIM card .

在一些实施例中,业务切换判决模块304包括:第二判断模块和第二执行模块。第二判断模块用于当当前周期时间内的所述发送数据量不为0且所述接收数据量不为0时,判断当前周期时间内的所述接收数据量是否小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值是否小于第二阈值;第二执行模块用于当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于所述第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所 述第二SIM卡上;和/或,当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。In some embodiments, the service switching decision module 304 includes: a second judgment module and a second execution module. The second judgment module is used for judging whether the amount of received data in the current period is less than the amount of sent data when the amount of sent data in the current period is not 0 and the amount of received data is not 0, And whether the ratio between the received data volume and the sent data volume in the current cycle time is less than a second threshold; the second execution module is used for when the received data volume in the current cycle time is less than the sent data volume , And when the ratio between the received data volume and the sent data volume in the current cycle time is less than the second threshold, continue to detect the received data volume and the received data volume of the first SIM card in the next cycle time The amount of sent data; when the ratio between the amount of received data and the amount of sent data of the first SIM card in the next cycle time is still less than the second threshold, it is determined to switch the data service To the second SIM card; and/or, when the amount of received data in the current cycle time is less than the amount of sent data, and between the amount of received data and the amount of sent data in the current cycle time When the ratio is greater than the second threshold, continue to detect the amount of received data and the amount of sent data in each cycle time of the first SIM card in the subsequent preset number of cycles; when the first SIM card is in all If the ratio between the amount of received data and the amount of transmitted data within the preset number of subsequent periods is less than the second threshold, it is determined to switch the data service to the second SIM card.

在一些实施例中,业务切换判决模块304包括:第三判断模块和第三执行模块。第三判断模块用于当当前周期时间内的所述接收数据量为0时,判断当前周期时间内的所述发送数据量是否大于第一阈值;第三执行模块用于当当前周期时间内的所述发送数据量大于所述第一阈值时,确定将所述数据业务切换到所述第二SIM卡上;和/或,当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。In some embodiments, the service switching decision module 304 includes: a third judgment module and a third execution module. The third judgment module is used for judging whether the amount of sent data in the current cycle time is greater than the first threshold when the amount of received data in the current cycle time is 0; the third execution module is used for When the amount of sent data is greater than the first threshold, it is determined to switch the data service to the second SIM card; and/or, when the amount of sent data within the current cycle time is less than the first threshold , Continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time in the subsequent cycle; when the cumulative value of the data sent volume of the first SIM card in the subsequent cycles is greater than the first SIM card When a threshold value is reached and the amount of received data of the first SIM card in each of the several period times is 0, it is determined to switch the data service to the second SIM card.

在一些实施例中,业务切换判决模块304包括:第四判断模块和第四执行模块。第四判断模块用于当当前周期时间内的所述接收数据量不为0时,判断当前周期时间内的所述接收数据量是否小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值是否小于第二阈值;第四执行模块用于当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于所述第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所述第二SIM卡上;和/或,当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。In some embodiments, the service switching decision module 304 includes: a fourth judgment module and a fourth execution module. The fourth judgment module is used to judge whether the received data volume in the current cycle time is less than the sent data volume when the received data volume in the current cycle time is not 0, and the received data volume in the current cycle time Whether the ratio between the amount of data and the amount of sent data is less than a second threshold; the fourth execution module is used for when the amount of received data in the current cycle time is less than the amount of sent data, and the amount of data in the current cycle time When the ratio between the amount of received data and the amount of sent data is less than the second threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in the next cycle; when the When the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time is still less than the second threshold, determining to switch the data service to the second SIM card; And/or, when the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the amount of received data and the amount of sent data in the current cycle time is greater than the second threshold , Continue to detect the received data volume and the sent data volume of the first SIM card in each cycle time for the subsequent preset number of cycles; when the first SIM card is within the preset number of subsequent cycle time The ratio between the amount of received data and the amount of transmitted data within is less than the second threshold, and it is determined to switch the data service to the second SIM card.

在一些实施例中,所述第一SIM卡为被配置为所述终端的主卡,所述第二SIM卡被配置为所述终端的副卡。In some embodiments, the first SIM card is configured as a primary card of the terminal, and the second SIM card is configured as a secondary card of the terminal.

在一些实施例中,所述预设条件包括:所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于第三阈值;或者,所述第一SIM卡的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于第四阈值;或者,所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于所述第三阈值,且所述第一SIM卡的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于所述第四阈值。In some embodiments, the preset condition includes: the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card is less than or equal to a third threshold; or, the The absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the fourth threshold; or, the signal strength of the first SIM card is equal to that of the second SIM card. The absolute value of the difference between the signal strengths is less than or equal to the third threshold, and the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the The fourth threshold.

在一些实施例中,数据业务通信装置30还包括:数据注册模块,用于分别通过所述第一SIM卡和所述第二SIM卡在各自连接的网络中进行数据业务的注册。In some embodiments, the data service communication device 30 further includes: a data registration module, configured to perform data service registration in the respective connected networks through the first SIM card and the second SIM card, respectively.

在一些实施例中,所述第一SIM卡和所述第二SIM卡支持的网络制式包括:LTE制式或NR制式。In some embodiments, the network standards supported by the first SIM card and the second SIM card include: LTE standard or NR standard.

通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the foregoing embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein can be implemented by software, or can be implemented by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , Including several instructions to make a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) execute the method according to the embodiment of the present disclosure.

在本公开的示例性实施例中,还提供了一种计算机可读存储介质,其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above-mentioned method of this specification is stored. In some possible implementation manners, various aspects of the present disclosure may also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the The terminal device executes the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Exemplary Method" section of this specification.

参考图9所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品900,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。As shown in FIG. 9, a program product 900 for implementing the above method according to an embodiment of the present disclosure is described. It can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be installed in a terminal device, For example, running on a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, the readable storage medium can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device, or device.

所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电 连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product can use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable Type programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.

计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。The computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. The readable signal medium may also be any readable medium other than a readable storage medium, and the readable medium may send, propagate, or transmit a program for use by or in combination with the instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。The program code contained on the readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。The program code used to perform the operations of the present disclosure can be written in any combination of one or more programming languages. The programming languages include object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural styles. Programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computing device, partly on the user's device, executed as an independent software package, partly on the user's computing device and partly executed on the remote computing device, or entirely on the remote computing device or server Executed on. In the case of a remote computing device, the remote computing device can be connected to a user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using Internet service providers). Shanglai is connected via the Internet).

应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units to be embodied.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure 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 disclosed in the present disclosure. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the appended claims.

Claims (20)

一种数据业务通信方法,应用于包含第一SIM卡和第二SIM卡的终端设备中,其特征在于,包括:A data service communication method, applied to a terminal device containing a first SIM card and a second SIM card, and is characterized in that it includes: 当所述第一SIM卡与所述第二SIM卡满足预设条件时,周期地检测所述第一SIM卡在各周期时间内的接收数据量和发送数据量,所述第一SIM卡为当前正在进行数据业务通信的SIM卡;根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略。When the first SIM card and the second SIM card meet the preset conditions, periodically detect the amount of received data and the amount of transmitted data of the first SIM card in each period, and the first SIM card is A SIM card currently in data service communication; determining a switching strategy between the first SIM card and the second SIM card according to the received data volume and the sent data volume within the current cycle time. 根据权利要求1所述的方法,其特征在于,根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略,包括:若当前周期时间内所述发送数据量不为0且所述接收数据量为0:The method according to claim 1, wherein determining the switching strategy between the first SIM card and the second SIM card according to the amount of received data and the amount of sent data within the current cycle time comprises : If the amount of sent data is not 0 and the amount of received data in the current cycle time is 0: 当当前周期时间内的所述发送数据量大于第一阈值时,将所述数据业务切换到所述第二SIM卡上;Switch the data service to the second SIM card when the amount of sent data in the current cycle time is greater than a first threshold; 当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。When the amount of sent data in the current period is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each period in the subsequent period; when the first SIM card When the cumulative value of the amount of sent data in the subsequent periods is greater than the first threshold and the amount of data received by the first SIM card in each of the periods is 0, it is determined to switch the data service To the second SIM card. 根据权利要求1所述的方法,其特征在于,根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略,包括:若当前周期时间内的所述发送数据量不为0且所述接收数据量不为0:The method according to claim 1, wherein determining the switching strategy between the first SIM card and the second SIM card according to the amount of received data and the amount of sent data within the current cycle time comprises : If the amount of sent data in the current cycle time is not 0 and the amount of received data is not 0: 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the amount of received data and the amount of sent data in the current cycle time is less than a second threshold, continue to detect the first The received data volume and the sent data volume of a SIM card in the next cycle time; when the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time remains When it is less than the second threshold, determine to switch the data service to the second SIM card; 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。When the received data volume in the current cycle time is less than the sent data volume, and the ratio between the received data volume and the sent data volume in the current cycle time is greater than the second threshold, continue to detect subsequent The amount of received data and the amount of sent data of the first SIM card in each period of a preset number of cycles; when the first SIM card is within the preset number of subsequent periods of time, The ratio between the amount of received data and the amount of sent data is all less than the second threshold, and it is determined to switch the data service to the second SIM card. 根据权利要求1所述的方法,其特征在于,根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略,包括:若当前周期时间内的所述接收数据量为0:The method according to claim 1, wherein determining the switching strategy between the first SIM card and the second SIM card according to the amount of received data and the amount of sent data within the current cycle time comprises : If the amount of received data within the current cycle time is 0: 当当前周期时间内的所述发送数据量大于第一阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of sent data in the current cycle time is greater than a first threshold, determining to switch the data service to the second SIM card; 当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。When the amount of sent data in the current period is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each period in the subsequent period; when the first SIM card When the cumulative value of the amount of sent data in the subsequent periods is greater than the first threshold and the amount of data received by the first SIM card in each of the periods is 0, it is determined to switch the data service To the second SIM card. 根据权利要求1所述的方法,其特征在于,根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略,包括:若当前周期时间内的所述接收数据量不为0:The method according to claim 1, wherein determining the switching strategy between the first SIM card and the second SIM card according to the amount of received data and the amount of sent data within the current cycle time comprises : If the received data amount in the current cycle time is not 0: 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所述第二SIM卡上;和/或,When the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the amount of received data and the amount of sent data in the current cycle time is less than a second threshold, continue to detect the first The received data volume and the sent data volume of a SIM card in the next cycle time; when the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time remains When it is less than the second threshold, determine to switch the data service to the second SIM card; and/or, 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。When the received data volume in the current cycle time is less than the sent data volume, and the ratio between the received data volume and the sent data volume in the current cycle time is greater than the second threshold, continue to detect subsequent The amount of received data and the amount of sent data of the first SIM card in each period of a preset number of cycles; when the first SIM card is within the preset number of subsequent periods of time, The ratio between the amount of received data and the amount of sent data is all less than the second threshold, and it is determined to switch the data service to the second SIM card. 根据权利要求1-5任一项所述的方法,其特征在于,所述第一SIM卡为被配置为所述终端设备的主卡,所述第二SIM卡被配置为所述终端设备的副卡。The method according to any one of claims 1-5, wherein the first SIM card is configured as the main card of the terminal device, and the second SIM card is configured as the main card of the terminal device. Vice card. 根据权利要求1-5任一项所述的方法,其特征在于,所述预设条件包括:所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于第三阈值;或者,所述第一SIM卡 的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于第四阈值;或者,所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于所述第三阈值,且所述第一SIM卡的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于所述第四阈值。The method according to any one of claims 1 to 5, wherein the preset condition comprises: the absolute value of the difference between the signal strength of the first SIM card and the signal strength of the second SIM card The value is less than or equal to the third threshold; or, the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the fourth threshold; or, the first SIM The absolute value of the difference between the signal strength of the card and the signal strength of the second SIM card is less than or equal to the third threshold, and the signal quality of the first SIM card and the signal quality of the second SIM card The absolute value of the difference between is less than or equal to the fourth threshold. 根据权利要求1-5任一项所述的方法,其特征在于,还包括:The method according to any one of claims 1-5, further comprising: 分别通过所述第一SIM卡和所述第二SIM卡在各自连接的网络中进行数据业务的注册。The data service registration is performed in the respective connected networks through the first SIM card and the second SIM card respectively. 根据权利要求8所述的方法,其特征在于,所述第一SIM卡和所述第二SIM卡支持的网络制式包括:LTE制式或NR制式。The method according to claim 8, wherein the network standards supported by the first SIM card and the second SIM card include: LTE standard or NR standard. 一种终端设备,其特征在于,包括:第一SIM卡和第二SIM卡及分别与所述第一SIM卡和第二SIM卡连接的应用处理器;其中,所述应用处理器用于:当检测到所述第一SIM卡与所述第二SIM卡满足预设条件时,周期地检测所述第一SIM卡在各周期时间内的接收数据量和发送数据量,所述第一SIM卡为当前正在进行数据业务通信的SIM卡;根据当前周期时间内的所述接收数据量和所述发送数据量,确定所述第一SIM卡与所述第二SIM卡的切换策略。A terminal device, characterized by comprising: a first SIM card, a second SIM card, and an application processor connected to the first SIM card and the second SIM card; wherein, the application processor is used for: When it is detected that the first SIM card and the second SIM card meet the preset conditions, periodically detect the amount of received data and the amount of transmitted data of the first SIM card in each cycle time, and the first SIM card It is the SIM card currently undergoing data service communication; determining the switching strategy between the first SIM card and the second SIM card according to the received data volume and the sent data volume within the current cycle time. 根据权利要求10所述的终端设备,其特征在于,所述应用处理器用于:若当前周期时间内的所述发送数据量不为0且所述接收数据量为0:The terminal device according to claim 10, wherein the application processor is configured to: if the amount of sent data in the current cycle time is not 0 and the amount of received data is 0: 当当前周期时间内的所述发送数据量大于第一阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of sent data in the current cycle time is greater than a first threshold, determining to switch the data service to the second SIM card; 当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。When the amount of sent data in the current period is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each period in the subsequent period; when the first SIM card When the cumulative value of the amount of sent data in the subsequent periods is greater than the first threshold and the amount of data received by the first SIM card in each of the periods is 0, it is determined to switch the data service To the second SIM card. 根据权利要求10所述的终端设备,其特征在于,所述应用处理器用于:若当前周期时间内的所述发送数据量不为0且所述接收数据量不为0:The terminal device according to claim 10, wherein the application processor is configured to: if the amount of sent data in the current cycle time is not 0 and the amount of received data is not 0: 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the amount of received data and the amount of sent data in the current cycle time is less than a second threshold, continue to detect the first The received data volume and the sent data volume of a SIM card in the next cycle time; when the ratio between the received data volume and the sent data volume of the first SIM card in the next cycle time remains When it is less than the second threshold, determine to switch the data service to the second SIM card; 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。When the received data volume in the current cycle time is less than the sent data volume, and the ratio between the received data volume and the sent data volume in the current cycle time is greater than the second threshold, continue to detect subsequent The amount of received data and the amount of sent data of the first SIM card in each period of a preset number of cycles; when the first SIM card is within the preset number of subsequent periods of time, The ratio between the amount of received data and the amount of sent data is all less than the second threshold, and it is determined to switch the data service to the second SIM card. 根据权利要求10所述的终端设备,其特征在于,所述应用处理器用于:若当前周期时间内的所述接收数据量为0:The terminal device according to claim 10, wherein the application processor is configured to: if the amount of received data in the current cycle time is 0: 当当前周期时间内的所述发送数据量大于第一阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of sent data in the current cycle time is greater than a first threshold, determining to switch the data service to the second SIM card; 当当前周期时间内的所述发送数据量小于所述第一阈值时,继续检测后续周期所述第一SIM卡在各周期时间内的接收数据量和发送数据量;当所述第一SIM卡在后续若干周期时间内的发送数据量的累计值大于所述第一阈值且所述第一SIM卡在各所述若干周期时间内的接收数据量均为0时,确定将所述数据业务切换到所述第二SIM卡上。When the amount of sent data in the current period is less than the first threshold, continue to detect the amount of received data and the amount of sent data of the first SIM card in each period in the subsequent period; when the first SIM card When the cumulative value of the amount of sent data in the subsequent periods is greater than the first threshold and the amount of data received by the first SIM card in each of the periods is 0, it is determined to switch the data service To the second SIM card. 根据权利要求10所述的终端设备,其特征在于,所述应用处理器用于:若当前周期时间内的所述接收数据量不为0:The terminal device according to claim 10, wherein the application processor is configured to: if the amount of received data in the current cycle time is not 0: 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值小于所述第二阈值时,继续检测所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在下个周期时间内的所述接收数据量与所述发送数据量之间的比值仍小于所述第二阈值时,确定将所述数据业务切换到所述第二SIM卡上;When the amount of received data in the current cycle time is less than the amount of sent data, and the ratio between the amount of received data and the amount of sent data in the current cycle time is less than the second threshold, continue to detect The received data volume and the sent data volume of the first SIM card in the next cycle time; when the first SIM card is between the received data volume and the sent data volume in the next cycle time When the ratio is still less than the second threshold, determining to switch the data service to the second SIM card; 当当前周期时间内的所述接收数据量小于所述发送数据量,且当前周期时间内的所述接收数据量与所述发送数据量之间的比值大于所述第二阈值时,继续检测后续预设数量周期所述第一SIM卡在各周期时间内的所述接收数据量与所述发送数据量;当所述第一SIM卡在所述预设数量的后续各周期时间内的所述接收数据量与所述发送数据量之间的比值均小于所述第二阈值,确定将所述数据业务切换到所述第二SIM卡上。When the received data volume in the current cycle time is less than the sent data volume, and the ratio between the received data volume and the sent data volume in the current cycle time is greater than the second threshold, continue to detect subsequent The amount of received data and the amount of sent data of the first SIM card in each period of a preset number of cycles; when the first SIM card is within the preset number of subsequent periods of time, The ratio between the amount of received data and the amount of sent data is all less than the second threshold, and it is determined to switch the data service to the second SIM card. 根据权利要求10-14任一项所述的终端设备,其特征在于,所述第一SIM卡为被配置为所述 终端设备的主卡,所述第二SIM卡被配置为所述终端设备的副卡。The terminal device according to any one of claims 10-14, wherein the first SIM card is configured as the main card of the terminal device, and the second SIM card is configured as the terminal device The vice card. 根据权利要求10-14任一项所述的终端设备,其特征在于,所述预设条件包括:所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于第三阈值;或者,所述第一SIM卡的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于第四阈值;或者,所述第一SIM卡的信号强度与所述第二SIM卡的信号强度之间差值的绝对值小于或等于所述第三阈值,且所述第一SIM卡的信号质量与所述第二SIM卡的信号质量之间差值的绝对值小于或等于所述第四阈值。The terminal device according to any one of claims 10-14, wherein the preset condition comprises: a difference between the signal strength of the first SIM card and the signal strength of the second SIM card The absolute value is less than or equal to the third threshold; or, the absolute value of the difference between the signal quality of the first SIM card and the signal quality of the second SIM card is less than or equal to the fourth threshold; or, the first The absolute value of the difference between the signal strength of the SIM card and the signal strength of the second SIM card is less than or equal to the third threshold, and the signal quality of the first SIM card is equal to that of the second SIM card The absolute value of the difference between the qualities is less than or equal to the fourth threshold. 根据权利要求10-14任一项所述的终端设备,其特征在于,还包括:移动通信模块,所述应用处理器还用于:控制所述移动通信模块分别基于所述第一SIM卡和所述第二SIM卡在各自连接的网络中进行数据业务的注册。The terminal device according to any one of claims 10-14, further comprising: a mobile communication module, and the application processor is further configured to: control the mobile communication module to be based on the first SIM card and The second SIM card performs data service registration in the network to which it is connected. 根据权利要求17所述的终端设备,其特征在于,所述第一SIM卡和所述第二SIM卡支持的网络制式包括:LTE制式或NR制式。The terminal device according to claim 17, wherein the network standards supported by the first SIM card and the second SIM card include: LTE standard or NR standard. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises: 处理器;以及Processor; and 存储器,用于存储所述处理器的可执行指令;A memory for storing executable instructions of the processor; 其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1-9任一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 1-9 by executing the executable instructions. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1-9任一项所述的方法。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1-9 when the computer program is executed by a processor.
PCT/CN2021/088493 2020-06-15 2021-04-20 Data service communication method, terminal, electronic device and storage medium Ceased WO2021253966A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010542109.3A CN111757406B (en) 2020-06-15 2020-06-15 Data service communication method, terminal, electronic device and storage medium
CN202010542109.3 2020-06-15

Publications (1)

Publication Number Publication Date
WO2021253966A1 true WO2021253966A1 (en) 2021-12-23

Family

ID=72676070

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088493 Ceased WO2021253966A1 (en) 2020-06-15 2021-04-20 Data service communication method, terminal, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN111757406B (en)
WO (1) WO2021253966A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20230078016A1 (en) * 2021-09-10 2023-03-16 Qualcomm Incorporated Dual subscriber coexistence management
US12279302B2 (en) 2021-03-11 2025-04-15 Qualcomm Incorporated Techniques for prioritizing communications for dual subscriber user equipment
US12284720B2 (en) 2021-01-15 2025-04-22 Qualcomm Incorporated Techniques for managing power amplifier reliability for multi-SIM antenna switching concurrency

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757406B (en) * 2020-06-15 2023-04-11 Oppo广东移动通信有限公司 Data service communication method, terminal, electronic device and storage medium
CN112469029B (en) * 2020-12-01 2022-08-16 展讯通信(上海)有限公司 Service processing method, device and equipment
CN112788685B (en) * 2020-12-28 2023-03-21 北京小米移动软件有限公司 Network communication method and device, terminal and storage medium
CN117693075B (en) * 2023-05-15 2025-01-03 荣耀终端有限公司 A SIM card switching method and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581828A (en) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 Method and device for executing data service
WO2017008386A1 (en) * 2015-07-10 2017-01-19 中兴通讯股份有限公司 Method and apparatus for automatically switching in-service card of double-card terminal, and storage medium
CN107071760A (en) * 2017-03-31 2017-08-18 努比亚技术有限公司 Data service automatic switching method and mobile terminal
CN108632804A (en) * 2017-03-20 2018-10-09 中国移动通信有限公司研究院 A kind of the service concurrence processing method and terminal of double-terminal
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 Method for switching internet access card and electronic equipment
CN110234109A (en) * 2019-05-29 2019-09-13 维沃移动通信有限公司 A kind of task triggering method and mobile terminal
CN111757406A (en) * 2020-06-15 2020-10-09 Oppo广东移动通信有限公司 Data service communication method, terminal, electronic device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105763464B (en) * 2016-01-29 2019-01-22 宇龙计算机通信科技(深圳)有限公司 Data flow sharing method, apparatus and system
CN111182602A (en) * 2018-11-12 2020-05-19 奇酷互联网络科技(深圳)有限公司 SIM card switching method of mobile terminal, mobile terminal and computer storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581828A (en) * 2013-10-22 2015-04-29 中兴通讯股份有限公司 Method and device for executing data service
WO2017008386A1 (en) * 2015-07-10 2017-01-19 中兴通讯股份有限公司 Method and apparatus for automatically switching in-service card of double-card terminal, and storage medium
CN108632804A (en) * 2017-03-20 2018-10-09 中国移动通信有限公司研究院 A kind of the service concurrence processing method and terminal of double-terminal
CN107071760A (en) * 2017-03-31 2017-08-18 努比亚技术有限公司 Data service automatic switching method and mobile terminal
CN110072263A (en) * 2019-03-26 2019-07-30 华为技术有限公司 Method for switching internet access card and electronic equipment
CN110234109A (en) * 2019-05-29 2019-09-13 维沃移动通信有限公司 A kind of task triggering method and mobile terminal
CN111757406A (en) * 2020-06-15 2020-10-09 Oppo广东移动通信有限公司 Data service communication method, terminal, electronic device and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12284720B2 (en) 2021-01-15 2025-04-22 Qualcomm Incorporated Techniques for managing power amplifier reliability for multi-SIM antenna switching concurrency
US12279302B2 (en) 2021-03-11 2025-04-15 Qualcomm Incorporated Techniques for prioritizing communications for dual subscriber user equipment
US20230078016A1 (en) * 2021-09-10 2023-03-16 Qualcomm Incorporated Dual subscriber coexistence management
US12177931B2 (en) * 2021-09-10 2024-12-24 Qualcomm Incorporated Dual subscriber coexistence management

Also Published As

Publication number Publication date
CN111757406A (en) 2020-10-09
CN111757406B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
CN111757406B (en) Data service communication method, terminal, electronic device and storage medium
CN115349279B (en) AI model determination method, apparatus, communication device and storage medium
US20220346010A1 (en) Data Sending/Receiving Method, Electronic Device, and Computer-Readable Storage Medium
CN111543118B (en) Method, device, communication equipment and storage medium for RRC state change
US20250142434A1 (en) Data processing method and system, electronic device, bluetooth peripheral, and storage medium
WO2022052024A1 (en) Parameter configuration method, apparatus, communication device, and storage medium
CN110771199B (en) Measurement processing method and device
WO2021159245A1 (en) Data transmirssion method and apparatus, and communication device
EP4366366A1 (en) Measurement configuration determination method and apparatus, communication device and storage medium
CN107682360B (en) A method for processing a voice call and a mobile terminal
CN111149388B (en) Communication processing method, device and computer storage medium
WO2023221831A1 (en) Processing method, communication device, and storage medium
CN113825146B (en) Beam determination method and device
CN113316954B (en) Indication method, receiving method, device, communication equipment and storage medium
KR20220098185A (en) Data transmission methods, devices and communication devices
WO2022006759A1 (en) Information transmission method and apparatus, communication device, and storage medium
US20240414514A1 (en) Data transmission method and apparatus
EP4447495A1 (en) Information processing method and apparatus, communication device and storage medium
WO2022205046A1 (en) Information transmission method and apparatus, communication device, and storage medium
US20220408469A1 (en) Downlink control information configuration method and apparatus, and communication device and storage medium
CN115412387A (en) Audio playing method and system and electronic equipment
US20250048137A1 (en) Information processing method and apparatus, and communication device and storage medium
CN114696961B (en) Multimedia data transmission method and equipment
CN116830671B (en) TRP selection method and device, communication equipment, communication system and storage medium
CN111263017A (en) Call mode control method and device, storage medium and electronic equipment

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: 21826253

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: 21826253

Country of ref document: EP

Kind code of ref document: A1