Uplink rate adjustment method and electronic equipment

By discarding the CQI signal of the call card and allocating transmission resources to the data card in the dual-card shared transmission mode, the problem of reduced uplink speed of the data card caused by call services is solved, and data transmission efficiency is improved.

CN121284731APending Publication Date: 2026-01-06HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410868786.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2026-01-06

AI Technical Summary

Technical Problem

In the dual-SIM dual-pass Tx-sharing DSDA mode with dual-SIM shared transmission, the uplink rate of the first SIM card is significantly reduced because the second SIM card is performing call services, which affects the data transmission rate.

Method used

Under certain conditions, the electronic device discards part of the CQI signal from the call card and reallocates transmission resources to the data card to ensure that the uplink rate of the data card is prioritized. The decision to allocate resources is made by detecting the uplink packet error rate and CQI reporting cycle of the call card.

Benefits of technology

It improves data transmission rate, reduces the frequent punching of data cards by uplink packets from the call card, and avoids impacting call quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121284731A_ABST
    Figure CN121284731A_ABST
Patent Text Reader

Abstract

The invention provides an uplink rate adjusting method and electronic equipment, and relates to the field of communication. The invention provides an uplink rate adjustment method, which is applied to electronic equipment, the electronic equipment is in a dual-card bi-pass Tx-sharing DSDA mode of dual-card shared transmission, and the method comprises the following steps: when detecting that an uplink packet to be sent by a call card in a current time slot is a channel quality indicator (CQI) and a data card has the uplink packet to be sent in the current time slot, sending the uplink packet to the call card; under the condition that the first condition is met, the transmitting resource is distributed to the data card, the call card is a subscriber identity module (SIM) card executing call service, and the data card is an SIM card executing data service. By adopting the method provided by the invention, when the electronic equipment is in the Tx-sharing DSDA mode, the uplink rate of the data card can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and more particularly to a method and electronic device for adjusting uplink speed. Background Technology

[0002] Mobile terminals (such as mobile phones) typically support dual SIM modes. Dual SIM modes include: Dual SIM Dual Standby (DSDS), Dual Receive Dual SIM Dual Standby (DR-DSDS), and Dual SIM Dual Active (DSDA). DSDS mode means the electronic device can insert two SIM cards, and both SIM cards can be in standby mode simultaneously. DR-DSDS mode means that only one SIM card in the electronic device is connected, but both SIM cards have receiving capabilities. DSDA mode means that both SIM cards in the electronic device are connected, with one SIM card handling data services and the other handling voice calls. In short, the mobile terminal can support simultaneous sending or receiving of data using both SIM cards.

[0003] DSDA mode can be further divided into dual-SIM full-concurrent DSDA mode and dual-SIM shared transmission (Tx-sharing DSDA) mode. Dual-SIM full-concurrent means that the two SIM cards transmit signals separately through independent transmission resources, while dual-SIM shared transmission means that the two SIM cards reuse (e.g., time-division multiplexing) the same transmission resource to transmit signals.

[0004] However, when the phone is in Tx-sharing DSDA mode, the uplink speed of the first SIM card is reduced. In this mode, the first SIM card performs data services, while the second SIM card performs voice calls. For example, at the first moment, when the first SIM card is performing data services and the second SIM card is not performing either, the uplink speed of the first SIM card is x Mbps; at the second moment, when both the first and second SIM cards are performing data services and the phone is in Tx-sharing DSDA mode, the uplink speed of the first SIM card is x / 4 Mbps. Summary of the Invention

[0005] To address the aforementioned technical problems, this application provides a method and electronic device for adjusting uplink speed, thereby improving the uplink speed of the data card in an electronic device operating in Tx-sharing DSDA mode.

[0006] In a first aspect, the uplink rate adjustment method provided in this application embodiment is applied to an electronic device in a dual-SIM dual-pass Tx-sharing DSDA mode. The method includes: when it is detected that the uplink packet to be transmitted by the call card in the current time slot is a Channel Quality Indicator (CQI) and the data card has an uplink packet to be transmitted in the current time slot, the transmission resources are allocated to the data card if a first condition is met. The call card is a SIM card that performs a call service, and the data card is a SIM card that performs a data service.

[0007] For example, the electronic device can be a mobile phone, tablet computer, or other device that supports dual SIM dual standby.

[0008] For example, when an electronic device is in Tx-sharing DSDA mode, the call card and data card in the electronic device share the same transmission resource for signal transmission. This transmission resource includes: the transmission path inside the RF chip, the antenna switch module (ASM), the power amplifier, the power amplifier's power supply, filters, multi-pass tangent switches, tuners, and antennas.

[0009] For example, when an electronic device is in Tx-sharing DSDA mode, the call card performs call services, such as making and receiving calls; the data card performs data services, such as sending images, text, and video.

[0010] Therefore, since the calling card periodically sends CQI to the base station, and CQI is used by the base station to select the modulation code rate and order, meaning that the CQI does not contain the calling card's call data, in this example, when there is a scenario where the calling card's uplink packet to be transmitted is a CQI and the data card has an uplink packet to be transmitted, under the condition of satisfying the first condition, the transmission resources are allocated to the data card so that the transmission resources can transmit the data card's uplink packet to be transmitted in the current time slot. Since the transmission resources corresponding to the current time slot do not transmit the calling card's uplink packet (CQI) to be transmitted in the current time slot, that is, the electronic device discards the calling card's CQI in the current time slot. This is equivalent to the electronic device confirming that the data card's service priority is higher than the calling card's service priority when the first condition is satisfied. As a result, the electronic device allocates some of the transmission resources used to transmit the calling card's CQI to the data card, increasing the transmission time slots obtained by the data card, reducing the problem of frequent puncturing of the data card's uplink packet by the calling card, and thus improving the uplink rate of the data card. Furthermore, the electronic device discards the CQI in the call card only if the first condition is met. That is, the electronic device discards a portion of the CQI in the call card, which can avoid affecting the call quality of the call card.

[0011] According to the first aspect, the first condition includes: the uplink packet error rate of the call card is less than a preset threshold.

[0012] For example, the preset threshold can be in the range of 8% to 20%, such as 8%, 10%, 12%, etc.

[0013] For example, different frequency band combinations in the Tx-sharing DSDA mode can have their own preset thresholds. For instance, the preset threshold for the N1+B3 frequency band combination is 8%, and the preset threshold for the n41+n78 frequency band combination is 10%. In practical applications, the preset thresholds are not limited to the values ​​exemplified in this example.

[0014] Therefore, in scenarios where the uplink packet to be transmitted on the call card is a CQI and the data card also has uplink packets to be transmitted, the electronic device further determines the uplink packet error rate of the call card. The uplink packet error rate of the call card can be used to measure the service quality of the current call service. When the uplink packet error rate of the call card is lower than a preset threshold, it indicates that the service quality of the current call service is good. In this case, discarding the CQI of the call card will not affect the call service. When the uplink packet error rate of the call card is higher than the preset threshold, there may be problems with the call service. In this case, it is not advisable to discard the CQI to avoid the base station being unable to adjust the modulation order / code rate in time.

[0015] According to the first aspect, the method further includes: obtaining the CQI reporting cycle of the call card; obtaining the uplink packet transmission information of the call card and the uplink packet transmission information of the data card, wherein the uplink packet transmission information of the call card indicates whether the call card has an uplink packet to be transmitted in the current time slot, and the uplink packet transmission information of the data card indicates whether the data card has an uplink packet to be transmitted in the current time slot; and detecting, based on the CQI reporting cycle of the call card, the uplink packet transmission information of the data card, and the uplink packet transmission information of the call card, whether there is an uplink packet of CQI to be transmitted by the call card in the current time slot and an uplink packet to be transmitted by the data card in the current time slot.

[0016] For example, if an electronic device is equipped with a first chip, and the first chip is electrically connected to a radio frequency chip, a modem, a power amplifier, a power supply for the power amplifier, an antenna switch module (ASM), a second multi-pass switch (XSW), and a tuner, the first chip obtains the CQI reporting cycle of the call card and the uplink packet information of the call card and the data card from the modem. Based on the CQI reporting cycle of the call card, the uplink packet transmission information of the data card, and the uplink packet transmission information of the call card, the first chip detects whether there is an uplink packet of CQI to be transmitted by the call card in the current time slot and an uplink packet to be transmitted by the data card in the current time slot.

[0017] For example, if an electronic device is equipped with a first chip, before the first chip obtains the CQI reporting cycle of the call card from the modem, the first chip detects whether the electronic device is in Tx-sharing DSDA mode. When the first chip detects that the electronic device is in Tx-sharing DSDA mode, the first chip turns on an enable switch. The enable switch controls whether the first chip takes over the authority of the RF chip to configure transmission resources. The first chip takes over the authority of the RF chip to configure transmission resources. In this way, it can be ensured that the electronic device will not activate the data card uplink rate adjustment function in other modes, that is, the first chip will not configure transmission resources, thus avoiding the impact on other modes.

[0018] For example, the first chip detects whether an electronic device is in Tx-sharing DSDA mode, including: when the electronic device is in Tx-sharing DSDA mode, the RF chip calls the RF path software parameters corresponding to the Tx-sharing DSDA mode to transmit the identifier of a first event in the RF path software parameters to the first chip. The identifier of the first event is used to indicate that the electronic device is in Tx-sharing DSDA mode; when the first chip detects the identifier of the first event, the first chip determines that the electronic device is in Tx-sharing DSDA mode. Thus, the RF chip stores the correspondence between each mode and the corresponding RF path software parameters. The RF path software parameters corresponding to the Tx-sharing DSDA mode are configured with the identifier of the first event. When the electronic device is in Tx-sharing DSDA mode, the RF chip transmits the identifier of the first event in the RF path software parameters corresponding to the Tx-sharing DSDA mode to the first chip by calling the RF path software parameters corresponding to the Tx-sharing DSDA mode, thereby enabling the first chip to promptly know that the electronic device is in Tx-sharing DSDA mode.

[0019] For example, if the electronic device does not have a first chip, the modem senses the CQI reporting cycle of the call card, the uplink packet transmission information of the data card, and the uplink packet transmission information of the call card. Based on the CQI reporting cycle of the call card, the uplink packet transmission information of the data card, and the uplink packet transmission information of the call card, the modem detects whether there is an uplink packet that the call card has to send in the current time slot that is a CQI and the data card has an uplink packet that has to be sent in the current time slot.

[0020] For example, if the electronic device does not have a first chip, before the modem obtains the CQI reporting cycle of the call card, the modem senses whether the electronic device is in Tx-sharing DSDA mode. When the modem senses that the electronic device is in Tx-sharing DSDA mode, the modem activates the first function, which is the uplink rate adjustment function of the data card. This ensures that the electronic device will not activate the uplink rate adjustment function of the data card in other modes, that is, it will not allocate transmission resources to the data card when the first condition is met, thus avoiding impact on other modes.

[0021] Therefore, by analyzing the uplink packet transmission information of the electronic device's call card and the uplink packet transmission information of the data card, it can be determined whether the current time slot contains both uplink packets to be transmitted from the call card and the data card; the CQI reporting cycle of the call card can be used to identify whether the uplink packet to be transmitted from the call card is a CQI; this method of judgment is simple and accurate.

[0022] According to the first aspect, based on the CQI reporting cycle of the call card, the uplink packet transmission information of the data card, and the uplink packet transmission information of the call card, it is determined whether there is an uplink packet to be transmitted by the call card in the current time slot that is a CQI and the data card has an uplink packet to be transmitted in the current time slot. This includes: based on the uplink packet transmission information of the call card, detecting whether there is an uplink packet to be transmitted by the call card in the current time slot; when an uplink packet to be transmitted by the call card in the current time slot is detected, detecting whether the uplink packet to be transmitted by the call card in the current time slot is a CQI according to the CQI reporting cycle; when an uplink packet to be transmitted by the call card in the current time slot is detected that is a CQI, detecting whether there is an uplink packet to be transmitted by the data card in the current time slot according to the uplink packet transmission information of the data card; when an uplink packet to be transmitted by the data card in the current time slot is detected, determining that there is an uplink packet to be transmitted by the call card in the current time slot that is a CQI and the data card has an uplink packet to be transmitted in the current time slot.

[0023] Therefore, when an electronic device (such as the first chip or modem of the electronic device) detects that the uplink packet of the call card is CQI, it can then check whether the uplink packet to be sent by the data card needs to be sent in the current time slot, which can reduce unnecessary judgment steps.

[0024] According to the first aspect, the electronic device includes a first chip, which is electrically connected to a modem, a radio frequency (RF) chip, a power amplifier, a power supply for the power amplifier, an antenna switch module (ASM), a second multi-pass switch (XSW), and a tuner. The modem is electrically connected to the RF chip. The call card transmitter of the RF chip is electrically connected to the first terminal of the first XSW, the data card transmitter of the RF chip is electrically connected to the second terminal of the first XSW, the stationary terminal of the first XSW is electrically connected to the input terminal of the power amplifier, the output terminal of the power amplifier is electrically connected to the input of the ASM, the output terminal of the ASM is electrically connected to the input terminal of a filter, the output terminal of the filter is electrically connected to the input terminal of the second XSW, the output terminal of the second XSW is electrically connected to an antenna, the antenna is electrically connected to the tuner, and the power supply is used to power the power amplifier. The data card transmitter is the interface in the RF chip that outputs the RF signal of the data card, and the call card transmitter is the interface in the RF chip that outputs the RF signal of the call card.

[0025] Therefore, the first chip is electrically connected to the modem, RF chip, power amplifier, power supply, first XSW, second XSW, and tuner, enabling the first chip to obtain and configure transmission resources. By incorporating the first chip into the electronic device, modifications to the software modules for allocating transmission resources in existing electronic devices can be reduced, improving the adaptability of the method.

[0026] According to the first aspect, before allocating transmission resources to the data card under the condition of satisfying the first condition, the method further includes: the first chip instructing the radio frequency chip to output the radio frequency signal of the data card from the transmitting end of the data card, and the radio frequency chip controlling the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card; the first chip configuring transmission resources for the data card according to the first control requirement.

[0027] For example, the first control requirement may include information indicating to turn on the power, information indicating to the power amplifier to operate according to the amplification power corresponding to the data card, information indicating to the ASM to select the frequency band corresponding to the data card, information indicating to turn on the second path in the second XSW corresponding to the data card, and information indicating to configure the tuner according to the frequency band where the data card is located.

[0028] Therefore, the first chip obtains the first control requirement from the radio frequency chip. After allocating the transmission resources to the data card, the first chip can set the state of each module in the transmission resources according to the first control requirement, so that the configured transmission resources can transmit the radio frequency signal of the data card. Since the first chip does not need to generate the first control requirement, the power consumption of the first chip is reduced and the accuracy of the first chip in configuring the transmission resources is improved.

[0029] According to the first aspect, the first chip configures the transmission resources for the data card according to the first control requirements, including: the first chip turns on the power supply, which supplies power to the power amplifier; the first chip controls the power amplifier to operate at an amplification power matched to the data card; the first chip controls the ASM to select the frequency band corresponding to the data card; the first chip turns on the second path in the second XSW corresponding to the data card, the second XSW including the first path and the second path, the first path corresponding to the call card and the second path corresponding to the data card; and the first chip configures the tuner according to the frequency band where the data card is located.

[0030] Therefore, the first chip controls each device in the transmission resources according to the first control requirement, thereby opening the transmission path so that the transmission path can transmit the radio frequency signal corresponding to the data card.

[0031] According to the first aspect, the modem in the electronic device is electrically connected to the radio frequency (RF) chip in the electronic device; the call card transmitter of the RF chip is electrically connected to the first terminal of the first XSW, the data card transmitter of the RF chip is electrically connected to the second terminal of the first XSW, and the stationary terminal of the first XSW is electrically connected to the input terminal of the power amplifier, wherein the data card transmitter is the interface in the RF chip that outputs the RF signal of the data card, and the call card transmitter is the interface in the RF chip that outputs the RF signal of the call card; the output terminal of the power amplifier is electrically connected to the input terminal of the antenna switch module (ASM), and the power supply of the power amplifier is electrically connected to the power amplifier; the output terminal of the ASM is electrically connected to the input terminal of the filter; the output terminal of the filter is electrically connected to the input terminal of the second XSW; the... The output terminals of the two XSWs are electrically connected to the antenna, and the antenna is electrically connected to the tuner. Under the condition of satisfying a first condition, the transmission resources are allocated to the data card, including: the modem determining that, under the condition of satisfying the first condition, instructing the RF chip to allocate the transmission resources corresponding to the current time slot to the data card; the RF chip controlling the active terminal of the first XSW to switch to the second terminal in the first XSW corresponding to the data card; the modem generating a first control requirement corresponding to the data card, the first control requirement being information indicating the status of each device in the transmission resources when the transmission resources are allocated to the data card; the modem transmitting the first control requirement to the RF chip through the underlying layer; and the RF chip configuring the transmission resources for the data card according to the first control requirement.

[0032] Therefore, the modem in the electronic device determines to allocate transmission resources to the data card, generates a first control requirement corresponding to the data card, and transmits the first control requirement to the radio frequency chip through the underlying layer, so that the radio frequency chip controls each device in the transmission resources according to the first control requirement.

[0033] According to the first aspect, the radio frequency chip configures transmission resources for the data card according to the first control requirement, including: the radio frequency chip turns on the power supply, which supplies power to the power amplifier; the radio frequency chip controls the power amplifier to operate at an amplification power matched to the data card; the radio frequency chip controls the ASM to select the frequency band corresponding to the data card; the radio frequency chip turns on the second path in the second XSW corresponding to the data card, the second XSW including the first path and the second path, the first path corresponding to the call card and the second path corresponding to the data card; the radio frequency chip configures the tuner according to the frequency band where the data card is located.

[0034] Thus, the RF chip opens the transmission path corresponding to the data card, enabling the transmission path to transmit the RF signal corresponding to the data card.

[0035] Secondly, this application provides a chip system including one or more interface circuits and one or more processors; the interface circuits are used to receive signals from the memory of an electronic device and send signals to the processors, the signals including computer instructions stored in the memory; when the processor executes the computer instructions, it causes the electronic device to perform the uplink rate adjustment method corresponding to the first aspect and any implementation thereof.

[0036] For example, the chip system can be a system composed of individual chips. For instance, the chip system includes a first chip, a modem, and a radio frequency (RF) chip. The first chip in the chip system is electrically connected to the modem and the RF chip; the modem is electrically connected to the RF chip; and the RF chip is electrically connected to an RF front-end and an antenna. The RF front-end may include an XSW, a power amplifier, a power supply, an ASM (Advanced Sensor Modem), a filter, and a tuner.

[0037] For example, the chip system may include a first chip and a system on chip (SOC), the SOC including a modem. The first chip is electrically connected to the modem and the radio frequency (RF) chip, the modem is electrically connected to the RF chip, and the RF chip is electrically connected to an RF front-end and an antenna. The RF front-end may include an XSW, a power amplifier, a power supply, an ASM, a filter, and a tuner.

[0038] For example, the chip system may include a modem and an RF chip. The modem is electrically connected to the RF chip, and the RF chip is electrically connected to an RF front-end and an antenna. The RF front-end may include an XSW, a power amplifier, a power supply, an ASM, a filter, and a tuner.

[0039] For example, the chip system can also be a System-on-a-Chip (SoC) integrating multiple chips, which may include a first chip and a modem. The first chip is electrically connected to the modem and the RF chip, the modem is electrically connected to the RF chip, and the RF chip is electrically connected to the RF front-end and the antenna. The RF front-end may include an XSW, a power amplifier, a power supply, an ASM (Advanced Sensor Modem), a filter, and a tuner.

[0040] For example, the SOC may include a modem. The modem is electrically connected to a radio frequency (RF) chip, which is electrically connected to an RF front-end and an antenna. The RF front-end may include an XSW, a power amplifier, a power supply, an ASM (Advanced Sensor Modem), a filter, and a tuner.

[0041] According to the second aspect, the chip system includes a first chip, which is used to control radio frequency resources when the electronic device is in the dual-card dual-pass Tx-sharing DSDA mode of dual-card shared transmission.

[0042] The second aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the second aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0043] Thirdly, this application provides an electronic device, including: one or more processors, the processors including a modem; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when the computer programs are executed by the one or more processors, the electronic device performs the uplink rate adjustment method corresponding to the first aspect and any implementation thereof.

[0044] The third aspect and any implementation thereof correspond to the first aspect and any implementation thereof, respectively. The technical effects of the third aspect and any implementation thereof are similar to those of the first aspect and any implementation thereof, and will not be repeated here.

[0045] Fourthly, this application provides a computer-readable medium including a computer program that, when run on an electronic device, causes the electronic device to perform the uplink rate adjustment method corresponding to the first aspect and any implementation thereof. Attached Figure Description

[0046] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0047] Figure 1 This is an exemplary schematic diagram of a scenario in a mobile phone where the first SIM card performs data services and the second SIM card performs call services;

[0048] Figure 2 This is an exemplary hardware structure diagram of an electronic device;

[0049] Figure 3 This is a schematic diagram illustrating the structure of a mobile communication module;

[0050] Figure 4 This is an exemplary schematic diagram showing an electronic device reporting CQI to a base station;

[0051] Figure 5 This is an exemplary structural diagram of the uplink frame of the call card and data card;

[0052] Figure 6 This is an exemplary schematic diagram showing the punching of uplink frames by the call card onto the data card;

[0053] Figure 7 This is a schematic diagram illustrating the structure of a mobile communication module;

[0054] Figure 8 This is an example diagram illustrating the interaction between modules when an electronic device performs an uplink rate adjustment method;

[0055] Figure 9 This is an example diagram illustrating the interaction between the first chip and the launch resources;

[0056] Figure 10 This is an illustrative diagram showing an image uploaded to a data card;

[0057] Figure 11 This is a schematic diagram illustrating the structure of a mobile communication module;

[0058] Figure 12 This is an example diagram illustrating the interaction between modules when an electronic device performs an uplink rate adjustment method;

[0059] Figure 13 This is an exemplary diagram illustrating the interaction between the modem and the transmission resource. Detailed Implementation

[0060] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

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

[0062] The terms "first" and "second," etc., used in the specification and claims of this application are used to distinguish different objects, not to describe a specific order of objects. For example, "first target object" and "second target object," etc., are used to distinguish different target objects, not to describe a specific order of target objects.

[0063] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0064] Before providing a detailed explanation of the embodiments of this application, some of the technical terms involved in this application will be explained first.

[0065] (1) Transmission resources: Transmission resources in Tx-sharing DSDA mode include the transmit (Tx) link inside the radio frequency integrated circuit (RFIC), the data interface of the radio transceiver (RFIC / SDR port), the power amplifier (PA), the antenna switch module (ASM), the power supply of the PA, the multi-pass switch XSW, the tuner, and the antenna.

[0066] When the voice card and data card transmit signals, if any one of the following transmission resources in the RFIC is the same: Tx link, RFIC / SDR port, PA, power supply, ASM, XSW, tuner, and available antenna, it belongs to the DSDA mode of shared transmission between the data card and the voice card.

[0067] First, the application scenarios of the embodiments of this application will be described with reference to the accompanying drawings. In this application, the electronic device can be a mobile phone, tablet computer, etc. For ease of description, a mobile phone is used as an example in the embodiments of this application.

[0068] Figure 1 This is an illustrative diagram of a scenario in a mobile phone where the first SIM card performs data services and the second SIM card performs call services.

[0069] For example, user C's mobile phone 100 supports DSDA mode. The mobile phone 100 has two SIM cards installed, a first SIM card and a second SIM card. The first SIM card in mobile phone 100 performs data services, enabling the chat software on mobile phone 100 to exchange information with user A's chat software. See also... Figure 1 As shown in 1a, the display interface of mobile phone 100 shows the chat interface 101 of a chat software. Chat interface 101 includes message boxes and a soft keyboard 102. The soft keyboard 102 includes multiple function controls, such as... Figure 1 As shown in Figure 1a, the software disk 102 includes controls for photo album, location, music, files, and contact cards. In response to the user clicking the photo album control, the phone jumps from the chat interface 101 to the image and video selection interface 103. This image and video selection interface 103 displays thumbnails of images in the gallery. User C can select images to send from this image and video selection interface 103. Figure 1 As shown in 1b, user C selects two images in succession. In response to the user's selection operation, the selected images are displayed in the image and video selection interface 103, as shown below. Figure 1 As shown in 1b, the upper right corner of the selected images indicates the order in which they were selected. In the first instant, in response to the user clicking the send button, the selected images are sent to student A's chat software in the order they were selected by user C. In this example, user C selects two images from the gallery. Mobile phone 100 completes the upload of the first image 104 within a first preset time period (e.g., 2 seconds), where the uplink rate of the first SIM card of mobile phone 100 is reduced to xMbps. Figure 1 As shown in 1c, the chat interface 101 of mobile phone 100 displays the first image 104 successfully sent to student A's chat software.

[0070] While mobile phone 100 is sending the second image to student A's chat software, the second SIM card in mobile phone 100 receives a call request from mobile phone B. (See below) Figure 1In step 1d, the display interface of mobile phone 100 shows the incoming call interface 105. This incoming call interface 105 includes an answer control 106 and a reject control. In response to user A's answer operation (as shown in step 1d), mobile phone 100 connects the call and switches from the incoming call interface 104 to the call interface 107 (as shown in step 1d). Figure 1 (As shown in 1e). When the first SIM card of mobile phone 100 is performing data service and the second SIM card is performing voice service, mobile phone 100 is in Tx-sharing DSDA mode.

[0071] In response to the user's action of returning to the chat interface 101, mobile phone 100 returns from the call interface 107 to the chat interface 101, such as... Figure 1 As shown in Figure 1f, the chat interface 101 includes a first image 104 and a second image 108, wherein the first image 104 has been transmitted to student A's chat software. The status bar at the top of the chat interface 101 also includes a call duration icon 101-1 and a call icon 101-2.

[0072] Because mobile phone 100 is in Tx-sharing DSDA mode, when the second SIM card is engaged in a call, the rate at which the first SIM card uploads the second image 108 will decrease, i.e., the uplink rate of the first SIM card will decrease. Mobile phone 100 uploads 1 / 4 of the image within 2 seconds. Figure 1 The upload progress shown in 1f is 108-1, and the black shaded area represents the percentage of image 108 that has been transmitted. Figure 1 The upload progress of the first SIM card shown in Figure 1f is compared to Figure 1 Regarding the upload progress of the first SIM card in the 1c version, Figure 1 The upload speed of the first SIM card shown in Figure 1f is Figure 1 1 / 4 of the value at 1c.

[0073] From the above Figure 1 As can be seen from the scenario, when the mobile phone is in Tx-sharing DSDA mode (assuming that the first SIM card in the phone performs data service and the second SIM card in the phone performs call service), the uplink speed of the first SIM card will be significantly reduced while the second SIM card is performing call service, which will affect the user's experience of uploading data.

[0074] To better analyze why the uplink speed of the first SIM card is significantly reduced when the phone is in Tx-sharing DSDA mode and the second SIM card is making a call, the following analysis will be conducted in conjunction with... Figure 2 The hardware structure of the aforementioned electronic device 100 will be described. In this example, the electronic device 100 is a mobile phone.

[0075] Electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, antenna 1, antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc. The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, etc.

[0076] The processor 110 may include one or more processing units, such as an application processor (AP), a modem, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a neural network processing unit (NPU), etc., which will not be listed here and this application does not limit them.

[0077] The controller mentioned above, which serves as the processing unit, can be the central nervous system and command center of the mobile phone 100. In practical applications, the controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0078] The aforementioned modem can include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal and transmits the demodulated low-frequency baseband signal to a baseband processor for processing.

[0079] The aforementioned baseband processor is used to process the low-frequency baseband signal transmitted by the regulator and then transmit the processed low-frequency baseband signal to the application processor.

[0080] It should be noted that in some implementations, the baseband processor can be integrated into the modem, meaning the modem can have the functionality of a baseband processor.

[0081] The aforementioned application processor is used to output sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.) or to display images or videos through display screen 194.

[0082] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include a radio frequency front-end, etc.

[0083] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, enabling the electronic device 100 to communicate with networks and other devices via wireless communication technology.

[0084] It should be understood that, Figure 2 The electronic device 100 shown is merely an example of an electronic device, and the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. Figure 2 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0085] When the first SIM card and the second SIM card in electronic device 100 share transmission resources, the dual-SIM mode of the electronic device is Tx-sharing DSDA mode. The following is in conjunction with... Figure 3 Specifically, explain the transmission resources shared by the first SIM card and the second SIM card.

[0086] Figure 3 This is a schematic diagram of the mobile communication module. Optionally, the mobile communication module 150 includes a radio frequency (RF) front-end and a radio frequency integrated circuit (RFIC) 150-1. The RF front-end may include an XSW150-2 (XSW150-2 includes XSW150-21 and XSW150-22), a power amplifier (PA) 150-3, a power supply 150-4, an antenna switching module (ASM) 150-5, a filter 150-6, a tuner 150-7, etc. Optionally, the RF front-end may also include a low-noise amplifier, a duplexer, etc.

[0087] The RFIC150-1 is used to convert baseband signals to be transmitted into radio frequency signals, or to convert received radio frequency signals into baseband signals.

[0088] The XSW150-2 is used for multi-channel switching and can be a single-pole double-throw switch, such as... Figure 3 The XSW150-21 is used in this example. In this example, the stationary terminal of the XSW150-21 is connected to the input of the PA, the first terminal of the XSW150-21 is electrically connected to the TX1 interface of the RFCI150-1, and the second terminal of the XSW150-21 is electrically connected to the TX0 interface of the RFCI150-1. The moving terminal of the XSW150-21 can be switched back and forth between the first and second terminals to allow the PA's input to receive RF signals transmitted from different SIM cards.

[0089] In this example, the TX1 interface is used to transmit signals from the first SIM card, and the TX0 interface is used to transmit signals from the second SIM card. The first SIM card is used for data services, and the second SIM card is used for voice services.

[0090] For ease of description in the following application, the SIM card that performs data services will be referred to as a data card, and the SIM card that performs voice services will be referred to as a voice card.

[0091] Optionally, the form of XSW can also be xPxT, where x is an integer greater than 0. For example, in this example, x is 3, that is, XSW150-22 is in the form of 3P3T. In this application, XSW150-21 is referred to as the first XSW, and XSW150-22 is referred to as the second XSW.

[0092] PA150-3 can be used to amplify the RF signal output by the RFIC. Power supply 150-4 is used to power PA150-3.

[0093] ASM150-5 is generally used for frequency band selection, and its typical form is SPxT.

[0094] Filter 150-6 is used to filter the RF signal output from PA150-3. Tuner 150-7 is an impedance matching network used to receive, filter, amplify, and control the signal, maximizing the antenna's radiated power across all application frequencies.

[0095] When the mobile phone is in Tx-sharing DSDA mode, the data card and voice card in the phone transmit data in a time-sharing manner. For example, at the first moment, when the phone's voice card is performing a call service and the data card is performing a data service, the modem determines that the current time slot is to be used by the voice card based on service priority. The modem instructs the RFIC to allocate transmission resources to the voice card, where the voice card's service priority is higher than the data card's service priority. The RFIC controls the moving end of the first XSW from the second end corresponding to the data card (e.g., ...). Figure 3 Switch the first XSW (the end connected to TX0) to the first end of the first XSW corresponding to the call card (e.g., Figure 3 In the first XSW (connected to TX1), the radio frequency signal is transmitted from the TX1 interface to the input of the PA. The RFIC controls the PA to operate with an amplification power matched to the call card to amplify the received radio frequency signal. The PA transmits the amplified radio frequency signal to a filter, which filters the amplified signal. The RFIC turns on the first path in the second XSW corresponding to the call card, so that the filtered radio frequency signal is transmitted to the antenna through the first path in the second XSW corresponding to the call card. The RFIC controls the tuner to configure the tuner according to the frequency band used by the call card, so that the antenna radiates maximum power at all application frequencies. In this example, the first path of the second XSW is matched with the call card; for example, the first path is the first input and first output of the second XSW (e.g., ...). Figure 3 (I0 and O0). At the second moment, when the Modem detects that the call card has no uplink packets to be transmitted in the current time slot and the data card has uplink packets to be transmitted in the current time slot, the Modem instructs the RFIC to allocate transmission resources to the data card. The RFIC controls the moving end of the first XSW to switch from the first end corresponding to the call card to the second end corresponding to the data card in the first XSW. The radio frequency signal is transmitted from the TX0 interface to the input end of the PA. The RFIC controls the PA to operate according to the amplification power matched to the data card to amplify the received radio frequency signal. The PA transmits the amplified radio frequency signal to the filter, and the filter filters the amplified radio frequency signal. The RFIC turns on the second path corresponding to the data card in the second XSW so that the filtered radio frequency signal is transmitted to the antenna through the second path corresponding to the data card in the second XSW. The RFIC controls the tuner to configure the tuner according to the frequency band used by the data card so that the antenna radiates the maximum power at all application frequencies.

[0096] It should be noted that in 4G and 5G wireless networks, the base station sends a downlink channel status information reference signal (CSI-RS) to the electronic device 100, such as... Figure 4As shown, the electronic device periodically measures the Channel Quality Indicator (CQI) using CSI-RS and periodically reports the CQI to the base station. The base station selects appropriate modulation order, code rate, downlink data block size, etc., based on the CQI information. The CQI reporting period of the electronic device is controlled by the base station. In other words, the uplink frames sent by the electronic device to the base station contain the CQI.

[0097] See Figure 5 Both the data card and the call card's uplink frames include: user data (such as voice, image, and text data), confirmation information (such as...). Figure 5 (ACK signal in the memory) and CQI. Typically, the data packets on a call card are sparser, while the data packets on a data card are denser, such as... Figure 5 As shown, within the same time period (T1 to T2), the data density in the uplink frame of the data card is higher than the data density in the uplink frame (also known as the uplink packet) of the voice card.

[0098] When the phone is in Tx-sharing DSDA mode, if both the data card and the voice card need to transmit signals simultaneously, the modem prioritizes the voice service over the data service, allocating transmission resources to the voice card first. During the voice card's uplink packet transmission, the phone discards data from the data card whose transmission time overlaps with the voice card's, resulting in data loss in the data card's uplink packets—essentially, data puncturing. Furthermore, the voice card's periodic CQI reporting further exacerbates this problem, frequently puncturing the data card's uplink frames and severely impacting its uplink speed.

[0099] For example, such as Figure 6 As shown, assuming the CQI reporting period in the uplink frame of the call card is 5ms; when both the data card and the call card need to transmit signals simultaneously, the modem will prioritize allocating transmission resources to the call card to transmit CQI. For example... Figure 6 As shown, the periodically reported CQI frequently punches holes in the uplink frames of the data card. Figure 6 The grayed-out data in the data card is no longer transmitted, which greatly reduces the uplink speed of the data card and affects the user experience.

[0100] In view of this, this application provides an uplink rate adjustment method. When the mobile terminal is in Tx-sharing DSDA mode, when the mobile terminal detects uplink packets from both the data card and the call card at the same time, and detects that the uplink packet of the call card is CQI and the uplink packet error rate of the call card is less than a threshold, the mobile terminal prioritizes allocating transmission resources to the data card, thereby reducing the number of times the data of the uplink frame of the data card is punctured during the uplink of the call card, and thus improving the uplink rate of the data card.

[0101] The following is combined with Figures 7-9 Please explain the method for adjusting the uplink speed in detail. Figure 7 This is a schematic diagram of the hardware structure of the mobile communication module in this example.

[0102] See Figure 7 The mobile communication module 150 includes a first chip 150-8, which is electrically connected to Modem 110-1, RFIC 150-1, XSW 150-22 (i.e., the first XSW), PA 150-3, power supply 150-4, XSW 150-5, filter 150-6, and tuner 150-7. Among them, Modem110-1 is electrically connected to RFIC150-1, RFIC150-1 is electrically connected to XSW150-21, XSW150-21 is electrically connected to PA150-3, and power supply 150-4 is electrically connected to PA150-3; PA150-3 is electrically connected to ASM150-5, ASM150-5 is electrically connected to filter 150-6, filter 150-6 is electrically connected to XSW switch 150-22 (i.e., the second XSW), XSW150-22 is electrically connected to the antenna, and the antenna is electrically connected to tuner 150-7.

[0103] Figure 8 This is an interaction diagram of the modules when the uplink rate adjustment method is executed in an electronic device. The uplink rate adjustment method specifically includes:

[0104] Step S801: Obtain the first control command from the RFIC.

[0105] Specifically, the first control command includes an identifier for a first event. The RFIC stores the RF path software parameters corresponding to the Tx-sharing DSDA mode. These RF path software parameters are configured with an identifier for the first event, which is used to indicate that the electronic device enters the Tx-sharing DSDA mode. When the electronic device enters the Tx-sharing DSDA mode, the RFIC calls the RF path software parameters corresponding to the Tx-sharing DSDA mode. The RFIC transmits the first control command to the first chip by calling the RF path software parameters corresponding to the Tx-sharing DSDA mode.

[0106] When the electronic device exits Tx-sharing DSDA mode, the RF path software parameters corresponding to Tx-sharing DSDA mode still carry the identifier of the first event. The RFIC no longer calls the RF path software parameters corresponding to Tx-sharing DSDA mode, meaning the first chip cannot obtain the first control command. For example, when the electronic device switches from Tx-sharing DSDA mode to Full-concurrent DSDA mode, the RFIC calls the RF path software parameters corresponding to Full-concurrent DSDA mode, where the RF path software parameters corresponding to Full-concurrent DSDA mode do not contain the identifier of the first event.

[0107] It should be noted that in this example, when the electronic device is in Tx-sharing DSDA mode, the RF path software parameters called by the RFIC are the RF path software parameters corresponding to the Tx-sharing DSDA mode.

[0108] Step S802: The first chip determines whether the electronic device is in a shared transmission dual-SIM dual-pass (Tx-sharingDSDA) state.

[0109] Specifically, after acquiring the identifier of the first event, the first chip determines that the electronic device is in Tx-sharing DSDA mode. If the identifier of the first event is not acquired, it determines that the electronic device has exited Tx-sharing DSDA mode.

[0110] It should be noted that the frequency band combinations for Tx-sharing DSDA mode can include: n41+n78, n1+b5, n41+n41, and n28+n28, etc. This means that one SIM card can use the 5G frequency band while the other uses the 4G frequency band; or both SIM cards can use the 5G frequency band.

[0111] Step S803: The first chip turns on the enable switch.

[0112] Specifically, an enable switch is configured in the first chip to control whether the function of adjusting the uplink rate of the data card is enabled. When the first chip enables this enable switch, it activates the function of increasing the uplink rate of the data card and, through the connection between the first chip and the RFIC, takes over the RFIC's authority to configure the shared uplink RF front-end link (i.e., transmit resources). When the first chip deactivates this enable switch, it disables the function of increasing the uplink rate of the data card and restores the RFIC's authority to configure the shared uplink RF front-end link.

[0113] When the first chip determines that the electronic device is currently in Tx-sharing DSDA mode, it turns on the enable switch. Initially, this enable switch is off by default.

[0114] When the electronic device exits the Tx-sharing DSDA mode, the RFCI ends the call to the RF path software parameters of the Tx-sharing DSDA mode, that is, the first chip does not detect the first event identifier, and the enable switch is turned off.

[0115] Step S804: The first chip takes over the RFIC's authority to configure transmission resources.

[0116] Since the first chip is electrically connected to the RFIC, PA, power supply, ASM, filter, second XSW, and tuner, it can allocate transmission resources for the data card. Optionally, when the enable switch is on, in Tx-sharing DSDA mode, the first chip will take over the authority of the RFIC to configure transmission resources for the data card. Step 805: The first chip obtains the CQI reporting cycle and uplink packet error rate of the call card from the modem.

[0117] Specifically, the modem can sense the CQI reporting cycle of the call card. The modem can also obtain the uplink packet error rate of the call card. The first chip obtains the CQI reporting cycle of the call card and the uplink packet error rate of the call card from the modem.

[0118] The electronic device transmits the acquired voice data to the baseband chip, which encodes the voice data into a baseband signal for transmission. The baseband chip then transmits the baseband signal to the modem, where the modem modulates the baseband signal.

[0119] Step 806: The first chip obtains the control requirements of the data card and the voice card for the radio frequency front end.

[0120] Specifically, the RFIC can transmit the RF front-end link control requirements of the data card (hereinafter referred to as the first control requirement) and the RF front-end link control requirements of the call card (hereinafter referred to as the second control requirement) to the first chip by calling the RF path software parameters corresponding to the Tx-sharing DSDA mode. The first control requirement of the data card includes information indicating the status of each device in the transmission resource when the transmission resource is allocated to the data card. For example, when the transmission resource is allocated to the data card, the RF signal in the RFIC is output from Tx0, the ASM selects the frequency band corresponding to the data card, the amplification power of the PA corresponds to the transmission frequency band of the data card, the second path in the second XSW corresponding to the data card is turned on, and the tuner operates according to the frequency band where the data card is located.

[0121] The second control requirement of the call card includes information indicating the status of each device in the transmission resources when the transmission resources are allocated to the call card. For example, when the transmission resources are allocated to the call card, the radio frequency signal in the RFIC is output from Tx1, the ASM selects the frequency band corresponding to the call card, the amplification power of the PA corresponds to the transmission frequency band of the call card, the first path in the second XSW corresponding to the call card is turned on, and the tuner operates according to the frequency band where the call card is located.

[0122] In other words, the control requirements are information indicating the status of each module of the transmission resources when the SIM card uses the transmission resources. The first chip configures the transmission resources according to the first control requirements of the data card to establish a transmission path matching the data card. The first chip also configures shared transmission resources according to the control requirements of the voice card to establish a transmission path matching the voice card.

[0123] Step 807: The first chip obtains the uplink packet transmission information of the data card and the voice card from the modem.

[0124] Specifically, the first chip obtains uplink packet transmission information from the modem for both the call card and the data card. The uplink packet transmission information for the call card indicates whether the call card has any uplink packets to be transmitted in the current time slot, while the uplink packet transmission information for the data card indicates whether the data card has any uplink packets to be transmitted in the current time slot.

[0125] It should be noted that in the prior art, when the uplink packet transmission information of the data card indicates that the data card has an uplink packet to be transmitted in the current time slot and the uplink packet transmission information of the call card indicates that the call card has an uplink packet to be transmitted in the current time slot, the service priority of the call card is higher than that of the data card, and the modem determines to allocate the transmission resources to the call card.

[0126] Step 808: The first chip allocates transmission resources according to the CQI reporting cycle of CQI, the uplink packet transmission information of the call card and the data card.

[0127] In this example, the allocation of transmission resources by the first chip means that the first chip opens the transmission path by selecting a path in the connected radio frequency front end.

[0128] The process of how the first chip allocates launch resources in step 809 above can be referred to Figure 9 Specifically, it includes:

[0129] Step S901: The first chip determines whether there is an uplink packet to be sent in the current time slot of the call card. When the first chip determines that there is an uplink packet to be sent in the current time slot of the call card, step S902 is executed. When the first chip determines that there is no uplink packet to be sent in the current time slot of the call card, no operation is performed.

[0130] Specifically, in NR, a time slot can be used for both downlink and uplink transmission. Since the uplink packet transmission information of the call card indicates whether the call card has uplink packets to be transmitted in the current time slot, when the first chip obtains the uplink packet transmission information of the call card, it can determine whether the call card has uplink packets to be transmitted in the current time slot based on the uplink packet transmission information of the call card.

[0131] When the first chip determines that the call card has an uplink packet to be sent in the current time slot, step 902 is executed.

[0132] When the first chip determines that the call card does not have an uplink packet to be sent in the current time slot, no operation is performed.

[0133] Optionally, when the first chip determines that the call card has no uplink packets to be transmitted in the current time slot, it can also allocate transmission resources based on service priority. Specifically, if the first chip detects that the call card has no uplink packets to be transmitted in the current time slot while the data card has uplink packets to be transmitted in the current time slot, it allocates transmission resources to the data card. If the first chip detects that neither the call card nor the data card has uplink packets to be transmitted in the current time slot, it does not allocate transmission resources.

[0134] In this example, when the first chip determines that there is no uplink packet to be sent in the current time slot, the first chip does not perform any operation.

[0135] Step S902: The first chip determines whether the uplink packet is CQI. When the first chip determines that the uplink packet is CQI, step S904 is executed, that is, the first chip determines whether there is an uplink packet to be sent in the current time slot of the data card; when the first chip determines that the uplink packet is not CQI, the first chip does not perform any operation.

[0136] Specifically, the length of an NR radio frame is 10ms, and one radio frame contains 10 subframes, each with a length of 1ms. Each subframe contains 1 to 2 time slots. When the subcarrier spacing is 15kHz, one subframe contains one time slot; when the subcarrier spacing is 30kHz, one subframe contains two time slots. Based on this, the first chip determines whether CQI exists in the current time slot, i.e., whether the uplink packet in the current time slot is a CQI, according to the CQI reporting period from the call card to the base station.

[0137] For example, the CQI reporting period is 5ms, and the subcarrier spacing is 15kHz. Assume the 5th time slot (slot_5) in the first radio frame. When the first chip detects that the current time slot is slot_5, based on the CQI reporting period, it can determine that CQI exists in slot_5, meaning the uplink packet includes CQI. Conversely, if the first chip detects that the current time slot is the 6th time slot (slot_6) in the first radio frame, based on the CQI reporting period, it determines that 6ms is not the time for CQI reporting; therefore, it can be determined that the current time slot does not contain CQI, meaning the uplink packet is not CQI.

[0138] When the first chip determines that the uplink packet is CQI, it executes step S903, that is, the first chip continues to determine whether the data card has an uplink packet in the current time slot; when the first chip determines that the uplink packet is not CQI, the first chip does not perform any operation (that is, the first chip ends the operation).

[0139] Optionally, when the first chip determines that the uplink packet is not CQI, it can also allocate transmission resources based on service priority. Specifically, when the first chip determines that the uplink packet is not CQI, since the service priority of the voice card is higher than that of the data card, the first chip allocates transmission resources to the voice card.

[0140] In this example, when the first chip determines that the uplink packet is not CQI, the operation ends as an example.

[0141] Step 903: The first chip determines whether there is an uplink packet in the current time slot of the data card. When the first chip determines that there is an uplink packet in the current time slot of the data card, it executes step 904. When the first chip determines that there is no uplink packet in the current time slot of the data card, the first chip does not perform any operation.

[0142] Specifically, when the first chip detects that the call card has an uplink packet in the current time slot and that the uplink packet is CQI, if the data card also has an uplink packet in the current time slot, the first chip can continue to determine whether the current time slot meets the conditions for allocating transmission resources to the data card, that is, execute step 904.

[0143] If the data card has no uplink packets to send in the current time slot, meaning there are no uplink packets to send in the current time slot, the first chip does not need to perform any operation. The RFIC will allocate transmission resources according to the modem's instructions. In this example, the modem determines to allocate transmission resources to the call card based on service priority.

[0144] Optionally, if the first chip detects that the data card does not have any uplink packets to be transmitted in the current time slot, the first chip can also allocate transmission resources based on service priority. Specifically, when the first chip detects that the data card does not have any uplink packets to be transmitted in the current time slot, the first chip allocates transmission resources to the voice card.

[0145] In this example, if the first chip detects that the data card does not have an uplink packet to be sent in the current time slot, the first chip will not perform any operation.

[0146] Step S904: The first chip determines whether the uplink packet error rate of the call card is greater than a preset threshold. When the first chip determines that the uplink packet error rate of the call card is less than or equal to the preset threshold, step S905 is executed, that is, the first chip turns on the power of the PA. When the first chip determines that the uplink packet error rate of the call card is greater than the preset threshold, the first chip does not perform any operation.

[0147] Specifically, the first chip detects whether the uplink packet error rate of the call card is greater than a preset threshold. The preset threshold can be set as needed, and its range can be 8% to 20%, for example, the preset threshold is 8%. When the first chip detects that the uplink packet error rate of the call card is greater than the preset threshold, the first chip ends the operation.

[0148] Optionally, when the first chip detects that the uplink packet error rate of the call card is greater than a preset threshold, the first chip can also allocate transmission resources based on service priority. Specifically, when the first chip detects that the uplink packet error rate of the call card is greater than the preset threshold, since the service priority of the call card is higher than that of the data card, the first chip will allocate transmission resources to the call card.

[0149] In this example, when the first chip detects that the uplink packet error rate of the call card is greater than the preset threshold, the operation of the first chip is terminated.

[0150] When the first chip detects that the uplink packet error rate of the call card is less than the preset threshold, it allocates the transmission resources to the data card, i.e., executes step 905.

[0151] Step S905: The first chip indicates that the radio frequency signal of the data card is output from the data card transmitter of the RFIC.

[0152] After the first chip determines to allocate transmission resources to the data card, the first chip can instruct the RFIC to transmit from the data card's transmitter (e.g., ...). Figure 7 The Tx0 outputs the radio frequency signal of the data card. Therefore, the RFIC can execute step 906 according to this instruction.

[0153] Step S906: The RFIC controls the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card.

[0154] Specifically, the RFIC controls the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card. The second end of the first XSW is as follows: Figure 7 The end of the card connected to the Tx0 interface allows the data card's radio frequency signal to be transmitted to the PA via the first XSW.

[0155] Step S907: The first chip turns on the power supply of PA.

[0156] Specifically, after the first chip determines that the transmission resources will be allocated to the data card, it turns on the power supply for the PA (i.e., according to the data card's first control requirement) based on the data card's first control request. Figure 9 (ET in the middle) so that PA can work properly.

[0157] Step S908: The first chip operates at the amplification power matched to the data card.

[0158] Specifically, the first chip determines the amplification power corresponding to the data card based on the data card's first control requirements, and controls the PA to operate according to that amplification power.

[0159] After the PA operates at the amplification power matched to the data card, it transmits the amplified RF signal to the ASM.

[0160] Step S909: The first chip controls the ASM to select the frequency band corresponding to the data card.

[0161] Step S910: The first chip controls the second XSW to turn on the second path.

[0162] Specifically, the first chip, based on the second control requirement of the data card, activates the second path in the second XSW, which is the path corresponding to the data card. In this example, the second path uses the second input terminal and the second output terminal (e.g., Figure 7 Taking I1 and O1 as an example, the radio frequency signal is input from the second input terminal of the second XSW and output from the second output terminal of the second XSW.

[0163] In other examples, the second path of the second XSW can be other paths, such as turning on the first input and the second output of the second XSW.

[0164] Step S911: The first chip configures the tuner according to the frequency band where the data card is located.

[0165] Specifically, the first chip obtains the frequency band where the data is located based on the control requirements of the data card. The first chip configures the tuner according to the frequency band where the data card is located to maximize the radiation power of the antenna in the frequency band where the data card is located.

[0166] It should be noted that when the first chip does not perform any operation (i.e., the first chip ends its operation), the RFIC will allocate transmission resources according to the modem's instructions. In the existing method, the modem allocates transmission resources to the data card and the voice card based on service priority, with the voice card having a higher service priority than the data card.

[0167] In some embodiments, when the modem detects that neither the call card nor the data card has any uplink packets to be transmitted in the current time slot, the modem instructs the RFIC not to allocate transmission resources. When the modem detects that neither the call card nor the data card has uplink packets to be transmitted in the current time slot, the modem instructs the RFIC to allocate transmission resources to the data card. The RFIC receives the modem's instruction and the first control request corresponding to the data card.

[0168] The process by which an RFIC allocates transmit resources to a data card includes the following steps:

[0169] Step S10: Control the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card.

[0170] The modem instructs the RFIC to output from the RFIC's data card transmitter (e.g., ...). Figure 7 The RFIC controls the active terminal of the first XSW to switch to the second terminal of the first XSW corresponding to the data card based on the modem's indication, since the data card's radio frequency signal is transmitted through the Tx0 data card.

[0171] Step S11: The RFIC is powered on so that the power supply can supply power to the PA.

[0172] Step S12: The RFIC operates according to the amplification power corresponding to the data card.

[0173] Specifically, the data card's RF signal is transmitted to the PA's input terminal via the first XSW. The RFIC determines the corresponding amplification power based on the data card's first control requirements and operates according to that power. After the PA operates according to the data card's amplification power, it transmits the amplified RF signal to the ASM, which then selects the frequency band corresponding to the data card.

[0174] Step S13: The RFIC controls the ASM to select the frequency band corresponding to the data card.

[0175] Specifically, the data card has a corresponding frequency band, and the RFIC controls the ASM to select the frequency band corresponding to the data card according to the first control requirement.

[0176] Step S14: RFIC controls the second XSW to turn on the second path.

[0177] The RFIC, based on the data card's first control requirement, activates the first path in the second XSW, which corresponds to the call card. In this example, the second path uses the second input and second output (e.g., ...). Figure 7 Taking I1 and O1 as an example, the radio frequency signal is input from the second input terminal of the second XSW and output from the second output terminal of the second XSW.

[0178] Step S15: The RFIC configures the tuner according to the frequency band of the call card.

[0179] The RFIC configures the tuner according to the frequency band where the data card is located, so as to maximize the radiation power of the antenna in the frequency band where the data card is located.

[0180] In some embodiments, when the modem detects that the calling card has an uplink packet to be transmitted in the current time slot, since the calling card's service priority is higher than the data card's service priority, the modem instructs the RFIC to allocate transmission resources to the calling card. The RFIC obtains the modem's instruction and the second control request corresponding to the calling card.

[0181] The process of allocating RFIC transmission resources to the voice card includes the following steps:

[0182] Step S20: Control the moving end of the first XSW to switch to the first end of the first XSW corresponding to the call card.

[0183] The modem instructs the RFIC to output from the RFIC's call card transmitter (e.g., Figure 7 The radio frequency signal of the call card (Tx1) is received by the RFIC, which controls the active end of the first XSW to switch to the first end of the first XSW corresponding to the call card based on the modem's indication.

[0184] Step S21: The RFIC turns on the power so that the power supply can supply power to the PA.

[0185] Step S22: The RFIC operates according to the amplification power corresponding to the call card.

[0186] Specifically, the radio frequency (RF) signal of the call card is transmitted to the input of the power amplifier (PA) via the first XSW. The RFIC determines the amplification power corresponding to the call card based on the call card's second control requirements and operates according to that power. After the PA operates according to the call card's amplification power, it transmits the amplified RF signal to the amplifier signal management system (ASM), which then selects the frequency band corresponding to the call card.

[0187] Step S23: The RFIC controls the ASM to select the frequency band corresponding to the call card.

[0188] Specifically, the call card has a corresponding frequency band, and the RFIC controls the ASM to select the frequency band corresponding to the call card according to the second control requirement.

[0189] Step S24: RFIC controls the second XSW to turn on the first path.

[0190] According to the second control requirement of the call card, the RFIC activates the first path in the second XSW, which is the path corresponding to the call card. In this example, the first path uses the first input terminal and the first output terminal (e.g., Figure 7 Taking I0 and O0 as an example, the radio frequency signal is input from the first input terminal of the second XSW and output from the first output terminal of the second XSW.

[0191] In other examples, the first path can be other paths, such as turning on the first input and the third output in the second XSW.

[0192] Step S25: The RFIC configures the tuner according to the frequency band where the call card is located.

[0193] The RFIC is configured with a tuner according to the frequency band where the call card is located, so as to maximize the radiation power of the antenna in the frequency band where the call card is located.

[0194] The following is combined with Figure 10 The specific description of the image upload effect after using the uplink rate adjustment method in this application is as follows.

[0195] In this example, you can first refer to Figure 1 The example illustrates the application scenario. In this example, the mobile phone's Tx-sharing DSDA mode operates on the N1+B3 frequency band, where N1 is the 5G band and B3 is the 4G band. The data card operates on the N1 band, and the voice card operates on the B3 band.

[0196] At the first instant, the mobile phone responds to the user's image sending operation, sending the images selected by the user to Student A's chat software in the order they were selected. Within the first preset time period (e.g., 2 seconds), mobile phone 100 completes the operation of sending the first image 103 to Student A's chat software, during which the uplink rate of the first SIM card of mobile phone 100 drops to x Mbps. Figure 1 As shown in 1b, the chat interface 101 of mobile phone 100 displays the first image 103 successfully sent to student A's chat software.

[0197] At time T3, mobile phone 100 sends a second image to student A's chat software. Simultaneously, the second SIM card in mobile phone 100 receives a call request from mobile phone B. (See below) Figure 1 In 1c, the display interface of mobile phone 100 shows the incoming call interface 104. This incoming call interface 104 includes an answer control 105 and a reject control. In response to user A's answer operation (as shown in 1c), mobile phone 100 connects the call and switches from the incoming call interface 104 to the call interface 106 (as shown in 1c). Figure 1 (As shown in 1d). At this time, the first SIM card of mobile phone 100 is performing data service, and the second SIM card is performing voice service. Assume that in this example, the voice packets are short, the selectable modulation order / code rate is small, and no frequency band adjustment is required.

[0198] Assume the call card's CQI reporting period is 5ms, and the data card's uplink rate is 30Mbps. The data card uploads images at this uplink rate. See [link / reference] Figure 10 In step 10a, during the T3-T4 time period, the image upload progress 1002 shows that 1 / 4 of the image has been transmitted. During the T4-T5 time period, image 1002 has transmitted 1 / 2 of the image. That is, when the uplink speed adjustment method in this application is not used, it would take four T3-T4 time periods to transmit the second image. In this example, it is assumed that the duration of T3-T4 is equal to the duration of T4-T5.

[0199] In another example, the mobile communication module of the phone is as follows: Figure 7 As shown, at time T5, the first SIM card of the mobile phone performs data service (i.e., the first SIM card is a data card), and the second SIM card performs voice service (i.e., the second SIM card is a voice card). When the mobile phone is in Tx-sharing DSDA mode, the RFIC calls the RF path software parameters corresponding to the Tx-sharing DSDA mode to transmit the identifier of the first event in the RF path software parameters to the first chip. When the first chip detects the identifier of the first event, it determines that the current electronic device is in Tx-sharing DSDA mode, and the first chip turns on the enable switch to allow the first chip to take over the RFIC's authority to configure transmission resources. The frequency band of the mobile phone's Tx-sharing DSDA mode is N1+B3, where N1 is the 5G frequency band and B3 is the 4G frequency band. The frequency band of the data card is the N1 frequency band, and the frequency band of the voice card is the B3 frequency band.

[0200] The phone's microphone transmits the collected voice data to the baseband chip, which converts the voice data into a baseband signal. The baseband chip then transmits the baseband signal to the modem, where it modulates the signal. The modem can also sense the CQI reporting cycle of the second SIM card and obtain its uplink packet error rate. The modem sends the call card's CQI reporting cycle and uplink packet error rate to the first chip.

[0201] The first chip obtains the RF front-end link control requirements of the first SIM card and the second SIM card from the RFIC. The first chip obtains uplink packet transmission information from the modem for both the first and second SIM cards. Based on the uplink packet transmission information of the second SIM card, the first chip determines if there is an uplink packet in the current time slot. Then, based on the CQI reporting period of the second SIM card (e.g., 50ms), the first chip determines whether the uplink packet is a CQI packet. When the first chip determines that the uplink packet is a CQI packet, it checks whether the uplink packet error rate of the second SIM card is greater than a preset threshold (e.g., 8%). If the first chip detects that the uplink packet error rate of the second SIM card is less than the preset threshold, it allocates the transmission resources in the RF front-end to the first SIM card. The specific process of configuring the transmission resources by the first chip includes: the first chip instructs the RFIC to control the switching of the moving end in the first XSW to the second end corresponding to the data card. Based on the first control information of the first SIM card, the first chip configures the power supply of the PA, the PA, the ASM, the second XSW, and the tuner.

[0202] The first chip powers the PA. The first chip controls the PA to operate with the amplification power matched to the first SIM card. The first chip controls the ASM to select the frequency band corresponding to the first SIM card. The first chip controls the second path in the second XSW corresponding to the first SIM card to be activated; in this example, the second path in the second XSW uses I1 and O1. The first chip configures the tuner according to the frequency band used by the first SIM card. After configuration, the RFIC transmits the RF signal to the PA through TX0 and the first terminal in the first XSW, where the PA amplifies the RF signal with the power matched to the first SIM card. The PA outputs the amplified RF signal, which is then input to a filter in the frequency band corresponding to the first SIM card for filtering. The filtered RF signal is then transmitted to the antenna through the second path in the second XSW corresponding to the first SIM card. The tuner operates in the frequency band corresponding to the first SIM card to maximize the radiated power of the antenna in that frequency band.

[0203] In Tx-sharing DSDA mode, when the first chip detects that the uplink packet to be transmitted by the second SIM card in the current time slot is a CQI and the first SIM card also has an uplink packet to be transmitted in the current time slot, it detects the uplink packet error rate of the second SIM card. When the detected uplink packet error rate of the second SIM card is less than a preset threshold, the first chip allocates transmission resources to the first SIM card. Because the first chip allocates transmission resources to the first SIM card, the phone discards the CQI in the call card in the current time slot, reducing the number of missing uplink packet data to be transmitted by the first SIM card. This reduces the problem of frequent punching of uplink packets from the first SIM card by uplink packets from the second SIM card, thereby improving the uplink speed of the first SIM card. In addition, when the uplink packet error rate of the second SIM card is less than the preset threshold, the first chip reduces the number of CQIs in the second SIM card, increasing the actual CQI reporting period. In this example, the actual CQI reporting period increases from 50ms to 160ms, and the uplink speed of the data card increases from 30Mbps to 60Mbps. Meanwhile, no dropped calls occurred on the SIM card, indicating that discarding some CQI data did not affect the uplink data transmitted by the second SIM card. See also Figure 10 Examples 10c and 10d illustrate the time required for a mobile phone to upload the same image within the same timeframe. In example 10c, during the time period T5-T6, the upload progress 1004 of the image is displayed in the chat interface 1003, indicating that half of the image has been transmitted. During the time period T6-T7, image 1004 has been completely uploaded. It is assumed that the timeframes T3-T4, T4-T5, T5-T6, and T6-T7 are all the same. In other words, when the uplink rate adjustment method of this application is used, the upload speed of the second image is doubled compared to examples 10a and 10b.

[0204] In the implementation of this application, the first chip discards a portion of the CQI in the second SIM card, which is equivalent to the first chip determining that the service priority of the uplink packet to be transmitted in the first SIM card is higher than the service priority of the portion of the CQI to be transmitted in the second SIM card. This allows the first SIM card to obtain more transmission time slots and improves the uplink rate of the data card.

[0205] In another embodiment, the mobile communication module does not have a first chip, and the uplink rate adjustment method can be implemented by the modem through a software module. The structure of this mobile communication module can be as follows: Figure 11As shown. Modem110-1 is connected to RFIC150-1. RFIC150-1 is electrically connected to XSW150-21, XSW150-21 is electrically connected to PA150-3, and power supply 150-4 is electrically connected to PA150-3; PA150-3 is electrically connected to ASM150-5, ASM150-5 is electrically connected to filter 150-6, filter 150-6 is electrically connected to XSW150-22, XSW150-22 is electrically connected to the antenna, and the antenna is electrically connected to tuner 150-7.

[0206] Figure 12 This is a flowchart of a method for adjusting the uplink rate performed by the modem. The method specifically includes:

[0207] Step 1201: The modem determines whether the electronic device is in Tx-sharing DSDA mode. When the modem determines that the electronic device is in Tx-sharing DSDA mode, it proceeds to step 1202; when it determines that the electronic device is not in Tx-sharing DSDA mode, the uplink rate adjustment method ends.

[0208] The modem can sense whether the electronic device is currently in Tx-sharing DSDA mode.

[0209] Step 1202: Enable the function of adjusting the uplink speed of the data card in the modem.

[0210] When the modem detects that it is currently in Tx-sharing DSDA mode, it enables the function to adjust the uplink rate of the data card. This function to adjust the uplink rate of the data card is disabled by default. When the function to adjust the uplink rate is disabled, the modem operates in the existing mode. When the modem detects that it is not currently in Tx-sharing DSDA mode, it disables the function to adjust the uplink rate of the data card.

[0211] Step 1203: The modem obtains the CQI reporting cycle and uplink packet error rate of the call card.

[0212] This modem can detect the CQI reporting cycle of the call card. The modem can also obtain the uplink packet error rate of the call card.

[0213] Step 1204: The modem obtains uplink packet transmission information from the data card and the voice card.

[0214] Specifically, the modem can detect the uplink packet transmission information of both the data card and the voice card. The uplink packet transmission information of the data card indicates whether there is uplink packet information in the current time slot. The uplink packet transmission information of the voice card indicates whether there is uplink packet information in the current time slot.

[0215] It should be noted that when the uplink packet transmission information of the data card indicates that the data card has an uplink packet in the current time slot, and the uplink packet transmission information of the call card indicates that the call card has an uplink packet in the current time slot, in the prior art, the service priority of the call card is usually higher than that of the data card, and the modem allocates transmission resources to the call card.

[0216] Step 1205: The modem configures transmission resources according to the CQI reporting cycle, the uplink packet transmission information of the call card and the data card.

[0217] The process of how a modem allocates transmission resources can be found in [reference]. Figure 13 Specifically, it includes:

[0218] Step S1301: The modem determines whether the calling card has an uplink packet to be sent in the current time slot. When the modem determines that the calling card does not have an uplink packet to be sent in the current time slot, it executes step S1302; when the modem determines that the calling card has an uplink packet to be sent in the current time slot, it executes step S1303.

[0219] Specifically, since the uplink packet transmission information of the calling card indicates whether there is an uplink packet to be transmitted in the current time slot, when the modem obtains the uplink packet transmission information of the calling card, it can determine whether the calling card has an uplink packet to be transmitted in the current time slot based on the uplink packet transmission information of the calling card.

[0220] When the modem determines that the call card has an uplink packet to be sent in the current time slot, it executes step 1303. When the modem determines that the call card does not have an uplink packet to be sent in the current time slot, it executes step 1302.

[0221] Step S1302: The Modem allocates transmission resources according to service priority.

[0222] Specifically, when the modem detects that the call card does not have any uplink packets to be transmitted in the current time slot, the modem allocates transmission resources according to service priority. The call card's service priority is higher than the data card's service priority. When the modem determines that the call card does not have any uplink packets to be transmitted in the current time slot, it checks whether the data card has any uplink packets to be transmitted in the current time slot. When the modem detects that the data card does not have any uplink packets to be transmitted in the current time slot, the modem does not allocate transmission resources corresponding to the current time slot. When the modem determines that the data card has uplink packets to be transmitted in the current time slot, the modem allocates transmission resources to the data card for use, i.e., executes step 1306.

[0223] Step 1303: The Modem determines whether the uplink packet to be transmitted is a CQI packet. When the Modem determines that the uplink packet is a CQI packet, step S1304 is executed, that is, the Modem determines whether the data card has an uplink packet in the current time slot; when the Modem determines that the uplink packet is not a CQI packet, step S1313 is executed, that is, the Modem allocates transmission resources according to the service priority of the data card and the service priority of the voice card.

[0224] Specifically, the modem determines whether a CQI exists in the current time slot based on the CQI reporting cycle of the calling card to the base station, i.e., whether the uplink packet to be transmitted in the current time slot is a CQI. When the modem determines that the uplink packet to be transmitted is a CQI, step S1304 is executed, that is, the modem continues to determine whether the data card has an uplink packet in the current time slot; when the modem determines that the uplink packet is not a CQI, the modem allocates transmission resources according to the existing method, that is, the modem allocates transmission resources according to the service priority of the data card and the service priority of the calling card. The specific process of the modem allocating transmission resources according to the service priority of the data card and the service priority of the calling card includes: when both the calling card and the data card have uplink packets to be transmitted in the current time slot, the modem prioritizes allocating transmission resources to the calling card. When only the calling card has uplink packets to be transmitted in the current time slot, the modem allocates transmission resources to the calling card. When only the data card has uplink packets to be sent in the current time slot, the modem allocates transmission resources to the data card.

[0225] In this example, when the modem detects that the uplink packet to be sent by the call card is not CQI, the modem allocates transmission resources according to service priority, that is, the modem allocates transmission resources to the call card.

[0226] Step S1304: The Modem determines whether there is an uplink packet to be transmitted on the data card in the current time slot. When the Modem determines that there is an uplink packet on the data card in the current time slot, it proceeds to step S1305. When the Modem determines that there is no uplink packet on the data card in the current time slot, it proceeds to step S1313, that is, the Modem allocates transmission resources according to the service priority of the data card and the service priority of the voice card.

[0227] When the modem detects that the calling SIM card has an uplink packet to be transmitted in the current time slot, and that uplink packet is a CQI packet, but the data SIM card does not have an uplink packet to be transmitted in the current time slot, the modem allocates transmission resources according to service priority; that is, the modem allocates transmission resources to the calling SIM card.

[0228] If the data card has an uplink packet to be sent in the current time slot, the modem can continue to determine whether the current time slot meets the conditions for allocating transmission resources to the data card, i.e., execute step 1305.

[0229] Step S1305: The Modem determines whether the uplink packet error rate of the call card is greater than a preset threshold. When the Modem determines that the uplink packet error rate of the call card is less than or equal to the preset threshold, step S1306 is executed, that is, the Modem instructs the RFIC to configure transmission resources for the data card. When the Modem determines that the uplink packet error rate of the call card is greater than the preset threshold, step S1313 is executed, that is, the Modem allocates transmission resources according to the service priority of the data card and the service priority of the call card.

[0230] Specifically, the modem detects whether the uplink packet error rate of the calling card exceeds a preset threshold. The preset threshold can be set as needed, for example, 8%. When the modem detects that the uplink packet error rate of the calling card exceeds the preset threshold, the modem allocates transmission resources according to service priority, that is, the modem allocates transmission resources to the calling card.

[0231] When the modem detects that the uplink packet error rate of the call card is less than the preset threshold, it will allocate transmission resources to the data card, i.e., execute step 1306.

[0232] Step S1306: The Modem instructs the RFIC to allocate the transmit resources corresponding to the current time slot to the data card.

[0233] Specifically, the modem determines to allocate the transmission resources corresponding to the current time slot to the data card. The modem generates the first control requirement of the data card and sends the first control requirement of the data card to the underlying layer (such as LL1). The underlying layer transmits the first control requirement of the data card to the RFIC so that the RFIC can configure the shared uplink radio frequency front-end link according to the first control requirement of the data card.

[0234] Step S1307: The RFIC controls the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card.

[0235] The modem determines to allocate the transmit resources corresponding to the current time slot to the data card. The modem instructs the RFIC to control the active terminal of the first XSW to switch to the second terminal in the first XSW. The second terminal in the first XSW is as follows: Figure 11 The end of the card connected to the TX0 interface allows the data card's transmit signal to be transmitted to the PA via the first XSW.

[0236] In this example, since the Modem determines to allocate transmission resources to the data card, the RFIC needs to output the data card's radio frequency signal from the RFIC's data card transmitter (i.e., Tx0). Therefore, the RFIC can control the moving end of the first XSW to switch to the second end of the first XSW corresponding to the data card without relying on the first control requirement.

[0237] Step S1308: The RFIC turns on the power so that the power supply can supply power to the PA.

[0238] Step S1309: The RFIC operates at the amplification power matched to the data card.

[0239] The RFIC determines the amplification power that matches the data card based on the data card's initial control requirements. The RFIC then controls the PA to operate at that amplification power.

[0240] Step S1310: The RFIC controls the ASM to select the frequency band corresponding to the data card.

[0241] Step S1311: RFIC turns on the second path in the second XSW corresponding to the data card.

[0242] According to the first control requirement of the data card, the RFIC activates the second path in the second XSW, which is the path corresponding to the data card.

[0243] Step S1312: The RFIC configures the tuner according to the frequency band where the data card is located.

[0244] The RFIC determines the frequency band where the data card is located based on the data card's initial control requirements. The RFIC then configures the tuner according to the data card's frequency band to maximize the antenna's radiated power within that band.

[0245] Step S1313: The modem allocates transmission resources according to the service priority of the data card and the service priority of the voice card.

[0246] Since the service priority of the call card is higher than that of the data card, the modem will allocate transmission resources to the call card regardless of whether the data card has uplink packets to be sent in the current time slot. The modem generates a second control request for the call card and sends the call card's second control request for transmission resources to the underlying layer (such as LL1). The underlying layer sends the call card's second control request to the RFIC so that the RFIC can configure the transmission resources according to the call card's second control request.

[0247] The process by which the RFIC configures the transmission resources according to the second control requirement of the call card includes:

[0248] Step S1313-1: The RFIC controls the moving end of the first XSW to switch to the first end of the first XSW corresponding to the call card.

[0249] Step S1313-2: RFIC turns on the power so that the power supply can supply power to PA.

[0250] Step S1313-3: The RFIC operates at the amplification power matched to the call card.

[0251] The RFIC determines the amplification power matching the call card's control requirements. The RFIC controls the PA to operate at this amplification power. After operating at the call card's amplification power, the PA transmits the amplified RF signal to the ASM.

[0252] Step S1313-3: RFIC controls ASM to select the frequency band corresponding to the call card.

[0253] Step S1313-4: RFIC activates the first path in the second XSW corresponding to the call card.

[0254] According to the second control requirement of the call card, the RFIC activates the first path in the second XSW, which is the path corresponding to the call card.

[0255] Step S1313-5: The RFIC configures the tuner according to the frequency band where the call card is located.

[0256] The RFIC obtains the frequency band where the call card is located based on the call card's second control request. The RFIC then configures the tuner according to the frequency band where the call card is located to maximize the antenna's radiated power in that frequency band.

[0257] In this embodiment, no new chip needs to be added to the mobile communication module, reducing the hardware in the electronic device. Furthermore, when the modem is in Tx-sharing DSDA mode, and detects that the uplink packet to be transmitted by the call card in the current time slot is a CQI and the data card also has an uplink packet to be transmitted in the current time slot, and detects that the uplink packet error rate of the call card is less than a preset threshold, it allocates transmission resources to the data card. This increases the CQI cycle, reduces the problem of frequent puncturing of the data card's uplink packets by the call card's CQI, and thus greatly improves the uplink rate of the data card.

[0258] It is understood that, in order to implement the shooting method in the embodiments of this application, the electronic device includes hardware and / or software modules that perform various functions. Based on the algorithm steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0259] It is understood that, in order to achieve the above-mentioned functions, electronic devices include hardware and / or software modules that perform the respective functions. Based on the algorithmic steps of the examples described in the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in conjunction with the embodiments, but such implementation should not be considered beyond the scope of this application.

[0260] This application also provides a chip system including at least one processor and at least one interface circuit. The processor and the interface circuit are interconnected via lines. For example, the interface circuit can be used to receive signals from other devices (e.g., the memory of an electronic device). As another example, the interface circuit can be used to send signals to other devices (e.g., the processor). Exemplarily, the interface circuit can read instructions stored in the memory and send the instructions to the processor. When the instructions are executed by the processor, the electronic device can perform the steps in the above embodiments. Of course, the chip system may also include other discrete devices, and this application does not specifically limit this.

[0261] This embodiment also provides a computer storage medium storing computer instructions. When these computer instructions are executed on an electronic device, the electronic device performs the aforementioned method steps to implement the uplink rate adjustment method in the above embodiment. The storage medium includes various media capable of storing program code, such as a USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0262] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the uplink rate adjustment method described in the above embodiment.

[0263] In this embodiment, the electronic device, computer storage medium, computer program product or chip are all used to execute the corresponding uplink rate adjustment method provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding method provided above, and will not be repeated here.

[0264] Any content in the various embodiments of this application, as well as any content in the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0265] In the description of the embodiments in this application, unless otherwise stated, "multiple" means two or more. For example, multiple processing units means two or more processing units; multiple systems means two or more systems.

[0266] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.

Claims

1. A method for uplink rate adjustment, the method comprising: The method is applied to an electronic device, and the method comprises: The electronic device is in a dual-card dual-standby-transmitting (Tx-sharing, DSDA) mode, and the dual cards comprise a calling card and a data card; When it is detected that the uplink packet to be sent by the calling card in a current time slot is a channel quality indicator (CQI) and the data card has an uplink packet to be sent in the current time slot, a transmission resource is allocated to the data card if a first condition is met, wherein the calling card is a subscriber identity module (SIM) card for performing a calling service, and the data card is a SIM card for performing a data service.

2. The method of claim 1, wherein, The first condition comprises that the uplink packet loss rate of the calling card is less than a preset threshold.

3. The method of claim 1, wherein, The method further comprises: obtaining a CQI reporting period of the calling card; obtaining uplink packet sending information of the calling card and uplink packet sending information of the data card, wherein the uplink packet sending information of the calling card is information indicating whether the calling card has an uplink packet to be sent in a current time slot, and the uplink packet sending information of the data card is information indicating whether the data card has an uplink packet to be sent in the current time slot; detecting, according to the CQI reporting period of the calling card, the uplink packet sending information of the data card, and the uplink packet sending information of the calling card, whether the calling card has a CQI uplink packet to be sent in a current time slot and the data card has an uplink packet to be sent in the current time slot.

4. The method of claim 3, wherein, detecting, according to the CQI reporting period of the calling card, the uplink packet sending information of the data card, and the uplink packet sending information of the calling card, whether the calling card has a CQI uplink packet to be sent in a current time slot and the data card has an uplink packet to be sent in the current time slot, comprises: detecting, according to the uplink packet sending information of the calling card, whether the calling card has an uplink packet to be sent in a current time slot; when it is detected that the calling card has an uplink packet to be sent in a current time slot, detecting, according to the CQI reporting period, whether the uplink packet to be sent by the calling card in the current time slot is a CQI; when it is detected that the uplink packet to be sent by the calling card in a current time slot is a CQI, detecting, according to the uplink packet sending information of the data card, whether the data card has an uplink packet to be sent in the current time slot; when it is detected that the data card has an uplink packet to be sent in a current time slot, it is determined that the calling card has a CQI uplink packet to be sent in the current time slot and the data card has an uplink packet to be sent in the current time slot.

5. The method according to any one of claims 1 to 4, characterized in that, The electronic device is provided with a first chip, and the first chip is electrically connected to a modem, a radio frequency chip, a power amplifier, a power supply of the power amplifier, an antenna switch module (ASM), a second multi-pass switching switch (XSW), and a tuner, respectively. The modem is electrically connected with the radio frequency chip, a talk card transmitting end of the radio frequency chip is electrically connected with a first end of a first XSW, a data card transmitting end of the radio frequency chip is electrically connected with a second end of the first XSW, a fixed end of the first XSW is electrically connected with an input end of the power amplifier, an output end of the power amplifier is electrically connected with an input end of the ASM, an output end of the ASM is electrically connected with an input end of a filter, an output end of the filter is electrically connected with an input end of a second XSW, an output end of the second XSW is electrically connected with the antenna, the antenna is electrically connected with a tuner, and the power supply is used for supplying power for the power amplifier. The data card transmitting end is an interface of the radio frequency chip for outputting the radio frequency signal of the data card, and the talk card transmitting end is an interface of the radio frequency chip for outputting the radio frequency signal of the talk card.

6. The method of claim 5, wherein, Before the transmitting resource is allocated to the data card under the first condition, the method further comprises: The first chip obtains a first control requirement of the data card from the radio frequency chip, and the first control requirement is information indicating the state of each device in the transmitting resource when the transmitting resource is allocated to the data card. The first chip indicates the radio frequency chip to output the radio frequency signal of the data card from the data card transmitting end, and controls the movable end of the first XSW to switch to a second end corresponding to the data card in the first XSW. The first chip configures the transmitting resource for the data card according to the first control requirement. The first chip configures the transmitting resource for the data card according to the first control requirement, which comprises:

7. The method of claim 6, wherein, The first chip turns on the power supply, and the power supply supplies power for the power amplifier; The first chip controls the power amplifier to operate at an amplification power matched with the data card; The first chip controls the ASM to select a frequency band corresponding to the data card; The first chip turns on a second path corresponding to the data card in the second XSW, the second XSW comprises a first path and a second path, the first path corresponds to the talk card, and the second path corresponds to the data card; The first chip configures the tuner according to the frequency band where the data card is located. ​ 8. The method according to any one of claims 1 to 4, characterized in that, The modem in the electronic device is electrically connected with a radio frequency chip in the electronic device; a talk card transmitting end of the radio frequency chip is electrically connected with a first end of a first XSW, a data card transmitting end of the radio frequency chip is electrically connected with a second end of the first XSW, and a fixed end of the first XSW is electrically connected with an input end of a power amplifier, wherein the data card transmitting end is an interface in the radio frequency chip for outputting a radio frequency signal of the data card, and the talk card transmitting end is an interface in the radio frequency chip for outputting a radio frequency signal of the talk card; an output end of the power amplifier is electrically connected with an input end of an antenna switch module ASM, and a power supply of the power amplifier is electrically connected with the power amplifier; an output end of the ASM is electrically connected with an input end of a filter; an output end of the filter is electrically connected with an input end of a second XSW; an output end of the second XSW is electrically connected with the antenna, and the antenna is electrically connected with a tuner. The transmitting resource is allocated to the data card in the case that the first condition is met, including: The modem determines that the radio frequency chip allocates the transmitting resource corresponding to the current time slot to the data card in the case that the first condition is met, and controls the movable end of the first XSW to switch to the second end corresponding to the data card in the first XSW. The modem generates the first control requirement corresponding to the data card, and the first control requirement is information indicating the state of each device in the transmitting resource when the transmitting resource is allocated to the data card for use. The modem transmits the first control requirement to the radio frequency chip through the bottom layer. The radio frequency chip configures the transmitting resource for the data card according to the first control requirement.

9. The method of claim 8, wherein, The radio frequency chip configures the transmitting resource for the data card according to the first control requirement, including: The radio frequency chip turns on the power supply, and the power supply supplies power to the power amplifier; The radio frequency chip controls the power amplifier to operate at an amplification power matched with the data card; The radio frequency chip controls the ASM to select a frequency band corresponding to the data card; The radio frequency chip turns on a second path corresponding to the data card in the second XSW, the second XSW includes a first path and a second path, the first path corresponds to the talk card, and the second path corresponds to the data card; The radio frequency chip configures the tuner according to the frequency band in which the data card is located.

10. A chip system, characterized by The chip system includes one or more interface circuits and one or more processors; the interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor, and the signal includes computer instructions stored in the memory; when the processor executes the computer instructions, the electronic device executes the uplink rate adjustment method of any one of claims 1 to 9.

11. The chip system according to claim 10, characterized by The chip system includes a first chip for controlling radio frequency resources when the electronic device is in a dual-card sharing transmission (Tx-sharing, DSDA) mode.

12. An electronic device, comprising: including: one or more processors, the processor including a modem; a memory; and one or more computer programs, wherein the one or more computer programs are stored in the memory and, when the computer programs are executed by the one or more processors, cause the electronic device to perform the method of uplink rate adjustment of any one of claims 1-9.

13. A computer readable storage medium comprising a computer program, characterized in that, When the computer programs run on the electronic device, cause the electronic device to perform the method of uplink rate adjustment of any one of claims 1 to 9.