Resource allocation method and device

By dynamically allocating LTE and NR resources and modem processor capabilities, the problem of time-consuming switching between primary and secondary cards in multi-mode and multi-card terminal devices is solved, thereby improving communication efficiency.

CN116112909BActive Publication Date: 2025-09-09HONOR DEVICE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210114769.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-11-11
Filing Date
2022-01-30
Publication Date
2025-09-09
Estimated Expiration
2042-01-30

AI Technical Summary

Technical Problem

When a multi-mode multi-card terminal device switches from a primary card to a secondary card, the secondary card needs to re-report communication resources, causing the primary and secondary card switching process to take a long time and affecting communication efficiency.

Method used

The terminal device dynamically allocates communication resources, including LTE and NR resources, as well as modem processor capabilities, based on the number of communication cards and the network standard of the access network, optimizing resource allocation to match data service needs.

Benefits of technology

The communication efficiency of multi-mode and multi-card terminal devices is improved, and by rationally allocating resources, the delay in the switching process between primary and secondary cards is reduced, thereby improving data service processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116112909B_ABST
    Figure CN116112909B_ABST
Patent Text Reader

Abstract

The present application provides a resource allocation method and apparatus, relating to the field of terminal technology and applicable to a terminal device. The method comprises: receiving a first operation directed to the terminal device; in response to the first operation, the terminal device reports available communication resources to a network device based on at least the number of communication cards and the network standard to which the communication cards are connected; the terminal device determines a target communication card for data services and allocates communication resources to the target communication card. This allows the terminal device to match appropriate communication resources for data services, thereby improving the communication efficiency of multi-mode, multi-card terminal devices.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on November 11, 2021, with application number 202111334248.8 and application name “Communication Method and Device,” the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of terminal technology, and in particular to a resource allocation method and device. Background Art

[0003] With the popularization and development of terminal technology, dual-card terminal devices have been widely used. For example, a terminal device may be provided with multiple communication cards, such as two communication cards, and a user can realize data communication between devices through one or both of the two communication cards.

[0004] Generally speaking, for multi-mode, multi-card devices on the market that are equipped with multiple communication cards (for example, a main card and a secondary card, etc.), when a dual-card, dual-pass device uses the main card, the main card can report the required communication resources to the network side. When switching from the main card to the secondary card, the secondary card needs to re-report the required communication resources to the network side. This makes the switching process between the main and secondary cards time-consuming, making it impossible for the terminal device to achieve high-efficiency communication based on the above-mentioned multiple communication cards. Summary of the Invention

[0005] The present invention provides a resource allocation method and apparatus that enables terminal devices to match appropriate communication resources for data services, thereby improving the communication efficiency of multi-mode, multi-SIM terminal devices. The communication resources may include resources for supporting Long Term Evolution (LTE) services, resources for supporting New Radio (NR) services, and modem capabilities.

[0006] In a first aspect, embodiments of the present application provide a resource allocation method, characterized by being applied to a terminal device and comprising: receiving a first operation directed to the terminal device; in response to the first operation, the terminal device reporting available communication resources to a network device based on at least the number of communication cards and the network standard to which the communication cards are connected; and the terminal device determining a target communication card from which data services are being processed and allocating communication resources to the target communication card. This allows the terminal device to match appropriate communication resources for data services, thereby improving the communication efficiency of multi-mode, multi-card terminal devices.

[0007] In one possible implementation, the available communication resources include: a first resource for supporting a long term evolution (LTE) service, a second resource for supporting a new radio (NR) service, and a modem processing capability.

[0008] In one possible implementation, the first resource includes a first component carrier (CC), and the second resource includes a second component carrier (CC). The terminal device reports available communication resources to the network device based on at least the number of communication cards and the network standard of the network to which the communication card is connected. This includes: when the target communication card is the first communication card and the terminal device determines to access an LTE network, the terminal device reports N first CCs for the first communication card to the network device; N is a positive integer; or, when the target communication card is the first communication card and the terminal device determines to access an NR network, the terminal device reports M second CCs for the first communication card to the network device; M is a positive integer. This allows the terminal device to obtain the maximum communication resources for a single card when accessing the network.

[0009] In one possible implementation, the terminal device reports available communication resources to the network device based on at least the number of communication cards and the network standard to which the communication cards are connected. This includes: the terminal device reports available communication resources to the network device based on the number of communication cards, the network standard to which the communication cards are connected, and the dual-card concurrent status of the terminal device. In this way, if the terminal device is a dual-card device, the terminal device can allocate appropriate communication resources to the dual-card devices based on data service availability.

[0010] In one possible implementation, the terminal device reports available communication resources to the network device based on the number of communication cards, the network standard of the communication card access network, and the dual-card concurrency state of the terminal device, including: when the target communication card includes a first communication card and a second communication card, the terminal device accesses an LTE network, and the terminal device is not in a dual-card concurrency state, the terminal device reports N first CCs for the first communication card and the second communication card to the network device respectively; or when the target communication card includes a first communication card and a second communication card, the terminal device accesses an NR network, and the terminal device is not in a dual-card concurrency state, the terminal device reports M second CCs for the first communication card and the second communication card to the network device respectively. In this way, the terminal device can report the maximum communication resources for the dual cards that do not meet the dual-card concurrency requirements.

[0011] In one possible implementation, the terminal device reports available communication resources to the network device based on the number of communication cards, the network standard of the communication card access network, and the dual-card concurrency state of the terminal device, including: when the target communication card includes a first communication card and a second communication card, the terminal device accesses an LTE network, and the terminal device is in a dual-card concurrency state, the terminal device reports N-1 first CCs for the first communication card and the second communication card to the network device respectively; or when the target communication card includes a first communication card and a second communication card, the terminal device accesses an NR network, and the terminal device is in a dual-card concurrency state, the terminal device reports M-1 second CCs for the first communication card and the second communication card to the network device respectively. In this way, the terminal device can report higher communication resources for the dual cards that meet the dual-card concurrency requirements.

[0012] In one possible implementation, a terminal device determines a target communication card for a data service and allocates communication resources to the target communication card, including: when the terminal device determines that the data service is from a first communication card and the terminal device is connected to an LTE network, the terminal device allocates a maximum of N-1 first CCs to the first communication card and allocates 1 first CC to the second communication card; or, when the terminal device determines that the data service is from the first communication card and the terminal device is connected to an NR network, the terminal device allocates a maximum of M-1 second CCs to the first communication card and allocates 1 second CC to the second communication card. In this way, the terminal device can allocate more communication resources to the first communication card when the data service is on the first communication card.

[0013] In one possible implementation, a terminal device determines a target communication card for a data service and allocates communication resources to the target communication card, including: when the terminal device determines that the data service is from a second communication card and the terminal device is connected to an LTE network, the terminal device allocates a maximum of N-1 first CCs to the second communication card and allocates 1 first CC to the first communication card; or, when the terminal device determines that the data service is from the second communication card and the terminal device is connected to an NR network, the terminal device allocates a maximum of M-1 second CCs to the second communication card and allocates 1 second CC to the first communication card. In this way, the terminal device can allocate more communication resources to the second communication card when the data service is on the second communication card.

[0014] In one possible implementation, a terminal device allocates communication resources to a target communication card based on the target communication card from which the data service originates. This includes: when the terminal device determines that the data service originates from a first communication card and a second communication card, the terminal device allocates communication resources to the first communication card and the second communication card based on the network quality of the first communication card, the network quality of the second communication card, the traffic data of the first communication card, and the traffic data of the second communication card. In this way, when data service originates from both the first communication card and the second communication card, the terminal device can allocate appropriate communication resources to the two communication cards based on the network quality and traffic data.

[0015] In a possible implementation, network quality is positively correlated with communication resources; and traffic data is positively correlated with communication resources.

[0016] In one possible implementation, the first operation includes at least one or more of the following: an operation for turning on the terminal device, an operation for restarting the terminal device, or an operation for turning off airplane mode of the terminal device. In this way, the terminal device can report communication resources in scenarios such as turning on, restarting, or exiting airplane mode, avoiding the impact of switching between dual SIM cards on re-reporting communication resources.

[0017] In second aspect, an embodiment of the present application provides a resource allocation device, which includes a processing unit and a communication unit. The processing unit is used to receive a first operation for a terminal device; in response to the first operation, the communication unit is used to report available communication resources to the network device based on at least the number of communication cards and the network standard of the communication card accessing the network; the processing unit is also used to determine the target communication card for the data service and allocate available communication resources to the target communication card.

[0018] In one possible implementation, the available communication resources include: a first resource for supporting a long term evolution (LTE) service, a second resource for supporting a new radio (NR) service, and a modem processing capability.

[0019] In one possible implementation, the first resource includes a first component carrier CC, and the second resource includes a second CC. When the target communication card is the first communication card and the terminal device determines to access the LTE network, the communication unit is used to report N first CCs to the network device for the first communication card; N is a positive integer; or, when the target communication card is the first communication card and the terminal device determines to access the NR network, the communication unit is also used to report M second CCs to the network device for the first communication card; M is a positive integer.

[0020] In a possible implementation, the processing unit is specifically configured to report available communication resources to the network device based on the number of communication cards, the network standard of the communication cards accessing the network, and the dual-card concurrent status of the terminal device.

[0021] In one possible implementation, when the target communication card includes a first communication card and a second communication card, the terminal device accesses the LTE network, and the terminal device is not in a dual-card concurrent state, the communication unit is specifically used to report N first CCs to the network device for the first communication card and the second communication card respectively; or, when the target communication card includes a first communication card and a second communication card, the terminal device accesses the NR network, and the terminal device is not in a dual-card concurrent state, the communication unit is also used to report M second CCs to the network device for the first communication card and the second communication card respectively.

[0022] In one possible implementation, when the target communication card includes a first communication card and a second communication card, the terminal device accesses the LTE network, and the terminal device is in a dual-card concurrent state, the communication unit is used to report N-1 first CCs to the network device for the first communication card and the second communication card respectively; or, when the target communication card includes a first communication card and a second communication card, the terminal device accesses the NR network, and the terminal device is in a dual-card concurrent state, the terminal device reports M-1 second CCs to the network device for the first communication card and the second communication card respectively.

[0023] In one possible implementation, when the terminal device determines that the data service comes from the first communication card and the terminal device accesses the LTE network, the processing unit is used to allocate a maximum of N-1 first CCs to the first communication card and 1 first CC to the second communication card; or, when the terminal device determines that the data service comes from the first communication card and the terminal device accesses the NR network, the processing unit is also used to allocate a maximum of M-1 second CCs to the first communication card and 1 second CC to the second communication card.

[0024] In one possible implementation, when the terminal device determines that the data service comes from the second communication card and the terminal device accesses the LTE network, the processing unit is used to allocate a maximum of N-1 first CCs to the second communication card and allocate 1 first CC to the first communication card; or, when the terminal device determines that the data service comes from the second communication card and the terminal device accesses the NR network, the processing unit is also used to allocate a maximum of M-1 second CCs to the second communication card and allocate 1 second CC to the first communication card.

[0025] In one possible implementation, when the terminal device determines that the data service comes from the first communication card and the second communication card, the processing unit is specifically used to allocate communication resources to the first communication card and the second communication card based on the network quality of the first communication card, the network quality of the second communication card, the traffic data of the first communication card, and the traffic data of the second communication card.

[0026] In a possible implementation, network quality is proportional to communication resources; and traffic data is proportional to communication resources.

[0027] In a possible implementation, the first operation includes at least one or more of the following: an operation for turning on the terminal device, an operation for restarting the terminal device, or an operation for exiting the airplane mode of the terminal device.

[0028] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program or instruction is stored. When the computer program or instruction is run on a computer, the computer executes the method described in the first aspect or any possible implementation of the first aspect.

[0029] In a fourth aspect, an embodiment of the present application provides a computer program product comprising a computer program, which, when the computer program is run on a computer, enables the computer to execute the method described in the first aspect or any possible implementation of the first aspect.

[0030] In a fifth aspect, the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and the at least one processor being interconnected by lines, and the at least one processor being used to run computer programs or instructions to execute the method described in the first aspect or any possible implementation of the first aspect; wherein the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0031] In one possible implementation, the chip or chip system described above in this application further includes at least one memory, wherein instructions are stored in the at least one memory. The memory may be a storage unit within the chip, such as a register or cache, or a storage unit of the chip (such as a read-only memory or random access memory).

[0032] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application;

[0034] Figure 2 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of the structure of a modem provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram of a resource allocation method according to an embodiment of the present invention;

[0037] Figure 5 A schematic diagram of an interface for enabling dual-SIM concurrency provided in an embodiment of the present application;

[0038] Figure 6 A schematic diagram of an interface for enabling a data service provided in an embodiment of the present application;

[0039] Figure 7 A flowchart of a method for allocating modem capabilities provided in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of the structure of a resource allocation device provided in an embodiment of the present application;

[0041] Figure 9 A schematic diagram of the hardware structure of another terminal device provided in an embodiment of the present application;

[0042] Figure 10 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0043] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are merely used to distinguish different values ​​and do not limit their order. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit different values.

[0044] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0045] In this application, "at least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or plural.

[0046] The embodiments of the present application can be applied to wireless communication systems. It should be noted that the wireless communication systems mentioned in the embodiments of the present application include but are not limited to: Global System of Sobile Communication (GSM) system, Code Division Multiple Access (CDMA) system, Wideband Code Division Multiple Access (WCDMA) system, General Packet Radio Service (GPRS), Long Term Evolution (LTE) system, Advanced Long Term Evolution LTE-A (LTE Advanced) system, LTE Frequency Division Duplex (FDD) system, LTE Time Division Duplex (TDD) system, Universal Mobile Telecommunication System (UMTS), etc., fifth generation mobile communication technology (5G) communication system, new radio (NR) communication system and future sixth generation mobile communication technology (6G) Networks (6G) communication systems, Bluetooth systems, Wi-Fi systems, satellite communication systems, device-to-device (D2D) communication systems, machine communication systems, Internet of Vehicles, Internet of Things and even more advanced communication systems.

[0047] For example, Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application. Figure 1In the corresponding embodiment, the communication system involved in the embodiment of the present application mainly includes a network device or a terminal device, and an example is given of the terminal device being a mobile phone. This example does not constitute a limitation on the embodiment of the present application.

[0048] like Figure 1 As shown, the terminal device may include multiple communication cards. For example, the multiple communication cards may all be subscriber identification modules (SIMs), such as SIM1 and SIM2.

[0049] Typically, a terminal device may be a dual-SIM single-standby device, or a dual-SIM dual active (DSDA) device (also known as a dual-SIM concurrent device, or a front-end time-division multiplexing device, etc.), so the terminal device may include two SIM cards, such as SIM1 and SIM2.

[0050] For dual-SIM single-standby devices, it can be understood that the terminal device contains two SIM cards, but can only support one SIM card for business processing at the same time. In a dual-SIM single-standby device, the communication capabilities of the two SIM cards are the same as the communication capabilities of either single SIM card, for example, both SIM cards can enjoy the highest communication capabilities.

[0051] However, dual-SIM single-standby devices cannot support concurrent processing of dual-SIM services.

[0052] Dual-SIM dual-channel devices can be understood as terminals that contain two SIM cards and can simultaneously support services on both cards. In a dual-SIM dual-channel device, the two SIM cards can have different communication capabilities. For example, the primary SIM card can have higher communication capabilities, while the secondary SIM card can have lower communication capabilities. For example, the primary SIM card can support NR services, while the secondary SIM card can support LTE services.

[0053] However, when the primary card is in a scenario with a weak network signal, the network signal affects the primary card's communication quality, resulting in poor communication quality. At the same time, because the secondary card is limited by its communication capabilities, neither the primary card nor the secondary card can achieve good communication quality. Therefore, the difference in communication capabilities between the primary and secondary cards affects the communication efficiency of the dual-card system. Furthermore, when a dual-card dual-communication device uses the primary card, the primary card can report the required communication resources to the network. However, when switching from the primary card to the secondary card, the secondary card needs to re-report the required communication resources to the network. This makes the primary and secondary card switching process time-consuming, thus affecting the communication efficiency of the dual-card system.

[0054] In view of this, an embodiment of the present application provides a resource allocation method, so that the terminal device can match appropriate communication resources for the main card and the secondary card according to whether the data service is processed in the main card, the data service is processed in the secondary card, or the data service is processed in both the main card and the secondary card at the same time. In this way, resource utilization can be maximized when multiple cards concurrently process data services, thereby significantly improving the concurrent processing capability of the terminal device and improving communication efficiency.

[0055] It can be understood that the communication resources may include: resources for supporting LTE services (or simply LTE resources), resources for supporting NR services (or simply NR resources), and modem processing capabilities, etc. Among them, the resources for supporting LTE services and the resources for supporting NR may include: the number of antennas, time domain resources, frequency domain resources, and the number of component carriers (CCs), etc. In the embodiment of the present application, LTE resources are used as the number of CCs, and NR resources are used as the number of CCs as an example for illustration, but this example does not limit the embodiment of the present application.

[0056] It is understandable that the above-mentioned terminal devices may also be referred to as terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. The terminal devices may be mobile phones with touch screens, smart TVs, wearable devices, tablet computers, computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc. The embodiments of this application do not limit the specific technologies and specific device forms used by the terminal devices.

[0057] The above-mentioned network device is a device for communicating with a terminal device, for example, it can be a base station (Base Transceiver Station, BTS) in a GSM system or CDMA, it can also be a base station (NodeB, NB) in a WCDMA system, it can also be an evolved NodeB (eNB or eNodeB) in an LTE system, a transmission reception point (TRP) or a next-generation node (GNB) in a new radio (NR) network, or the network device can be a satellite, a relay station, a drone, an access point, a vehicle-mounted device, a wearable device, a network-side device in a 5G network, a base station, or a network device in a future evolved public land mobile network (PLMN), or a network device in a network integrating other multiple technologies. It should be noted that when the solution of the embodiment of the present application is applied to other systems that may appear in the future, the names of the base station and the terminal may change, but this does not affect the implementation of the solution of the embodiment of the present application.

[0058] For example, Figure 2 This is a schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application. In this embodiment of the present application, the terminal device may include a processor 210, an external memory interface 220, an internal memory 231, a Universal Serial Bus (USB) interface 230, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a sensor module 280, a camera 293, a display 294, and a SIM card interface 295. The processor 210 may include a modem 210A.

[0059] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the terminal device. In other embodiments, the terminal device may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0060] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor (AP), a modem 210A, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). In an embodiment of the present application, the processor 210 may execute the resource allocation method provided in an embodiment of the present application.

[0061] The processor 210 may also include a memory for storing instructions and data.

[0062] In some embodiments, the processor 210 may include one or more interfaces. The 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 USB interface.

[0063] The I2C interface is a bidirectional synchronous serial bus consisting of a serial data line (SDA) and a serial clock line. The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. The UART interface is a universal serial data bus used for asynchronous communication. The MIPI interface can be used to connect the processor 210 to peripheral devices such as the display 294 and the camera 293. The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal.

[0064] The USB interface 230 is an interface that complies with USB standard specifications, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.

[0065] It is understood that the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration and does not constitute a structural limitation on the terminal device. In other embodiments of the present application, the terminal device may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0066] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, Modem 210A and baseband processor.

[0067] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0068] The mobile communication module 250 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for terminal devices. The mobile communication module 250 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. In some embodiments, at least some of the functional modules of the mobile communication module 250 may be located within the processor 210. In some embodiments, at least some of the functional modules of the mobile communication module 250 and at least some of the modules of the processor 210 may be located within the same device.

[0069] Modem 210A may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate 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 passed to the application processor. The application processor outputs audio signals through an audio device (including but not limited to speakers, receivers, etc.) or displays images or videos on the display screen 294. In some embodiments, modem 210A may be a standalone device. In other embodiments, modem 210A may be independent of processor 210 and housed in the same device as mobile communication module 250 or other functional modules.

[0070] In an embodiment of the present application, the modem 210A can dynamically adjust LTE resources, NR resources, and modem processing capabilities based on data services. The modem 210A can include at least one virtual modem, which can be used to support data services of at least one SIM. The number of virtual modems in the modem 210A can be set by the terminal device at the factory.

[0071] The wireless communication module 260 can provide wireless communication solutions applied to terminal devices, including Wireless Local Area Networks (WLAN) (such as Wireless Fidelity (Wi-Fi) network), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), infrared technology (IR), etc.

[0072] In some embodiments, antenna 1 of the terminal device is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, so that the terminal device can communicate with a network and other devices via wireless communication technologies. The wireless communication technologies 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. 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 the Satellite Based Augmentation System (SBAS).

[0073] Display screen 294 is used to display images, videos, and the like. Display screen 294 includes a display panel. A series of graphical user interfaces (GUIs) can be displayed on the terminal device's display screen 294, serving as the terminal device's main screen. The terminal device can implement a camera function using the ISP, camera 293, video codec, GPU, display screen 294, and application processor.

[0074] The camera 293 is used to capture static images or videos. In some embodiments, the terminal device may include 1 or N cameras 293, where N is a positive integer greater than 1.

[0075] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device.

[0076] The internal memory 231 may be used to store computer executable program codes, where the executable program codes include instructions.

[0077] The terminal device may include an audio module 270, which may include: a speaker, a receiver, a microphone, an earphone interface, and an application processor to implement audio functions such as music playback and recording.

[0078] The terminal device may include a sensor module 280, which may include: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc. In the embodiment of the present application, the acceleration sensor and the gyroscope sensor, etc. can be used to detect the motion state of the terminal device; the touch sensor is used to receive a user's touch operation on the touch screen.

[0079] The SIM card interface 295 is used to connect a SIM card. The SIM card can be connected to or separated from the terminal device by inserting it into or removing it from the SIM card interface 295. The terminal device can support 1 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, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 295 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 295 can also be compatible with different types of SIM cards. The SIM card interface 295 can also be compatible with external memory cards. The terminal device interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device and cannot be separated from the terminal device.

[0080] In addition, an operating system runs on the above components, such as the iOS operating system, the Android operating system, or the Windows operating system. Application programs can be installed and run on the operating system.

[0081] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other. For the same or similar concepts or processes, some embodiments may not be described in detail.

[0082] In an embodiment of the present application, the terminal device can match appropriate NR resources and LTE resources for the primary card and the secondary card according to whether the data service is processed in the primary card, the data service is processed in the secondary card, or the data service is processed in both the primary card and the secondary card. For example, when the data service is processed in the primary card, the terminal device can match appropriate NR resources and LTE resources for the primary card; or, when the data service is processed in the secondary card, the terminal device can match appropriate NR resources and LTE resources for the secondary card; or, when the data service is processed in the secondary card and the primary card at the same time, the terminal device can dynamically match appropriate NR resources and LTE resources for both the primary card and the secondary card.

[0083] When a single SIM card of a terminal device accesses LTE, the maximum number of CCs supported by the single SIM card is N. When a single SIM card of a terminal device accesses NR, the maximum number of CCs supported by the single SIM card is M.

[0084] When a terminal device uses dual SIM cards for LTE (or NR), both the primary and secondary SIM cards must guarantee at least one CC that can support services. This CC can be used to support calls and basic data services. The remaining CCs in the LTE (or NR) resources can be dynamically used in the modem corresponding to the primary SIM card or the modem corresponding to the secondary SIM card. N is greater than or equal to 1, M is greater than or equal to 1, and the CC that can support at least one service can be 1 (or simply 1CC).

[0085] For example, when a terminal device uses dual SIM cards to access LTE, the terminal device's primary SIM card can guarantee at least 1 CC, and the terminal device's secondary SIM card can guarantee at least 1 CC. If the maximum number of CCs supported by the terminal device is N, then the remaining number of CCs supported by the terminal device is N-2. It is understandable that due to differences in the modem architecture in the terminal device, when the terminal device accesses LTE to process data services, the number of CCs that can be dynamically used in the modem corresponding to the primary or secondary SIM card is less than N-2.

[0086] When a terminal device uses dual SIM cards to access NR, the primary SIM card of the terminal device can guarantee at least 1 CC, and the secondary SIM card of the terminal device can guarantee at least 1 CC. If the maximum number of CCs supported by the terminal device is M, the number of CCs that the remaining terminal device can support is M-2. It is understandable that due to the differences in the modem architecture in the terminal device, when the terminal device accesses NR to process data services, the number of CCs that can be dynamically used in the modem corresponding to the primary or secondary SIM card is less than M-2.

[0087] In one implementation, when a terminal device includes multiple modems, for example, two modems, the terminal device allocates 1 CC to each modem for accessing LTE or NR. Therefore, the terminal device reserves N-2 CCs for accessing LTE and M-2 CCs for accessing NR. Under this condition, when accessing LTE, the number of CCs supported by the terminal device's SIM card can be: 1 + (N-2); when accessing NR, the number of CCs supported by the terminal device's SIM card can be: 1 + (M-2).

[0088] In another implementation, when a terminal device includes multiple modems, for example, three modems, the number of CCs allocated to each modem for LTE or NR access can be 1. In this case, the number of CCs reserved for LTE access is N-3, and the number of CCs reserved for NR access is M-3. Under this condition, when accessing LTE, the number of CCs supported by the terminal device's SIM card can be: 1 + (N-3); when accessing NR, the number of CCs supported by the terminal device's SIM card can be: 1 + (M-3).

[0089] For example, Figure 3 This is a schematic diagram of the structure of a Modem provided in an embodiment of the present application. Figure 3 As shown, the modem module of the terminal device may include multiple modems, for example, Modem1, Modem2, and Modem3.

[0090] like Figure 3 As shown, the terminal device includes multiple SIM cards, such as a primary card SIM1 and a secondary card SIM2. Modem1 can read the SIM card information in SIM1 through the SIM card slot, and Modem2 can read the SIM card information in SIM2 through the card slot. When the terminal device uses SIM1 and / or SIM2 to perform data services, Modem1 and / or Modem2 can dynamically allocate LTE resources and NR resources by monitoring the data services of the primary and secondary cards. In a possible implementation, Modem3 can also dynamically allocate LTE resources and NR resources by monitoring the data services of the primary and secondary cards.

[0091] It is understandable that the number of modems in the modem module can be multiple, and this is not limited in the embodiments of the present application.

[0092] For example, Table 1 is a schematic table of resource allocation for LTE and NR provided in an embodiment of the application. For different service scenarios, the terminal device can refer to the table below to allocate Modem resources.

[0093] As shown in Table 1, the terminal device may include multiple modems. For example, the terminal device may include: Modem1 (or M1, which may correspond to the main card) and Modem2 (or M2, which may correspond to the secondary card).

[0094] In a possible implementation, the terminal device may further include a Modem 3 (or M3), which may be optional. As shown in Table 1, x is greater than or equal to 0, and y is greater than or equal to 0.

[0095] Table 1 Schematic diagram of resource allocation for LTE and NR

[0096]

[0097] As shown in Solution 1 in Table 1, the terminal device includes M1 and M2, and M1 performs data services. When the terminal device accesses LTE, the number of CCs supported by M1 is: 1+(N-2), and the number of CCs supported by M2 can be 1. Alternatively, when the terminal device accesses NR, the number of CCs supported by M1 is: 1+(M-2), and the number of CCs supported by M2 can be 1. Both M1 and M2 can support 5G, 4G, 3G, and 2G data services. For example, when the 5G network quality is poor, both M1 and M2 can use 4G, 3G, or 2G to perform data services.

[0098] It can be understood that when M1 performs data services and the terminal device accesses LTE, the terminal device can load the resources reserved when accessing LTE onto M1; or, when M1 performs data services and the terminal device accesses NR, the terminal device can load the resources reserved when accessing NR onto M1.

[0099] It is understandable that for other solutions in Table 1, reference can be made to the description of Solution 1 in Table 1, which will not be repeated here.

[0100] It can be understood that when the terminal device contains one SIM card, when the single card of the terminal device accesses LTE, the maximum number of CCs supported by the single card is N, and when the single card of the terminal device accesses NR, the maximum number of CCs supported by the single card is M.

[0101] For example, the resource allocation of LTE and NR shown in Table 1 is as follows: Figure 4 A schematic diagram of a resource allocation method provided in an embodiment of the present application, wherein the resource may include LTE resources and NR resources. Figure 4 In the corresponding embodiment, an example is given in which the terminal device includes dual SIM cards and any SIM card can correspond to one Modem. This example does not constitute a limitation on the embodiments of the present application.

[0102] In a possible implementation, the terminal device may also include three SIM cards, etc., and the LTE resources and NR resources allocation method in the SIM cards can be analogous to Figure 4 The description in the corresponding embodiments will not be repeated hereafter.

[0103] like Figure 4 As shown, the resource allocation method may include the following steps:

[0104] S401: When the terminal device receives a power-on operation, the terminal device determines the number of current SIM cards.

[0105] The power-on operation may be a triggering operation on a power-on button.

[0106] In possible implementations, the trigger conditions for the terminal device to determine the current number of SIM cards may include: a trigger operation, voice operation, or gesture operation for a control used to restart the terminal device; or, when the terminal device is in flight mode, a trigger operation for a control used to turn off flight mode, etc. This is not limited in the embodiments of the present application.

[0107] For example, when the terminal device receives a trigger operation on a power button by the user, the terminal device is powered on and determines the number of current SIM cards through a modem, for example, whether the number of SIM cards is 1 or 2.

[0108] When the terminal device determines that the current number of SIM cards is 1, the terminal device may execute the step shown in S402; or, when the terminal device determines that the current number of SIM cards is 2, the terminal device may execute the step shown in S403.

[0109] S402. The maximum number of CCs reported by the terminal device when accessing LTE is N, and the maximum number of CCs reported when accessing NR is M.

[0110] For example, the modem in the terminal device can report the maximum number of CCs when accessing LTE or NR to the network device based on the signaling supported in the 3rd Generation Partnership Project (3GPP) protocol.

[0111] In a possible implementation, the terminal device can report the LTE capability of the terminal device based on the signaling involved in 36.331 in 3GPP, and report the NR capability of the terminal device based on the signaling involved in 38.331 in the 3GPP protocol. This is not specifically limited in the embodiments of the present application.

[0112] Specifically, the example of the terminal device reporting NR capabilities is used for illustration, and this example does not constitute a limitation on the embodiments of the present application. For example, the terminal device can report NR capabilities and other UE-related capabilities through the terminal device capability (UE Capability), and the UE capability may include: terminal device capability query (UE Capability Enquiry) and terminal device capability information (UE Capability Information).

[0113] The information element of the UE capability information may include one or more of the following fields: Band List, Feature Set Combination, Carrier Aggregation-Parameters EUTRA (CA-Parameters), Carrier Aggregation-Parameters NR (CA-Parameters NR), Multi-RAT Dual Connectivity-Parameters (Mrdc-Parameters), Supported Bandwidth Combination Set (Supported Bandwidth Combination Set), Capability Class v1530 (PowerClass-v1530), etc. In addition, the CA-Parameters EUTRA, CA-Parameters NR, MRDC-Parameters, Supported Bandwidth Combination Set, and Power Class-v1530 may be optional.

[0114] S403: The terminal device determines whether it supports dual-SIM card concurrency.

[0115] In an embodiment of the present application, the dual-SIM card concurrency capability of the terminal device may be pre-set at the factory, or the ability to support dual-SIM cards may also be set by the user in the terminal device.

[0116] In one implementation, a terminal device may be provided with an identifier indicating whether the device supports dual-SIM concurrency when it leaves the factory. For example, when the terminal device performs a dual-SIM concurrency test, the terminal device may determine whether the terminal device supports dual-SIM concurrency based on the identifier. For example, if the terminal device determines that the identifier is 1, the terminal device may determine that the device supports dual-SIM concurrency; or, if the terminal device determines that the identifier is 0, the terminal device may determine that the device does not support dual-SIM concurrency.

[0117] It is understandable that the embodiments of the present application do not limit the specific form of the identifier used to indicate whether the device supports dual-SIM concurrent use.

[0118] In another implementation, based on the terminal device having dual-SIM concurrent capability, the terminal device can also support the user to enable or disable the dual-SIM concurrent capability. Figure 5 This is a schematic diagram of an interface for enabling dual-SIM concurrent use provided in an embodiment of the present application. Figure 5 In the corresponding embodiment, a mobile phone as a terminal device is used as an example for illustration, and this example does not constitute a limitation on the embodiments of the present application.

[0119] When the terminal device receives the user's downward sliding operation along the upper edge of the terminal device display screen, the terminal device may display the following Figure 5 The interface shown in a can display: time information, a control for indicating whether the WLAN function is turned on or off, a control for indicating whether the Bluetooth function is turned on or off, a control for indicating whether the mobile data function is turned on or off, a control for indicating whether the ringing function is turned on or off, a control for indicating whether the automatic rotation function is turned on or off, and a control 501 for opening the settings function, etc.

[0120] In such Figure 5 In the interface shown in a, when the terminal device receives the user's operation on the control 501 for opening the setting function, the terminal device can display the following Figure 5 b shows the interface. Figure 5 As shown in FIG. 2 , the interface may display function controls corresponding to the setting functions, such as a text box for searching for setting items, a control for logging in to an account, a control for setting WLAN, a control for setting Bluetooth, a control 502 for setting a mobile network, a control for setting a hyperterminal, and a control for setting more connections, etc. The logged-in account may be 1234567XXXX.

[0121] In a possible implementation, the terminal device may also enter a state such as a state where the user triggers a control for opening a setting function in another interface. Figure 5 b shows the control corresponding to the setting function. For example, the user can also open the setting interface by triggering the control corresponding to the setting function in the desktop state of the terminal device, which is not limited in the embodiment of the present application.

[0122] In such Figure 5 In the interface shown in b, when the terminal device receives the user's operation on the control 502 for setting the mobile network, the terminal device can display the following Figure 5 The interface shown in c. Figure 5As shown in c, the interface can display functional controls corresponding to the mobile network, such as: controls for turning on airplane mode, controls for setting mobile data, controls 503 for SIM card management, controls for setting personal hotspots, and controls for traffic management, etc.

[0123] In such Figure 5 In the interface shown in c, when the terminal device receives the user's operation on the control 503 for SIM card management, the terminal device can display the following Figure 5 d shown in the interface. Figure 5 As shown in Figure d, the interface may display: Card 1 in the inserted card state, Card 2 in the inserted card state, controls for setting the default mobile data, controls for setting the default dial card, controls for setting call forwarding between dual cards, and controls 504 for enabling dual-card concurrency. Card 1 may correspond to the mobile phone number 1234567XXXX, and Card 1 may provide the terminal device with a 5G / 4G / 3G / 2G network under the XX mobile manufacturer; Card 2 may correspond to the mobile phone number 1234569XXXX, and Card 1 may provide the terminal device with a 5G / 4G / 3G / 2G network under the XX mobile manufacturer; the default mobile data may correspond to Card 1 or Card 2.

[0124] In such Figure 5 In the interface shown in FIG4 , when the terminal device receives the user's operation on the control 504 for enabling the dual-SIM concurrent function, the terminal device may execute the step shown in S405. The operation on the control may be a click operation, a touch operation, or a press operation on the control, which is not limited in the embodiment of the present application.

[0125] It is understandable that when the terminal device determines that the device does not support dual-SIM concurrency, the terminal device can execute the step shown in S404; or, when the terminal device determines that the device supports dual-SIM concurrency, the terminal device can execute the step shown in S405.

[0126] S404. The maximum number of CCs reported by the dual SIM cards of the terminal device when accessing LTE is N, and the maximum number of CCs reported when accessing NR is M.

[0127] It is understandable that since the terminal device does not support dual-SIM concurrency, the terminal device can only support one SIM to perform data services at a time. Therefore, the terminal device can report the maximum number of CCs when accessing LTE or NR for the dual cards separately, so that the SIM card using data services can maximize resource utilization.

[0128] S405. The maximum number of CCs reported by the dual SIM cards of the terminal device when accessing LTE is 1+(N-2), and the maximum number of CCs reported when accessing NR is 1+(M-2).

[0129] It can be understood that when the dual cards of the terminal device access LTE (or NR), the main card and the secondary card of the terminal device can both guarantee a number of CCs that can at least meet the business needs. The number of CCs in the remaining LTE (or NR) resources can be dynamically used in the modem corresponding to the main card, or in the modem corresponding to the secondary card.

[0130] For example, when the terminal device accesses LTE, the maximum number of CCs that can be reported by both SIM cards of the terminal device can be: 1+(N-2); when the terminal device accesses NR, the maximum number of CCs that can be reported by both SIM cards of the terminal device can be: 1+(M-2).

[0131] It can be understood that, affected by the modem architecture, due to the differences in the modem architecture in the terminal device, when the terminal device accesses LTE to process data services, the number of CCs that can be dynamically used in the modem corresponding to the main card or the secondary card is less than N-2; or, when the terminal device accesses NR to process data services, the number of CCs that can be dynamically used in the modem corresponding to the main card or the secondary card is less than M-2.

[0132] S406: The terminal device determines the source of the data service.

[0133] In an embodiment of the present application, when the terminal device determines that the condition that the primary card has data services is currently met, the terminal device can execute the steps shown in S407; or, when the terminal device determines that the condition that the secondary card has data services is currently met, the terminal device can execute the steps shown in S408; or, when the terminal device determines that the condition that both the primary card and the secondary card have data services is currently met, the terminal device can execute the steps shown in S409.

[0134] Exemplarily, the terminal device may determine whether the terminal device meets the requirements of the primary card according to the activation (or deactivation) status of data services of the primary card and the secondary card by the user. Figure 6 A schematic diagram of an interface for enabling data services provided in an embodiment of the present application.

[0135] like Figure 6As shown, when the dual-card concurrency capability is turned on, when the terminal device receives the user's operation to turn on the control 601 corresponding to card 1, the terminal device can determine that the current card 1 has a data service. At this time, card 1 can be understood as the main card and card 2 can be understood as the secondary card; or, when the terminal device only receives the user's operation to turn on the control 602 corresponding to card 2, the terminal device can determine that the current card 2 has a data service. At this time, card 2 can be understood as the main card and card 1 can be understood as the secondary card; or, when the terminal device receives the user's operation to turn on the control 601 corresponding to card 1 and the operation to turn on the control 602 corresponding to card 2, the terminal device can determine that both the current card 1 and card 2 have data services.

[0136] S407. The terminal device allocates the reserved LTE resources and NR resources to the primary card.

[0137] For example, when the terminal device accesses LTE, the number of CCs supported by the main card is: 1+(N-2), and the number of CCs supported by the secondary card can be 1; or, when the terminal device accesses NR, the number of CCs supported by the main card is: 1+(M-2), and the number of CCs supported by the secondary card can be 1.

[0138] S408. The terminal device allocates the reserved LTE resources and NR resources to the secondary card.

[0139] For example, when the terminal device accesses LTE, the number of CCs supported by the secondary card is: 1+(N-2), and the number of CCs supported by the primary card can be 1; or, when the terminal device accesses NR, the number of CCs supported by the secondary card is: 1+(M-2), and the number of CCs supported by the primary card can be 1.

[0140] S409. The terminal device dynamically allocates LTE resources and NR resources according to the network status.

[0141] In one implementation, when both the primary and secondary SIM cards of a terminal device include data services, the terminal device can dynamically load LTE resources and NR resources based on the network status of the terminal device's location. For example, when the terminal device determines that the network status of the current primary SIM card is better than that of the secondary SIM card, the terminal device can allocate most of the reserved LTE and NR resources to the primary SIM card and a small portion of the reserved LTE and NR resources to the secondary SIM card.

[0142] In another implementation, when both the primary and secondary SIM cards of a terminal device contain data services, the terminal device can dynamically load LTE resources and NR resources based on the terminal device's traffic situation. For example, when the terminal device determines that the current traffic of the primary SIM card is greater than the traffic of the secondary SIM card, the terminal device can allocate most of the reserved LTE resources and NR resources to the primary SIM card and a small portion of the reserved LTE resources and NR resources to the secondary SIM card.

[0143] In another implementation, when both the primary and secondary cards of the terminal device contain data services, the terminal device can dynamically load LTE resources and NR resources based on the network status of the terminal device's location and the terminal device's traffic situation. The loading process is described above and will not be repeated here.

[0144] Based on this, the terminal device can match the primary and secondary cards with appropriate LTE and NR resources based on the data service conditions that meet the needs of the primary and secondary cards. This can maximize resource utilization when multiple cards concurrently process data services, thereby significantly improving the concurrent processing capabilities of the terminal device and improving communication efficiency.

[0145] In a possible implementation, for a terminal device with limited modem processing capabilities, for example, when the dual cards of the terminal device are used concurrently, the LTE resources and NR resources of the primary and secondary cards both meet the minimum CC, then the modem of the terminal device does not need to dynamically mount the LTE resources and NR resources, so the modem can divide the modem capabilities based on the data service conditions of the primary and secondary cards.

[0146] For example, Figure 7 A flow chart of a method for allocating Modem capabilities provided in an embodiment of the present application. Figure 7 In the corresponding embodiment, the modem processing capability may include: other capabilities such as the bandwidth capability supported by the modem. In the embodiment of the present application, the modem processing capability is illustrated as the bandwidth capability supported by the modem, and this example does not constitute a limitation on the embodiment of the present application.

[0147] like Figure 7 As shown, the modem capability allocation method may include the following steps:

[0148] S701: When the terminal device receives a power-on operation, the terminal device determines the number of current SIM cards.

[0149] It is understandable that the specific steps of the terminal device determining the number of current SIM cards can be found in the description of the step shown in S401, which will not be repeated here.

[0150] When the terminal device determines that the current number of SIM cards is 1, the terminal device may execute the step shown in S702; or, when the terminal device determines that the current number of SIM cards is 2, the terminal device may execute the step shown in S703.

[0151] S702. The terminal device reports all capabilities of the modem.

[0152] For example, if the number of SIM cards is one and the modem supports a maximum bandwidth of 140 Mbps, the terminal device can report the 140 Mbps bandwidth supported by the single card, i.e., the full capacity of the modem corresponding to the single card. In this scenario, the maximum data rate can be 2 Gbps. It should be understood that the specific values ​​used to represent the modem processing capacity are merely examples and do not limit the embodiments of the present application.

[0153] In a possible implementation, the terminal device may report the Modem capability based on the UE Capability described in the step S402 , and the specific fields involved in the UE Capability will not be described in detail here.

[0154] S703: The terminal device determines whether it supports dual-SIM card concurrency.

[0155] It is understandable that the method for the terminal device to determine whether dual SIM cards are used concurrently can refer to the step shown in S403, which will not be repeated here.

[0156] When the terminal device determines that the device does not support dual-SIM concurrent use, the terminal device may execute the step shown in S704; or, when the terminal device determines that the device supports dual-SIM concurrent use, the terminal device may execute the step shown in S705.

[0157] S704. The dual SIM cards of the terminal device report all capabilities of the modem respectively.

[0158] S705. The dual SIM cards of the terminal device report most of the capabilities of the modem respectively.

[0159] For example, when the number of SIM cards is two and the modem supports a maximum bandwidth of 140 Mbps, the two SIM cards in the terminal device each report the maximum capabilities supported by the modem, for example, most of the modem's capabilities, such as 100 Mbps bandwidth reported by each SIM card. It should be understood that the specific values ​​used to represent the modem's processing capabilities are merely examples and do not limit the embodiments of the present application.

[0160] S706: The terminal device determines the source of the data service.

[0161] It is understood that the method for the terminal device to determine the source of the data service can be referred to the step shown in S406, and will not be repeated here. When the terminal device determines that the condition that the primary card has data service is currently met, the terminal device can execute the step shown in S707; or, when the terminal device determines that the condition that the secondary card has data service is currently met, the terminal device can execute the step shown in S708; or, when the terminal device determines that the condition that both the primary card and the secondary card have data service is currently met, the terminal device can execute the step shown in S709.

[0162] S707: The terminal device sets most of the capabilities of the modem on the main card.

[0163] In one implementation, modules such as cores in a modem can be used to provide modem processing capabilities, and any modem can include multiple cores. When a terminal device determines that only the primary card currently has data services, the terminal device can set the majority of the modem processing capabilities to the primary card and a smaller portion of the modem processing capabilities to the secondary card. For example, when a modem includes four cores, the terminal device can use three cores to execute data services for the primary card; if appropriate, the terminal device can use one core to execute data services for the secondary card. The number of cores included in the modem is not specifically limited in the embodiments of the present application.

[0164] In another implementation, when the maximum running score supported by a single modem card is 15,000, and the terminal device determines that only the primary card currently supports data services, the running score of the primary card of the terminal device can be 10,000, and the running score of the secondary card of the terminal device can be 3,000. The running score can be used to indicate the performance and smoothness of the terminal device during operation, with a higher running score indicating better performance.

[0165] In another implementation, when the modem can support up to 140M bandwidth, when the terminal device determines that only the condition of the main card having data service is currently met, the modem corresponding to the main card of the terminal device can use 100M bandwidth, and the modem corresponding to the secondary card of the terminal device can use 20M bandwidth.

[0166] It is understandable that, due to the influence of the modem architecture, the sum of the capabilities of the two cards in a terminal device may be less than the maximum capability of a single card.

[0167] S708. The terminal device sets most of the capabilities of the modem on the secondary card.

[0168] In one implementation, when the terminal device determines that only the secondary card currently supports data services, the terminal device can allocate the majority of the modem's processing capabilities to the secondary card and allocate a smaller portion of the modem's processing capabilities to the primary card. For example, if the modem includes four cores, the terminal device can utilize three cores to handle data services on the secondary card; alternatively, the terminal device can utilize one core to handle data services on the primary card.

[0169] In another implementation, when the maximum running score that a single modem card can support is 15,000, when the terminal device determines that only the condition that the secondary card has data service is currently met, the running score of the secondary card of the terminal device can be 10,000, and the running score of the main card of the terminal device can be 3,000.

[0170] In another implementation, when the modem can support up to 140M bandwidth, when the terminal device determines that only the secondary card has data service conditions, the modem corresponding to the secondary card of the terminal device can use 100M bandwidth, and the modem corresponding to the main card of the terminal device can use 20M bandwidth.

[0171] S709: The terminal device dynamically allocates the capabilities of the modem according to the network status.

[0172] In the embodiment of the present application, the terminal device can dynamically load the modem processing capability based on the network status and / or the traffic conditions of the primary and secondary cards in the terminal device. The specific loading process of the modem processing capability can be referred to the dynamic loading process for LTE resources and NR resources in the step shown in S409, which will not be repeated here.

[0173] Based on this, the terminal device can match the appropriate modem capabilities for the primary and secondary cards based on the data service conditions that meet the needs of the primary and secondary cards. This can maximize resource utilization when multiple cards concurrently process data services, thereby significantly improving the concurrent processing capabilities of the terminal device and improving communication efficiency.

[0174] It will be understood that the interface described in the embodiments of the present application is merely an example and does not constitute a limitation on the embodiments of the present application.

[0175] Combined with the above Figure 3-Figure 7 , the method provided in the embodiment of the present application is described, and the device for executing the above method provided in the embodiment of the present application is described below. Figure 8 As shown, Figure 8 A structural diagram of a resource allocation device provided in an embodiment of the present application. The resource allocation device can be a terminal device in an embodiment of the present application, or a chip or chip system in the terminal device.

[0176] like Figure 8 As shown, a resource allocation apparatus 80 can be used in a communication device, circuit, hardware component, or chip, and includes a display unit 801, a processing unit 802, and a communication unit 803. The display unit 801 is used to support the display step performed by the resource allocation method; the processing unit 802 is used to support the resource allocation apparatus in performing the information processing step; and the communication unit 803 is used to support the data transmission and data reception steps performed by the resource allocation method.

[0177] In a possible embodiment, the communication unit 803 may be an input or output interface, a pin, or a circuit.

[0178] In a possible embodiment, the resource allocation apparatus may further include: a storage unit 804. The processing unit 802, the communication unit 803, and the storage unit 804 are connected via a line.

[0179] The storage unit 804 may include one or more memories, and the memory may be a device in one or more devices or circuits for storing programs or data.

[0180] The storage unit 804 can exist independently and be connected to the processing unit 802 of the resource allocation device via a communication line. The storage unit 804 can also be integrated with the processing unit 802.

[0181] The storage unit 804 may store computer-executable instructions of the method in the terminal device, so as to enable the processing unit 802 to execute the method in the above embodiment.

[0182] The storage unit 804 may be a register, cache, or RAM, and may be integrated with the processing unit 802. The storage unit 804 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, and may be independent of the processing unit 802.

[0183] Figure 9 A schematic diagram of the hardware structure of another terminal device provided in an embodiment of the present application is shown as follows: Figure 9 As shown, the terminal device includes a processor 901, a communication line 904 and at least one communication interface ( Figure 9 The communication interface 903 is used as an example for explanation).

[0184] The processor 901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0185] Communications link 904 may include circuitry to transmit information between the aforementioned components.

[0186] The communication interface 903 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.

[0187] Possibly, the terminal device may further include a memory 902 .

[0188] The memory 902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, a random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto. The memory may be independent and connected to the processor via a communication line 904. The memory may also be integrated with the processor.

[0189] The memory 902 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 901. The processor 901 is used to execute the computer-executable instructions stored in the memory 902, thereby implementing the method provided by the embodiment of the present application.

[0190] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.

[0191] In a specific implementation, as an embodiment, the processor 901 may include one or more CPUs, such as Figure 9 CPU0 and CPU1 in.

[0192] In a specific implementation, as an embodiment, the terminal device may include multiple processors, such as Figure 9901 and processor 905 in FIG. Each of these processors can be a single-CPU processor or a multi-CPU processor. A processor herein can refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0193] For example, Figure 10 A schematic diagram of the structure of a chip provided in an embodiment of the present application: The chip 100 includes one or more (including two) processors 1020 and a communication interface 1030 .

[0194] In some embodiments, the memory 1040 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.

[0195] In the embodiment of the present application, the memory 1040 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1020. A portion of the memory 1040 may also include a non-volatile random access memory (NVRAM).

[0196] In the embodiment of the present application, the memory 1040, the communication interface 1030 and the memory 1040 are coupled together via the bus system 1010. In addition to the data bus, the bus system 1010 may also include a power bus, a control bus and a status signal bus. Figure 10 Various buses are labeled as bus system 1010.

[0197] The methods described in the above embodiments of the present application can be applied to the processor 1020 or implemented by the processor 1020. The processor 1020 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in the processor 1020 or by instructions in the form of software. The above processor 1020 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. The processor 1020 can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention.

[0198] The steps of the method disclosed in the embodiments of this application can be directly implemented and executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium well-established in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). The storage medium is located in memory 1040, and processor 1020 reads the information in memory 1040 and, in conjunction with its hardware, completes the steps of the method described above.

[0199] In the above embodiment, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory or downloaded and installed in the memory in the form of software.

[0200] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are fully or partially 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 website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be stored by a computer or a data storage device such as a server or data center that includes one or more available media. For example, available media can include magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state drives (SSDs)).

[0201] The present application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part via software, hardware, firmware, or any combination thereof. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one location to another. The storage medium can be any target medium that can be accessed by a computer.

[0202] As one possible designation, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may include magnetic disk storage or other magnetic disk storage devices. Furthermore, any connection may also be appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically, while discs reproduce data optically using lasers.

[0203] The above combinations are also included within the scope of computer-readable media. The above are only specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.

Claims

1. A resource allocation method, characterized in that: Applied to a terminal device, the method includes: receiving a first operation directed to the terminal device; In response to the first operation, the terminal device reports available communication resources to the network device based at least on the number of communication cards and the network standard of the communication card accessing the network, where the available communication resources include: first resources for supporting long term evolution LTE services and second resources for supporting new radio interface NR services; The terminal device determines a target communication card for performing data services; when the target communication card includes a first communication card and a second communication card, dynamically adjusts and allocates communication resources to the target communication card.

2. The method according to claim 1, characterized in that The available communication resources also include the processing capability of a modem processor.

3. The method according to claim 2, characterized in that The first resource includes a first component carrier CC, the second resource includes a second CC, and the terminal device reports available communication resources to the network device based on at least the number of communication cards and a network standard of a network to which the communication card is connected, including: When the target communication card is a first communication card and the terminal device determines to access an LTE network, the terminal device reports N first CCs for the first communication card to the network device; N is a positive integer; Alternatively, when the target communication card is the first communication card and the terminal device determines to access the NR network, the terminal device reports M second CCs for the first communication card to the network device; M is a positive integer.

4. The method according to claim 3, characterized in that The terminal device reports available communication resources to the network device based on at least the number of communication cards and the network standard of the network to which the communication cards are connected, including: The terminal device reports the available communication resources to the network device according to the number of the communication cards, the network standard of the communication card accessing the network, and the dual-card concurrent status of the terminal device.

5. The method according to claim 4, characterized in that The terminal device reports the available communication resources to the network device according to the number of the communication cards, the network standard of the communication cards accessing the network, and the dual-card concurrent status of the terminal device, including: When the target communication card includes the first communication card and the second communication card, the terminal device accesses the LTE network, and the terminal device is not in the dual-card concurrent state, the terminal device reports N first CCs for the first communication card and the second communication card to the network device respectively; Alternatively, when the target communication card includes the first communication card and the second communication card, the terminal device accesses the NR network, and the terminal device is not in the dual-card concurrent state, the terminal device reports M second CCs to the network device for the first communication card and the second communication card respectively.

6. The method according to claim 4, characterized in that The terminal device reports the available communication resources to the network device according to the number of the communication cards, the network standard of the communication cards accessing the network, and the dual-card concurrent status of the terminal device, including: When the target communication card includes the first communication card and the second communication card, the terminal device accesses the LTE network, and the terminal device is in the dual-card concurrent state, the terminal device reports N-1 first CCs for the first communication card and the second communication card to the network device respectively; Alternatively, when the target communication card includes the first communication card and the second communication card, the terminal device accesses the NR network, and the terminal device is in the dual-card concurrent state, the terminal device reports M-1 second CCs to the network device for the first communication card and the second communication card respectively.

7. The method according to claim 6, characterized in that The terminal device allocates communication resources to the target communication card, including: When the terminal device determines that the data service comes from the first communication card and the terminal device accesses the LTE network, the terminal device allocates a maximum of N-1 first CCs to the first communication card and allocates 1 first CC to the second communication card; Alternatively, when the terminal device determines that the data service comes from the first communication card and the terminal device accesses the NR network, the terminal device allocates a maximum of M-1 second CCs to the first communication card and allocates 1 second CC to the second communication card.

8. The method according to claim 6, characterized in that The terminal device allocates communication resources to the target communication card, including: When the terminal device determines that the data service comes from the second communication card and the terminal device accesses the LTE network, the terminal device allocates a maximum of N-1 first CCs to the second communication card and allocates 1 first CC to the first communication card; Alternatively, when the terminal device determines that the data service comes from the second communication card and the terminal device accesses the NR network, the terminal device allocates a maximum of M-1 second CCs to the second communication card and allocates 1 second CC to the first communication card.

9. The method according to claim 6, characterized in that The terminal device allocates communication resources to the target communication card, including: When the terminal device determines that the data service comes from the first communication card and the second communication card, the terminal device allocates communication resources to the first communication card and the second communication card based on the network quality of the first communication card, the network quality of the second communication card, the traffic data of the first communication card, and the traffic data of the second communication card.

10. The method according to claim 9, characterized in that The network quality is directly proportional to and positively correlated with the communication resources; the traffic data is directly correlated with the communication resources.

11. The method according to claim 1, characterized in that The first operation includes at least one or more of the following: an operation for turning on the terminal device, an operation for restarting the terminal device, or an operation for exiting the airplane mode of the terminal device.

12. A resource allocation device, characterized in that: The device comprises a processing unit and a communication unit, The processing unit is configured to receive a first operation directed to the terminal device; In response to the first operation, the communication unit is configured to report available communication resources to the network device based on at least the number of communication cards and the network standard of the network accessed by the communication card, where the available communication resources include: first resources for supporting long term evolution LTE services and second resources for supporting new radio interface NR services; The processing unit is further configured to determine a target communication card for performing data services; and when the target communication card includes a first communication card and a second communication card, dynamically adjust and allocate communication resources to the target communication card.

13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer is caused to perform the method according to any one of claims 1 to 11.

14. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Dual-card dual-standby dual-pass method and device, and storage medium

    CN113259925A