Antenna allocation methods and electronic equipment

By dynamically allocating the transmitting antenna in dual-SIM electronic devices, the antenna contention problem when the primary and secondary cards transmit data simultaneously is solved, improving service stability and user experience.

CN122092918APending Publication Date: 2026-05-26HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-11-25
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

In dual-SIM electronic devices, when the primary and secondary SIM cards transmit data simultaneously, the antenna may be preempted, causing service disruptions.

Method used

By dynamically allocating transmit antennas, it is ensured that the transmit antennas of the two SIM cards do not overlap, and antenna resources are allocated reasonably according to service requirements and signal strength priorities.

Benefits of technology

It improved the operational stability and reliability of electronic devices and enhanced the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122092918A_ABST
    Figure CN122092918A_ABST
Patent Text Reader

Abstract

This application discloses an antenna allocation method and electronic device, which can be applied to electronic devices supporting dual-SIM dual-pass mode. The method includes: determining whether the available transmit antennas of the two SIM cards overlap when they have the same receive antenna; and determining the currently available transmit antennas of the two SIM cards separately based on the services currently being performed by the two SIM cards when their available transmit antennas overlap. By using this application, transmit antennas can be rationally allocated to the two SIM cards when they are simultaneously performing services in a dual-SIM electronic device, avoiding antenna contention and improving the communication experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to an antenna allocation method and electronic device. Background Technology

[0002] With the development of communication technology, dual-SIM electronic devices have gradually become more widely used. A dual-SIM electronic device can have two different subscriber identification modules (SIM cards). One SIM card can be called the primary SIM card, and the other can be called the secondary SIM card. The primary and secondary cards can each use different frequency bands to perform services. For dual-SIM electronic devices that support dual SIM dual active (DSDA) mode, the primary and secondary cards can perform services simultaneously, such as sending or receiving data at the same time. However, when the primary and secondary cards are sending data simultaneously, the antenna of one SIM card (e.g., the primary card) may be preempted by the other SIM card (e.g., the secondary card), affecting service performance. Summary of the Invention

[0003] This application provides an antenna allocation method and electronic device, which can reasonably allocate transmission antennas to the two SIM cards in a dual-SIM electronic device when the two SIM cards are performing services at the same time, so as to avoid the situation of competing for transmission antennas and improve the communication experience of the service.

[0004] In a first aspect, embodiments of this application provide an antenna allocation method applicable to an electronic device including a first user identification card and a second user identification card, wherein the electronic device supports a dual-SIM dual-pass mode. The method includes: in response to the overlap between the available receiving antennas of the first user identification card and the available receiving antennas of the second user identification card, and the overlap between the available transmitting antennas of the first user identification card and the available transmitting antennas of the second user identification card, determining a first antenna set and a second antenna set based on the services currently being performed by the first user identification card and the services currently being performed by the second user identification card; the first antenna set includes the currently available transmitting antennas of the first user identification card, and the second antenna set includes the currently available transmitting antennas of the second user identification card; the transmitting antennas in the first antenna set and the transmitting antennas in the second antenna set do not overlap.

[0005] In the above embodiments, when two SIM cards are performing services simultaneously, the electronic device can dynamically allocate transmission antennas according to the specific circumstances of the services performed by the two SIM cards, so that the two SIM cards have different available transmission antennas, thereby avoiding transmission antenna conflicts between the two SIM cards. This helps to improve the stability and reliability of the electronic device in performing services and enhances the user experience.

[0006] In conjunction with the first aspect, in one possible approach, the method further includes: determining whether the receiving antennas available to the first user identification card and the receiving antennas available to the second user identification card overlap, based on the first configuration information and the second configuration information; the first configuration information indicates the receiving antennas available to the first user identification card in a first frequency band, and the second configuration information is used to indicate the receiving antennas available to the second user identification card in a second frequency band; the first frequency band is the frequency band currently used by the first user identification card, and the second frequency band is the frequency band currently used by the second user identification card.

[0007] In this technical solution, the electronic device can quickly determine whether the first user identification card and the second user identification card have the same receiving antenna based on the configuration information, which helps to improve the processing efficiency of the electronic device.

[0008] In conjunction with the first aspect, in one possible approach, the communication environment currently in which the electronic device is located is a weak signal environment; the weak signal environment is any of the following: the received signal parameters of the first user identification card are less than or equal to a first threshold; the received signal parameters of the second user identification card are less than or equal to a second threshold; the received signal parameters of the first user identification card are less than or equal to the first threshold, and the received signal parameters of the second user identification card are less than or equal to the second threshold; the aforementioned determination of the first antenna set and the second antenna set based on the service currently being performed by the first user identification card and the service currently being performed by the second user identification card includes: determining the first antenna set and the second antenna set based on the priority of the service currently being performed by the first user identification card and the priority of the service currently being performed by the second user identification card.

[0009] In this technical solution, in a weak signal environment, the electronic device can allocate the transmission antenna based on the priority of the services currently being executed by the two user identification cards, so that the higher priority services can be executed smoothly.

[0010] In conjunction with the first aspect, in one possible manner, in response to the fact that the priority of the service currently being performed by the first user identification card is higher than the priority of the service currently being performed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter; the antenna with the first transmission performance parameter is the antenna with the largest transmission performance parameter in the electronic device, and the antenna with the second transmission performance parameter is the antenna with the second largest transmission performance parameter in the electronic device.

[0011] In this technical solution, under weak signal conditions, electronic devices can assign the antenna with the highest transmission performance parameters to the SIM card performing higher-priority services, and the antenna with the second highest transmission performance parameters to the SIM card performing lower-priority services. This avoids assigning all high-performance antennas to the same SIM card, ensuring smooth uplink service execution for both SIM cards.

[0012] In conjunction with the first aspect, in one possible manner, in response to the fact that the priority of the service currently being performed by the first user identification card is the same as the priority of the service currently being performed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a fourth transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter and an antenna with a third transmission performance parameter; or, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a third transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter and an antenna with a fourth transmission performance parameter; or, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, and the second antenna set includes an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter; wherein the first transmission performance parameter is greater than the second transmission performance parameter; the second transmission performance parameter is greater than the third transmission performance parameter; and the third transmission performance parameter is greater than the fourth transmission performance parameter.

[0013] In this technical solution, under weak signal conditions, if two user identification cards (SIM cards) are currently performing services with the same priority, the antenna with the highest and second-highest transmission performance parameters can be assigned to the two SIM cards respectively. Alternatively, the antenna with the highest and second-highest transmission performance parameters can be assigned to the higher-priority SIM card, based on the primary and secondary card's priority. This improves the flexibility of antenna allocation in electronic devices.

[0014] In conjunction with the first aspect, in one possible approach, the communication environment currently in which the electronic device is located is a non-weak signal environment; a non-weak signal environment is defined as the received signal parameters of the first user identification card being greater than a first threshold, and the received signal parameters of the second user identification card being greater than a second threshold; the aforementioned determination of the first antenna set and the second antenna set based on the service currently being executed by the first user identification card and the service currently being executed by the second user identification card includes: determining the first antenna set and the second antenna set based on the network performance parameters corresponding to the service currently being executed by the first user identification card and the network performance parameters corresponding to the service currently being executed by the second user identification card.

[0015] In this technical solution, under non-weak signal conditions, electronic devices can allocate transmission antennas based on the network performance parameters corresponding to the two user identification cards, so as to prioritize the smooth execution of services with abnormal network performance parameters.

[0016] In conjunction with the first aspect, in one possible approach, in response to an anomaly in the network performance parameters corresponding to the service currently being executed by the first user identification card and no anomaly in the network performance parameters corresponding to the service currently being executed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, and the second antenna set includes an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter; wherein, the anomaly in the network performance parameters indicates that the bit error rate is greater than or equal to a bit error rate threshold within a preset time period, and / or, the number of random access failures is greater than or equal to a number threshold; the first transmission performance parameter is greater than the second transmission performance parameter; the second transmission performance parameter is greater than the third transmission performance parameter; and the third transmission performance parameter is greater than the fourth transmission performance parameter.

[0017] In this technical solution, under non-weak signal conditions, electronic devices can prioritize allocating the antennas with the largest and second-largest transmission performance parameters to user identification cards with abnormal network performance parameters, thereby improving the data transmission quality of user identification cards with abnormal network performance parameters.

[0018] In conjunction with the first aspect, in one possible approach, the antenna with the first transmission performance parameter is a main antenna, the antenna with the second transmission performance parameter is a diversity antenna, the antenna with the third transmission performance parameter is a multiple-input multiple-output main antenna, and the antenna with the fourth transmission performance parameter is a multiple-input multiple-output diversity antenna.

[0019] Secondly, embodiments of this application provide an electronic device comprising: one or more processors, a display screen, and a memory; the processor including a modem processor; the memory coupled to the one or more processors, the memory storing computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform: in response to the overlap between a receiving antenna available for a first user identification card and a receiving antenna available for a second user identification card, and the overlap between a transmitting antenna available for the first user identification card and a transmitting antenna available for the second user identification card, determining a first antenna set and a second antenna set based on the service currently performed by the first user identification card and the service currently performed by the second user identification card; the first antenna set including the transmitting antenna currently available for the first user identification card, and the second antenna set including the transmitting antenna currently available for the second user identification card; the transmitting antennas in the first antenna set and the transmitting antennas in the second antenna set do not overlap.

[0020] In conjunction with the second aspect, in one possible manner, the one or more processors invoke the computer instructions to cause the electronic device to perform: determining, based on first configuration information and second configuration information, whether the receiving antennas available for the first user identification card and the receiving antennas available for the second user identification card overlap; the first configuration information is used to indicate the receiving antennas available for the first user identification card in a first frequency band, and the second configuration information is used to indicate the receiving antennas available for the second user identification card in a second frequency band; the first frequency band is the frequency band currently used by the first user identification card, and the second frequency band is the frequency band currently used by the second user identification card.

[0021] In conjunction with the second aspect, in one possible manner, the communication environment currently in which the electronic device is located is a weak signal environment; the weak signal environment is any of the following: the received signal parameters of the first user identification card are less than or equal to a first threshold; the received signal parameters of the second user identification card are less than or equal to a second threshold; the received signal parameters of the first user identification card are less than or equal to the first threshold, and the received signal parameters of the second user identification card are less than or equal to the second threshold; the one or more processors invoke the computer instructions to cause the electronic device to perform: determining a first antenna set and a second antenna set according to the priority of the service currently being performed by the first user identification card and the priority of the service currently being performed by the second user identification card.

[0022] In conjunction with the second aspect, in one possible manner, in response to the fact that the priority of the service currently being performed by the first user identification card is higher than the priority of the service currently being performed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter; the antenna with the first transmission performance parameter is the antenna with the largest transmission performance parameter in the electronic device, and the antenna with the second transmission performance parameter is the antenna with the second largest transmission performance parameter in the electronic device.

[0023] In conjunction with the second aspect, in one possible manner, in response to the fact that the priority of the service currently being performed by the first user identification card is the same as the priority of the service currently being performed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a fourth transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter and an antenna with a third transmission performance parameter; or, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a third transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter and an antenna with a fourth transmission performance parameter; or, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, and the second antenna set includes an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter; wherein the first transmission performance parameter is greater than the second transmission performance parameter; the second transmission performance parameter is greater than the third transmission performance parameter; and the third transmission performance parameter is greater than the fourth transmission performance parameter.

[0024] In conjunction with the second aspect, in one possible manner, the communication environment in which the electronic device is currently located is a non-weak signal environment; a non-weak signal environment is defined as the received signal parameters of the first user identification card being greater than a first threshold, and the received signal parameters of the second user identification card being greater than a second threshold; the one or more processors invoke the computer instruction to cause the electronic device to perform: determining the first antenna set and the second antenna set based on the network performance parameters corresponding to the service currently being performed by the first user identification card and the network performance parameters corresponding to the service currently being performed by the second user identification card.

[0025] In conjunction with the second aspect, in one possible approach, in response to an anomaly in the network performance parameters corresponding to the service currently being executed by the first user identification card and no anomaly in the network performance parameters corresponding to the service currently being executed by the second user identification card, the first antenna set includes antennas with a first transmission performance parameter and antennas with a second transmission performance parameter, and the second antenna set includes antennas with a third transmission performance parameter and antennas with a fourth transmission performance parameter; wherein, the anomaly in the network performance parameters indicates that the bit error rate is greater than or equal to a bit error rate threshold within a preset time period, and / or, the number of random access failures is greater than or equal to a number threshold; the first transmission performance parameter is greater than the second transmission performance parameter; the second transmission performance parameter is greater than the third transmission performance parameter; and the third transmission performance parameter is greater than the fourth transmission performance parameter.

[0026] In conjunction with the second aspect, in one possible approach, the antenna with the first transmission performance parameter is a main antenna, the antenna with the second transmission performance parameter is a diversity antenna, the antenna with the third transmission performance parameter is a multiple-input multiple-output main antenna, and the antenna with the fourth transmission performance parameter is a multiple-input multiple-output diversity antenna.

[0027] Thirdly, embodiments of this application provide a chip system applied to an electronic device, the chip system having one or more processors that, when the one or more processors execute computer instructions, cause the electronic device to perform the method as described in the first aspect or any possible implementation of the first aspect.

[0028] Fourthly, embodiments of this application provide a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the method as described in the first aspect or any possible implementation of the first aspect.

[0029] Fifthly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in the first aspect or any possible implementation of the first aspect. Attached Figure Description

[0030] Figure 1 A schematic diagram of an antenna for an electronic device provided in an embodiment of this application;

[0031] Figure 2 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0032] Figure 3 This is a schematic diagram of a system architecture applied to an embodiment of this application;

[0033] Figure 4A A flowchart illustrating an antenna allocation method provided in an embodiment of this application;

[0034] Figure 4B A schematic diagram illustrating a transmitting antenna collision provided in an embodiment of this application;

[0035] Figure 4C A schematic diagram of an allocation antenna set provided in an embodiment of this application;

[0036] Figure 5 A flowchart illustrating another antenna allocation method provided in an embodiment of this application;

[0037] Figure 6A This application provides a schematic diagram of antenna allocation in a weak signal environment.

[0038] Figure 6B This application provides another schematic diagram of antenna allocation in a weak signal environment.

[0039] Figure 6C This is a schematic diagram of antenna allocation in a non-weak signal environment provided in an embodiment of this application. Detailed Implementation

[0040] 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, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0041] The terms "first," "second," "third," etc., used in the embodiments of this application are to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, it may include a series of steps or units, or optionally, steps or units not listed, or other steps or units inherent to these processes, methods, products, or devices. The terms "one embodiment" or "some embodiments," etc., mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of the embodiments of this application, do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized.

[0042] Furthermore, "at least one" refers to one or more, while "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0043] To facilitate understanding of the content of this solution, some concepts or technologies involved in the embodiments of this application will be introduced below.

[0044] 1. Dual SIM Dual Pass (DSDA) mode

[0045] The electronic device operates in DSDA mode, allowing two different SIM cards to perform services (such as data services and voice services) simultaneously. That is, in DSDA mode, while one SIM card is transmitting data, the other SIM card can still receive calls or SMS messages. One SIM card can be used as the primary card, and the other as the secondary card. The distinction between primary and secondary cards can be made by the electronic device defaulting to primary and secondary cards according to the manufacturer's rules, or by the electronic device determining the primary and secondary cards based on received user selections; this application does not limit this approach.

[0046] In some embodiments, the DSDA mode can be further divided into full concurrency (FC) dual-pass mode and radio frequency sharing mode. For electronic devices using full concurrency dual-pass mode, two SIM cards can perform communication services simultaneously, and each SIM card can have its own independent radio frequency transmission path, such as a front-end path, antenna, and power supply. For electronic devices using radio frequency sharing mode, two SIM cards can share the same radio frequency transmission path through time-division multiplexing technology. That is, the two SIM cards can use the same radio frequency transmission path at different times.

[0047] In this embodiment, the electronic device can operate in a fully concurrent dual-pass mode within the DSDA mode, allowing two SIM cards to simultaneously perform communication services using different frequency bands. For example, the primary SIM card can use the first frequency band for internet access, while the secondary SIM card can use the second frequency band for voice calls.

[0048] 2. Main antenna, diversity antenna

[0049] In this embodiment, the electronic device may be equipped with a primary receive (PRX) antenna and a diversity receive (DRX) antenna. Typically, the electronic device can use the primary receive antenna to transmit and receive signals, and the diversity antenna to receive signals. If the diversity antenna has the capability to transmit (Tx) signals, in some cases, the electronic device may also use the diversity antenna to transmit signals. Generally, the performance of transmitting signals with the primary receive antenna is better than that with the diversity antenna.

[0050] 3. Multiple-input multiple-output (MIMO) main antenna and multiple-input multiple-output diversity antenna

[0051] In this embodiment of the application, to improve transmission and reception performance, the electronic device may be extended with one or more sets of primary antennas and diversity antennas. The extended primary antenna can be called a MIMO primary receive (PMO) antenna, and the extended diversity antenna can be called a MIMO diversity receive (DMO) antenna. Generally, the performance of MIMO primary antennas in transmitting signals is better than that of MIMO diversity antennas.

[0052] For example, see Figure 1 , Figure 1 This is a schematic diagram of an antenna for an electronic device provided in an embodiment of this application. Figure 1 As shown, the electronic device may include antenna 1101, antenna 1102, antenna 1103, and antenna 1104. Among them, antenna 1101 and antenna 1102 can be a set of main antenna and diversity antenna, and antenna 1103 and antenna 1104 can be an extended set of MIMO main antenna and MIMO diversity antenna.

[0053] 4. Frequency band

[0054] In this embodiment, a frequency band refers to the frequency range within which an electronic device communicates with a network device. Specifically, for electronic devices supporting dual-SIM dual-standby mode, the two SIM cards can operate on different frequency bands, and the frequency band operated by each SIM card can be determined by the network device. Frequency bands are typically divided into three frequency ranges based on frequency dimension: low band (LB), medium high band (MHB), and ultra-high band (UHB). Each frequency range can include multiple frequency bands, as shown in Table 1.

[0055] Table 1

[0056]

[0057] In some embodiments, based on frequency band, the main antenna can be further divided into LB main antenna, MHB main antenna, and UHB main antenna, and the diversity antenna can be further divided into LB diversity antenna, MHB diversity antenna, and UHB diversity antenna; similarly, the MIMO main antenna can be further divided into LB MIMO main antenna, MHB MIMO main antenna, and UHB MIMO main antenna, and the MIMO diversity antenna can be further divided into LB MIMO diversity antenna, MHB MIMO diversity antenna, and UHB MIMO diversity antenna.

[0058] In some scenarios, for electronic devices that support fully concurrent dual-pass mode, the primary SIM card can use the first frequency band to communicate with the network device and perform the first service, while the secondary SIM card can use the second frequency band to communicate with the network device and perform the second service. Assuming that the receiving antenna available for the primary SIM card in the first frequency band is the same as the receiving antenna available for the secondary SIM card in the second frequency band, ... Figure 1 For example, including Figure 1 Antennas 1101, 1102, 1103, and 1104 are included. However, the transmit antennas available to the primary card and the transmit antennas available to the secondary card may be different. For example, the transmit antennas available to the primary card may include... Figure 1 The primary SIM card has antennas 1101, 1102, 1103, and 1104. Only antennas 1101 and 1102 are available for transmission on the secondary SIM card. In this situation, if the primary SIM card is transmitting data using antennas 1101 and 1102, and the secondary SIM card also needs to transmit data, antennas 1101 and 1102 will be preempted by the secondary SIM card. The primary SIM card will then switch to transmitting data using antennas 1103 and 1104. Since antennas 1103 and 1104 are a set of MIMO main antennas and MIMO diversity antennas, and antennas are typically ranked according to their transmission performance parameters as: main antenna > (better than) diversity antenna > (better than) MIMO main antenna > (better than) MIMO diversity antenna, the primary SIM card's transmission antennas will switch from the two better-performing antennas to the two less performing antennas. Therefore, the uplink data transmission quality of the primary SIM card will significantly decrease, affecting its uplink services.

[0059] Therefore, this application provides an antenna allocation method that can be applied to electronic devices supporting dual-SIM dual-pass mode. Using the antenna allocation method provided in this application, when there may be transmit antenna conflicts in the frequency bands of the two SIM cards operating in the electronic device, the transmit antenna can be flexibly allocated based on the service execution status of the two SIM cards, thereby facilitating the smooth execution of services on both SIM cards and improving the user experience.

[0060] The electronic device involved in this application embodiment can be any electronic device that supports dual SIM dual standby mode. For example, the electronic device can be a mobile phone, smartwatch, smart bracelet, or tablet computer, etc. This application embodiment does not limit the specific type of electronic device.

[0061] The hardware structure of the electronic device involved in the embodiments of this application will be described below.

[0062] Please see Figure 2 , Figure 2 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application.

[0063] like Figure 2 As shown, the electronic device 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, an antenna 1 supporting mobile communication, an antenna 2 supporting wireless communication, 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 a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0064] Processor 110 may include one or more processing units, such as: application processor 110A (AP), modem processor 110B (which may be called a modem or baseband chip), graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), and / or neural network processing unit (NPU), etc. The different processing units may be independent devices or integrated into one or more processors.

[0065] A modem may include a SIM card module, which can provide functions related to SIM information, such as network registration and authentication. For example, when using an electronic device with a modem, a user can trigger a local application to access a series of SIM card functions. The SIM card mentioned above can be a physical card (hard card) or a virtual SIM card (soft card), and may include an embedded SIM (eSIM), etc. The specific form of the SIM card is not limited in this embodiment.

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

[0067] The internal memory 121 can be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, phonebook, etc.). Furthermore, the internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. In this embodiment, the electronic device can store first configuration information and second configuration information in the internal memory 121.

[0068] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. The mobile communication function of the electronic device can be implemented through Antenna 1, Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Modem Processor, and Baseband Processor, etc. It should be understood that... Figure 2 The number of antennas mentioned is merely illustrative; the electronic device may also include two or more antennas, such as four or eight antennas. In this embodiment, taking an electronic device with four antennas as an example, it may include a master antenna, a diversity antenna, a MIMO master antenna, and a MIMO diversity antenna.

[0069] The mobile communication module 150 can provide solutions for wireless communication applications in electronic devices, including second-generation (2G), third-generation (3G), fourth-generation (4G), and fifth-generation (5G) mobile communication technologies. The mobile communication module 150 may include at least one filter, switch, power amplifier, low-noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, some functional modules of the mobile communication module 150 and some modules of the processor 110 may be housed in the same device.

[0070] The wireless communication module 160 can provide solutions for wireless communication applications in electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0071] In some embodiments, antenna 1 of the electronic device is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling the electronic device to communicate with networks and other devices via wireless communication technology. Wireless communication technologies may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TDSCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies. GNSS may include Global Positioning System (GPS), Global Navigation Satellite System (GLONASS), BeiDou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0072] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation with the electronic device. The electronic device can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device and cannot be separated from it. In this embodiment, the electronic device can be provided with two or more SIM card interfaces. For ease of understanding, this embodiment takes an electronic device with two SIM card interfaces as an example, and each of the two SIM card interfaces has a SIM card installed in it, which can be referred to as the first SIM card and the second SIM card.

[0073] Figure 2 The structures shown do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or combine some components, or split some components, or have different component arrangements. Figure 2 The components shown can be implemented in hardware, software, or a combination of both.

[0074] For ease of understanding, the system architecture applied to the embodiments of this application will be described below.

[0075] Please see Figure 3 , Figure 3 This is a schematic diagram of a system architecture applied to an embodiment of this application. For example... Figure 3 As shown, the system architecture includes an electronic device 300 and a network device 310. The electronic device 300 can be equipped with two SIM cards, such as a first SIM card and a second SIM card, both of which can communicate with the network device 310. The network device 310 can configure a first frequency band for the first SIM card, allowing it to communicate with the network device and perform a first service. Similarly, the network device can configure a second frequency band for the second SIM card, enabling it to communicate with the network device and perform a second service.

[0076] Figure 3Taking the communication of the first SIM card and the second SIM card with the same network device as an example, in some embodiments, the first SIM card and the second SIM card can also communicate with different network devices. For example, the first SIM card can communicate with the first network device, and the second SIM card can communicate with the second network device. Furthermore, the first SIM card and the second SIM card can belong to the same operator or different operators; this application does not limit this.

[0077] In this embodiment, the electronic device 300 can be an electronic device that supports dual-SIM dual-standby mode, meaning that while the first SIM card is performing a first service, the second SIM card can perform a second service. For example, while the first SIM card is performing a data service, the second SIM card can perform a voice call service. The electronic device 300 can dynamically allocate the transmission antenna based on the services currently being performed by the two SIM cards, avoiding situations where the two SIM cards compete for the transmission antenna, thereby improving the reliability of the electronic device in processing services.

[0078] In the embodiments of this application, the network device 310 may be an evolved base station (NodeB or eNB or e-NodeB) in a long term evolution (LTE) system or an evolved LTE system (LTE-Advanced, LTE-A), or it may be a next-generation node B (gNB) in a 5th generation (5G) new radio (NR) system, or it may be a transmission reception point (TRP), a home base station (e.g., home evolved NodeB, or home Node B, HNB), a base band unit (BBU), or a WiFi access point (AP), or it may be a satellite base station in a non-terrestrial network (NTN) communication system, etc.

[0079] In addition, in the embodiments of this application, the first SIM card can be a primary card and the second SIM card can be a secondary card. Alternatively, the first SIM card can be a secondary card and the second SIM card can be a primary card; this application does not limit this.

[0080] The following is based on Figure 3The system architecture shown provides a detailed description of the antenna allocation method provided in this application embodiment. The antenna allocation method in this application embodiment can be executed by an electronic device or by a device within the electronic device (e.g., a chip, a chip system, or a circuit); this application embodiment does not impose any limitations. For ease of description, execution by an electronic device is used as an example. The electronic device may include a first SIM card and a second SIM card, and supports dual-SIM dual-pass mode.

[0081] Please see Figure 4A , Figure 4A This is a flowchart illustrating an antenna allocation method provided in an embodiment of this application. It mainly describes how an electronic device allocates transmit antennas when there may be transmit antenna conflicts between two SIM cards. Figure 4A As shown, the method may include, but is not limited to, the following steps:

[0082] S401, if the receiving antenna available for the first SIM card is all or part of the same as the receiving antenna available for the second SIM card, the electronic device determines whether the transmitting antenna available for the first SIM card is the same as or overlaps with the transmitting antenna available for the second SIM card.

[0083] In this embodiment of the application, the receiving antenna available for the first SIM card is all or part of the same as the receiving antenna available for the second SIM card, or it can be described as the receiving antenna available for the first SIM card overlapping with the receiving antenna available for the second SIM card.

[0084] In some embodiments, the electronic device can determine whether the available transmit antennas of the first SIM card and the available transmit antennas of the second SIM card are the same or overlap, based on the ability of the first SIM card to switch transmit antennas in a first frequency band and the ability of the second SIM card to switch transmit antennas in a second frequency band. Here, the first frequency band can be understood as the frequency band currently used by the first SIM card, and the second frequency band can be understood as the frequency band currently used by the second SIM card. Alternatively, the first frequency band is the frequency band currently configured for the first SIM card by the network device, and the second frequency band is the frequency band currently configured for the second SIM card by the network device.

[0085] The ability of a first SIM card to switch its transmit antenna in a first frequency band can be expressed as the number of transmit antennas that the first SIM card can switch to in that first frequency band. Similarly, the ability of a second SIM card to switch its transmit antenna in a second frequency band can be expressed as the number of transmit antennas that the second SIM card can switch to in that second frequency band. The ability of both the first and second SIM cards to switch transmit antennas in the first and second frequency bands can be determined by the hardware design and layout of the electronic device, or by the switching rules built into the electronic device. Optionally, the ability of the electronic device to switch transmit antennas in different frequency bands can be stored as configuration information. This allows the electronic device to quickly determine its current transmit antenna switching capability based on the frequency band currently used by the first or second SIM card, according to the configuration information.

[0086] Optionally, the transmit antenna available to the first SIM card may be the same as or overlap with the transmit antenna available to the second SIM card. This can also be described as a potential transmit antenna conflict between the first SIM card and the second SIM card, or a possibility that the first SIM card and the second SIM card may have a transmit antenna conflict.

[0087] For example, such as Figure 4B As shown, assuming that the antenna of an electronic device includes a main antenna, a diversity antenna, a MIMO main antenna, and a MIMO diversity antenna, if the transmit antenna available to the first SIM card includes the main antenna, and the transmit antenna available to the second SIM card also includes the main antenna, then it can be considered that there is a potential transmit antenna conflict between the first SIM card and the second SIM card.

[0088] In this application embodiment, the situation where the first SIM card and the second SIM card have the same receiving antenna may include: the situation where all the currently available receiving antennas of the first SIM card and the currently available receiving antennas of the second SIM card are the same, and the situation where some of the currently available receiving antennas of the first SIM card and the currently available receiving antennas of the second SIM card are the same.

[0089] The following examples illustrate how to determine whether there is a potential transmit antenna conflict between two SIM cards in two different scenarios:

[0090] Example 1: All available receiving antennas are identical.

[0091] Assume that the first SIM card has the following available receiving antennas in the first frequency band (e.g., N41 band): antenna 4, antenna 1, antenna 2, and antenna 8; and the second SIM card has the following available receiving antennas in the second frequency band (e.g., B1 band): antenna 4, antenna 1, antenna 2, and antenna 8; that is, the first and second SIM cards have the same available receiving antennas. If the first SIM card has a 4-way switching capability for its transmitting antennas in the first frequency band, for example, the available transmitting antennas for the first SIM card may include antenna 4, antenna 1, antenna 2, and antenna 8; and if the second SIM card has a 2-way switching capability for its transmitting antennas in the second frequency band, for example, the available transmitting antennas for the second SIM card may include antenna 4 and antenna 1; then, if the first and second SIM cards perform uplink services simultaneously, there may be a situation where antenna 4 and antenna 1 are preempted. In other words, there is a potential transmitting antenna conflict between the first and second SIM cards.

[0092] Example 2, the available receiving antenna section is the same.

[0093] Assume that the first SIM card has the following available receiving antennas in the first frequency band (e.g., N41 band): antenna 4, antenna 1, antenna 2, and antenna 8; and the second SIM card has the following available receiving antennas in the second frequency band (e.g., N78 band): antenna 7, antenna 6, antenna 4, and antenna 2. That is, the first and second SIM cards share two identical receiving antennas: antenna 4 and antenna 2. If the first SIM card has a 4-way switching capability for its transmitting antennas in the first frequency band (e.g., the available transmitting antennas could include antenna 4, antenna 1, antenna 2, and antenna 8), and the second SIM card has a 2-way switching capability for its transmitting antennas in the second frequency band (e.g., the available transmitting antennas could include antenna 7 and antenna 6), then the first and second SIM cards have different available transmitting antennas, confirming that there is no potential transmitting antenna conflict between them. If the first SIM card has a 4-way antenna switching capability in the first frequency band (e.g., antennas 4, 1, 2, and 8 are available), and the second SIM card also has a 4-way antenna switching capability in the second frequency band (e.g., antennas 7, 6, 4, and 2 are available), then there is overlap between the available antennas of the first and second SIM cards: antennas 4 and 2. When both SIM cards are performing uplink services simultaneously, antennas 4 and 2 may be preempted. In other words, there is a potential antenna conflict between the first and second SIM cards.

[0094] S402, when the transmit antenna available for the first SIM card is the same as or overlaps with the transmit antenna available for the second SIM card, the electronic device determines the first antenna set and the second antenna set according to the first service and the second service.

[0095] Here, "first service" refers to the service currently performed by the first SIM card, and "second service" refers to the service currently performed by the second SIM card. "First antenna set" refers to the currently available transmit antennas allocated by the electronic device to the first SIM card, and "second antenna set" refers to the currently available transmit antennas allocated by the electronic device to the second SIM card. The first antenna set and the second antenna set are different antenna sets.

[0096] For example, such as Figure 4C As shown, assuming the antennas of the electronic device include a main antenna, a diversity antenna, a MIMO main antenna, and a MIMO diversity antenna, the first antenna set allocated to the first SIM card may include, for example, the main antenna and the MIMO main antenna, and the second antenna set allocated to the second SIM card may include, for example, the diversity antenna and the MIMO diversity antenna. In this way, by allocating different antenna sets to the two SIM cards, the transmission antenna conflict between the two SIM cards can be avoided.

[0097] Optionally, before determining the first antenna set and the second antenna set, the electronic device can query the stored configuration information to obtain the available transmitting antennas of the first SIM card based on the frequency band used by the first SIM card. Similarly, the electronic device can query the stored configuration information to obtain the available transmitting antennas of the second SIM card based on the frequency band used by the second SIM card.

[0098] In one implementation, the electronic device can determine the first antenna set and the second antenna set based on the priority of the first service and the priority of the second service. The priorities of the first and second services can be determined based on priority reference information configured in the network device, or based on priority reference information pre-stored in the electronic device. This embodiment uses the configuration of priority reference information in the network device as an example. The priority reference information can include priority parameters for multiple services, and the magnitude of the priority parameter is related to the priority level. A larger priority parameter indicates a higher priority, or vice versa. The specific settings can be configured according to actual needs. This embodiment uses the example of a larger priority parameter indicating a higher priority. For example, the network device can configure the priority parameter for the call service to be 5 and the priority parameter for the internet access service to be 4. The priority parameter for the call service is greater than the priority parameter for the internet access service, meaning that the call service has a higher priority than the internet access service.

[0099] Optionally, the priority of the first service and the priority of the second service may be the same or different. If the priority parameter of the first service is equal to the priority parameter of the second service, it means that the priorities of the first service and the second service are the same. If the priority parameter of the first service is not equal to the priority parameter of the second service, it means that the priorities of the first service and the second service are different.

[0100] In this embodiment, the antenna of the electronic device may include: a main antenna, a diversity antenna, a MIMO main antenna, and a MIMO diversity antenna. Different antennas have different transmission performance parameters. Transmission performance parameters refer to parameters related to the antenna's transmission performance, which can be used to measure the antenna's performance when transmitting data; for example, they may be parameters such as maximum transmission power. Generally, the transmission performance parameters of the main antenna > the transmission performance parameters of the diversity antenna > the transmission performance parameters of the MIMO main antenna > the transmission performance parameters of the MIMO diversity antenna (this embodiment uses this as an example). In other embodiments, the antenna transmission performance parameters may be in a different order; for example, the transmission performance parameter of the MIMO main antenna may be the highest. This application does not specifically limit this.

[0101] The following explains how electronic devices allocate transmitting antennas in two different scenarios:

[0102] Scenario 1: The priority of the first service is the same as the priority of the second service.

[0103] In this scenario, the electronic device can prioritize antennas based on their transmission performance parameters, distributing them as evenly as possible between the two SIM cards performing the service. One possible strategy is to allocate the antenna with the highest transmission performance parameter to the first SIM card and the antenna with the second highest parameter to the second SIM card, in descending order of transmission performance parameters. For example, the electronic device can allocate transmission antennas in any of the following ways:

[0104] 1) The first antenna set includes: main antenna and MIMO diversity antenna; the second antenna set includes: diversity antenna and MIMO main antenna;

[0105] 2) The first antenna set includes: diversity antennas and MIMO main antennas; the second antenna set includes: main antennas and MIMO diversity antennas;

[0106] 3) The first antenna set includes: main antenna and MIMO main antenna; the second antenna set includes: diversity antenna and MIMO diversity antenna.

[0107] In this way, one of the two antenna sets allocated to the two SIM cards can include the antenna with the largest transmission performance parameter (such as the main antenna), and the other can include the antenna with the second largest transmission performance parameter (such as the diversity antenna), which is conducive to the smooth execution of uplink services for both SIM cards.

[0108] Optionally, the electronic device can also prioritize assigning the primary SIM card with the best transmission performance parameters based on their transmission performance parameters. In this case, the strategy for assigning transmission antennas could be to allocate the antenna with the highest transmission performance parameter to the primary SIM card, in descending order of parameter size.

[0109] For example, assuming the first SIM card is the primary card and the second SIM card is the secondary card, the electronic device can allocate its transmitting antenna in any of the following ways:

[0110] 1) The first antenna set includes: main antenna and diversity antenna; the second antenna set includes: MIMO main antenna and MIMO diversity antenna;

[0111] 2) The first antenna set includes: main antenna and MIMO main antenna; the second antenna set includes: diversity antenna and MIMO diversity antenna.

[0112] Scenario 2: The priorities of the first service and the second service are different.

[0113] In this scenario, electronic devices can prioritize SIM cards using higher-priority services by allocating antennas based on their transmission performance parameters. One strategy for allocating antennas could be to assign the antenna with the highest transmission performance parameter to the SIM card performing the higher-priority service, and the antenna with the second-highest transmission performance parameter to the SIM card performing the lower-priority service, in descending order of parameter. Here, a higher-priority service can be the one with the larger priority parameter between the two services, and a lower-priority service can be the one with the smaller priority parameter.

[0114] For example, assuming the first service is a high-priority service and the second service is a low-priority service, the way electronic devices allocate transmit antennas could be as follows: the first antenna set includes a main antenna and a MIMO main antenna; the second antenna set includes a diversity antenna and a MIMO diversity antenna.

[0115] For example, assuming the first service is a low-priority service and the second service is a high-priority service, the way electronic devices allocate transmit antennas could be as follows: the first antenna set includes diversity antennas and MIMO diversity antennas; the second antenna set includes main antennas and MIMO main antennas.

[0116] In this way, both SIM cards can be assigned to antennas with good transmission performance, and the two SIM cards have different available transmission antennas, which can avoid the situation of competing for transmission antennas.

[0117] In another implementation, the electronic device can determine the first antenna set and the second antenna set based on the network performance parameters corresponding to the first service and the second service. The network performance parameters corresponding to the first service refer to the network performance parameters of the first SIM card currently executing the first service, and the network performance parameters corresponding to the second service refer to the network performance parameters of the second SIM card currently executing the second service. A network performance parameter corresponding to a service may include: the uplink bit error rate (BER) within a preset time period, and / or the number of consecutive random access failures. Here, the uplink bit error rate within the preset time period indicates the ratio of erroneous bits to the total number of transmitted bits when the electronic device sends data, and can be used to measure the quality of uplink data transmission. Random access failure indicates that network resources were not acquired during the random access process.

[0118] Specifically, the electronic device can determine whether there are any anomalies in the network performance parameters corresponding to the first service and the second service. If either the network performance parameter corresponding to the first service or the second service is abnormal, then, based on the antenna's transmission performance parameters, the service with the abnormal network performance parameter can be preferentially assigned a transmission antenna with better transmission performance parameters. Abnormal network performance parameters may include: an uplink bit error rate greater than or equal to a bit error rate threshold within a preset time period, and / or, a number of consecutive random access failures greater than or equal to a number threshold.

[0119] For example, assuming that the network performance parameters corresponding to the first service are abnormal, while the network performance parameters corresponding to the second service are not abnormal, then the way the electronic device allocates the transmit antennas can be as follows: the first antenna set includes: a main antenna and a diversity antenna; the second antenna set includes: a MIMO main antenna and a MIMO diversity antenna.

[0120] For example, assuming that the network performance parameters corresponding to the first service are normal, but the network performance parameters corresponding to the second service are abnormal, then the way the electronic device allocates the transmit antennas can be as follows: the first antenna set includes: MIMO main antenna and MIMO diversity antenna; the second antenna set includes: main antenna and diversity antenna.

[0121] In this way, electronic devices can prioritize assigning antennas with better transmission performance to SIM cards with abnormal network performance parameters, thereby improving service stability.

[0122] By implementing the embodiments of this application, for electronic devices that support dual-SIM dual-pass mode, when two SIM cards are performing services simultaneously, the transmitting antenna can be dynamically allocated according to the specific circumstances of the two SIM cards performing services, avoiding the situation of transmitting antenna conflict between the two SIM cards, thereby improving the stability and reliability of the electronic device performing services and enhancing the user experience.

[0123] The above describes the overall process of allocating transmitting antennas for electronic devices. In some embodiments, electronic devices may use different methods to allocate transmitting antennas for different scenarios. Please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a flowchart illustrating another antenna allocation method provided in an embodiment of this application. Figure 5 The antenna allocation method provided in this application is described in more detail, distinguishing between different scenarios. For example... Figure 5 As shown, the method may include, but is not limited to, the following steps:

[0124] S501, the electronic device determines whether the first SIM card and the second SIM card have the same receiving antenna based on the first configuration information and the second configuration information.

[0125] The first configuration information indicates the receiving antennas available for the first SIM card in the first frequency band, and the second configuration information indicates the receiving antennas available for the second SIM card in the second frequency band. The first frequency band is the frequency band currently used by the first SIM card, and the second frequency band is the frequency band currently used by the second SIM card.

[0126] For a SIM card, different receiving antennas can be used in different frequency bands. The available receiving antennas for each frequency band can be pre-configured. The configuration methods for receiving antennas in different frequency bands can be referred to in Table 2:

[0127] Table 2

[0128] frequency band Available receiving antennas Band 1 Antenna 4, Antenna 1, Antenna 2, Antenna 8 Band 2 Antenna 4, Antenna 2, Antenna 7, Antenna 6 Band 3 Antenna 4, Antenna 1, Antenna 2, Antenna 8

[0129] In this embodiment of the application, the first configuration information or the second configuration information can be understood as a configuration item in Table 2. Based on the first frequency band used by the first SIM card and the second frequency band used by the second SIM card, the currently available receiving antennas of the first SIM card and the currently available receiving antennas of the second SIM card can be obtained from Table 2, and then it can be determined whether the first SIM card and the second SIM card have the same receiving antenna.

[0130] S502, if the receiving antenna available for the first SIM card is all or part of the same as the receiving antenna available for the second SIM card, the electronic device determines whether the transmitting antenna available for the first SIM card is the same as or overlaps with the transmitting antenna available for the second SIM card.

[0131] In this embodiment of the application, the specific implementation process of step S502 can be found in [reference needed]. Figure 4A The relevant description of step S401 in the illustrated embodiment will not be repeated here.

[0132] S503 identifies the current communication environment of the electronic device when the transmit antenna available for the first SIM card is the same as or overlaps with the transmit antenna available for the second SIM card.

[0133] The current communication environment of an electronic device can be understood as the network conditions under which the electronic device is currently making voice calls, transmitting data, or providing other communication services.

[0134] In this embodiment of the application, the communication environment can be divided into a weak signal environment and a non-weak signal environment. The electronic device can evaluate the quality of the received signals of the two SIM cards through the received signal parameters of the two SIM cards, and then identify whether the current communication environment is a weak signal environment or a non-weak signal environment.

[0135] In one possible design, a weak signal environment can refer to: the received signal parameters of the first SIM card being less than or equal to a first threshold, or the received signal parameters of the second SIM card being less than or equal to a second threshold, or both the received signal parameters of the first SIM card and the second SIM card being less than or equal to the second threshold. A non-weak signal environment can refer to: the received signal parameters of the first SIM card being greater than the first threshold, and both the received signal parameters of the second SIM card being greater than the second threshold.

[0136] In another possible design, a weak signal environment can refer to: the received signal parameters of the first SIM card being less than a first threshold, or the received signal parameters of the second SIM card being less than a second threshold, or both the received signal parameters of the first SIM card and the second SIM card being less than the second threshold. A non-weak signal environment can refer to: the received signal parameters of the first SIM card being greater than or equal to the first threshold, and both the received signal parameters of the second SIM card being greater than or equal to the second threshold.

[0137] Optionally, the received signal parameters can be a measurement of the Reference Signal Received Power (RSRP) and / or a measurement of the Reference Signal Received Quality (RSRQ). Here, RSRP measures the power of the downlink reference signal received by the electronic device within the serving cell, and RSRQ is the quality of the reference signal measured by the electronic device, which can be calculated by comparing the received reference signal power with the total interference plus noise power.

[0138] For example, if the RSRP of the first SIM card is less than or equal to a first threshold, it indicates that the wireless signal strength of the electronic device using the first SIM card to communicate with the network device is weak. If the RSRQ of the first SIM card is less than or equal to a second threshold, it indicates that the signal quality of the electronic device using the first SIM card to communicate with the network device is poor. Similarly, if the RSRP of the second SIM card is less than or equal to the first threshold, it indicates that the wireless signal strength of the electronic device using the second SIM card to communicate with the network device is weak. If the RSRQ of the second SIM card is less than or equal to the second threshold, it indicates that the signal quality of the electronic device using the second SIM card to communicate with the network device is poor.

[0139] In weak signal environments, electronic devices can identify the current communication environment as a weak signal environment if either of the two SIM cards has a weak signal strength or poor signal quality. The electronic device can also identify the current communication environment as a weak signal environment if both SIM cards have weak signal strength or poor signal quality. When the electronic device identifies the current communication environment as a weak signal environment, to avoid the best-performing antennas being used by the same SIM card, thus affecting the uplink service of the other SIM card, the electronic device can allocate transmission antennas to the two SIM cards by combining the priority of the services executed by the two SIM cards (i.e., the first service and the second service) and the antenna transmission performance parameters.

[0140] In environments with strong or good signals, electronic devices can identify the current communication environment as such if both SIM cards have relatively strong or good signal quality. Once the electronic device identifies the current communication environment as such, it can combine the network performance parameters of both SIM cards during service execution with the antenna transmission performance parameters, prioritizing the SIM card with abnormal network performance parameters by assigning it an antenna with better transmission performance.

[0141] The following sections provide a detailed introduction to the methods of allocating transmitting antennas for electronic devices in different scenarios:

[0142] Scenario 1: The current communication environment of the electronic device is a weak signal environment (including steps S504 to S508):

[0143] S504, in response to the fact that the current communication environment of the electronic device is a weak signal environment, the electronic device determines whether the priority of the first service is the same as the priority of the second service.

[0144] In some embodiments, the electronic device may determine whether the priority of a first service is the same as the priority of a second service by obtaining priority reference information and determining whether the priorities of the first service and the second service are the same based on the priority reference information. The priority reference information may include priority parameters for multiple services. Optionally, a larger priority parameter for a service indicates a higher priority for that service. For example, Table 3 shows one type of priority reference information:

[0145] Table 3

[0146] business Priority parameter call 5 game 4 music 4

[0147] As shown in Table 3, the priority parameter for the call service is the highest, which means that the call service has the highest priority; the priority parameters for the game service and the music service are the same, which means that the game service and the music service have the same priority.

[0148] S505, in response to the fact that the priority of the first service is the same as the priority of the second service, the electronic device determines the first antenna set and the second antenna set according to the first transmission performance parameter and the second transmission performance parameter.

[0149] Optionally, steps S504 and S505 can be executed sequentially, such as executing step S504 first and then step S505; or, steps S504 and S505 can be combined into one step, such as steps S504 and S505 can be combined into one step, in response to the current communication environment of the electronic device being a weak signal environment, and the priority of the first service being the same as the priority of the second service, the electronic device determines the first antenna set and the second antenna set according to the first transmission performance parameter and the second transmission performance parameter.

[0150] The electronic device may include multiple antennas with different transmission performance parameters. The first transmission performance parameter may refer to the largest transmission performance parameter among the multiple antennas of the electronic device. The second transmission performance parameter may refer to the second largest (or described as the second largest) transmission performance parameter among the multiple antennas of the electronic device. For explanations of transmission performance parameters, the first antenna set, and the second antenna set, please refer to [link to relevant documentation]. Figure 4A The descriptions in the illustrated embodiments are not repeated here.

[0151] Optionally, if the priority of the first service and the priority of the second service are the same, the first antenna set may include antennas with a first transmission performance parameter, and the second antenna set may include antennas with a second transmission performance parameter. Alternatively, the first antenna set may include antennas with a second transmission performance parameter, and the second antenna set may include antennas with a first transmission performance parameter. That is, if the priority of the first service and the priority of the second service are the same, the antenna with the highest transmission performance parameter is assigned to any SIM card, and the antenna with the second highest transmission performance parameter is assigned to the other SIM card.

[0152] In some embodiments, when the priority of the first service and the priority of the second service are the same, the electronic device may also allocate transmit antennas according to the priority of the primary SIM card and the priority of the secondary SIM card. The priorities of the primary SIM card and the secondary SIM card may be pre-configured. Optionally, the priority of the primary SIM card may be higher than the priority of the secondary SIM card, or vice versa. The electronic device may assign antennas with a first transmission performance parameter to SIM cards with higher priority and antennas with a second transmission performance parameter to SIM cards with lower priority. Alternatively, the electronic device may assign both antennas with the first transmission performance parameter and antennas with the second transmission performance parameter to SIM cards with higher priority, and assign antennas other than those with the first and second transmission performance parameters to SIM cards with lower priority.

[0153] In some embodiments, in a weak signal environment, the electronic device can more specifically distinguish between a scenario where the receiving antennas of the two SIM cards are all the same and a scenario where the receiving antennas of the two SIM cards are partially the same, and then use different methods to allocate the transmitting antennas for these two more specific scenarios.

[0154] Scenario 1-1: The electronic device is currently in a weak signal environment, and the receiving antennas of the first SIM card and the second SIM card are identical.

[0155] Optionally, in this scenario, the electronic device can assign an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter to a first SIM card and a second SIM card, respectively. That is, one antenna set may include antennas with the first transmission performance parameter, and the other antenna set may include antennas with the second transmission performance parameter.

[0156] Scenario 1-2: The electronic device is currently in a strong signal environment, and the receiving antennas of the first and second SIM cards are identical.

[0157] Optionally, in this scenario, the electronic device can allocate antennas with the first transmission performance parameter and antennas with the second transmission performance parameter to the higher-priority SIM card based on the priority of the primary SIM card and the secondary SIM card, and allocate antennas with the remaining transmission performance parameters (such as the third and fourth transmission performance parameters) to the lower-priority SIM card. Alternatively, the electronic device can allocate antennas with the first transmission performance parameter to the higher-priority SIM card and antennas with the second transmission performance parameter to the lower-priority SIM card.

[0158] S506, in response to the fact that the priority of the first service is different from the priority of the second service, the electronic device determines whether the priority of the first service is higher than the priority of the second service.

[0159] When the priorities of the first service and the second service are different, the electronic device can determine whether the priority of the first service is higher than the priority of the second service.

[0160] Optionally, the electronic device may not execute step S506. For example, the electronic device may obtain the comparison result of the priority of the first service and the priority of the second service in step S504. In this case, in response to the current communication environment of the electronic device being in a weak signal environment and the priority of the first service being higher than the priority of the second service, step S507 can be executed; in response to the current communication environment of the electronic device being in a weak signal environment and the priority of the first service being lower than the priority of the second service, step S508 can be executed.

[0161] S507, when the priority of the first service is higher than that of the second service, the electronic equipment determines the first antenna set based on the first transmission performance parameter and the third transmission performance parameter, and determines the second antenna set based on the second transmission performance parameter and the fourth transmission performance parameter.

[0162] The third transmission performance parameter can refer to the third largest transmission performance parameter among the multiple antennas of the electronic device. Similarly, the fourth transmission performance parameter can refer to the fourth largest transmission performance parameter among the multiple antennas of the electronic device. In other words, among the multiple antennas of the electronic device, the first transmission performance parameter is greater than the second, the second is greater than the third, and the third is greater than the fourth.

[0163] In this embodiment of the application, when the priority of the first service is higher than that of the second service, the first antenna set may include an antenna with a first transmission performance parameter and an antenna with a third transmission performance parameter, and the second antenna set may include an antenna with a second transmission performance parameter and an antenna with a fourth transmission performance parameter.

[0164] In this way, although the transmission performance of the first antenna set is better than that of the second antenna set, the second antenna set can also include antennas with larger transmission performance parameters (i.e., antennas with second transmission performance parameters). This allows for prioritizing the improvement of uplink data transmission quality for the first service while also taking into account the uplink data transmission quality for the second service.

[0165] S508, when the priority of the second service is higher than that of the first service, the electronic device determines the first antenna set based on the second transmission performance parameters and the fourth transmission performance parameters, and determines the second antenna set based on the first transmission performance parameters and the third transmission performance parameters.

[0166] Similarly, in this embodiment, when the priority of the second service is higher than that of the first service, the first antenna set may include an antenna with a second transmission performance parameter and an antenna with a fourth transmission performance parameter, and the second antenna set may include an antenna with a first transmission performance parameter and an antenna with a third transmission performance parameter. In this way, the transmission antennas can be allocated hierarchically based on the priority of the services executed by the two SIM cards, avoiding preemption of transmission antennas and improving the service stability of the two SIM cards.

[0167] Scenario 2: The current communication environment of the electronic device is not a weak signal environment (including steps S509 to S5012):

[0168] S509, in response to the fact that the current communication environment of the electronic device is not a weak signal environment, the electronic device determines whether there is an abnormality in the network performance parameters corresponding to the first service.

[0169] The network performance parameters corresponding to the first service may include the uplink bit error rate of the first SIM card performing the first service within a preset time period, and / or the number of consecutive random access failures. Abnormal network performance parameters may refer to the uplink bit error rate being greater than or equal to a bit error rate threshold within the preset time period, and / or the number of consecutive random access failures being greater than or equal to a number threshold.

[0170] S510, in response to an anomaly in the network performance parameters corresponding to the first service, the electronic device determines the first antenna set based on the first and second transmission performance parameters, and determines the second antenna set based on the third and fourth transmission performance parameters.

[0171] Optionally, steps S509 and S510 can be executed sequentially, such as executing step S509 first and then step S510; or, steps S509 and S510 can be combined into one step, such as steps S509 and S510 can be combined into one step, in response to the fact that the current communication environment of the electronic device is a non-weak signal environment and the network performance parameters corresponding to the first service are abnormal, the electronic device determines the first antenna set and the second antenna set according to the first transmission performance parameters and the second transmission performance parameters.

[0172] In this embodiment, if there is an anomaly in the network performance parameters corresponding to the first service, the first antenna set may include an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, and the second antenna set may include an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter. In this way, antennas with better transmission performance can be preferentially used for the first SIM card experiencing the anomaly, thereby preventing the first service from being affected.

[0173] S511: If there are no abnormalities in the network performance parameters corresponding to the first service, the electronic device determines whether there are any abnormalities in the network performance parameters corresponding to the second service.

[0174] Optionally, the electronic device may not execute step S511. For example, the electronic device may also determine whether there is an abnormality in the network performance parameters corresponding to the second service in step S509. In this case, in response to the fact that the current communication environment of the electronic device is not a weak signal environment, and the network performance parameters corresponding to the first service are not abnormal, but the network performance parameters corresponding to the second service are abnormal, step S512 can be executed.

[0175] S512, if there is an anomaly in the network performance parameters corresponding to the second service, the electronic device determines the first antenna set based on the third and fourth transmission performance parameters, and determines the second antenna set based on the first and second transmission performance parameters.

[0176] Similarly, in this embodiment, if there are no anomalies in the network performance parameters corresponding to the first service, but anomalies exist in the network performance parameters corresponding to the second service, the first antenna set may include an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter, and the second antenna set may include an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter. In this way, antennas with better transmission performance can be preferentially used for the second SIM card experiencing anomalies, thereby preventing the second service from being affected.

[0177] In some embodiments, if there are no abnormalities in the network performance parameters corresponding to the second service, the electronic device can allocate according to the priority of the primary card and the secondary card. For example, the antenna with the first transmission performance parameter and the antenna with the second transmission performance parameter can be allocated to the SIM card with higher priority, and the antenna with the third transmission performance parameter and the antenna with the fourth transmission performance parameter can be allocated to the SIM card with lower priority.

[0178] The following examples illustrate how to allocate transmitting antennas in weak signal environments and non-weak signal environments as described in the above embodiments.

[0179] Assume the electronic device includes: a main antenna, a diversity antenna, a MIMO main antenna, and a MIMO diversity antenna. The transmit performance parameters of the main antenna are: > transmit performance parameters of the diversity antenna > transmit performance parameters of the MIMO main antenna > transmit performance parameters of the MIMO diversity antenna. That is, the main antenna corresponds to the antenna with the first transmit performance parameter, the diversity antenna corresponds to the antenna with the second transmit performance parameter, the MIMO main antenna corresponds to the antenna with the third transmit performance parameter, and the MIMO diversity antenna corresponds to the antenna with the fourth transmit performance parameter.

[0180] Example 1, such as Figure 6A As shown, taking an electronic device in a weak signal environment, where the priority of the first service is the same as that of the second service, the method of allocating transmitting antennas for the electronic device can include:

[0181] In Method 1, the first antenna set allocated to the first SIM card includes: an antenna with a first transmission performance parameter and an antenna with a third performance parameter, namely, a main antenna and a MIMO main antenna; the second antenna set allocated to the second SIM card includes: an antenna with a second performance parameter and an antenna with a fourth performance parameter, namely, a diversity antenna and a MIMO diversity antenna.

[0182] Method 2: The first antenna set allocated to the first SIM card includes an antenna with a first transmission performance parameter and an antenna with a fourth transmission performance parameter, namely a main antenna and a MIMO diversity antenna; the second antenna set allocated to the second SIM card includes an antenna with a second transmission performance parameter and an antenna with a third transmission performance parameter, namely a diversity antenna and a MIMO main antenna.

[0183] Method 3: The first antenna set allocated to the first SIM card (e.g., the primary card) includes an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, namely, a main antenna and a diversity antenna; the second antenna set allocated to the second SIM card (e.g., the secondary card) includes an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter, namely, a MIMO main antenna and a MIMO diversity antenna.

[0184] Example 2, such as Figure 6B As shown, taking the case where the electronic device is in a weak signal environment and the priority of the first service is higher than that of the second service as an example, the way the electronic device allocates the transmitting antenna can be as follows: the first antenna set allocated to the first SIM card includes: an antenna with a first transmission performance parameter and an antenna with a third transmission performance parameter, namely the main antenna and the MIMO main antenna; the second antenna set allocated to the second SIM card includes: an antenna with a second transmission performance parameter and an antenna with a fourth transmission performance parameter, namely the diversity antenna and the MIMO diversity antenna.

[0185] Example 3, such as Figure 6C As shown, taking an electronic device in a non-weak signal environment, where the network performance parameters corresponding to the first service are abnormal and the network performance parameters corresponding to the second service are not abnormal as an example, the way the electronic device allocates transmission antennas can be as follows: the first antenna set allocated to the first SIM card includes: an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, i.e., a main antenna and a diversity antenna; the second antenna set allocated to the second SIM card includes: an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter, i.e., a MIMO main antenna and a MIMO diversity antenna.

[0186] By implementing the embodiments of this application, for electronic devices that support dual-SIM dual-pass mode, when two SIM cards are performing services simultaneously, different transmission antennas can be allocated to the two SIM cards based on the current communication environment and the specific circumstances of the services performed by the two SIM cards. This avoids transmission antenna conflicts between the two SIM cards, thereby improving the stability and reliability of the electronic device in performing services and enhancing the user experience.

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

[0188] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0189] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.

[0190] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.

[0191] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, ROM, RAM, disk or optical disk, etc.

[0192] The above-disclosed embodiments are merely one preferred embodiment of this application and only a part of the embodiments of this application. They should not be construed as limiting the scope of the claims of this application.

Claims

1. An antenna allocation method, characterized in that, The method is applied to an electronic device including a first user identification card and a second user identification card, the electronic device supporting dual-card dual-pass mode, and the method includes: In response to the overlap between the available receiving antennas of the first user identification card and the available receiving antennas of the second user identification card, and the overlap between the available transmitting antennas of the first user identification card and the available transmitting antennas of the second user identification card, a first antenna set and a second antenna set are determined based on the service currently being performed by the first user identification card and the service currently being performed by the second user identification card; the first antenna set includes the transmitting antennas currently available by the first user identification card, and the second antenna set includes the transmitting antennas currently available by the second user identification card; the transmitting antennas in the first antenna set and the transmitting antennas in the second antenna set do not overlap.

2. The method as described in claim 1, characterized in that, The method further includes: Based on the first configuration information and the second configuration information, it is determined whether the receiving antennas available for the first user identification card and the receiving antennas available for the second user identification card overlap; the first configuration information is used to indicate the receiving antennas available for the first user identification card in the first frequency band, and the second configuration information is used to indicate the receiving antennas available for the second user identification card in the second frequency band; the first frequency band is the frequency band currently used by the first user identification card, and the second frequency band is the frequency band currently used by the second user identification card.

3. The method as described in claim 1, characterized in that, The current communication environment of the electronic device is a weak signal environment; the weak signal environment is any one of the following: the received signal parameters of the first user identification card are less than or equal to a first threshold; the received signal parameters of the second user identification card are less than or equal to a second threshold; the received signal parameters of the first user identification card are less than or equal to the first threshold, and the received signal parameters of the second user identification card are less than or equal to the second threshold. The step of determining the first antenna set and the second antenna set based on the service currently being performed by the first user identification card and the service currently being performed by the second user identification card includes: The first antenna set and the second antenna set are determined based on the priority of the service currently being executed by the first user identification card and the priority of the service currently being executed by the second user identification card.

4. The method as described in claim 3, characterized in that, In response to the fact that the priority of the service currently being executed by the first user identification card is higher than the priority of the service currently being executed by the second user identification card, The first antenna set includes antennas having a first transmission performance parameter, and the second antenna set includes antennas having a second transmission performance parameter; The antenna with the first transmission performance parameter is the antenna with the largest transmission performance parameter in the electronic device, and the antenna with the second transmission performance parameter is the antenna with the second largest transmission performance parameter in the electronic device.

5. The method as described in claim 3, characterized in that, In response to the fact that the priority of the service currently being executed by the first user identification card is the same as the priority of the service currently being executed by the second user identification card, The first antenna set includes an antenna with a first transmission performance parameter and an antenna with a fourth transmission performance parameter, and the second antenna set includes an antenna with a second transmission performance parameter and an antenna with a third transmission performance parameter. or, The first antenna set includes an antenna having the first transmission performance parameter and an antenna having the third transmission performance parameter, and the second antenna set includes an antenna having the second transmission performance parameter and an antenna having the fourth transmission performance parameter; or, The first antenna set includes an antenna having the first transmission performance parameter and an antenna having the second transmission performance parameter; the second antenna set includes an antenna having the third transmission performance parameter and an antenna having the fourth transmission performance parameter. Wherein, the first launch performance parameter is greater than the second launch performance parameter; the second launch performance parameter is greater than the third launch performance parameter; and the third launch performance parameter is greater than the fourth launch performance parameter.

6. The method as described in claim 1, characterized in that, The current communication environment of the electronic device is a non-weak signal environment; the non-weak signal environment is defined as the received signal parameters of the first user identification card being greater than a first threshold, and the received signal parameters of the second user identification card being greater than a second threshold. The step of determining the first antenna set and the second antenna set based on the service currently being performed by the first user identification card and the service currently being performed by the second user identification card includes: The first antenna set and the second antenna set are determined based on the network performance parameters corresponding to the service currently being performed by the first user identification card and the network performance parameters corresponding to the service currently being performed by the second user identification card.

7. The method as described in claim 6, characterized in that, In response to an abnormality in the network performance parameters corresponding to the service currently being executed by the first user identification card and no abnormality in the network performance parameters corresponding to the service currently being executed by the second user identification card, the first antenna set includes an antenna with a first transmission performance parameter and an antenna with a second transmission performance parameter, and the second antenna set includes an antenna with a third transmission performance parameter and an antenna with a fourth transmission performance parameter. Among them, the network performance parameter anomaly indicates that the bit error rate is greater than or equal to the bit error rate threshold within a preset time period, and / or the number of random access failures is greater than or equal to the number threshold; the first transmission performance parameter is greater than the second transmission performance parameter; the second transmission performance parameter is greater than the third transmission performance parameter; and the third transmission performance parameter is greater than the fourth transmission performance parameter.

8. The method as described in claim 7, characterized in that, The antenna with the first transmission performance parameter is a main antenna, the antenna with the second transmission performance parameter is a diversity antenna, the antenna with the third transmission performance parameter is a multiple-input multiple-output main antenna, and the antenna with the fourth transmission performance parameter is a multiple-input multiple-output diversity antenna.

9. An electronic device, characterized in that, The device includes a memory and one or more processors; the memory is coupled to the one or more processors for storing a computer program, the computer program including program instructions; the one or more processors invoke the program instructions to cause the electronic device to perform the method as described in any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1-8.

11. A chip system applied to an electronic device, characterized in that, It includes one or more processors, which, when executing computer instructions, cause the electronic device to perform the method as described in any one of claims 1-8.