A method and terminal device for dual card communication

By optimizing frequency band selection and adjustment in terminal devices to form DSDA mode, the problem of poor user experience in dual-SIM mode is solved, and more stable dual-SIM communication and service operation are achieved.

CN117202159BActive Publication Date: 2026-05-29HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2022-05-30
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing terminal devices offer a poor user experience in dual-SIM mode, especially with incomplete support for DSDA mode. This results in frequent interruptions to the primary SIM card's data service during calls, network searches, and other activities on the secondary SIM card, impacting the internet browsing experience.

Method used

By identifying candidate frequency bands that meet preset conditions in the terminal device, priority is given to selecting frequency bands that are compatible with the primary card's current camping frequency band, allowing the secondary card to camp, or the combination of candidate frequency bands with the primary and secondary card frequency bands is adjusted to form a DSDA mode, ensuring that both cards can perform data and voice services simultaneously.

Benefits of technology

It improves the user experience of terminal devices in DSDA mode, reduces the interference of frequency band adjustment on the primary card service, and achieves more stable dual-card communication.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117202159B_ABST
    Figure CN117202159B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a method and a terminal device for dual-card communication. The terminal device retains a frequency band in which a second card currently camps. A first candidate frequency band of a first card is determined based on a preset condition. The obtained first candidate frequency band can meet a quality requirement and form a DSDA mode with the frequency band in which the second card currently camps. Then, one frequency band is selected from the first candidate frequency band as a target frequency band. The first card is caused to camp on the target frequency band. The DSDA mode can be formed between the first card and the second card. Thus, the terminal device can be in the DSDA mode, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more specifically, to a method and terminal device for dual-SIM communication in the field of communications. Background Technology

[0002] With the development of communications, most current terminal devices (e.g., mobile phones) support dual SIM dual standby (DSDS) or dual SIM dual active (DSDA) modes. In DSDA mode, the terminal device supports concurrent services for both SIM cards, meaning both SIMs can send or receive data simultaneously. While one SIM is making a call, the other can receive calls and perform data services (i.e., internet access). In DSDS mode, the terminal device does not support concurrent services for both SIM cards. While one SIM is making a call, the other cannot perform data services. Furthermore, while one SIM is performing data services, the other can receive calls, but these calls will interrupt the data service. For the primary SIM card, the secondary SIM card's call activity prevents it from performing data services. Additionally, the secondary SIM card's activities such as network searching, measurement, tracking area update (TAU), SMS, MMS, and periodic registration can preempt antenna usage, impacting the primary SIM card's internet experience.

[0003] It can be seen that DSDA mode offers a better user experience compared to DSDS mode. However, the support for DSDA mode in mainstream chips in current terminal devices is incomplete, and in many scenarios, terminal devices are in DSDS mode instead of DSDA mode, thus reducing the user experience. Summary of the Invention

[0004] This application provides a method and terminal device for dual-SIM communication, which enables the terminal device to be in DSDA mode as much as possible to improve user experience.

[0005] Firstly, a dual-SIM communication method is provided, applied in a terminal device, including:

[0006] If a dual-SIM dual-pass DSDA mode is not formed between the first card and the second card of the terminal device, a first candidate frequency band of the first card that meets the preset conditions is determined. The first candidate frequency band includes at least one frequency band. The preset conditions include a first condition and a second condition. The first condition includes: the quality of the candidate cell meets the requirements. The second condition includes: the frequency band of the candidate cell can form a DSDA mode supported by the terminal device with the frequency band currently camped by the second card. One candidate cell corresponds to one frequency band.

[0007] Based on the target frequency band in the first candidate frequency band, the first card is stationed on the target frequency band.

[0008] The dual-SIM communication method provided in this application retains the frequency band currently hosted by the second SIM card, determines a first candidate frequency band for the first SIM card based on preset conditions, and obtains a first candidate frequency band that meets both quality requirements and can form a DSDA mode with the frequency band currently hosted by the second SIM card. Then, a frequency band is selected from the first candidate frequency bands as the target frequency band, causing the first SIM card to reside on the target frequency band. This enables the first and second SIM cards to form a DSDA mode, thereby allowing the terminal device to operate in DSDA mode and improving the user experience. Furthermore, since this application embodiment retains the frequency band currently hosted by the second SIM card and only interferes with the frequency band that the first SIM card needs to host, compared to methods that require adjusting the frequency bands of both SIM cards, this application embodiment is easier to implement and reduces the impact on users caused by service interruptions due to frequency band adjustments.

[0009] Optionally, the first candidate frequency band includes multiple frequency bands; and, before residing the first card on the target frequency band according to the target frequency band among the first candidate frequency bands, the method further includes:

[0010] The highest priority frequency band among the first candidate frequency bands is determined as the target frequency band.

[0011] The dual-SIM communication method provided in this application embodiment, if the first candidate frequency band determined based on preset conditions includes multiple frequency bands, the terminal device takes the frequency band with the highest priority among the first candidate frequency bands as the target frequency band, retains the frequency band currently camped by the second SIM card, and camps the first SIM card on the target frequency band, so that the DSDA mode formed between the first SIM card and the second SIM card is the optimal mode set by the terminal device, thereby improving the performance of the dual-SIM mode.

[0012] Optionally, the highest priority frequency band is the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band and the frequency band currently residing in the second card.

[0013] The dual-SIM communication method provided in this application embodiment allows the terminal device to prioritize the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band and the frequency band currently occupied by the second SIM card. The terminal device retains the frequency band currently occupied by the second SIM card and keeps the first SIM card on the highest priority frequency band. This enables the DSDA mode formed between the first SIM card and the second SIM card to be the dual-SIM mode with the best performance, resulting in the best user experience.

[0014] Optionally, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands.

[0015] Optionally, in the scenario where the terminal device selects a cell upon powering on, the first condition includes: the quality of the candidate cell meets the S criterion.

[0016] The dual-SIM communication method provided in this application, in the scenario of the terminal device powering on and selecting a cell, adds a second condition to enable the dual SIMs to form a DSDA mode, based on the first condition that the quality of the existing candidate cells meets the S criterion. This optimizes and improves the existing process with fewer modifications, and is easier to implement when the terminal device is in DSDA mode.

[0017] Optionally, in the scenario where the terminal device performs cell reselection, the first condition includes: the quality of the candidate cell satisfies the S criterion and the R criterion.

[0018] The dual-SIM communication method provided in this application, in the scenario of cell reselection by the terminal device, adds a second condition to enable the dual SIMs to form DSDA mode, based on the first condition that the quality of the existing candidate cells meets the S criterion and R criterion. This optimizes and improves the existing process with fewer modifications, and is easier to implement when the terminal device is in DSDA mode.

[0019] Optionally, in the scenario where the terminal device performs cell handover, the first condition includes: the quality of the candidate cell meets the event for cell handover, wherein the event for cell handover includes any one of event A3, event A4, event B1, or event B2.

[0020] The dual-SIM communication method provided in this application, in the scenario of cell handover of terminal device, adds a second condition for enabling dual SIM to form DSDA mode on the basis that the quality of existing candidate cells meets the first condition for the event used for cell handover. This optimizes and improves the existing process with fewer modifications and is easier to implement when the terminal device is in DSDA mode.

[0021] Optionally, before setting the first card to reside on the target frequency band according to the target frequency band in the first candidate frequency band, the method further includes:

[0022] Send a measurement report to the network device indicating the target frequency band;

[0023] The terminal device receives a switching instruction from the network device, the switching instruction being used to instruct the terminal device to switch the frequency band where the first card is camped to the target frequency band.

[0024] Optionally, the step of reserving the first card on the target frequency band according to the target frequency band in the first candidate frequency band includes:

[0025] According to the target frequency band, the frequency band of the first card is adjusted so that the first card resides on the target frequency band.

[0026] Optionally, the first card is a secondary card, and the second card is the primary card.

[0027] The dual-SIM communication method provided in this application embodiment, since the primary SIM card is used more frequently and generally performs more telephone and internet services, retains the frequency band of the primary SIM card and adjusts the frequency band of the secondary SIM card. This can reduce the impact of frequency band adjustment on the primary SIM card's services, so as to ensure the smoothness of the primary SIM card's services as much as possible, and allow users to enjoy the best experience.

[0028] Secondly, a dual-SIM communication method is provided, applied in a terminal device, including:

[0029] When a dual-SIM dual-pass DSDA mode is not formed between the first SIM card and the second SIM card of the terminal device, candidate frequency bands of the first SIM card that meet a first preset condition and candidate frequency bands of the second SIM card that meet a second preset condition are determined. The candidate frequency bands of the first SIM card include at least one frequency band, and the candidate frequency bands of the second SIM card include at least one frequency band. The first preset condition includes: the candidate cells of the first SIM card meet the S criterion and the R criterion. The second preset condition includes: the candidate cells of the second SIM card meet the S criterion and the R criterion. One candidate cell corresponds to one frequency band.

[0030] From the candidate frequency bands of the first card and the candidate frequency bands of the second card, at least one DSDA combination supported by the terminal device that can form a DSDA mode is determined, and each DSDA combination includes one frequency band from the candidate frequency bands of the first card and one frequency band from the candidate frequency bands of the second card;

[0031] According to the target DSDA combination in the at least one DSDA combination, the frequency bands of the first card and the second card are adjusted so that the first card and the second card respectively reside on the frequency bands corresponding to the two cards in the target DSDA combination.

[0032] The dual-SIM communication method provided in this application determines the candidate frequency band of the first SIM card based on a first preset condition and the candidate frequency band of the second SIM card based on a second preset condition. The candidate frequency bands of the two SIM cards can satisfy the S criterion and R criterion of the cell reselection process. Then, the candidate frequency bands of the two SIM cards are freely combined to obtain at least one DSDA combination supported by the terminal device and select one DSDA combination as the target DSDA from the at least one DSDA combination. By adjusting the frequency bands of the first SIM card and the second SIM card, a DSDA mode can be formed between the first SIM card and the second SIM card. Thus, the terminal device can be in DSDA mode, which improves the user experience.

[0033] Optionally, the at least one DSDA combination includes multiple DSDA combinations; and, before adjusting the frequency bands of the first card and the second card according to a target DSDA combination among the at least one DSDA combination, the method further includes:

[0034] The DSDA combination with the highest priority among the plurality of DSDA combinations is determined as the target DSDA combination.

[0035] The dual-SIM communication method provided in this application embodiment allows for the selection of the highest-priority DSDA combination as the target DSDA combination if the terminal device supports multiple DSDA combinations. This enables the adjustment of the frequency bands of the first and second SIM cards, ensuring that the DSDA mode formed between the first and second SIM cards is the optimal mode set by the terminal device, thereby improving the performance of the dual-SIM mode.

[0036] Optionally, the highest priority DSDA combination is the combination with the best dual-SIM capability among the plurality of DSDA combinations.

[0037] The dual-SIM communication method provided in this application embodiment uses the combination with the best dual-SIM mode capability among multiple DSDA combinations as the highest priority DSDA combination. The terminal device adjusts the frequency bands of the first and second cards according to the highest priority DSDA combination, so that the DSDA mode formed between the first and second cards is the dual-SIM mode with the best performance and the best user experience.

[0038] Thirdly, a terminal device is provided, which is used to perform the method provided in the first or second aspect. Specifically, the terminal device may include a module for performing any possible implementation of the first or second aspect.

[0039] Fourthly, a terminal device is provided, including a processor. The processor is coupled to a memory and can be used to execute instructions in the memory to implement the methods in any possible implementation of the first or second aspect described above. Optionally, the terminal device further includes a memory. Optionally, the device further includes a communication interface, and the processor is coupled to the communication interface.

[0040] Fifthly, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a device, causes the device to implement the method in any possible implementation of the first or second aspect described above.

[0041] In a sixth aspect, a computer program product comprising instructions is provided, which, when executed by a computer, cause a device to implement the method in any possible implementation of the first or second aspect described above.

[0042] In a seventh aspect, a chip is provided, comprising: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path, and the processor is configured to execute code in the memory, wherein when the code is executed, the processor is configured to execute a method in any possible implementation of the first or second aspect described above. Attached Figure Description

[0043] Figure 1 This is a schematic structural diagram of a mobile communication system provided in an embodiment of this application.

[0044] Figure 2 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application.

[0045] Figure 3 This is a schematic flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0046] Figure 4 This is another illustrative flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0047] Figure 5 This is another illustrative flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0048] Figure 6 This is another illustrative flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0049] Figure 7 This is another illustrative flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0050] Figure 8 This is another illustrative flowchart of the dual-SIM communication method provided in the embodiments of this application.

[0051] Figure 9 This is an exemplary block diagram of the terminal device provided in the embodiments of this application.

[0052] Figure 10 This application provides a schematic structural diagram of a terminal device. Detailed Implementation

[0053] The technical solutions in this application will now be described with reference to the accompanying drawings.

[0054] The technical solutions of this application are applicable to terminal devices that can communicate with network devices and support dual-SIM communication. Each SIM card can support telephone services and data services (i.e., Internet access services). For example, the terminal device can be a mobile phone, smartwatch, smart bracelet, or tablet computer. This application does not impose any restrictions on the specific type of terminal device.

[0055] The technical solutions of this application embodiment can be applied to various communication systems, such as: Global System for Mobile Communications (GSM) system, General Packet Radio Service (GPRS) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, Time Division Code Division Multiple Access (TD-SCDMA) system, Long Term Evolution (LTE) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, 5th Generation New Radio (5G NR) or future 6th Generation (6G) system, etc., where 5G NR is abbreviated as NR.

[0056] This application's embodiments are applicable to mobile communication systems including multiple base stations and at least one terminal device, wherein the multiple base stations include at least a base station capable of supporting 5G networks and a base station capable of supporting 4G networks. For example, as shown... Figure 1 As shown, the mobile communication system includes base station 110, base station 120, and terminal device 130. One of base station 110 and base station 120 can support a 4G network, and the other can support a 5G network. Terminal device 130 can connect to at least one of base station 110 and base station 120. For ease of description, the base station supporting the 4G network is simply referred to as a 4G base station, and the base station supporting the 5G network is simply referred to as a 5G base station.

[0057] If terminal device 130 is connected to one of base stations 110 and 120, both SIM cards are registered on the same network (4G or 5G). If terminal device 130 is connected to both base stations 110 and 120, there are three possible scenarios: Scenario 1: The terminal device supports dual connectivity to both 4G and 5G networks, and each of the two SIM cards is in dual connectivity mode, meaning each card is simultaneously connected to both 4G and 5G networks. Scenario 2: One SIM card is registered on the 4G network, and the other is registered on the 5G network. Scenario 3: The terminal device supports dual connectivity to both LTE and 5G networks, one SIM card is registered on either the 4G or 5G network, and the other SIM card is simultaneously connected to both 4G and 5G networks.

[0058] It should be noted that since dual SIM cards do not necessarily support the same operator, when both SIM cards are simultaneously camped on a 4G or 5G network, the 4G or 5G base stations they are camped on may be different. Therefore, the mobile communication system may include multiple base stations 110 and / or multiple base stations 120. When a base station (e.g., base station 110 or base station 120) is a base station sharing a network, even if the two SIM cards do not support the same operator, the system still allows the two SIM cards to camp on the network supported by that base station. Here, a shared network is a network shared by different operators.

[0059] Assume that the two SIM cards support different operators, with SIM 1 supporting operator 1 and SIM 2 supporting operator 2, and the mobile communication system includes one base station 110 and two base stations 120.

[0060] In one example, if base station 110 is a 4G base station sharing a 4G network, and base station 120 is a 5G base station not sharing a 5G network, one base station 120 supports operator 1, and the other base station 120 supports operator 2. If both SIM cards are simultaneously registered on the 4G network, both SIM cards will be registered on the same base station 110 (i.e., the 4G base station); if both SIM cards are simultaneously registered on the 5G network, both SIM cards will be registered on different base stations 120 (i.e., the 5G base stations), with SIM 1 registered on the base station 120 corresponding to operator 1, and SIM 2 registered on the base station 120 corresponding to operator 2.

[0061] In another example, if base station 110 is a 5G base station sharing a 5G network, and base station 120 is a 4G base station not sharing a 4G network, one base station 120 supports operator 1, and the other base station 120 supports operator 2. If both SIM cards are simultaneously registered on the 5G network, both SIM cards will be registered on the same base station 110 (i.e., the 5G base station); if both SIM cards are simultaneously registered on the 4G network, both SIM cards will be registered on different base stations 120 (i.e., the 4G base stations), with SIM 1 registered on the base station 120 corresponding to operator 1, and SIM 2 registered on the base station 120 corresponding to operator 2.

[0062] Further assume that the two SIM cards support different operators, with SIM 1 supporting operator 1 and SIM 2 supporting operator 2. The mobile communication system includes two base stations 110 and two base stations 120. Base station 110 is a 4G base station on a non-shared 4G network, with one base station supporting operator 1 and the other supporting operator 2. Base station 120 is a 5G base station on a non-shared 5G network, with one base station supporting operator 1 and the other supporting operator 2. If both SIM cards are simultaneously registered on the 4G network, they will be registered on different base stations 110 (i.e., 4G base stations): SIM 1 will be registered on the base station 110 corresponding to operator 1, and SIM 2 will be registered on the base station 110 corresponding to operator 2. If both SIM cards are simultaneously registered on the 5G network, they will be registered on different base stations 120 (i.e., 5G base stations): SIM 1 will be registered on the base station 120 corresponding to operator 1, and SIM 2 will be registered on the base station 120 corresponding to operator 2.

[0063] It should be understood that Figure 1 The mobile communication system shown is for illustrative purposes only and should not be construed as limiting the embodiments of this application. For example, the mobile communication system may also include core network equipment, as well as more base stations and terminal equipment, etc.

[0064] Figure 2 A schematic diagram of the terminal device 200 is shown. The terminal device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, antenna 1, antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a speaker 270A, a receiver 270B, a microphone 270C, a headphone jack 270D, a sensor module 280, buttons 290, a motor 291, an indicator 292, a camera 293, a display screen 294, and a subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0065] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 200. In other embodiments of this application, the terminal device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0066] Processor 210 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0067] The controller can serve as the central nervous system and command center of the terminal device 200. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0068] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0069] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0070] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 210 may include multiple I2C buses. The processor 210 can couple to the touch sensor 280K, charger, flash, camera 293, etc., through different I2C bus interfaces. For example, the processor 210 can couple to the touch sensor 280K through the I2C interface, enabling the processor 210 and the touch sensor 280K to communicate through the I2C bus interface, thereby realizing the touch function of the terminal device 200.

[0071] The I2S interface can be used for audio communication. In some embodiments, the processor 210 may include multiple I2S buses. The processor 210 can be coupled to the audio module 270 via the I2S bus to enable communication between the processor 210 and the audio module 270. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0072] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 270 and the wireless communication module 260 can be coupled via the PCM bus interface. In some embodiments, the audio module 270 can also transmit audio signals to the wireless communication module 260 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0073] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 210 and the wireless communication module 260. For example, the processor 210 communicates with the Bluetooth module in the wireless communication module 260 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 270 can transmit audio signals to the wireless communication module 260 via the UART interface to enable music playback through Bluetooth headphones.

[0074] The MIPI interface can be used to connect the processor 210 to peripheral devices such as the display screen 294 and the camera 293. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 210 and the camera 293 communicate via the CSI interface to enable the shooting function of the terminal device 200. The processor 210 and the display screen 294 communicate via the DSI interface to enable the display function of the terminal device 200.

[0075] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 210 to a camera 293, a display screen 294, a wireless communication module 260, an audio module 270, a sensor module 280, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0076] USB port 230 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 230 can be used to connect a charger to charge terminal device 200, and can also be used for data transfer between terminal device 200 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other terminal devices, such as AR devices.

[0077] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 200. In other embodiments of this application, the terminal device 200 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0078] The charging management module 240 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 receives charging input from the wired charger via a USB interface 230. In some wireless charging embodiments, the charging management module 240 receives wireless charging input via the wireless charging coil of the terminal device 200. While charging the battery 242, the charging management module 240 can also supply power to the terminal device via the power management module 241.

[0079] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, providing power to the processor 210, internal memory 221, external memory, display screen 294, camera 293, and wireless communication module 260. The power management module 241 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 241 may also be located within the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may be housed in the same device.

[0080] The wireless communication function of the terminal device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor and baseband processor, etc.

[0081] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0082] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the terminal device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 may be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be housed in the same device.

[0083] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.

[0084] The wireless communication module 260 can provide solutions for wireless communication applications on the terminal device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.

[0085] The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signal, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0086] In some embodiments, antenna 1 of terminal device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling terminal device 200 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0087] The terminal device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU performs mathematical and geometric calculations and is used for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0088] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 200 may include one or N displays 294, where N is a positive integer greater than 1.

[0089] The terminal device 200 can perform shooting functions through an ISP, camera 293, video codec, GPU, display screen 294, and application processor.

[0090] The ISP (Image Signal Processor) is used to process data fed back from the camera 293. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293.

[0091] Camera 293 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then transmitted to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the terminal device 200 may include one or N cameras 293, where N is a positive integer greater than 1.

[0092] A digital signal processor (DSP) is used to process digital signals. Besides digital image signals, it can also process other digital signals. For example, when the terminal device 200 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0093] Video codecs are used to compress or decompress digital video. Terminal device 200 may support one or more video codecs. Thus, terminal device 200 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0094] NPU stands for Neural Network (NN) Computing Processor. By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in terminal devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0095] The external storage interface 220 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device 200. The external storage card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0096] Internal memory 221 can be used to store computer executable program code, which includes instructions. Processor 210 executes various functional applications and data processing of terminal device 200 by running the instructions stored in internal memory 221. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of terminal device 200 (such as audio data, phonebook, etc.). Furthermore, internal memory 221 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0097] Terminal device 200 can implement audio functions, such as music playback and recording, through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor.

[0098] The audio module 270 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 270 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be located in the processor 210, or some functional modules of the audio module 270 may be located in the processor 210.

[0099] The speaker 270A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The terminal device 200 can listen to music or make hands-free calls through the speaker 270A.

[0100] The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the terminal device 200 receives a telephone call or voice message, the receiver 270B can be brought close to the listener's ear to receive the voice message.

[0101] Microphone 270C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 270C, inputting the sound signal into microphone 270C. Terminal device 200 may be equipped with at least one microphone 270C. In some embodiments, terminal device 200 may be equipped with two microphones 270C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, terminal device 200 may be equipped with three, four, or more microphones 270C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0102] The headphone jack 270D is used to connect wired headphones. The headphone jack 270D can be a USB 230 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0103] Pressure sensor 280A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 280A can be disposed on display screen 294. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 280A, the capacitance between the electrodes changes. Terminal device 200 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 294, terminal device 200 detects the intensity of the touch operation based on pressure sensor 280A. Terminal device 200 can also calculate the touch position based on the detection signal from pressure sensor 280A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example: when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0104] The gyroscope sensor 280B can be used to determine the motion attitude of the terminal device 200. In some embodiments, the gyroscope sensor 280B can determine the angular velocity of the terminal device 200 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 280B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 280B detects the angle of the terminal device 200's shake, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the terminal device 200 through reverse movement, thus achieving image stabilization. The gyroscope sensor 280B can also be used in navigation and motion-sensing game scenarios.

[0105] The barometric pressure sensor 280C is used to measure air pressure. In some embodiments, the terminal device 200 calculates altitude using the air pressure value measured by the barometric pressure sensor 280C to assist in positioning and navigation.

[0106] The magnetic sensor 280D includes a Hall sensor. The terminal device 200 can use the magnetic sensor 280D to detect the opening and closing of the flip cover. In some embodiments, when the terminal device 200 is a flip phone, the terminal device 200 can detect the opening and closing of the flip cover using the magnetic sensor 280D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0107] The accelerometer 280E can detect the magnitude of acceleration of the terminal device 200 in various directions (generally three axes). When the terminal device 200 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the attitude of the terminal device and applied to applications such as landscape / portrait switching and pedometers.

[0108] A distance sensor 280F is used to measure distance. The terminal device 200 can measure distance via infrared or laser. In some embodiments, during a shooting scene, the terminal device 200 can utilize the distance sensor 280F to measure distance for rapid focusing.

[0109] The proximity sensor 280G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The terminal device 200 emits infrared light outward through the LED. The terminal device 200 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that an object is near the terminal device 200. When insufficient reflected light is detected, the terminal device 200 can determine that no object is near the terminal device 200. The terminal device 200 may use the proximity sensor 280G to detect when a user holds the terminal device 200 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 280G can also be used in holster mode and pocket mode for automatic unlocking and screen locking.

[0110] The ambient light sensor 280L is used to sense ambient light intensity. The terminal device 200 can adaptively adjust the brightness of the display screen 294 according to the sensed ambient light intensity. The ambient light sensor 280L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 280L can also work with the proximity sensor 280G to detect whether the terminal device 200 is in a pocket to prevent accidental touches.

[0111] The fingerprint sensor 280H is used to collect fingerprints. The terminal device 200 can use the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0112] Temperature sensor 280J is used to detect temperature. In some embodiments, terminal device 200 uses the temperature detected by temperature sensor 280J to execute a temperature processing strategy. For example, when the temperature reported by temperature sensor 280J exceeds a threshold, terminal device 200 reduces the performance of the processor located near temperature sensor 280J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is below another threshold, terminal device 200 heats battery 242 to prevent abnormal shutdown of terminal device 200 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, terminal device 200 boosts the output voltage of battery 242 to prevent abnormal shutdown due to low temperature.

[0113] Touch sensor 280K, also known as a "touch panel," can be located on display screen 294. The touch sensor 280K and display screen 294 together form a touchscreen, also known as a "touchscreen." Touch sensor 280K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 294. In other embodiments, touch sensor 280K may also be located on the surface of terminal device 200, in a different position than display screen 294.

[0114] The bone conduction sensor 280M can acquire vibration signals. In some embodiments, the bone conduction sensor 280M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 280M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 280M can also be incorporated into headphones to form bone conduction headphones. The audio module 270 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 280M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 280M to realize heart rate detection functionality.

[0115] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. Terminal device 200 can receive button input and generate key signal inputs related to user settings and function control of terminal device 200.

[0116] Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 291 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 294. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0117] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0118] The SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to make contact with and separate from the terminal device 200. The terminal device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 295 is also compatible with different types of SIM cards. The SIM card interface 295 is also compatible with external memory cards. The terminal device 200 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 200 and cannot be separated from the terminal device 200.

[0119] The communication system and terminal device of the embodiments of this application have been described above. The relevant terms involved in the embodiments of this application will be explained below.

[0120] Dual SIM Dual Standby (DSDS)

[0121] The terminal device supports a dual-SIM mode, which can also be understood as the dual-SIM capability of the terminal device, where the receiving antennas of the two SIM cards are time-division multiplexed. In DSDS mode, the terminal device does not support concurrent dual-SIM services, specifically: (1) when one SIM card is performing a call service, the other SIM card cannot perform a data service (i.e., access the Internet); (2) when one SIM card is performing a data service, the other SIM card can receive incoming calls, but the incoming calls will interrupt the data service.

[0122] For the primary SIM card in a dual-SIM setup, the secondary SIM card's call services will prevent the primary SIM card from using data services. Furthermore, the secondary SIM card's activities such as searching for networks, measuring data, tracking area updates (TAU), sending SMS messages, MMS messages, and periodic registrations will compete for antenna resources, resulting in a poor internet experience for the primary SIM card.

[0123] Dual receiver-dual SIM dual dual standby (DR-DSDS)

[0124] Another dual-SIM mode supported by the terminal device can also be understood as another dual-SIM capability of the terminal device. The receiving antennas of the two cards can be multiplexed, that is, one card uses the main set and the other card uses the diversity set. The two cards can receive at the same time, but cannot transmit at the same time. In DR-DSDS mode, (1) when one card is performing a call service, the other card has a signal, but cannot respond to paging and cannot perform TAU; (2) when one card is performing a data service, the other card needs to preempt the radio frequency (RF) antenna when performing uplink transmission, thus affecting the experience of the card performing the data service.

[0125] Dual SIM Dual Active (DSDA)

[0126] Another dual-SIM mode supported by the terminal device can also be understood as another dual-SIM capability of the terminal device. In DSDA mode, the terminal device supports concurrent services of both cards, that is, both cards can send or receive simultaneously. When one card is performing a call service, the other card can receive incoming calls or perform data services (i.e., access the Internet).

[0127] DSDA mode can be further divided into two modes: DSDA transmit-shared mode and DSDA transmit-dedicated mode. In DSDA transmit-shared mode, the two cards share an antenna and transmit in a time-sharing manner during uplink transmission, while using different antennas for downlink transmission. However, because the two cards share an antenna for uplink transmission, the user's internet performance is somewhat compromised. In DSDA transmit-dedicated mode, the two cards use different antennas for both uplink and downlink transmission. Uplink and downlink transmissions are completely independent, resulting in virtually no performance loss for the user and a better performance experience than in DSDA transmit-dedicated mode.

[0128] Non-standalone (NSA) and standalone (SA) networking

[0129] With the development of 5G, 5G includes two networking modes: NSA and SA.

[0130] NSA refers to the deployment of 5G networks using existing 4G core network infrastructure, representing a converged 4G and 5G network architecture. In NSA, the 5G carrier only carries user data; control signaling is still transmitted through the 4G network. In NSA, 5G cannot operate independently; it merely supplements 4G, sharing the load of 4G traffic.

[0131] SA refers to a newly built 5G network, including new base stations, backhaul links, and the core network. SA introduces entirely new network elements and interfaces, and will also extensively adopt new technologies such as network virtualization and software-defined networking, combined with 5G NR. Furthermore, the technical challenges it faces in protocol development, network planning and deployment, and interoperability will surpass those of 3G and 4G systems. Currently, there are two SA networking methods. One method uses 5G base stations connected to the 5G core network; this is the ultimate form of 5G network architecture, supporting all 5G applications, but it is very expensive. The other method upgrades existing 4G base stations into enhanced 4G base stations, connecting them to the 5G core network, which is less expensive.

[0132] In the embodiments of this application, 4G can be used as a replacement description for LTE, and 5G can be used as a replacement description for NR. Unless otherwise specified, the two can be used interchangeably.

[0133] As mentioned earlier, DSDA mode offers a better user experience compared to DSDS mode. However, the support for DSDA mode in mainstream chips used in current terminal devices is incomplete. In many scenarios, terminal devices operate in DSDS mode instead of DSDA mode, thus degrading the user experience. Therefore, it is clear that improving the user experience can be achieved by ensuring that terminal devices are in DSDA mode as much as possible.

[0134] The dual-SIM mode supported by the terminal device is related to the network and frequency band of each SIM card. Currently, some frequency bands of the NR SA network and some frequency bands of the LTE network support DSDA mode, and some frequency bands of the NR SA network can support DSDA mode. Here, NR SA represents 5G network, specifically 5G network with SA network mode, abbreviated as NRSA, and LTE represents 4G network.

[0135] DSDA mode includes one or more DSDA combinations, which include the network type and frequency band of the dual SIM cards. For ease of description, DSDA combinations can be represented as "Network 1 frequency band number + Network 2 frequency band number". Furthermore, the frequency band of the LTE network can be simply referred to as the LTE frequency band, and the frequency band of the NR network as the NR frequency band. LTE frequency bands can be represented by LTE frequency band numbers, which can be denoted as Bx, where x is a positive integer, for example, B1. Similarly, NR frequency bands can be represented by NR frequency band numbers, which can be denoted as nx, where n is a positive integer, for example, n78.

[0136] For example, a DSDA combination in DSDA mode is NR SA n41+LTE B1, which means that one card is camped in the NR SA network in the frequency band indicated by n41, where n41 is the NR frequency band number, representing an NR frequency band, and the other card is camped in the LTE network in the frequency band indicated by B1, where B1 is the LTE frequency band number, representing an LTE frequency band.

[0137] As can be seen from the above, as long as the network type and frequency band of the network currently hosted by the two SIM cards meet the network type and frequency band requirements of any DSDA combination in the DSDA mode, the two SIM cards can form a DSDA mode, and the terminal device can be in DSDA mode. Based on this, this application proposes to improve the network hosting process in various scenarios. When it is determined that the two SIM cards have the opportunity to form a DSDA mode, the frequency band of at least one SIM card is adjusted so that the two SIM cards are hosted on the frequency band corresponding to the two SIM cards in a DSDA combination of the DSDA mode, thereby enabling the two SIM cards to form a DSDA mode. In this way, the terminal device is in DSDA mode, which can improve the user experience.

[0138] It should be noted that the embodiments of this application assume the network where both cards are stationed, and it is not necessary to adjust the network where a certain card is stationed; only the frequency band of the network where a certain card is currently stationed is adjusted.

[0139] The following, with reference to the accompanying diagrams, provides a detailed explanation of the methods for dual-SIM communication in different scenarios.

[0140] In this embodiment, Card 1 is one of the primary card and the secondary card, and Card 2 is the other of the primary card and the secondary card, without any limitation. Unless otherwise specified, the explanation of Card 1 and Card 2 below is the same as here, and will not be repeated hereafter.

[0141] Figure 3 This is a schematic flowchart of a dual-SIM communication method 300 provided in an embodiment of this application. This method 300 can be executed by a terminal device supporting dual-SIM communication, or by a chip within the terminal device; this embodiment of the application does not impose any limitations. For ease of description, a terminal device is used as an example to illustrate method 300 in detail.

[0142] The embodiment shown in method 300 is a scenario where a terminal device selects a cell upon power-on. During the cell selection process, the design aims to ensure that both SIM cards camp on frequency bands capable of forming a DSDA mode. In method 300, the default network where both SIM cards are currently camped is assumed. After one SIM card has already camped on a certain frequency band, the other SIM card preferentially selects a frequency band capable of forming a DSDA mode for camping.

[0143] In S310, the terminal device determines that SIM 1 has completed frequency band registration and SIM 2 has not.

[0144] In this step, SIM 1 has already completed frequency band registration, while SIM 2 has not yet had time to register a frequency band. The frequency band currently registered by SIM 1 can be any frequency band supported by the terminal device; this embodiment does not impose any limitations.

[0145] It should be understood that once SIM 1 completes its frequency band registration, the network in which SIM 1 registers must also be determined. The frequency band currently registered by SIM 1 is the frequency band within the network in which SIM 1 is currently registered. For example, the frequency band currently registered by SIM 1 is the frequency band indicated by n41, and the frequency band indicated by n41 is the frequency band within the NR network.

[0146] In S320, the terminal device determines a first candidate frequency band for card 2 that meets preset conditions. This first candidate frequency band includes one or more frequency bands.

[0147] In this step, the terminal device measures multiple cells to determine whether there is a first candidate frequency band for SIM 2 that meets the preset conditions among the multiple cells. If it exists, the process continues to S330; otherwise, the process ends.

[0148] In some embodiments, the preset conditions include: the cell meets the S criterion, and the cell's frequency band can form a DSDA mode supported by the terminal device with the frequency band currently camped by SIM 1.

[0149] The S-criteria is a criterion for determining whether a terminal device can camp on a given cell. Specifically, the S-criteria can be defined as follows: during cell search, the received power (Srxlev) of a given cell is greater than 0 dB, and the received signal quality (Squal) of that cell is greater than 0 dB. When a cell meets the S-criteria, the terminal device can camp on that cell. The following is a brief introduction to the S-criteria; for a more detailed description, please refer to the relevant descriptions in the 3GPP standards, which will not be repeated here.

[0150] The formula for the received power Srxlev is as follows: Srxlev=Qrxlevmeas-Qrxlevmin-Pcompensation.

[0151] Wherein, Qrxlevmeas is the received signal channel power (RSCP) value of the primary common control physical channel (P-CCPCH) of the cell (i.e., the cell currently being measured), commonly known as the "level value". Qrxlevmin is the minimum received power of the cell, which can be read from the system broadcast message. Generally, the terminal equipment needs to perform some arithmetic transformation after reading it. Pcompensation is a compensation value, which is the difference between the maximum transmit power allowed by the network and the maximum transmit power of the terminal power level. It can be obtained by the following formula: Pcompensation = max(UE_TXP - WR_MAX_RACH - P_MAX, 0), where UE_TXP - WR_MAX_RACH is the maximum transmit power allowed by the terminal equipment on the random access channel (RACH) when performing random access, which is sent by the system broadcast message, and P_MAX is the maximum transmit power of the terminal equipment.

[0152] The formula for signal quality Squal is as follows: Squal = Qqualmeas – (Qqualmin + Qqualminoffset).

[0153] Where Qqualmeas is the reference signal receiving quality (RSRQ) value of the cell, Qqualmin is the minimum RSRQ value for cell access, and Qqualminoffset is the minimum RSRQ offset value for cell access.

[0154] For example, in the implementation, the terminal device measures multiple cells and first determines at least one cell that meets the S criterion. One cell corresponds to one frequency point and one frequency point corresponds to one frequency band (or, one cell corresponds to one frequency band). The at least one frequency band corresponding to the at least one cell is called the initial candidate frequency band. The terminal device then determines the first candidate frequency band that can form the DSDA mode supported by the terminal device with the frequency band currently camped by SIM 1 from the initial candidate frequency band according to the DSDA mode information of the terminal device.

[0155] It should be understood that the frequency point here refers to the center frequency point. The frequency point represents the number of a fixed frequency, and the frequency band can be obtained based on the fixed frequency.

[0156] It should also be understood that the frequency bands in the first candidate frequency band are some or all of the frequency bands in the initial candidate frequency band. If all the frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently camped on SIM 1, then the frequency bands in the first candidate frequency band are all the frequency bands in the initial candidate frequency band; if some of the frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently camped on SIM 1, then the first candidate frequency band is some of the frequency bands in the initial candidate frequency band.

[0157] It should be noted that each frequency band in the first candidate frequency band and the frequency band currently camped on SIM 1 can form a DSDA combination supported by the terminal device. For example, if the first candidate frequency band includes N frequency bands, it means that the N frequency bands in the first candidate frequency band and the frequency band currently camped on SIM 1 can form N DSDA combinations supported by the terminal device.

[0158] DSDA mode information is used to indicate all DSDA combinations that the terminal device supports to form a DSDA mode. Each DSDA combination includes the network type and frequency band for both SIM cards. In implementation, DSDA mode information can be pre-configured in the terminal device.

[0159] It should be understood that the DSDA combinations supported by the same terminal device are fixed. Different terminal devices may support the same or different DSDA combinations, depending on the terminal device model or hardware information. For ease of description, Table 1 lists the dual-SIM mode combinations supported by a certain terminal device. In Table 1, there are three DSDA combinations: the DSDA combination formed by NR SA n1 + NR SA n1 in the DSDA transmit-sharing mode; the DSDA combination formed by NR SA n1 + NR SA n78 in the DSDA transmit-dedicated mode; and the DSDA combination formed by NR SA n1 + LTE B41 in the DSDA transmit-dedicated mode. The three DSDA combinations in Table 1 can represent all DSDA combinations supported by the terminal device indicated by the DSDA mode information.

[0160] Table 1

[0161]

[0162]

[0163] The following example illustrates the process by which the terminal device determines the first candidate frequency band for card 2.

[0164] Assume that SIM 1 is currently camped on frequency band 11 of network 1. The initial candidate frequency bands for SIM 2 that satisfy the S criterion include four frequency bands of network 2: frequency bands 21, 22, 23, and 24. The DSDA mode information of the terminal device indicates that the terminal device supports three DSDA combinations: DSDA combination 1 formed by “network 1 frequency band 11 + network 2 frequency band 21”, DSDA combination 2 formed by “network 1 frequency band 11 + network 2 frequency band 22”, and DSDA combination 3 formed by “network 1 frequency band 12 + network 2 frequency band 23”. It can be seen that frequency band 11 of network 1 (the frequency band currently used by SIM 1) and frequency band 21 in the initial candidate frequency bands can form DSDA combination 1 supported by the terminal device. Frequency band 11 of network 1 (the frequency band currently used by SIM 1) and frequency band 22 in the initial candidate frequency bands can form DSDA combination 2 supported by the terminal device. Frequency band 23 in the initial candidate frequency bands cannot form a DSDA combination with frequency band 11 of network 1 (the frequency band currently used by SIM 1). Therefore, frequency band 23 in the initial candidate frequency bands cannot become the first candidate frequency band. In addition, frequency band 24 of network 2 is not included in the DSDA combination supported by the terminal device. Therefore, frequency band 24 in the initial candidate frequency bands cannot become the first candidate frequency band either. Therefore, frequency bands 21 and 22 are determined as the first candidate frequency bands.

[0165] In S330, the terminal device determines the target frequency band from the first candidate frequency bands and camps SIM 2 on the target frequency band.

[0166] If the first candidate frequency band includes one frequency band, then this unique frequency band is determined as the target frequency band. If the first candidate frequency band includes multiple frequency bands, then one of the multiple frequency bands is determined as the target frequency band. The target frequency band can be any one of the multiple frequency bands, or it can be a frequency band determined according to the rules. There are no restrictions here.

[0167] In embodiments where the first candidate frequency band includes multiple frequency bands, the terminal device determines the frequency band with the highest priority among the first candidate frequency bands as the target frequency band.

[0168] In some embodiments, the highest priority frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently camped by SIM 1, has the best dual-SIM capability in the DSDA mode. In other words, the target frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently camped by SIM 1, has the best dual-SIM capability in the DSDA mode.

[0169] This embodiment defines the priority of frequency bands in the first candidate frequency band based on the dual-SIM mode capability. The better the dual-SIM mode capability formed by a frequency band in the first candidate frequency band and the frequency band currently hosted by SIM 1, the higher the priority of that frequency band; conversely, the worse the dual-SIM mode capability formed by a frequency band in the first candidate frequency band and the frequency band currently hosted by SIM 1, the lower the priority of that frequency band. The dual-SIM mode capabilities, from highest to lowest, are: DSDA dedicated transmit > DSDA shared transmit > DR-DSDS > DSDS.

[0170] In other embodiments, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands. That is, the frequency band with the strongest signal among the first candidate frequency bands is the target frequency band.

[0171] This embodiment defines the priority of frequency bands in the first candidate frequency band based on the signal strength of the frequency band. The better the signal strength of a certain frequency band in the first candidate frequency band, the higher the priority of that frequency band; conversely, the worse the signal strength of a certain frequency band in the first candidate frequency band, the lower the priority of that frequency band.

[0172] It should be noted that the priority of the frequency band in the first candidate frequency band defined above can be used alone or in combination.

[0173] When using the above-mentioned frequency band priorities, in some embodiments, the dual-SIM mode capability is combined with the signal strength of the frequency band. Frequency band priority is first considered based on dual-SIM mode capability, and then based on signal strength. Generally, if there are multiple frequency bands in the first candidate frequency band that form the best dual-SIM mode capability in the DSDA mode with the frequency band currently occupied by SIM 1, the target frequency band can be further determined by combining the signal strength of the frequency bands.

[0174] Figure 4 This is a schematic flowchart of a dual-SIM communication method 400 provided in an embodiment of this application. This method 400 can be executed by a terminal device supporting dual-SIM communication, or by a chip in the terminal device; this embodiment of the application does not impose any limitations. For ease of description, a terminal device is used as an example to illustrate method 400 in detail.

[0175] The embodiment shown in method 400 describes a scenario where the terminal device performs cell reselection after it has already camped on a cell. Cell reselection refers to the process by which the terminal device, in idle mode, monitors the signal quality of neighboring cells and the current serving cell to select the cell with the best signal to provide a service signal. When the signal quality Squal and received power Srxlev of a neighboring cell satisfy the S criterion and a certain reselection decision criterion, the terminal device can connect a card to that neighboring cell and camp on its frequency band.

[0176] During cell reselection in the terminal device of this application embodiment, the design aims to ensure that both SIM cards are camped on frequency bands capable of forming DSDA mode. In method 400, the network of the cell currently camped by both SIM cards is defaulted, and the frequency band camped by one of the SIM cards is adjusted to enable DSDA mode between the two SIM cards.

[0177] In S410, the terminal device determines that SIM 1 and SIM 2 have completed frequency band registration.

[0178] In S420, the terminal device determines whether a DSDA mode is formed between SIM 1 and SIM 2.

[0179] If the terminal device determines that a DSDA mode has been formed between the two SIM cards, the process ends; if the terminal device determines that a DSDA mode has not been formed between the two SIM cards, step S430 is executed to try to form a DSDA mode between the two SIM cards under certain conditions so that the terminal device is in DSDA mode.

[0180] In this embodiment, the DSDA mode of the terminal device is determined by the concurrency capability of the RF front end. Therefore, the dual-SIM mode of the terminal device can be identified through the RF driver.

[0181] In S430, the terminal device determines the neighboring cell frequency of card 1.

[0182] In this step, the terminal device determines the neighboring frequency points of the same system and / or different systems in which SIM 1 is located. In implementation, the neighboring frequency points of the same system can be determined first, and then the neighboring frequency points of the different systems can be determined. The neighboring frequency points of SIM 1 include one or more frequency points.

[0183] In S440, the terminal device determines whether there is a first candidate frequency band for card 1 that meets preset condition 1 based on the neighboring cell frequency points of card 1.

[0184] One frequency point corresponds to one frequency band. Therefore, based on the neighboring cell frequency points of card 1, the frequency band corresponding to each frequency point can be obtained, and thus the first candidate frequency band of card 1 that meets the preset conditions can be obtained.

[0185] In this step, SIM 2 remains in its current frequency band without adjustment. The system determines whether a first candidate frequency band for SIM 1 that meets preset condition 1 exists based on the neighboring frequency points of SIM 1, and adjusts SIM 1's frequency band accordingly. If a first candidate frequency band for SIM 1 that meets preset condition 1 exists among the neighboring frequency points of SIM 1, it means there is a chance for the two SIM cards to form a DSDA mode, and step S450 continues. If no first candidate frequency band for SIM 1 that meets preset condition 1 exists among the neighboring frequency points of SIM 1, it means that the frequency band corresponding to any frequency point in the neighboring frequency points of SIM 1 cannot form a DSDA mode with the frequency band currently in which SIM 2 is camped. Therefore, it is possible to try adjusting SIM 2's frequency band without adjusting SIM 1's frequency band, i.e., proceed to step S460, which will be described in detail later.

[0186] In some embodiments, the preset condition 1 is: the neighboring cell satisfies the S criterion and the R criterion, and the frequency band of the neighboring cell can form a DSDA mode with the frequency band currently occupied by the card 2.

[0187] For a detailed description of the S criterion, please refer to the relevant description above, which will not be repeated here.

[0188] The R criterion can be specifically defined as follows: if, within the Treselection time (the Treselection for the same frequency and different frequencies may be different), the Rn of a neighboring cell continuously exceeds the Rs of the serving cell, then the terminal device will reselect to that neighboring cell.

[0189] Rn and Rs satisfy the following formulas: Rs = Qmeas,s + QHyst, Rt = Qmeas,n – Qoffset. Where Qmeas is the reference signal receiving power (RSRP) value of the measurement cell, Qmeas,s is the RSRP value of the serving cell, Qmeas,n is the RSRP value of the neighboring cells, and Qoffset defines the offset value of the neighboring cells. For inter-frequency cells with equal priority, it includes both cell-based offset and frequency-based offset. For a detailed description of the R criterion, please refer to the relevant descriptions in the 3GPP standard; further details will not be provided here.

[0190] For example, in the implementation, the terminal device first determines the initial candidate frequency band of card 1 that satisfies the S criterion and the R criterion based on the neighboring cell frequency points of card 1, and then determines the first candidate frequency band of card 1 that can form a DSDA mode with the frequency band currently camped by card 2 from the initial candidate frequency band of card 1 based on the DSDA mode information of the terminal device.

[0191] Specifically, a cell corresponds to a frequency point and a frequency point corresponds to a frequency band (or, a cell has a frequency band). The terminal device determines at least one frequency point corresponding to at least one neighboring cell that satisfies the S criterion and the R criterion from the neighboring cell frequency points of SIM 1 (at least one neighboring cell corresponds one-to-one with at least one frequency point). Based on each frequency point, the corresponding frequency band is determined to obtain at least one frequency band, which is collectively referred to as the initial candidate frequency band of SIM 1. Then, based on the DSDA mode information of the terminal device, the first candidate frequency band of SIM 1 that can form a DSDA mode with the frequency band currently camped by SIM 2 is determined from the initial candidate frequency band of SIM 1.

[0192] For a detailed description of the DSDA mode information of the terminal device, please refer to the relevant description above. For a detailed description of the relationship between the first candidate frequency band and the initial candidate frequency band of Card 1, please refer to the relevant description of the first candidate frequency band and the initial candidate frequency band above. It will not be repeated here.

[0193] It should be noted that each frequency band in the first candidate frequency band of SIM 1 and the frequency band currently camped on SIM 2 can form a DSDA combination supported by the terminal device. For example, if the first candidate frequency band of SIM 1 includes N frequency bands, it means that the N frequency bands in the first candidate frequency band of SIM 1 and the frequency band currently camped on SIM 2 can form N DSDA combinations supported by the terminal device.

[0194] The following example illustrates the process by which the terminal device determines the first candidate frequency band for card 1.

[0195] Assume that SIM 2 is currently camped on frequency band 21 of network 2. The initial candidate frequency bands of SIM 1 that satisfy the S and R criteria include four frequency bands of network 1, namely frequency bands 11, 12, 13 and 14. The DSDA mode information of the terminal device indicates that the terminal device supports three DSDA combinations: DSDA combination 1 formed by "network 1 frequency band 11 + network 2 frequency band 21", DSDA combination 2 formed by "network 1 frequency band 12 + network 2 frequency band 21", and DSDA combination 3 formed by "network 1 frequency band 13 + network 2 frequency band 22". It can be seen that frequency band 21 of network 2 (the frequency band currently used by card 2) and frequency band 11 in the initial candidate frequency bands of card 1 can form DSDA combination 1 supported by the terminal device. Frequency band 21 of network 2 (the frequency band currently used by card 2) and frequency band 12 in the initial candidate frequency bands of card 1 can form DSDA combination 2 supported by the terminal device. Frequency band 13 in the initial candidate frequency bands of card 1 cannot form a DSDA combination with frequency band 21 of network 2 (the frequency band currently used by card 2). Therefore, frequency band 13 in the initial candidate frequency bands of card 1 cannot become the first candidate frequency band. In addition, frequency band 14 of network 1 is not included in the DSDA combination supported by the terminal device. Therefore, frequency band 14 in the initial candidate frequency bands of card 1 cannot become the first candidate frequency band either. Therefore, frequency bands 11 and 12 are determined as the first candidate frequency bands of card 1. In this way, the first candidate frequency band of card 1 that satisfies preset condition 1 is obtained.

[0196] It should be noted that the initial candidate frequency band and the first candidate frequency band described in steps S440 and S450 are the relevant frequency bands of card 1, while the initial candidate frequency band and the first candidate frequency band described in steps S460 and S470 are the relevant frequency bands of card 2. Unless otherwise specified, the interpretation of these frequency bands in method 400 shall be based on the interpretation here, and will not be repeated below.

[0197] In S450, the terminal device determines the target frequency band 1 from the first candidate frequency band of card 1 and adjusts the frequency band of card 1 so that card 1 resides on the target frequency band 1.

[0198] If the first candidate frequency band of card 1 includes one frequency band, then this unique frequency band is determined as target frequency band 1. If the first candidate frequency band of card 1 includes multiple frequency bands, then one of the multiple frequency bands is determined as target frequency band 1. Target frequency band 1 can be any of the multiple frequency bands, or it can be a frequency band determined according to the rules. No restrictions are made here.

[0199] In embodiments where the first candidate frequency band of card 1 includes multiple frequency bands, the terminal device determines the highest priority frequency band among the first candidate frequency bands of card 1 as the target frequency band 1.

[0200] In some embodiments, the highest priority frequency band is the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band of SIM 1 and the frequency band currently camped by SIM 2. That is, the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band of SIM 1 and the frequency band currently camped by SIM 2 is the target frequency band 1.

[0201] In other embodiments, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands of card 1. That is, the frequency band with the strongest signal among the first candidate frequency bands of card 1 is target frequency band 1.

[0202] It should be noted that the priority of the first candidate frequency band of Card 1 can be used alone or in combination. For details, please refer to the relevant description above, which will not be repeated here.

[0203] For a detailed description of determining the target frequency band 1 from the first candidate frequency band of card 1, please refer to the relevant description of determining the target frequency band from the first candidate frequency band above, which will not be repeated here.

[0204] In S460, the terminal device determines the neighboring cell frequency of card 2.

[0205] If the terminal device determines that there is no first candidate frequency band of card 1 that meets the preset condition 1 based on the neighboring frequency points of card 1, it means that the frequency band corresponding to any frequency point in the neighboring frequency points of card 1 cannot form a DSDA mode with the frequency band currently camped by card 2. Therefore, it is possible to try to adjust the frequency band of card 2 without adjusting the frequency band of card 1, that is, to execute step S460.

[0206] In this step, the terminal device determines the neighboring frequency points of the same system and / or different systems in which SIM 2 is located. In implementation, the neighboring frequency points of the same system can be determined first, and then the neighboring frequency points of the different systems can be determined. The neighboring frequency points of SIM 2 include one or more frequency points.

[0207] In S470, the terminal device determines whether there is a first candidate frequency band for card 2 that meets preset condition 2 based on the neighboring cell frequency points of card 2.

[0208] One frequency point corresponds to one frequency band. Therefore, based on the neighboring cell frequency points of card 2, the frequency band corresponding to each frequency point can be obtained, and thus the first candidate frequency band of card 2 that satisfies the preset condition 2 can be obtained.

[0209] In this step, SIM 1 remains in its current frequency band without adjustment. The system determines whether a first candidate frequency band for SIM 2 that satisfies preset condition 2 exists based on the neighboring frequency points of SIM 2. If a first candidate frequency band for SIM 2 that satisfies preset condition 2 exists among the neighboring frequency points of SIM 2, it means there is a chance for the two SIM cards to form a DSDA mode, and the process continues to step S480. If no first candidate frequency band for SIM 2 that satisfies preset condition 2 exists among the neighboring frequency points of SIM 2, it means that the frequency band corresponding to any frequency point in the neighboring frequency points of SIM 1 cannot form a DSDA mode with the frequency band currently in which SIM 2 is camped, and the process ends.

[0210] In some embodiments, the preset condition 2 is: the neighboring cell satisfies the S criterion and the R criterion, and the frequency band of the neighboring cell can form a DSDA mode with the frequency band currently occupied by card 1.

[0211] For a detailed description of the S criterion and R criterion, please refer to the relevant descriptions above, which will not be repeated here.

[0212] For example, in the implementation, the terminal device first determines the initial candidate frequency band of card 2 that satisfies the S criterion and the R criterion based on the neighboring cell frequency points of card 1, and then determines the first candidate frequency band of card 2 that can form a DSDA mode with the frequency band currently camped by card 1 from the initial candidate frequency band of card 2 based on the DSDA mode information of the terminal device.

[0213] Here, the process of determining the initial candidate frequency band and the first candidate frequency band of card 2 is similar to the process of determining the initial candidate frequency band and the first candidate frequency band of card 1 in the above text. For a detailed description of determining the initial candidate frequency band and the first candidate frequency band of card 2, please refer to the relevant description above, which will not be repeated here.

[0214] In S480, the terminal device determines the target frequency band 2 from the first candidate frequency band of card 2, and adjusts the frequency band of card 2 so that card 2 resides on the target frequency band 2.

[0215] If the first candidate frequency band of card 2 includes one frequency band, then this unique frequency band is determined as target frequency band 2. If the first candidate frequency band of card 2 includes multiple frequency bands, then one of the multiple frequency bands is determined as target frequency band 2. Target frequency band 2 can be any of the multiple frequency bands, or it can be a frequency band determined according to the rules. No restrictions are made here.

[0216] In embodiments where the first candidate frequency band of card 2 includes multiple frequency bands, the terminal device determines the highest priority frequency band among the first candidate frequency bands of card 2 as the target frequency band 2.

[0217] In some embodiments, the highest priority frequency band is the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band of SIM 2 and the frequency band currently camped by SIM 1. That is, the target frequency band 2 is the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band of SIM 2 and the frequency band currently camped by SIM 1.

[0218] In other embodiments, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands of card 2. That is, the frequency band with the strongest signal among the first candidate frequency bands of card 2 is target frequency band 2.

[0219] It should be noted that the priority of the first candidate frequency band of Card 2 can be used alone or in combination. For details, please refer to the relevant description above, which will not be repeated here.

[0220] For a detailed description of determining the target frequency band 2 from the first candidate frequency band of card 2, please refer to the relevant description of determining the target frequency band from the first candidate frequency band above, which will not be repeated here.

[0221] It should be understood that the sequence number of the steps in the above method 400 does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0222] In some embodiments, in S440, if the terminal device determines that there is no first candidate frequency band of card 1 that meets the preset condition 1, the process can be terminated directly without trying to adjust the frequency band of card 2.

[0223] In some embodiments, in S430, the terminal device can determine the neighboring frequency band of card 1 and the neighboring frequency point of card 2 in advance. In S440, if the terminal device determines that there is no first candidate frequency band of card 1 that meets the preset condition 1, it can directly execute S470 according to the neighboring frequency band of card 2 determined in advance.

[0224] In some embodiments, the order of adjustment card 1 and adjustment card 2 can be adjusted. That is, after S420, S460-S480 can be executed first, and if the conditions are not met, S430-S450 can be executed then.

[0225] Figure 5 This is a schematic flowchart of a dual-SIM communication method 500 provided in an embodiment of this application. Similar to the above method embodiments, for ease of description, a terminal device will be used as an example to provide a detailed explanation of method 500.

[0226] Similar to method 400, the embodiment shown in method 500 also depicts a scenario where the terminal device performs cell reselection after it has already camped on a cell. The difference from method 400 is that the terminal device detects the neighboring cell frequencies of SIM 1 and SIM 2 in advance. Based on these neighboring frequency frequencies, it determines at least one DSDA combination that allows SIM 1 and SIM 2 to form a DSDA mode. Then, it adjusts the frequency band on which SIM 1 and SIM 2 camp based on one of these at least one DSDA combination, ensuring that SIM 1 and SIM 2 camp on the frequency band corresponding to both SIM cards within that specific DSDA combination.

[0227] In method 500, the network of the cell where SIM 1 and SIM 2 are currently camped is assumed, and the frequency bands where SIM 1 and SIM 2 are camped are adjusted so that DSDA mode is formed between the two SIM cards.

[0228] In S510, the terminal device determines that SIM 1 and SIM 2 have completed frequency band registration.

[0229] In S520, the terminal device determines whether a DSDA mode is formed between SIM 1 and SIM 2.

[0230] For a description of the S520, please refer to the description of the S420; it will not be repeated here.

[0231] In S530, the terminal device determines the neighboring cell frequency points of card 1 and card 2.

[0232] For a description of the S530, please refer to the descriptions of the S430 and S460; further details will not be provided here.

[0233] In S540, the terminal device determines the initial candidate frequency band for card 1 and the initial candidate frequency band for card 2.

[0234] In this step, the terminal device determines the initial candidate frequency band for SIM 1 based on the neighboring cell frequency points of SIM 1, and determines the initial candidate frequency band for SIM 2 based on the neighboring cell frequency points of SIM 2. Each frequency point corresponds to one frequency band; therefore, the frequency band corresponding to each frequency point can be obtained based on the neighboring cell frequency points, thus yielding the initial candidate frequency bands for SIM 1 and SIM 2.

[0235] During the process of the terminal device determining the initial candidate frequency band of card 1 based on the neighboring cell frequency points of card 1, the terminal device determines the initial candidate frequency band of card 1 that satisfies the S criterion and the R criterion based on the neighboring cell frequency points of card 1.

[0236] Specifically, one cell corresponds to one frequency point, and one frequency point corresponds to one frequency band. The terminal device determines at least one frequency point corresponding to at least one neighboring cell that satisfies the S criterion and the R criterion from the neighboring cell frequency points of card 1 (at least one neighboring cell corresponds one-to-one with at least one frequency point). Based on each frequency point, the corresponding frequency band is determined to obtain at least one frequency band. This at least one frequency band is collectively referred to as the initial candidate frequency band of card 1.

[0237] The process by which the terminal device determines the initial candidate frequency band of card 2 based on the neighboring cell frequency points of card 2 is similar to the process by which the terminal device determines the initial candidate frequency band of card 1 based on the neighboring cell frequency points of card 1, and will not be described again.

[0238] In S550, the terminal device determines whether the initial candidate frequency band of card 1 and the initial candidate frequency band of card 2 can form at least one DSDA combination supported by the terminal device. Each DSDA combination includes one frequency band from the initial candidate frequency band of card 1 and one frequency band from the initial candidate frequency band of card 2.

[0239] In this step, the terminal device can determine whether the initial candidate frequency bands of the two cards can form at least one DSDA combination supported by the terminal device based on the DSDA mode information of the terminal device. If the initial candidate frequency bands of the two cards can form at least one DSDA combination supported by the terminal device, it means that the two cards have a chance to form a DSDA mode, and then S560 is executed; if the initial candidate frequency bands of the two cards cannot form at least one DSDA combination supported by the terminal device, then the process ends.

[0240] The following example illustrates the process by which a terminal device determines at least one DSDA combination supported by the terminal device.

[0241] Assume that SIM 1 is hosted on network 1, and its initial candidate frequency bands include three frequency bands of network 1: band 11, band 12, and band 14. SIM 2 is hosted on network 2, and its initial candidate frequency bands include two frequency bands of network 2: band 21 and band 22. The DSDA mode information of the terminal device indicates that all DSDA combinations supported by the terminal device include three DSDA combinations: DSDA combination 1 formed by "network 1 band 11 + network 2 band 21", DSDA combination 2 formed by "network 1 band 12 + network 2 band 21", and DSDA combination 3 formed by "network 1 band 14 + network 2 band 21". Therefore, band 11 in the initial candidate frequency bands of SIM 1 and band 21 in the initial candidate frequency bands of SIM 2 can form DSDA combination 1, and band 12 in the initial candidate frequency bands of SIM 1 and band 21 in the initial candidate frequency bands of SIM 2 can form DSDA combination 2. Therefore, the initial candidate frequency band of card 1 and the initial candidate frequency band of card 2 can form a DSDA combination, and two DSDA combinations can be formed.

[0242] In S560, the terminal device adjusts the frequency bands of SIM 1 and SIM 2 according to the target DSDA combination in at least one DSDA combination, so that SIM 1 and SIM 2 respectively reside on the frequency bands corresponding to the two SIM cards in the target DSDA combination.

[0243] In this step, the terminal device determines a target DSDA combination from at least one DSDA combination. Based on the target DSDA combination, the frequency bands of SIM 1 and SIM 2 are adjusted. That is, neither SIM 1 nor SIM 2 will camp on the current frequency band, but will instead camp on a different frequency band. SIM 1 and SIM 2 will respectively camp on the frequency bands corresponding to both SIM cards in the target DSDA combination. It should be understood that the frequency bands corresponding to both SIM cards in the target DSDA combination are the frequency bands ultimately used for SIM 1 to camp on, determined from the initial candidate frequency bands for SIM 1, and the frequency bands ultimately used for SIM 2 to camp on, determined from the initial candidate frequency bands for SIM 2.

[0244] If at least one DSDA combination is a single DSDA combination, then the target DSDA combination is this unique DSDA combination. If at least one DSDA combination is multiple DSDA combinations, then the target DSDA combination is one of the multiple DSDA combinations. The target DSDA combination can be any one of the multiple DSDA combinations, or it can be a DSDA combination determined according to the rules; no restrictions are imposed here.

[0245] In an embodiment where at least one DSDA combination comprises multiple DSDA combinations, the DSDA combination with the highest priority among the multiple DSDA combinations can be identified as the target DSDA combination.

[0246] In some embodiments, the highest priority DSDA combination is the combination with the best dual-SIM capability among the plurality of DSDA combinations.

[0247] This embodiment defines the DSDA combination priority based on the capabilities of the dual-SIM mode. The better the dual-SIM mode capabilities, the higher the priority of the DSDA combination; conversely, the worse the dual-SIM mode capabilities, the lower the priority of the DSDA combination. The dual-SIM mode capabilities, from highest to lowest, are: DSDA dedicated transmit > DSDA shared transmit > DR-DSDS > DSDS. Therefore, the priority of the DSDA combination, from highest to lowest, can be: DSDA dedicated transmit > DSDA shared transmit > DR-DSDS > DSDS.

[0248] Figure 6 This is a schematic flowchart of a dual-SIM communication method 600 provided in an embodiment of this application. Similar to the above method embodiments, for ease of description, a terminal device will be used as an example to provide a detailed explanation of method 600.

[0249] The embodiment shown in Method 600 describes the process of cell handover after the terminal device has already camped on a cell. Cell handover refers to the channel switching that needs to be performed when the terminal device moves from one cell to another in order to maintain normal communication for the user. When the quality of a neighboring cell meets certain conditions, the terminal device can handover from its current serving cell to a neighboring cell that meets the requirements.

[0250] During cell handover in this application embodiment, the design aims to ensure that the frequency band where one SIM card is stationed after cell handover and the frequency band where the other SIM card is currently stationed can form a DSDA mode. In method 600, the network of the cell where both SIM cards are currently stationed is assumed, and the frequency band where one SIM card is stationed is adjusted to enable a DSDA mode between the two SIM cards.

[0251] In S610, the terminal device determines that SIM 1 and SIM 2 have completed frequency band registration and that DSDA mode has not been formed between SIM 1 and SIM 2.

[0252] In S620, the network device sends neighbor cell measurement configuration information to the terminal device to configure neighbor cell measurement for one of the cards, SIM 1 and SIM 2. This one of the cards is in a connected state.

[0253] In this step, the network device sends neighbor cell measurement configuration information to the terminal device. The terminal device can measure the neighbor cell so that when the frequency band of the neighbor cell meets certain conditions, one of the cards can switch to the neighbor cell to adjust the frequency band of the card, thereby forming a DSDA mode with the other card. The other card is the card other than the card in card 1 and card 2.

[0254] It should be understood that in this step, the other card remains in the current frequency band of the cell. The frequency band of the other card is not adjusted. Instead, an attempt is made to switch one of the cards to a neighboring cell that meets the conditions in order to adjust the frequency band of the other card.

[0255] Generally, the primary SIM card is frequently in a connected state, so in one example, one of the cards could be the primary SIM card. Furthermore, when SIM 1 is the primary SIM card, one of the cards is SIM 1; when SIM 2 is the primary SIM card, one of the cards is SIM 2. In another example, the secondary SIM card is sometimes also in a connected state (e.g., the secondary SIM card is performing call services), so one of the cards could also be the secondary SIM card.

[0256] In some embodiments, the neighbor cell measurement configuration information includes: multiple cell identifiers of multiple neighbor cells, with one neighbor cell corresponding to one cell identifier; and event information for indicating the events for cell handover corresponding to each neighbor cell.

[0257] The event for cell handover corresponding to each neighboring cell can be any of the following: A3 event, A4 event, B1 event, or B2 event. An A3 event indicates that the quality of a neighboring cell in the same system and frequency as the serving cell is higher than that of the serving cell. An A4 event indicates that the quality of a neighboring cell in the same system but at a different frequency as the serving cell is higher than a threshold. A B1 event indicates that the quality of a neighboring cell in a different system as the serving cell is higher than a threshold. A B2 event indicates that the quality of a neighboring cell in a different system as the serving cell is higher than one threshold while the quality of the serving cell is lower than another threshold. Generally, the quality of a neighboring cell is represented by the reference signal receiving power (RSRP). RSRP is a key parameter of radio signal strength and is the average signal power received on all resource elements (REs) carrying the reference signal within a certain symbol.

[0258] It should be noted that when configuring neighbor cell measurements, network devices assign one event to each neighbor cell. The events for different neighbor cells can be the same or different, depending on the relationship between the serving cell and the neighbor cells. For example, if a neighbor cell is a cell in the same system and on the same frequency as the serving cell, the network device configures event A3 for that neighbor cell. If a neighbor cell is a cell in the same system but on a different frequency than the serving cell, the network device configures event A4 for that neighbor cell.

[0259] In other embodiments, the neighbor cell measurement configuration information may further include: a measurement report identifier for each neighbor cell's corresponding measurement report. When a neighbor cell meets the handover requirements, a measurement report can be reported to the network device based on the corresponding measurement report identifier.

[0260] In S630, the terminal device determines the first candidate frequency band of one of the cards, SIM 1 and SIM 2, that meets the preset conditions.

[0261] In this step, the terminal device measures multiple neighboring cells according to the neighboring cell measurement configuration information to determine whether there is a first candidate frequency band for one of the cards 1 and 2 that meets the preset conditions. If it exists, the process continues to S640; otherwise, the process ends.

[0262] In some embodiments, the preset conditions are: the neighboring cell meets the events required for cell handover, and the frequency band of the neighboring cell can form a DSDA mode with the frequency band currently camped by another card. The events required for cell handover are described above and will not be repeated here.

[0263] For example, in the implementation, the terminal device measures multiple neighboring cells according to the neighboring cell measurement configuration information to obtain the RSRP value of each neighboring cell. Based on the RSRP value of each neighboring cell, it first determines at least one neighboring cell whose RSRP value satisfies the event for cell handover. One neighboring cell corresponds to one frequency band (or one neighboring cell has one frequency band). The at least one frequency band corresponding to the at least one neighboring cell is called the initial candidate frequency band. The terminal device then determines the first candidate frequency band from the initial candidate frequency band that can form a DSDA mode with the frequency band currently camped by another card, based on the DSDA mode information of the terminal device. For a detailed description of the DSDA mode information of the terminal device, please refer to the relevant description above, which will not be repeated here.

[0264] It should be understood that the frequency bands in the first candidate frequency band are some or all of the frequency bands in the initial candidate frequency band. If all frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently residing in another card, then the frequency bands in the first candidate frequency band are all of the frequency bands in the initial candidate frequency band; if some frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently residing in another card, then the first candidate frequency band is some of the frequency bands in the initial candidate frequency band.

[0265] It should be noted that each frequency band in the first candidate frequency band can form a DSDA combination supported by the terminal device together with the frequency band currently residing in another card. For example, if the first candidate frequency band includes N frequency bands, it means that the N frequency bands in the first candidate frequency band can form N DSDA combinations supported by the terminal device together with the frequency band currently residing in another card.

[0266] In S640, the terminal device determines the target frequency band from the first candidate frequency bands.

[0267] If the first candidate frequency band includes a single frequency band, then that single frequency band will be selected as the target frequency band.

[0268] If the first candidate frequency band includes multiple frequency bands, then one of the multiple frequency bands is determined as the target frequency band. The target frequency band can be any one of the multiple frequency bands, or it can be a frequency band determined according to the rules. No restrictions are made here.

[0269] In embodiments where the first candidate frequency band includes multiple frequency bands, the terminal device determines the frequency band with the highest priority among the first candidate frequency bands as the target frequency band.

[0270] In some embodiments, the highest priority frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently hosted by the other SIM card, has the best dual-SIM capability in the DSDA mode. In other words, the target frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently hosted by the other SIM card, has the best dual-SIM capability in the DSDA mode.

[0271] In other embodiments, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands. That is, the frequency band with the strongest signal among the first candidate frequency bands is the target frequency band.

[0272] It should be noted that the priority of the frequency bands in the first candidate frequency band mentioned above can be used individually or in combination. For a detailed description of determining the target frequency band from the first candidate frequency band, please refer to the relevant description above; it will not be repeated here.

[0273] In S650, the terminal device sends a measurement report to the network device, which is used to indicate the target frequency band.

[0274] In this step, the terminal device generates a measurement report indicating the target frequency band and sends it to the network device.

[0275] It should be understood that the measurement report may implicitly indicate the target frequency band or explicitly indicate the target frequency band, and the embodiments of this application do not make any limitation.

[0276] In one example, the measurement report can implicitly indicate the target frequency band. Implicit indication means that the target frequency band is not directly read from the measurement report, but rather obtained by combining the read content with other information. For example, in the implementation, the neighbor cell measurement configuration information can include a measurement report identifier corresponding to each neighbor cell. When a neighbor cell meets the handover requirements, it can report a measurement report to the network device based on the corresponding measurement report identifier. For a neighbor cell with a target frequency band (denoted as neighbor cell 1), when the handover requirements are met, a measurement report (denoted as measurement report 1) is reported to the network device based on the measurement report identifier corresponding to neighbor cell 1. Measurement report 1 does not contain the target frequency band; however, the network device can determine that the cell corresponding to measurement report 1 is neighbor cell 1 based on the measurement report identifier of measurement report 1, and thus naturally determine the target frequency band corresponding to neighbor cell 1.

[0277] In the S660, the network device sends a handover instruction to indicate that the frequency band of one of the cards is being switched to the target frequency band.

[0278] In S670, the terminal device switches one of the cards, SIM 1 and SIM 2, to the target frequency band.

[0279] In this step, the terminal device, based on the handover instruction sent by the network device, switches one of the cards, SIM 1 and SIM 2, from its currently registered frequency band to the target frequency band, thus adjusting the frequency band of that card. This establishes a DSDA mode between SIM 1 and SIM 2, improving the user experience.

[0280] It should be understood that the sequence number of the steps in the above method 600 does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. For example, the order of S620 and S610 can be interchanged.

[0281] It should be noted that the embodiments of the various methods mentioned above use terms such as initial candidate frequency band, first candidate frequency band, target frequency band, and preset conditions. The specific meaning of each term may vary slightly in different method embodiments, and the meaning in the specific scenario of each method shall prevail. For example, in method 300, the initial candidate frequency band and the first candidate frequency band are the initial candidate frequency band and the first candidate frequency band for card 2. In method 400, the initial candidate frequency band and the first candidate frequency band are the initial candidate frequency band and the first candidate frequency band for both card 1 and card 2. In method 600, the initial candidate frequency band and the first candidate frequency band are the initial candidate frequency band and the first candidate frequency band for one of the cards, card 1 and card 2.

[0282] Figure 7 This is a schematic flowchart of a dual-SIM communication method 700 provided in an embodiment of this application. This method 700 can be executed by a terminal device supporting dual-SIM communication, or by a chip in the terminal device; this embodiment of the application does not impose any limitations. For ease of description, a terminal device is used as an example to describe method 700 in detail.

[0283] It should be understood that in method 700, the first card is the card to be adjusted or to be registered in a frequency band, and the second card is the card that has already completed frequency band registration and does not need to be adjusted. The first card can be one of the primary card and the secondary card, and the second card can be the other of the primary card and the secondary card. For example, the first card is the secondary card and the second card is the primary card, in order to reduce the impact of adjusting the frequency band on the services of the primary card.

[0284] In S710, when a dual-SIM dual-pass DSDA mode is not formed between the first SIM card and the second SIM card of the terminal device, the terminal device determines a first candidate frequency band of the first SIM card that meets preset conditions. The first candidate frequency band includes one or more frequency bands. The preset conditions include a first condition and a second condition. The first condition includes: the quality of the candidate cell meets the requirements. The second condition includes: the frequency band of the candidate cell can form a DSDA mode supported by the terminal device with the frequency band currently camped by the second SIM card. One candidate cell corresponds to one frequency band.

[0285] In this step, the terminal device first determines whether a DSDA mode is formed between the first card and the second card. If a DSDA mode is not formed, the frequency band currently camped by the second card is retained, and multiple candidate cells of the first card are measured. Each candidate cell corresponds to a frequency band. Based on all the frequency bands corresponding to the multiple candidate cells, the first candidate frequency band of the first card that meets the preset conditions is determined in order to attempt to adjust the frequency band of the first card so that a DSDA mode is formed between the first card and the second card.

[0286] In some implementations, the process by which the terminal device determines the first candidate frequency band of the first card that meets the preset conditions can be as follows:

[0287] The terminal device determines an initial candidate frequency band for the first card that meets the first condition, the initial candidate frequency band including one or more frequency bands;

[0288] The terminal device determines the first candidate frequency band that satisfies the second condition from the initial candidate frequency bands.

[0289] For example, the terminal device measures multiple candidate cells of the first card, first determines at least one candidate cell that meets the first condition (i.e., the quality of the candidate cell meets the requirements), and one candidate cell corresponds to one frequency band. The at least one frequency band corresponding to the at least one candidate cell is called the initial candidate frequency band. The terminal device then determines the first candidate frequency band that meets the second condition (i.e., the frequency band of the candidate cell can form the DSDA mode supported by the terminal device with the frequency band currently camped by the second card) from the initial candidate frequency band according to the DSDA mode information of the terminal device.

[0290] It should be understood that the frequency bands in the first candidate frequency band are some or all of the frequency bands in the initial candidate frequency band. If all frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently camped by the second SIM card, then the frequency bands in the first candidate frequency band are all of the frequency bands in the initial candidate frequency band; if some frequency bands in the initial candidate frequency band can form a DSDA mode supported by the terminal device with the frequency band currently camped by the second SIM card, then the first candidate frequency band is some of the frequency bands in the initial candidate frequency band.

[0291] It should be noted that each frequency band in the first candidate frequency band and the frequency band currently residing in the second card can form a DSDA combination supported by the terminal device. For example, if the first candidate frequency band includes N frequency bands, it means that the N frequency bands in the first candidate frequency band and the frequency band currently residing in the second card can form N DSDA combinations supported by the terminal device.

[0292] DSDA mode information is used to indicate all DSDA combinations that the terminal device supports to form a DSDA mode. Each DSDA combination includes the network type and frequency band for both SIM cards. In implementation, DSDA mode information can be pre-configured in the terminal device.

[0293] It should be understood that the DSDA combinations supported by the same terminal device are fixed, while the DSDA combinations supported by different terminal devices may be the same or different, depending on the terminal device model or hardware information. For a detailed description, please refer to the relevant description above, which will not be repeated here.

[0294] In S720, the terminal device camps the first card on the target frequency band according to the target frequency band in the first candidate frequency band.

[0295] If the first candidate frequency band includes one frequency band, then this unique frequency band is determined as the target frequency band. If the first candidate frequency band includes multiple frequency bands, then one of the multiple frequency bands is determined as the target frequency band. The target frequency band can be any one of the multiple frequency bands, or it can be a frequency band determined according to the rules. There are no restrictions here.

[0296] The dual-SIM communication method provided in this application retains the frequency band currently hosted by the second SIM card, determines a first candidate frequency band for the first SIM card based on preset conditions, and obtains a first candidate frequency band that meets both quality requirements and can form a DSDA mode with the frequency band currently hosted by the second SIM card. Then, a frequency band is selected from the first candidate frequency bands as the target frequency band, causing the first SIM card to reside on the target frequency band. This enables the first and second SIM cards to form a DSDA mode, thereby allowing the terminal device to operate in DSDA mode and improving the user experience. Furthermore, since this application embodiment retains the frequency band currently hosted by the second SIM card and only interferes with the frequency band that the first SIM card needs to host, compared to methods that require adjusting the frequency bands of both SIM cards, this application embodiment is easier to implement and reduces the impact on users caused by service interruptions due to frequency band adjustments.

[0297] In embodiments where the first candidate frequency band includes multiple frequency bands, before residing the first card on the target frequency band according to the target frequency band in the first candidate frequency band, method 700 further includes: the terminal device determining the highest priority frequency band in the first candidate frequency band as the target frequency band.

[0298] The dual-SIM communication method provided in this application embodiment, if the first candidate frequency band determined based on preset conditions includes multiple frequency bands, the terminal device takes the frequency band with the highest priority among the first candidate frequency bands as the target frequency band, retains the frequency band currently camped by the second SIM card, and camps the first SIM card on the target frequency band, so that the DSDA mode formed between the first SIM card and the second SIM card is the optimal mode set by the terminal device, thereby improving the performance of the dual-SIM mode.

[0299] In some embodiments, the highest priority frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently hosted by the second SIM card, has the best dual-SIM capability in the DSDA mode. In other words, the target frequency band is the frequency band among the first candidate frequency bands that, together with the frequency band currently hosted by the second SIM card, has the best dual-SIM capability in the DSDA mode.

[0300] This embodiment defines the priority of the first candidate frequency band based on the dual-SIM mode capability. For a detailed description, please refer to the relevant description of the priority of the first candidate frequency band of SIM 2 in S330 above. It will not be repeated here. Just replace SIM 2 above with SIM 1 here and SIM 2 above with SIM 2 here.

[0301] The dual-SIM communication method provided in this application embodiment allows the terminal device to prioritize the frequency band with the best dual-SIM capability in the DSDA mode formed by the first candidate frequency band and the frequency band currently occupied by the second SIM card. The terminal device retains the frequency band currently occupied by the second SIM card and keeps the first SIM card on the highest priority frequency band. This enables the DSDA mode formed between the first SIM card and the second SIM card to be the dual-SIM mode with the best performance, resulting in the best user experience.

[0302] In other embodiments, the highest priority frequency band is the frequency band with the strongest signal among the first candidate frequency bands. That is, the frequency band with the strongest signal among the first candidate frequency bands is the target frequency band.

[0303] This embodiment defines the priority of the first candidate frequency band based on the signal strength of the frequency band. For a detailed description, please refer to the relevant description of the priority of the first candidate frequency band of card 2 in S330 above, which will not be repeated here. Simply replace card 2 in the above with the first card here and card 1 in the above with the second card here.

[0304] It should be noted that the priority of the first candidate frequency band of the first card defined above can be used alone or in combination. For details, please refer to the relevant description in S330 above, which will not be repeated here.

[0305] In this embodiment, the preset condition is a determination criterion for identifying the first candidate frequency band of the first card. The first condition in the preset condition is related to the quality of the candidate cell, including: the quality of the candidate cell meets the requirements. When the terminal device is in different scenarios, the specific content of the first condition is different, and the corresponding implementation process is also different.

[0306] In the scenario where a terminal device selects a cell upon power-on, the first condition includes: the quality of the candidate cell meets the S criterion. A detailed description of the S criterion can be found in the relevant description in Method 300 above, and will not be repeated here.

[0307] In this scenario, the quality of a candidate cell can be represented by the candidate cell's received power Srxlev and the received signal quality Squal.

[0308] In conjunction with the above, in the scenario where a terminal device selects a cell upon power-on, the implementation process of this application embodiment can correspond to the implementation process of method 300 described above. The first card can be card 2 in method 300, the second card can be card 1 in method 300, and the first candidate frequency band of the first card can be the first candidate frequency band of card 2 in method 300. For a detailed description of the process of determining the first candidate frequency band of the first card and determining the target frequency band, please refer to the relevant description above, which will not be repeated here.

[0309] It should be understood that in the scenario where the terminal device selects a cell upon powering on, the second SIM card has already completed frequency band registration, while the first SIM card has not yet completed frequency band registration.

[0310] The dual-SIM communication method provided in this application, in the scenario of the terminal device powering on and selecting a cell, adds a second condition to enable the dual SIMs to form a DSDA mode, based on the first condition that the quality of the existing candidate cells meets the S criterion. This optimizes and improves the existing process with fewer modifications, and is easier to implement when the terminal device is in DSDA mode.

[0311] In the scenario of cell reselection by terminal equipment, the first condition includes: the quality of the candidate cell meets the S criterion and the R criterion. For a detailed description of the S criterion and the R criterion, please refer to the relevant description of Method 400 above, which will not be repeated here.

[0312] In this scenario embodiment, the quality of a candidate cell can be represented by its received power Srxlev, received signal quality Squal, and RSRP. It should be noted that the candidate cell here refers to a neighboring cell of the serving cell where the first SIM card is camped.

[0313] In conjunction with the above, in the scenario where the terminal device performs cell reselection, the implementation process of this application embodiment can correspond to the implementation process of method 400 above.

[0314] In the first case, the first card can be card 1 in method 400 above, the second card can be card 2 in method 400 above, the first candidate frequency band of the first card can be the first candidate frequency band of card 1 in method 400, the preset frequency band in this case is preset frequency band 1 in S440, and the target frequency band in this case is target frequency band 1 in S450. For a detailed description of the process of determining the first candidate frequency band of the first card and determining the target frequency band, please refer to the relevant descriptions in S430 to S450, which will not be repeated here.

[0315] In the second scenario, the first card can be card 2 in method 400 above, the second card can be card 1 in method 400 above, the first candidate frequency band of the first card can be the first candidate frequency band of card 2 in method 400, the preset frequency band in this scenario is preset frequency band 2 in S470, and the target frequency band in this scenario is target frequency band 2 in S480. For a detailed description of the process of determining the first candidate frequency band of the first card and the process of determining the target frequency band, please refer to the relevant descriptions in S460 to S480, which will not be repeated here.

[0316] The dual-SIM communication method provided in this application, in the scenario of cell reselection by the terminal device, adds a second condition to enable the dual SIMs to form DSDA mode, based on the first condition that the quality of the existing candidate cells meets the S criterion and R criterion. This optimizes and improves the existing process with fewer modifications, and is easier to implement when the terminal device is in DSDA mode.

[0317] In the scenario of cell handover by terminal equipment, the first condition includes: the quality of the candidate cell meets the event required for cell handover, which includes any one of event A3, event A4, event B1, or event B2. For a detailed description of events A3, A4, B1, and B2, please refer to the relevant description in Method 600 above, which will not be repeated here.

[0318] In this scenario embodiment, the quality of the candidate cell can be represented by RSRP. It should be noted that the candidate cell here refers to the neighboring cell of the serving cell where the first SIM card is stationed.

[0319] In conjunction with the above, in the scenario of cell handover by the terminal device, the implementation process of this application embodiment can correspond to the implementation process of method 600 described above. The first card can be one of card 1 and card 2 in method 600, and the second card can be the other card of card 1 and card 2 in method 600. The first candidate frequency band of the first card can be the first candidate frequency band of one of the cards in method 600. For a detailed description of the process of determining the first candidate frequency band of the first card and determining the target frequency band, please refer to the relevant description above, which will not be repeated here.

[0320] The dual-SIM communication method provided in this application, in the scenario of cell handover of terminal device, adds a second condition for enabling dual SIM to form DSDA mode on the basis that the quality of existing candidate cells meets the first condition for the event used for cell handover. This optimizes and improves the existing process with fewer modifications and is easier to implement when the terminal device is in DSDA mode.

[0321] In scenarios where terminal devices perform cell handover, in some embodiments, before setting the first SIM card on the target frequency band according to the target frequency band in the first candidate frequency band, method 700 further includes:

[0322] The terminal device sends a measurement report to the network device, indicating the target frequency band;

[0323] The terminal device receives a handover instruction from the network device, which instructs the terminal device to switch the frequency band where the first card is registered to the target frequency band.

[0324] For a detailed description of this step, please refer to the relevant descriptions of S650 and S660 in Method 600, which will not be repeated here.

[0325] In scenarios where terminal devices perform cell reselection and cell handover, both the first and second SIM cards have already completed frequency band registration. However, since a DSDA mode has not been established between the two SIM cards, the frequency band of the first SIM card needs to be adjusted. Therefore, in both scenarios, the first SIM card should be registered on the target frequency band according to the target frequency band in the first candidate frequency band, including:

[0326] Based on the target frequency band, the frequency band of the first card is adjusted so that the first card resides on the target frequency band.

[0327] Figure 8 This is a schematic flowchart of a dual-SIM communication method 800 provided in an embodiment of this application. This method 800 can be executed by a terminal device supporting dual-SIM communication, or by a chip within the terminal device; this embodiment of the application does not impose any limitations. For ease of description, a terminal device is used as an example to illustrate method 800 in detail.

[0328] Method 800 describes how, during cell reselection, the terminal device adjusts the frequency bands of the first and second cards to form a DSDA mode between them, which corresponds to Method 500 above. The first card can be one of the primary and secondary cards, and the second card is the other of the primary and secondary cards.

[0329] In S810, when a dual-SIM dual-pass DSDA mode is not formed between the first SIM card and the second SIM card of the terminal device, the terminal device determines the candidate frequency band of the first SIM card that meets the first preset condition and the candidate frequency band of the second SIM card that meets the second preset condition. The candidate frequency band of the first SIM card includes at least one frequency band, and the candidate frequency band of the second SIM card includes at least one frequency band. The first preset condition includes: the candidate cells of the first SIM card meet the S criterion and the R criterion. The second preset condition includes: the candidate cells of the second SIM card meet the S criterion and the R criterion. One candidate cell corresponds to one frequency band.

[0330] It should be understood that the candidate cell for the first card is the neighboring cell of the service cell where the first card is located, and the candidate cell for the second card is the neighboring cell of the service cell where the second card is located.

[0331] In this step, the terminal device first determines whether a DSDA mode is formed between the first card and the second card. If a DSDA mode is not formed, it measures multiple candidate cells of the first card and multiple candidate cells of the second card respectively. Each candidate cell corresponds to a frequency band. Based on all the frequency bands corresponding to the multiple candidate cells of the first card, it determines the candidate frequency band of the first card that meets the first preset condition. Based on all the frequency bands corresponding to the multiple candidate cells of the second card, it determines the candidate frequency band of the second card that meets the second preset condition.

[0332] The specific implementation process of this step is similar to S540 in method 500 above. For a detailed description, please refer to the relevant description above, which will not be repeated here. Here, the candidate frequency band of the first card corresponds to the initial candidate frequency band of card 1 in method 500 above, and the candidate frequency band of the second card corresponds to the initial candidate frequency band of card 2 in method 500 above. The explanation of the relationship between the two in the following text is the same as here, and will not be repeated here.

[0333] In S820, the terminal device determines, from the candidate frequency bands of the first card and the candidate frequency bands of the second card, at least one DSDA combination supported by the terminal device that can form a DSDA mode, each DSDA combination including one frequency band from the candidate frequency bands of the first card and one frequency band from the candidate frequency bands of the second card.

[0334] In this step, the terminal device can determine whether the candidate frequency bands of the first card and the candidate frequency bands of the second card can form at least one DSDA combination supported by the terminal device, based on the DSDA mode information of the terminal device. If the candidate frequency bands of the two cards can form at least one DSDA combination supported by the terminal device, it means that the two cards have a chance to form a DSDA mode, and SS830 is executed; if the candidate frequency bands of the two cards cannot form at least one DSDA combination supported by the terminal device, the process ends.

[0335] The specific implementation process of this step is similar to S550 in method 800 above. For a detailed description, please refer to the relevant description above, which will not be repeated here.

[0336] In S830, the terminal device adjusts the frequency bands of the first card and the second card according to the target DSDA combination in the at least one DSDA combination, so that the first card and the second card respectively reside on the frequency bands corresponding to the two cards in the target DSDA combination.

[0337] In this step, the terminal device determines a target DSDA combination from at least one DSDA combination. Based on the target DSDA combination, the frequency bands of the first SIM card and the second SIM card are adjusted. That is, neither the first SIM card nor the second SIM card will camp on the current frequency band, but will instead camp on a different frequency band. The first SIM card and the second SIM card will camp on the frequency bands corresponding to both SIM cards in the target DSDA combination. It should be understood that the frequency bands corresponding to both SIM cards in the target DSDA combination are the frequency bands ultimately used for the first SIM card to camp on, determined from the candidate frequency bands of the first SIM card, and the frequency bands ultimately used for the second SIM card to camp on, determined from the candidate frequency bands of the second SIM card.

[0338] If at least one DSDA combination is a single DSDA combination, then the target DSDA combination is this unique DSDA combination. If at least one DSDA combination is multiple DSDA combinations, then the target DSDA combination is one of the multiple DSDA combinations. The target DSDA combination can be any one of the multiple DSDA combinations, or it can be a DSDA combination determined according to the rules; no restrictions are imposed here.

[0339] The dual-SIM communication method provided in this application determines the candidate frequency band of the first SIM card based on a first preset condition and the candidate frequency band of the second SIM card based on a second preset condition. The candidate frequency bands of the two SIM cards can satisfy the S criterion and R criterion of the cell reselection process. Then, the candidate frequency bands of the two SIM cards are freely combined to obtain at least one DSDA combination supported by the terminal device and select one DSDA combination as the target DSDA from the at least one DSDA combination. By adjusting the frequency bands of the first SIM card and the second SIM card, a DSDA mode can be formed between the first SIM card and the second SIM card. Thus, the terminal device can be in DSDA mode, which improves the user experience.

[0340] In some embodiments, the at least one DSDA combination includes a plurality of DSDA combinations; and, before adjusting the frequency bands of the first card and the second card according to a target DSDA combination among the at least one DSDA combination, method 800 further includes:

[0341] The DSDA combination with the highest priority among the multiple DSDA combinations is identified as the target DSDA combination.

[0342] The dual-SIM communication method provided in this application embodiment allows for the selection of the highest-priority DSDA combination as the target DSDA combination if the terminal device supports multiple DSDA combinations. This enables the adjustment of the frequency bands of the first and second SIM cards, ensuring that the DSDA mode formed between the first and second SIM cards is the optimal mode set by the terminal device, thereby improving the performance of the dual-SIM mode.

[0343] For example, the highest priority DSDA combination is the combination with the best dual-SIM capability among the multiple DSDA combinations.

[0344] This embodiment defines the DSDA combination priority based on the capabilities of the dual-SIM mode. The better the dual-SIM mode capabilities, the higher the priority of the DSDA combination; conversely, the worse the dual-SIM mode capabilities, the lower the priority of the DSDA combination. The dual-SIM mode capabilities, from highest to lowest, are: DSDA dedicated transmit > DSDA shared transmit > DR-DSDS > DSDS. Therefore, the priority of the DSDA combination, from highest to lowest, can be: DSDA dedicated transmit > DSDA shared transmit > DR-DSDS > DSDS.

[0345] The dual-SIM communication method provided in this application embodiment uses the combination with the best dual-SIM mode capability among multiple DSDA combinations as the highest priority DSDA combination. The terminal device adjusts the frequency bands of the first and second cards according to the highest priority DSDA combination, so that the DSDA mode formed between the first and second cards is the dual-SIM mode with the best performance and the best user experience.

[0346] It should be noted again that the sequence number of the steps in the above method embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0347] The above, combined with Figures 1 to 8 This application provides a detailed description of the dual-SIM communication method provided in its embodiments. The following will combine... Figures 9 to 10 The present application provides a detailed description of the terminal device provided according to the embodiments thereof.

[0348] Figure 9 This is an exemplary block diagram of a terminal device 900 provided in an embodiment of this application. The terminal device 900 includes a processing unit 910.

[0349] In one possible implementation, terminal device 900 is used to execute the various processes and steps corresponding to the terminal device in the above method 700.

[0350] The processing unit 910 is configured to, when no dual-SIM dual-pass DSDA mode is formed between the first card and the second card of the terminal device, determine a first candidate frequency band of the first card that meets preset conditions. The first candidate frequency band includes at least one frequency band. The preset conditions include a first condition and a second condition. The first condition includes: the quality of the candidate cell meets the requirements. The second condition includes: the frequency band of the candidate cell can form the DSDA mode supported by the terminal device with the frequency band currently camped by the second card. One candidate cell corresponds to one frequency band.

[0351] The processing unit 910 is further configured to, based on the target frequency band in the first candidate frequency band, station the first card on the target frequency band.

[0352] It should be understood that the processing unit 910 can be used to execute various steps performed by the terminal device in method 700. For a detailed description, please refer to the relevant description above, which will not be repeated here.

[0353] In another possible implementation, terminal device 900 is used to execute the various processes and steps corresponding to the terminal device in the above method 800.

[0354] The processing unit 910 is configured to, when no dual-SIM dual-pass DSDA mode is formed between the first card and the second card of the terminal device, determine the candidate frequency band of the first card that meets a first preset condition and the candidate frequency band of the second card that meets a second preset condition. The candidate frequency band of the first card includes at least one frequency band, and the candidate frequency band of the second card includes at least one frequency band. The first preset condition includes: the candidate cells of the first card meet the S criterion and the R criterion. The second preset condition includes: the candidate cells of the second card meet the S criterion and the R criterion. One candidate cell corresponds to one frequency band.

[0355] The processing unit 910 is further configured to determine, from the candidate frequency bands of the first card and the candidate frequency bands of the second card, at least one DSDA combination supported by the terminal device that can form a DSDA mode, wherein each DSDA combination includes one frequency band from the candidate frequency bands of the first card and one frequency band from the candidate frequency bands of the second card;

[0356] The processing unit 910 is further configured to adjust the frequency bands of the first card and the second card according to the target DSDA combination in the at least one DSDA combination, so that the first card and the second card respectively reside on the frequency bands corresponding to the two cards in the target DSDA combination.

[0357] It should be understood that the processing unit 910 can be used to execute various steps performed by the terminal device in method 800. For a detailed description, please refer to the relevant description above, which will not be repeated here.

[0358] It should be understood that the terminal device 900 here is embodied in the form of a functional unit. The term "unit" here may refer to application-specific integrated circuits (ASICs), electronic circuits, processors (e.g., shared processors, proprietary processors, or group processors) and memory for executing one or more software or firmware programs, combined logic circuits, and / or other suitable components that support the described functions.

[0359] In the embodiments of this application, Figure 9 The terminal device in the process can also be a chip or a chip system, such as a system on chip (SoC).

[0360] Figure 10 This application provides a schematic structural diagram of a terminal device 1000. The terminal device 1000 is used to execute the corresponding steps and / or processes in the above method embodiments.

[0361] Terminal device 1000 includes a processor 1010, a transceiver 1020, and a memory 1030. The processor 1010, transceiver 1020, and memory 1030 communicate with each other via internal interconnections. The processor 1010 can implement the functions of the processor 1010 in various possible implementations of the terminal device 1000. The memory 1030 is used to store instructions, and the processor 1010 is used to execute the instructions stored in the memory 1030. In other words, the processor 1010 can call these stored instructions to implement the functions of the processor 1010 in the terminal device 1000.

[0362] Optionally, the memory 1030 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store device type information. The processor 1010 may be used to execute instructions stored in the memory, and when the processor 1010 executes instructions stored in the memory, the processor 1010 is used to perform the various steps and / or processes of the method embodiments corresponding to the terminal device described above.

[0363] In one possible implementation, the terminal device 1000 is used to execute the various processes and steps corresponding to the terminal device in the above method 700.

[0364] Processor 1010 is used to perform the following steps:

[0365] If a dual-SIM dual-pass DSDA mode is not formed between the first card and the second card of the terminal device, a first candidate frequency band of the first card that meets the preset conditions is determined. The first candidate frequency band includes at least one frequency band. The preset conditions include a first condition and a second condition. The first condition includes: the quality of the candidate cell meets the requirements. The second condition includes: the frequency band of the candidate cell can form a DSDA mode supported by the terminal device with the frequency band currently camped by the second card. One candidate cell corresponds to one frequency band.

[0366] Based on the target frequency band in the first candidate frequency band, the first card is stationed on the target frequency band.

[0367] In another possible implementation, terminal device 900 is used to execute the various processes and steps corresponding to the terminal device in the above method 800.

[0368] Processor 1010 is used to perform the following steps:

[0369] When a dual-SIM dual-pass DSDA mode is not formed between the first SIM card and the second SIM card of the terminal device, candidate frequency bands of the first SIM card that meet a first preset condition and candidate frequency bands of the second SIM card that meet a second preset condition are determined. The candidate frequency bands of the first SIM card include at least one frequency band, and the candidate frequency bands of the second SIM card include at least one frequency band. The first preset condition includes: the candidate cells of the first SIM card meet the S criterion and the R criterion. The second preset condition includes: the candidate cells of the second SIM card meet the S criterion and the R criterion. One candidate cell corresponds to one frequency band.

[0370] From the candidate frequency bands of the first card and the candidate frequency bands of the second card, at least one DSDA combination supported by the terminal device that can form a DSDA mode is determined, and each DSDA combination includes one frequency band from the candidate frequency bands of the first card and one frequency band from the candidate frequency bands of the second card;

[0371] According to the target DSDA combination in the at least one DSDA combination, the frequency bands of the first card and the second card are adjusted so that the first card and the second card respectively reside on the frequency bands corresponding to the two cards in the target DSDA combination.

[0372] It should be understood that the specific process of each device performing the corresponding steps in the above methods has been described in detail in the above method embodiments, and will not be repeated here for the sake of brevity.

[0373] It should be understood that, in the embodiments of this application, the processor of the above-described device can be a central processing unit (CPU), which can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor, etc.

[0374] In implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware processor, or as a combination of hardware and software units within the processor. The software units can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory, and the processor executes the instructions in the memory, combining them with its hardware to complete the steps of the above method. To avoid repetition, detailed descriptions are omitted here.

[0375] This application provides a computer program product that, when run on a terminal device, causes the terminal device to execute the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar to those of the related embodiments described above, and will not be repeated here.

[0376] This application provides a readable storage medium containing instructions that, when executed by a terminal device, cause the terminal device to perform the technical solution described in the above embodiments. The implementation principle and technical effects are similar and will not be repeated here.

[0377] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0378] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0379] It should be understood that the term "embodiment" used throughout the specification means that a specific feature, structure, or characteristic related to an embodiment is included in at least one embodiment of this application. Therefore, various embodiments throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0380] It should also be understood that in this application, “when…”, “if” and “if” all refer to the UE or base station taking corresponding actions under certain objective circumstances, and are not time-limited, nor do they require the UE or base station to perform a judgment action, nor do they imply any other limitations.

[0381] Those skilled in the art will understand that the various numerical designations such as "first," "second," etc., involved in this application are merely for the convenience of description and are not intended to limit the scope of the embodiments of this application, nor do they indicate the order of sequence.

[0382] In this application, the use of singular pronouns to denote "one or more" rather than "one and only one," unless otherwise specified. In this application, unless otherwise specified, "at least one" is intended to mean "one or more," and "more than" is intended to mean "two or more."

[0383] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three cases: A exists alone, A and B exist simultaneously, and B exists alone. Here, A can be singular or plural, and B can be singular or plural.

[0384] In this document, the terms "at least one of..." or "at least one of..." refer to all or any combination of the listed items. For example, "at least one of A, B, and C" can mean: A exists alone, B exists alone, C exists alone, A and B exist simultaneously, B and C exist simultaneously, and A, B, and C exist simultaneously. A can be singular or plural, B can be singular or plural, and C can be singular or plural.

[0385] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0386] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0387] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0388] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0389] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0390] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0391] The same or similar parts between the various embodiments in this application can be referred to mutually. In the various embodiments of this application, and in the various implementation methods / methods / implementations within each embodiment, unless otherwise specified or logically conflicting, the terminology and / or descriptions between different embodiments and between the various implementation methods / methods / implementations within each embodiment are consistent and can be mutually referenced. The technical features in different embodiments and the various implementation methods / methods / implementations within each embodiment can be combined according to their inherent logical relationships to form new embodiments, implementation methods, methods, or implementation approaches. The above-described embodiments of this application do not constitute a limitation on the scope of protection of this application.

[0392] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims. In conclusion, the above description is merely a preferred embodiment of the technical solution of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A dual-SIM communication method, applied in a terminal device, characterized in that, include: If a dual-SIM dual-pass DSDA mode is not formed between the first card and the second card of the terminal device, it is determined whether there is a first candidate frequency band of the first card that meets the preset conditions; If it is determined that there is a first candidate frequency band of the first card that meets the preset conditions, the first card is stationed on the target frequency band according to the target frequency band in the first candidate frequency band of the first card; If it is determined that there is no first candidate frequency band of the first card that meets the preset conditions, then it is determined whether there is a first candidate frequency band of the second card that meets the preset conditions. If it is determined that there is a first candidate frequency band for the second card that meets the preset conditions, the second card is stationed on the target frequency band according to the target frequency band in the first candidate frequency band of the second card; The first candidate frequency band includes at least one frequency band. The preset conditions include a first condition and a second condition. The first condition includes: the quality of the candidate cell meets the requirements. The second condition includes: the frequency band of the candidate cell can form the DSDA mode supported by the terminal device with the frequency band currently camped by the second SIM card, or the frequency band of the candidate cell can form the DSDA mode supported by the terminal device with the frequency band currently camped by the first SIM card. One candidate cell corresponds to one frequency band. The target frequency band is the frequency band with the highest priority in the first candidate frequency band. The frequency bands in the first candidate frequency band are arranged in the following order from high to low: the frequency band in the first candidate frequency band that forms a dual-SIM mode with the second SIM card or the frequency band currently camped by the first SIM card for DSDA transmission exclusive use; the frequency band in the first candidate frequency band that forms a dual-SIM mode with the second SIM card or the frequency band currently camped by the first SIM card for DSDA transmission shared use; the frequency band in the first candidate frequency band that forms a dual-SIM mode with the second SIM card or the frequency band currently camped by the first SIM card for DR-DSDS; and the frequency band in the first candidate frequency band that forms a dual-SIM mode with the second SIM card or the frequency band currently camped by the first SIM card for DSDS.

2. The method according to claim 1, characterized in that, The highest priority frequency band is the frequency band in the first candidate frequency band that has the best dual-SIM capability in the DSDA mode when combined with the frequency band currently occupied by the second card or the frequency band currently occupied by the first card.

3. The method according to claim 1, characterized in that, The highest priority frequency band is the one with the strongest signal among the first candidate frequency bands.

4. The method according to claim 1, characterized in that, In the scenario where the terminal device selects a cell upon powering on, the first condition includes: the quality of the candidate cell meets the S criterion.

5. The method according to claim 1, characterized in that, In the scenario where the terminal device performs cell reselection, the first condition includes: the quality of the candidate cell satisfies the S criterion and the R criterion.

6. The method according to claim 1, characterized in that, In the scenario where the terminal device performs cell handover, the first condition includes: the quality of the candidate cell meets the event for cell handover, and the event for cell handover includes any one of event A3, event A4, event B1, or event B2.

7. The method according to any one of claims 1 to 6, characterized in that, Before setting the first card to reside on the target frequency band according to the target frequency band in the first candidate frequency band of the first card, the method further includes: Send a measurement report to the network device indicating the target frequency band; The terminal device receives a switching instruction from the network device, the switching instruction being used to instruct the terminal device to switch the frequency band where the first card is camped to the target frequency band.

8. The method according to any one of claims 1 to 6, characterized in that, The step of setting the first card to reside on the target frequency band based on the target frequency band in the first candidate frequency band of the first card includes: According to the target frequency band, the frequency band of the first card is adjusted so that the first card resides on the target frequency band.

9. The method according to any one of claims 1 to 6, characterized in that, The first card is a supplementary card, and the second card is the primary card.

10. A terminal device, characterized in that, include: Memory, used to store computer instructions; A processor for invoking computer instructions stored in the memory to perform the method as described in any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that, Used to store computer instructions for implementing the method as described in any one of claims 1 to 9.

12. A computer program product, characterized in that, Includes computer instructions for implementing the method as described in any one of claims 1 to 9.

13. A chip, characterized in that, The chip includes: Memory: Used to store instructions; A processor for retrieving and executing the instructions from the memory, causing a communication device equipped with the chip system to perform the method as described in any one of claims 1 to 9.