Method for adjusting antenna switching capability, and device, storage medium and chip system

By using configuration files in electronic devices to adjust the antenna switching capability of the main card, the problem of affecting the sub-card reception signal after switching the transmitting antenna in dual-stop mode is solved, and more flexible antenna switching and avoiding service interruption is achieved.

WO2025092045A1PCT designated stage expired Publication Date: 2025-05-08HONOR DEVICE CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/106989
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-10-30
Filing Date
2024-07-23
Publication Date
2025-05-08

AI Technical Summary

Technical Problem

In dual-stop mode, when the main card supports time-division duplex antenna switching mode, the main card switches the transmitting antenna and may cause the sub-card reception signal to be affected by the main card transmitting signal, resulting in service interruption.

Method used

By using a configuration file in an electronic device, it is determined whether the antenna switching capability of the main card is required to be returned, and the antenna switching capability of the main card is adjusted according to different frequency band combinations to avoid the received signal of the secondary card being interrupted by the transmitted signal of the main card.

Benefits of technology

In dual-stop mode, the main card's antenna switching capabilities are flexible to adjust, avoiding service interruptions of the secondary card's received signals and improving the flexibility of antenna switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024106989_08052025_PF_FP_ABST
    Figure CN2024106989_08052025_PF_FP_ABST
Patent Text Reader

Abstract

A method for adjusting an antenna switching capability, and a device, a storage medium and a chip system. The method is applied to an electronic device, and comprises: when an electronic device is in a dual receive-dual SIM dual standby mode and a primary card supports a time division duplex antenna switching mode, on the basis of a first configuration file and a first frequency band, determining whether it is necessary to fall back a first antenna switching capability corresponding to the primary card; and when it is determined that it is necessary to fall back the first antenna switching capability corresponding to the primary card, on the basis of a second configuration file, the first frequency band and a second frequency band, determining a second antenna switching capability corresponding to the primary card, and falling the antenna switching capability, which corresponds to the primary card, back to the second antenna switching capability from the first antenna switching capability. The present application facilitates an improvement in the flexibility of antenna switching.
Need to check novelty before this filing date? Find Prior Art

Description

Antenna switching capability adjustment method, device, storage medium and chip system

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on October 30, 2023, with application number 202311435140.7 and application name “Method, device, storage medium and chip system for adjusting antenna switching capability”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method, device, storage medium, and chip system for adjusting antenna switching capability. Background Art

[0003] With the development of electronic device technology, electronic devices that support two subscriber identification modules (SIM) cards have become mainstream. Dual receive-dual SIM dual standby (DR-DSDS) electronic devices can receive data simultaneously through two different SIM cards. In the scenario where the main card in the dual SIM card supports the time division duplex (TDD) antenna switching method, the electronic device can switch the transmitting antenna used by the main card to transmit the signal, and the secondary card uses the default receiving antenna to receive the signal. In this scenario, after the main card switches the transmitting antenna, it may happen that the main card transmitting signal and the secondary card receiving signal share a set of antennas, resulting in the secondary card receiving signal service being affected by the main card transmitting signal service. Therefore, for electronic devices working in DR-DSDS mode, in the scenario where the main card supports the TDD antenna switching method, how to switch the transmitting antenna of the main card is a technical issue worthy of study.

[0004] Summary of the Invention

[0005] The embodiments of the present application provide a method, device, storage medium, and chip system for adjusting antenna switching capability, which are conducive to improving the flexibility of antenna switching.

[0006] In a first aspect, the present application provides a method for adjusting antenna switching capability, which is applied to an electronic device, the method comprising: when the electronic device is in a dual-receive dual-card dual-standby mode and the main card supports a time division duplex antenna switching mode, determining whether it is necessary to roll back the first antenna switching capability corresponding to the main card according to a first configuration file and a first frequency band; the first frequency band is the current frequency band used by the main card; the first antenna switching capability is used to indicate the number of currently switchable transmitting antennas of the main card; the first configuration file is used to indicate the frequency band in which the antenna switching capability needs to be rolled back; when it is determined that the first antenna switching capability corresponding to the main card needs to be rolled back, The configuration file comprises a first frequency band and a second frequency band, determines the second antenna switching capability corresponding to the main card, and reverts the antenna switching capability corresponding to the main card from the first antenna switching capability to the second antenna switching capability; the second frequency band is the currently used frequency band of the secondary card, and the second configuration file is used to indicate the antenna switching capabilities corresponding to the main card under at least one frequency band combination. Each frequency band combination in the at least one frequency band combination is composed of a frequency band used by the main card and a frequency band used by the secondary card. At least one frequency band combination includes the first frequency band combination, the first frequency band combination is a frequency band combination composed of the first frequency band and the second frequency band, and the second antenna switching capability is the antenna switching capability corresponding to the main card under the first frequency band combination.

[0007] In the above embodiment, the electronic device can combine the different frequency band combinations of the main card and the secondary card to regress the antenna switching capability of the main card to different degrees, thereby avoiding the interruption of the secondary card's receiving signal service by the main card's transmitting signal service. This antenna switching method is conducive to improving the flexibility of antenna switching.

[0008] It should be noted that the "when the electronic device is in a dual-receiving dual-card dual-standby mode" described in each embodiment of the present application may specifically be when the electronic device enters the dual-receiving dual-card dual-standby mode or after that, that is, the method provided in each embodiment of the present application may be a method for adjusting the antenna switching capability corresponding to the main card of the electronic device, which is executed within a preset time when the electronic device just enters the dual-receiving dual-card dual-standby mode or after entering the dual-receiving dual-card dual-standby mode.

[0009] In conjunction with the first aspect, in one possible manner, the first configuration file includes multiple bits, each of which corresponds to a frequency band of the main card; the above-mentioned determination of whether the first antenna switching capability corresponding to the main card needs to be rolled back based on the first configuration file and the first frequency band includes: when the value of the bit corresponding to the first frequency band in the first configuration file is a first value, determining that the first antenna switching capability corresponding to the main card needs to be rolled back; when the value of the bit corresponding to the first frequency band in the first configuration file is a second value, determining that the first antenna switching capability corresponding to the main card does not need to be rolled back. It can be seen that whether the antenna switching capability of the main card in each frequency band is rolled back can be determined by the bit value in the first configuration file, which is conducive to conveniently determining whether to roll back the antenna switching capability of the main card.

[0010] In conjunction with the first aspect, in one possible embodiment, determining the second antenna switching capability corresponding to the main card based on the second configuration file, the first frequency band, and the second frequency band includes: determining the second antenna switching capability corresponding to the main card based on configuration information corresponding to the first frequency band and the second frequency band in the second configuration file; the second configuration file includes configuration information corresponding to at least one frequency band corresponding to the main card, where the at least one frequency band includes the first frequency band. Thus, combining the configuration information corresponding to the first frequency band in the second configuration file allows for more accurate determination of the antenna switching capability of the main card for different frequency band combinations.

[0011] In conjunction with the first aspect, in one possible embodiment, the second configuration file includes multiple bits, each of which corresponds to a frequency band of the secondary card. Determining the second antenna switching capability corresponding to the primary card based on the second configuration file, the first frequency band, and the second frequency band includes: when the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third numerical value, determining the second antenna switching capability corresponding to the primary card based on the position of the third numerical value in the second configuration file. This indicates that the second configuration file can be used to determine the antenna switching capability of the primary card under different frequency band combinations, which facilitates refined management of antenna switching.

[0012] In conjunction with the first aspect, in one possible embodiment, the second configuration file includes multiple bits, each of the multiple bits corresponding to a frequency band of the secondary card. The determining the second antenna switching capability corresponding to the primary card based on the second configuration file, the first frequency band, and the second frequency band includes: when the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third value, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the first position, the second antenna switching capability corresponding to the primary card is an x-way antenna switching capability; the x-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the primary card is x, where x is a positive integer less than the maximum number of antennas that can be used for the current frequency band used by the primary card of the electronic device; or, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the primary card is a y-way antenna switching capability; the y-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the primary card is y, the second position is different from the first position, and y is a positive integer different from x and less than the maximum number of antennas that can be used for the current frequency band used by the primary card of the electronic device. It can be seen that the position of the third value in the second configuration file is different, indicating that the second antenna switching capability corresponding to the main card is different, which is conducive to more flexible management of the antenna switching capability of the main card.

[0013] In conjunction with the first aspect, in one possible embodiment, the method further includes: determining identification information of a bit corresponding to the second frequency band based on the frequency band mapping information; the frequency band mapping information includes a correspondence between k frequency bands and k bits of identification information; the k frequency bands include the second frequency band, where k is a positive integer; and determining, based on the identification information and the configuration information corresponding to the first frequency band in the second configuration file, a value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file. It can be seen that the correspondence between the frequency band and the bit identification information can be obtained through the frequency band mapping information, which facilitates quickly determining the antenna switching capabilities of the main card with different frequency band combinations from the second configuration file.

[0014] In combination with the first aspect, in one possible manner, the configuration information corresponding to the first frequency band in the second configuration file includes n bit units, and each bit unit in the n bit units includes the same number of bits; when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the first position, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability, including: when the first position belongs to the j-th bit unit in the n bit units, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability; j is a positive integer less than or equal to n, x is a positive integer less than or equal to n, and n is an integer greater than or equal to 2, or, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the main card is the y-way antenna switching capability, including: when the first position belongs to the k-th bit unit in the n bit units, the second antenna switching capability corresponding to the main card is the y-way antenna switching capability; k is a positive integer less than or equal to n, and k is not equal to j, and y is a positive integer less than or equal to n, and y is not equal to x. It can be seen that the antenna switching capability of the main card with different frequency band combinations can be determined more flexibly through the bit unit to which the third value belongs in the second configuration file.

[0015] In combination with the first aspect, in one possible manner, each of the n bit units includes 256 bits.

[0016] In combination with the first aspect, in one possible embodiment, the above method also includes at least one of the following: the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is a positive integer greater than n; or, the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is n+1; or, n is equal to 4, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 5; or, n is equal to 3, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 4; or, the first value is 1; or, the second value is 0; or, the third value is 1.

[0017] In conjunction with the first aspect, in one possible embodiment, the method further includes: maintaining the first antenna switching capability when it is determined that the first antenna switching capability corresponding to the primary card does not need to be rolled back. Thus, when there is no antenna coupling between the primary card and the secondary card, the primary card can maintain the current antenna switching capability, thereby avoiding degradation of the antenna switching performance of the primary card.

[0018] In a second aspect, the present application provides another method for adjusting antenna switching capability, which is applied to an electronic device, the method comprising: when the electronic device is in a dual-receive dual-card dual-standby mode and the main card supports time division duplex antenna switching: when the value of the bit corresponding to the first frequency band in the first configuration file is a first value, and the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third value, the antenna switching capability corresponding to the main card is reverted from the first antenna switching capability to the second antenna switching capability; when the value of the bit corresponding to the first frequency band in the first configuration file is a second value, the antenna switching capability corresponding to the main card is not reverted; wherein, the first frequency band is the value of the bit corresponding to the first frequency band in the first configuration file. The currently used frequency band, the first configuration file is used to indicate the frequency band for which the antenna switching capability needs to be rolled back, the second frequency band is the currently used frequency band of the secondary card, the second configuration file is used to indicate the antenna switching capability corresponding to the main card under at least one frequency band combination, each frequency band combination in at least one frequency band combination is composed of the frequency band used by the main card and the frequency band used by the secondary card, at least one frequency band combination includes a first frequency band combination, the first frequency band combination is a frequency band combination composed of the first frequency band and the second frequency band, the first antenna switching capability is used to indicate the number of currently switchable transmitting antennas of the main card, and the second antenna switching capability is the antenna switching capability corresponding to the main card under the first frequency band combination determined according to the second configuration file, the first frequency band and the second frequency band.

[0019] In the above embodiment, the electronic device can combine the different frequency band combinations of the main card and the secondary card to regress the antenna switching capability of the main card to different degrees, thereby avoiding the interruption of the secondary card's receiving signal service by the main card's transmitting signal service. This antenna switching method is conducive to improving the flexibility of antenna switching.

[0020] In combination with the second aspect, in one possible implementation, the second configuration file includes multiple bits, each of the multiple bits corresponds to a frequency band of the secondary card, and the above method also includes: when the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third value, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the first position, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability; the x-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the main card is x, and x is a positive integer less than the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device; or, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the main card is the y-way antenna switching capability; the y-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the main card is y, the second position is different from the first position, and y is a positive integer different from x and less than the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device. It can be seen that the position of the third value in the second configuration file is different, indicating that the second antenna switching capability corresponding to the main card is different, which is conducive to more flexible management of the antenna switching capability of the main card.

[0021] In conjunction with the second aspect, in one possible implementation, the method further includes: determining identification information of a bit corresponding to the second frequency band based on the frequency band mapping information; the frequency band mapping information includes a correspondence between k frequency bands and k bits of identification information; the k frequency bands include the second frequency band, where k is a positive integer; and determining, based on the identification information and the configuration information corresponding to the first frequency band in the second configuration file, a value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file. It can be seen that the correspondence between the frequency band and the bit identification information can be obtained through the frequency band mapping information, which facilitates quickly determining the antenna switching capabilities of the main card with different frequency band combinations from the second configuration file.

[0022] In combination with the second aspect, in one possible implementation, the configuration information corresponding to the first frequency band in the second configuration file includes n bit units, and each bit unit in the n bit units includes the same number of bits; when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the first position, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability, including: when the first position belongs to the j-th bit unit in the n bit units, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability; j is a positive integer less than or equal to n, x is a positive integer less than or equal to n, and n is an integer greater than or equal to 2, or, when the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the main card is the y-way antenna switching capability, including: when the first position belongs to the k-th bit unit in the n bit units, the second antenna switching capability corresponding to the main card is the y-way antenna switching capability; k is a positive integer less than or equal to n, and k is not equal to j, y is a positive integer less than or equal to n, and y is not equal to x. It can be seen that the antenna switching capability of the main card with different frequency band combinations can be determined more flexibly through the bit unit to which the third value belongs in the second configuration file.

[0023] In combination with the second aspect, in one possible implementation, each of the n bit units includes 256 bits.

[0024] In combination with the first aspect, in one possible embodiment, the above method also includes at least one of the following: the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is a positive integer greater than n; or, the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is n+1; or, n is equal to 4, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 5; or, n is equal to 3, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 4; or, the first value is 1; or, the second value is 0; or, the third value is 1.

[0025] In a third aspect, an embodiment of the present application provides an electronic device, which includes: one or more processors, a display screen and a memory; the processor includes a modem processor; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute: when the electronic device is in a dual-receive dual-card dual-standby mode and the main card supports time division duplex antenna switching, determine whether the first antenna switching capability corresponding to the main card needs to be rolled back according to the first configuration file and the first frequency band; the first frequency band is the current frequency band used by the main card; the first antenna switching capability is used to indicate the current The number of switchable transmitting antennas currently used by the secondary card; the first configuration file is used to indicate the frequency band to which the antenna switching capability needs to be rolled back; when it is determined that the first antenna switching capability corresponding to the main card needs to be rolled back, the second antenna switching capability corresponding to the main card is determined according to the second configuration file and the second frequency band, and the antenna switching capability corresponding to the main card is rolled back from the first antenna switching capability to the second antenna switching capability; the second frequency band is the currently used frequency band of the secondary card, and the second configuration file is used to indicate the antenna switching capabilities corresponding to the main card under at least one frequency band combination, at least one frequency band combination includes the first frequency band combination, the first frequency band combination is a frequency band combination consisting of the first frequency band and the second frequency band, and the second antenna switching capability is the antenna switching capability corresponding to the main card under the first frequency band combination.

[0026] In a fourth aspect, an embodiment of the present application provides another electronic device, which includes: one or more processors, a display screen and a memory; the processor includes a modem processor; the memory is coupled to the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute: when the electronic device is in a dual-receive dual-card dual-standby mode and the main card supports time division duplex antenna switching, determine the value of the bit corresponding to the first frequency band in the first configuration file; the first frequency band is the current frequency band used by the main card; the first configuration file is used to indicate the frequency band for which the antenna switching capability needs to be rolled back; determine the value of the bit corresponding to the first frequency band in the second configuration file The value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band; the second frequency band is the currently used frequency band of the secondary card, and the second configuration file is used to indicate the antenna switching capability corresponding to the main card under at least one frequency band combination, and at least one frequency band combination includes a first frequency band combination, and the first frequency band combination is a frequency band combination consisting of a first frequency band and a second frequency band; when the value of the bit corresponding to the first frequency band in the first configuration file is a first numerical value, and the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third numerical value, the antenna switching capability corresponding to the main card falls back from the first antenna switching capability to the second antenna switching capability; the first antenna switching capability is used to indicate the number of currently switchable transmitting antennas of the main card.

[0027] In a fifth aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system has one or more processors. When the one or more processors execute computer instructions, the electronic device executes the method described in the first aspect or any possible implementation of the first aspect, or executes the method described in the second aspect or any possible implementation of the second aspect. The chip system can be a SoC (system-on-chip). The processor can include a modem processor (also known as a modem or baseband chip).

[0028] In a sixth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when run on an electronic device, enables the electronic device to execute the method described in the first aspect or any possible implementation of the first aspect, or to execute the method described in the second aspect or any possible implementation of the second aspect.

[0029] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when executed on an electronic device, causes the electronic device to execute the method described in the first aspect or any possible implementation of the first aspect, or to execute the method described in the second aspect or any possible implementation of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] FIG1 is a schematic diagram of a scenario in which a transmitting antenna of a primary card and a receiving antenna of a secondary card are coupled via an antenna according to an embodiment of the present application;

[0031] FIG2A is a schematic diagram of a scenario in which a transmitting antenna of a primary card and a receiving antenna of a secondary card are coupled with two antennas, provided by an embodiment of the present application;

[0032] FIG2B is a schematic diagram of another scenario in which a transmitting antenna of a primary card and a receiving antenna of a secondary card are coupled in two directions, provided by an embodiment of the present application;

[0033] FIG3 is a schematic diagram of a configuration file of a band-level antenna switching solution provided in an embodiment of the present application;

[0034] FIG4A is a schematic diagram of a first configuration file provided in an embodiment of the present application;

[0035] FIG4B is a schematic diagram of a second configuration file provided in an embodiment of the present application;

[0036] FIG5 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0037] FIG6 is a schematic diagram of an electronic device provided in an embodiment of the present application;

[0038] FIG7 is a flow chart of a method for adjusting antenna switching capability according to an embodiment of the present application;

[0039] FIG8A is a schematic diagram of another first configuration file provided in an embodiment of the present application;

[0040] FIG8B is a schematic diagram of another second configuration file provided in an embodiment of the present application;

[0041] FIG9 is a flow chart of another method for adjusting antenna switching capability provided in an embodiment of the present application;

[0042] FIG10A is a schematic diagram of a first configuration file and a second configuration file provided in an embodiment of the present application;

[0043] FIG10B is a schematic diagram of another first configuration file and a second configuration file provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0045] First, the technical terms involved in the embodiments of the present application are explained.

[0046] 1)DR-DSDS

[0047] When an electronic device operates in DR-DSDS mode, two different SIM cards are allowed to receive data at the same time. For example, in DR-DSDS mode, while one SIM card is on a call, the other SIM card can also receive calls, but cannot access the Internet. When the call from the other SIM card is connected, the ongoing call on the first SIM card will be disconnected. For example, while SIM card 1 is on a call, SIM card 2 can receive calls, but cannot access the Internet. When SIM card 2 is connected, the call on SIM card 1 will be disconnected. Among them, one of the two SIM cards can be used as the main card, and the other can be used as the secondary card. In an embodiment of the present application, the main card can be in a connected state, sending and / or receiving data; the secondary card can be in an idle state, receiving data.

[0048] 2) Main card and secondary card

[0049] For dual SIM cards in an electronic device, the card that performs mobile data services in the dual SIM cards can be used as the primary card. There are usually two ways to distinguish between the primary card and the secondary card: Method 1: According to the manufacturer's rules, the electronic device can designate one card as the primary card and the other card as the secondary card by default. For example, the electronic device can designate the SIM card installed in SIM card interface 1 as the primary card by default. Method 2: Determine the primary card in the dual SIM cards based on the received user selection operation. For example, in response to the user selection operation acting on SIM card 1 (that is, the user selects SIM card 1 as the card for mobile data services), then SIM card 1 is the primary card.

[0050] 3) TDD antenna switching method

[0051] For electronic devices operating in DR-DSDS mode, the primary card can support TDD antenna switching. TDD antenna switching is an antenna switching method in which only the transmit antenna switches, while the receive antenna remains at the default antenna for reception. In TDD antenna switching, the primary card can switch its transmit antenna while using the default receive antenna. This means that the primary card's receive antenna remains unchanged. Furthermore, the secondary card uses the default receive antenna, meaning that its receive antenna remains unchanged.

[0052] 4) Antenna switching capability

[0053] In the embodiment of the present application, the antenna switching capability is mainly for the main card of the electronic device. The antenna switching capability is used to indicate the number of transmitting antennas (such as antenna 1 in Figure 5) that the main card can switch to support mobile communications. The antenna switching capability can be 1-way antenna switching capability, 2-way antenna switching capability, or 3-way antenna switching capability. Among them, the 1-way antenna switching capability is used to indicate that the number of transmitting antennas that the main card can switch is 1. For example, the main card can only use antenna 1 to transmit signals, so the antenna switching capability of the main card is 1-way antenna switching capability. The 2-way antenna switching capability is used to indicate that the number of transmitting antennas that the main card can switch is 2. For example, the main card can use antenna 1 to transmit signals, or it can also use antenna 1' to transmit signals, so the antenna switching capability of the main card is 2-way antenna switching capability. The 3-way antenna switching capability is used to indicate that the number of transmitting antennas that the main card can switch is 3, and so on.

[0054] In one scenario, the electronic device can operate in DR-DSDS mode, and the main card can support TDD antenna switching. Since the main card can switch its transmitting antenna in TDD antenna switching mode, if after switching the main card's transmitting antenna, the main card's transmitting antenna and the secondary card's receiving antenna are antenna-coupled, the secondary card's receiving communication will be interrupted by the main card's transmitting communication. For example, please refer to Figure 1, which is a schematic diagram of a scenario in which the main card's transmitting antenna and the secondary card's receiving antenna are antenna-coupled, as provided in an embodiment of the present application. As shown in Figure 1, the secondary card's receiving antenna is the second antenna, that is, the secondary card can use the second antenna to receive signal services. When the main card supports TDD antenna switching, the main card's transmitting antenna switches from the first antenna to the second antenna, that is, the main card can switch from using the first antenna to transmitting signals to using the second antenna. In this case, the secondary card's receiving signal service on the second antenna will be interrupted by the main card's transmitting signal service on the second antenna, that is, the main card's transmitting antenna and the secondary card's receiving antenna are antenna-coupled, and the coupled antenna is the second antenna.

[0055] In the above scenario, to prevent antenna coupling between the primary card's transmit antenna and the secondary card's receive antenna after the primary card switches its transmit antenna, the primary card's antenna switching capability can be reverted. For example, using Figure 1 as an example, assuming the primary card's antenna switching capability is a maximum of two antennas, this means that the primary card's transmit antennas can be switched to two, including the first and second antennas. If the primary card's antenna switching capability is reverted from two to one, meaning that the primary card's transmit antenna can only use the first antenna, this ensures that the secondary card's receive communications will not be interrupted by the primary card's transmit communications.

[0056] Taking the example of a main card with a maximum antenna switching capability of 4 antennas, the following describes how to fall back on the main card's antenna switching capability in different situations.

[0057] (1) The antenna switching capability of the main card falls back to single-channel antenna switching capability

[0058] Please refer to Figure 2A, which is a schematic diagram of a scenario in which there are two antenna couplings between the transmitting antenna of the main card and the receiving antenna of the secondary card provided in an embodiment of the present application. As shown in Figure 2A, there is a first antenna coupling and a second antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card. This antenna coupling situation can also be described as the first two antenna couplings between the transmitting antenna of the main card and the receiving antenna of the secondary card. In this case, in order to ensure that the receiving communication of the secondary card is not interrupted by the transmitting communication of the main card, the transmitting antenna of the main card can be determined as the first antenna, and the receiving antenna of the secondary card can be determined as the second antenna, that is, the transmitting antenna of the main card is not allowed to switch from the first antenna to the second antenna. In other words, the antenna switching capability of the main card is reverted from the 4-way antenna switching capability to the 1-way antenna switching capability.

[0059] (2) The antenna switching capability of the main card falls back to 2-way antenna switching capability

[0060] Please refer to Figure 2B, which is a schematic diagram of another scenario provided by an embodiment of the present application in which there is two-way antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card. As shown in Figure 2B, there is a third antenna coupling and a fourth antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card. This antenna coupling situation can also be described as the latter two-way antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card. In this case, in order to ensure that the receiving communication of the secondary card is not interrupted by the transmitting communication of the main card, the transmitting antenna of the main card can be determined as the first antenna or the second antenna, and the receiving antenna of the secondary card can be determined as the third antenna or the fourth antenna, that is, the transmitting antenna of the main card is not allowed to switch to the third antenna or the fourth antenna. In other words, the antenna switching capability of the main card is reverted from the 4-way antenna switching capability to the 2-way antenna switching capability.

[0061] (3) The main card maintains maximum antenna switching capability

[0062] In the case where there is no antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, the main card can maintain the maximum antenna switching capability (such as 4-way antenna switching capability), that is, the antenna switching capability of the main card can be kept unchanged.

[0063] From this, it can be seen that, based on the specific situation of whether there is or is not antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, the antenna switching capability of the main card can be regressed to varying degrees.

[0064] At present, the solution for rolling back the antenna switching capability of the main card is mainly to roll back according to the frequency band of the main card. This solution for rolling back according to the band of the main card is briefly described as a band-level antenna switching solution below. Specifically, for electronic devices working in DR-DSDS mode, if the main card's transmitting antenna is coupled with the receiving antenna of the secondary card under the TDD antenna switching mode, the band-level antenna switching solution can roll back the antenna switching capability of the main card according to the configuration file corresponding to the main card, so as to avoid the situation where the transmitting antenna of the main card is coupled with the receiving antenna of the secondary card after switching. Among them, the configuration file may include the correspondence between the frequency band of the main card and the antenna switching capability of the main card.

[0065] For example, please refer to Figure 3, which is a schematic diagram of a configuration file for a band-level antenna switching solution provided in an embodiment of the present application. As shown in Figure 3, the configuration file may include multiple bits, and one bit may correspond to a frequency band of the main card. For example, in the configuration file shown in Figure 3, the 184th bit may correspond to frequency band A, the 191st bit may correspond to frequency band B, the 200th bit may correspond to frequency band C, and the 201st bit may correspond to frequency band D. In Figure 3, the value of a bit can be used to indicate the antenna switching capability of the main card in the frequency band corresponding to the bit. A value of 0 can indicate that the antenna switching capability is 1-way antenna switching capability, and a value of 1 can indicate that the antenna switching capability is 2-way antenna switching capability. A value of 0 in bit 184 indicates that the main card's antenna switching capability in frequency band A is 1-way antenna switching capability; a value of 0 in bit 191 indicates that the main card's antenna switching capability in frequency band B is 1-way antenna switching capability; a value of 1 in bit 200 indicates that the main card's antenna switching capability in frequency band C is 2-way antenna switching capability; and a value of 1 in bit 201 indicates that the main card's antenna switching capability in frequency band D is 2-way antenna switching capability. The one-to-one correspondence between bits and frequency bands can be stored in a frequency band mapping table. Based on the position of a bit in the configuration file, the frequency band information corresponding to that position can be obtained from the frequency band mapping table. Band A, Band B, Band C, and Band D represent different frequency bands. For example, Band A can be N3, Band B can be N41, Band C can be N77, and Band D can be N78. Therefore, the configuration file shown in Figure 3 specifically indicates that the antenna switching capability of the main card in the N3 frequency band is 1-way antenna switching capability; the antenna switching capability of the main card in the N41 frequency band is 1-way antenna switching capability; the antenna switching capability of the main card in the N77 frequency band is 2-way antenna switching capability; and the antenna switching capability of the main card in the N78 frequency band is 2-way antenna switching capability.

[0066] With a band-level antenna switching solution, the maximum antenna switching capability of the primary card can only be reverted in one way or not in another within a frequency band. For example, using the N41 band as the primary card, the maximum antenna switching capability of the primary card in the N41 band can be four-way antenna switching. In the configuration file shown in Figure 3, for example, bit 191 corresponds to the N41 band. A value of 0 in bit 191 indicates that the primary card's antenna switching capability in the N41 band is reverted from four-way antenna switching to one-way antenna switching. This prevents antenna coupling between the primary card's transmit antenna and the secondary card's receive antenna after switching. This band-level antenna switching solution does not consider the specific conditions of antenna coupling between the primary card's transmit antenna and the secondary card's receive antenna in different frequency band combinations, resulting in limited flexibility in the primary card's antenna switching capability. When the primary card transmits in the N41 band, only the first two antennas of the primary card's transmit antenna and the secondary card's receive antenna are coupled. Therefore, the primary card's antenna switching capability needs to be reverted from four-way antenna switching to one-way antenna switching. For the case where the main card transmits communication in the N41 frequency band and the secondary card receives communication in other frequency bands, the antenna switching capability of the main card can be a 2-way antenna switching capability or an antenna switching capability of more than 2 ways. For example, for the case where the main card transmits communication in the N41 frequency band and the secondary card receives communication in the B1 frequency band, the transmitting antenna of the main card and the receiving antenna of the secondary card can be coupled with the last two antennas, that is, the two-way antenna coupling scenario shown in Figure 2B above. In this case, the transmitting antenna of the main card can perform antenna switching in the first two ways (that is, the first antenna and the second antenna in Figure 2B), that is, the antenna switching capability of the main card can be reverted from the 4-way antenna switching capability to the 2-way antenna switching capability, without reverting to the 1-way antenna switching capability, so as to avoid the receiving communication of the secondary card being affected by the transmitting communication of the main card.

[0067] As described above, for electronic devices operating in DR-DSDS mode, when the main card's antenna switching capability is in TDD antenna switching mode, if there is no antenna coupling between the main card's transmit antenna and the secondary card's receive antenna, the main card's antenna switching capability can be maintained, that is, the main card's maximum antenna switching capability is maintained. If there is antenna coupling between the main card's transmit antenna and the secondary card's receive antenna, the main card's antenna switching capability is reduced to ensure that the secondary card's receive communication is not interrupted by the main card's transmit communication. When using a band-level antenna switching solution to determine whether to reduce or not reduce the main card's antenna switching capability, only the main card's frequency band is considered. The main card can only have one antenna switching mode in each frequency band, which reduces flexibility.

[0068] To address this issue, some embodiments of the present application provide a method for adjusting antenna switching capabilities. This method can be used to adjust the antenna switching capability of the primary card or not, taking into account the specific conditions of antenna coupling between the primary card's transmit antenna and the secondary card's receive antenna in different frequency band combinations. The antenna switching capability adjustment method provided in the embodiments of the present application facilitates more flexible antenna switching.

[0069] The following first uses an example to illustrate a method for adjusting the antenna switching capability provided in this application.

[0070] For example, please refer to Figure 4A, which is a schematic diagram of a first configuration file provided in an embodiment of the present application. Based on the first configuration file, the fallback frequency band of the primary card can be determined. As shown in Figure 4A, the first configuration file may include multiple bits, each of which may correspond to a frequency band of the primary card. In the first configuration file shown in Figure 4A, bit 184 may correspond to frequency band A, and bit 191 may correspond to frequency band B. In Figure 4A, the value of a bit may be used to indicate whether the antenna switching capability of the primary card is to be rolled back in the frequency band corresponding to that bit. A value of 0 indicates that the antenna switching capability is not to be rolled back, while a value of 1 indicates that the antenna switching capability is to be rolled back. A value of 0 for bit 184 indicates that the antenna switching capability of the primary card is not to be rolled back in frequency band A; a value of 1 for bit 191 indicates that the antenna switching capability of the primary card is to be rolled back in frequency band B. Here, the one-to-one correspondence between bits and frequency bands can be stored in a frequency band mapping table. Based on the position identifier of a bit in the first configuration file, the frequency band information corresponding to that position identifier can be obtained from the frequency band mapping table. Band A can be, for example, N3, and band B can be, for example, N41. Thus, according to the first configuration file shown in FIG4A , it can be determined that the antenna switching capability of the main card will be regressed in the band corresponding to bit 191 (e.g., N41).

[0071] Please refer to Figure 4B, which is a schematic diagram of a second configuration file provided in an embodiment of the present application. According to the second configuration file, the way in which the antenna switching capability of the main card is rolled back under different frequency band combinations of the main card and the secondary card can be determined. As shown in Figure 4B, the second configuration file may include multiple bits, and one bit may correspond to a frequency band of the secondary card. In the second configuration file shown in Figure 4B, the 120th bit may correspond to frequency band E, and the 122nd bit may correspond to frequency band F. Here, the one-to-one correspondence between bits and frequency bands may also be stored by a frequency band mapping table. According to the position identifier of a bit in the second configuration file, the frequency band information corresponding to the position identifier can be obtained from the frequency band mapping table. Optionally, the first configuration file and the second configuration file may share the same frequency band mapping table. Among them, the 120th bit may be, for example, the B1 frequency band, and the 122nd bit may be, for example, the B3 frequency band. In addition, in the second configuration file, n bit units can be divided, and each bit unit can include 256 bits. The mth bit in the i-th bit unit has a value of 1, which can indicate the frequency band combination corresponding to the mth bit of the primary card and the secondary card. The antenna switching capability of the primary card can fall back to i-way antenna switching capability, that is, the primary card can switch between i transmitting antennas. Where n is a positive integer, i is a positive integer less than or equal to n, and m is a positive integer less than or equal to 256. For example, in the second configuration file shown in Figure 4B, the 120th bit in the 1st bit unit has a value of 1. In combination with the first configuration file shown in Figure 4A, it can indicate the combination of frequency band B corresponding to the 191st bit of the primary card and frequency band E corresponding to the 120th bit of the secondary card. The antenna switching capability of the primary card falls back to 1-way antenna switching capability, and the receiving communication of the secondary card will not be interrupted by the transmitting communication of the primary card. For example, it can specifically represent the combination of the N41 frequency band of the primary card and the B1 frequency band of the secondary card, and the antenna switching capability of the primary card falls back from the 4-way antenna switching capability to the 1-way antenna switching capability, and the secondary card's receiving communication will not be interrupted by the primary card's transmitting communication. For another example, in the second configuration file shown in Figure 4B, the value of the 122nd bit belonging to the 1st bit unit is 1. In combination with the first configuration file shown in Figure 4A, it can represent the combination of the frequency band B corresponding to the 191st bit of the primary card and the frequency band F corresponding to the 122nd bit of the secondary card, and the antenna switching capability of the primary card falls back to the 1-way antenna switching capability, and the secondary card's receiving communication will not be interrupted by the primary card's transmitting communication. For example, it can specifically represent the combination of the N41 frequency band of the primary card and the B3 frequency band of the secondary card, and the antenna switching capability of the primary card falls back from the 4-way antenna switching capability to the 1-way antenna switching capability, and the secondary card's receiving communication will not be interrupted by the primary card's transmitting communication.

[0072] It should be noted that the embodiments of the present application can be applied to electronic devices, which may be mobile phones, smart TVs (also known as large screens or smart screens), wearable devices, portable Android devices (Pads), computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc. The embodiments of the present application do not limit the specific technologies and specific device forms used by the electronic devices.

[0073] The following describes the hardware structure of an electronic device by taking a mobile phone as an example.

[0074] Please refer to Figure 5, which is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. As shown in Figure 5, the electronic device may include: a processor 110, an application processor 110A, a modem processor 110B (also known as a modem or baseband chip), 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, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration 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. Currently, the number of antennas 1 supporting mobile communications configured in an electronic device may be 8 or 9, etc., wherein the maximum number of antennas that can be used for the current frequency band used by the main card of the electronic device may be 4 or 5, etc.

[0075] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor 110A (AP), a modem processor 110B, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0076] The modem processor (Modem) runs on the baseband chip and the coprocessor. For example, the Modem may be provided with a SIM card module, which can be used to provide network registration, authentication and other functions related to SIM information. For example, when a user uses an electronic device with a Modem, he can trigger a local application to implement a series of SIM card functions. The SIM card mentioned above can be a physical card or a hard card, or a virtual SIM card (or a soft card), and can include an embedded chip-type user identity card (embedded SIM, eSIM), etc. The specific form of the SIM card is not limited in the embodiments of the present application.

[0077] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem may be an independent device. In other embodiments, the modem may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0078] The internal memory 121 can be used to store computer executable program codes, which include 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. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. In an embodiment of the present application, the electronic device may store a first configuration file and a second configuration file in the internal memory 121.

[0079] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. The mobile communication function of the electronic device can be implemented by antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor. In the embodiment of the present application, the antennas used by the primary card and the secondary card are both included in antenna 1 and antenna 2.

[0080] The mobile communication module 150 can provide wireless communication solutions for electronic devices, including second-generation wireless telephone technology (2G), third-generation mobile communication technology (3G), fourth-generation mobile communication technology (4G), and fifth-generation mobile communication technology (5G). The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1. In some embodiments, some functional modules of the mobile communication module 150 may be located within the processor 110. In some embodiments, some functional modules of the mobile communication module 150 may be located within the same device as some modules of the processor 110. In the embodiment of the present application, the electronic device can determine the frequency bands in which the primary card and the secondary card receive or send data respectively through the antenna 1 and the mobile communication module 150.

[0081] The SIM card interface 195 is used to connect a SIM card. A SIM card can be connected to and disconnected from the electronic device by inserting or removing it from the SIM card interface 195. An electronic device may support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 may support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. These cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. Electronic devices interact with the network through SIM cards to implement functions such as calls and data communications. In some embodiments, electronic devices use eSIMs, or embedded SIM cards. eSIM cards can be embedded in the electronic device and cannot be separated from the electronic device. In embodiments of the present application, an electronic device may be provided with two or more SIM card interfaces. For ease of understanding, this embodiment assumes that the electronic device has two SIM card interfaces, with SIM cards installed in each of the two SIM card interfaces, which can be referred to as a primary card and a secondary card.

[0082] It should be understood that the structure shown in FIG5 does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0083] It should be noted that the primary card and secondary card involved in the embodiments of the present application can be physical cards or digital cards. In other words, the primary card and secondary card can be SIM cards or embedded SIM cards (eSIM cards), which are not limited in the embodiments of the present application.

[0084] In an embodiment of the present application, an electronic device may be provided with multiple antennas, which can be used to implement wireless communication functions for the primary card and the secondary card. For example, see Figure 6, which is a schematic diagram of antennas provided in an electronic device according to an embodiment of the present application. As shown in Figure 6, the electronic device may include a top antenna 61 and a bottom antenna 62. The top antenna 61 may include at least one antenna, and the bottom antenna 62 may include at least one antenna. Since antennas can be divided into primary antennas and diversity antennas, electronic devices typically use primary antennas for transmitting and receiving signals, and diversity antennas for receiving signals. The bottom of an electronic device has more clearance, providing greater space and better antenna radiation. Therefore, the bottom antenna 62 can be the primary antenna, and the top antenna 61 can be the diversity antenna, which helps improve the performance of the primary antenna. It should be understood that the positions of the antennas in the electronic device shown in Figure 6 are merely examples. The antennas may also be located in other suitable locations within the electronic device, and this is not limited in the present embodiment.

[0085] In an embodiment of the present application, the electronic device operates in DR-DSDS mode. In DR-DSDS mode, the main card and the secondary card can use the same antenna (such as antenna A) to simultaneously receive signal services. However, in the case where the main card uses antenna A to transmit signals and the secondary card uses antenna A to receive signals, the secondary card's signal reception service will be interrupted by the main card's signal transmission service. Optionally, the electronic device can automatically enter DR-DSDS mode when it is turned on. The electronic device can also enter DR-DSDS mode when it receives a user's selection operation for the DR-DSDS mode.

[0086] In the embodiment of the present application, the main card of the electronic device supports the TDD antenna switching mode, or is described as supporting the TDD antenna switching type of the main card. When the main card supports the TDD antenna switching mode, the electronic device can switch the antenna used by the main card for signal transmission services, that is, it can switch the main card's transmitting antenna, and use the default antenna for the secondary card's signal reception services, that is, it cannot switch the secondary card's receiving antenna.

[0087] In addition, in the embodiment of the present application, the configuration file can also be described as an NV item. For example, the first configuration file can also be described as a first NV item, and the second configuration file can also be described as a second NV item.

[0088] The following is a detailed introduction to the process of a method for adjusting antenna switching capability provided in an embodiment of the present application.

[0089] Please refer to Figure 7, which is a flow chart of a method for adjusting antenna switching capability provided in an embodiment of the present application. The method can be executed by an electronic device, the electronic device can operate in DR-DSDS mode, and the main card can support TDD antenna switching mode. As shown in Figure 7, the method can include but is not limited to the following steps:

[0090] S701, determining a first frequency band used by a primary card and determining a second frequency band used by a secondary card.

[0091] In an embodiment of the present application, an electronic device can determine a first frequency band for a primary card and a second frequency band for a secondary card. The first and second frequency bands can be determined by the base station with which the electronic device establishes communication. The base station can configure the first frequency band for the primary card, allowing the electronic device to transmit signals to the base station using the primary card via the first frequency band. Similarly, the base station can configure the second frequency band for the secondary card, allowing the electronic device to transmit signals to the base station using the secondary card via the second frequency band.

[0092] Optionally, the first frequency band and the second frequency band may be 5G NR (new radio) frequency bands, such as N41, N1, and N2 frequency bands, or 2G, 3G, or 4G general mobile communication technology long term evolution (LTE) frequency bands, such as B1, B2, and B21 frequency bands. Optionally, the first frequency band and the second frequency band may both be 5G NR frequency bands, or the first frequency band may be a 5G NR frequency band and the second frequency band may be an LTE frequency band.

[0093] Specifically, the primary card uses a transmitting antenna to transmit signals to a base station via the first frequency band. The transmitting antenna may include at least one antenna. This means that the electronic device can use the transmitting antenna to perform the primary card's signal transmission service. The secondary card uses a receiving antenna to receive signals from the base station via the second frequency band. The receiving antenna may include at least one antenna. This means that the electronic device can use the receiving antenna to perform the secondary card's signal reception service. Because the primary card's transmitting antenna is within the first frequency band, and the secondary card's receiving antenna is within the second frequency band, antenna coupling may occur between the transmitting and receiving antennas in different frequency band combinations. In other words, the primary card's transmitting antenna for transmitting signals to the base station via the first frequency band may overlap with the secondary card's transmitting antenna for receiving signals from the base station via the second frequency band. In this case, the secondary card's receiving communication in the second frequency band will be interrupted by the primary card's transmitting communication in the first frequency band.

[0094] In some embodiments, the electronic device can pre-store the frequency band combination in which the transmitting antenna of the main card and the receiving antenna of the secondary card are coupled, so that it can quickly know whether the service of transmitting signals performed by the main card through the first frequency band will interfere with the service of receiving signals performed by the secondary card through the second frequency band.

[0095] In the embodiment of the present application, the combination of the main card and the secondary card using different frequency bands can be described as a frequency band combination or a dual-card combination.

[0096] S702: Determine a first bit value corresponding to a first frequency band from a first configuration file.

[0097] In an embodiment of the present application, when the electronic device is in DR-DSDS mode and the main card supports the TDD antenna switching mode, the electronic device can determine the first bit value corresponding to the first frequency band of the main card from the first configuration file. The first configuration file can be used to indicate whether there is antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card. Or it can be described as that the first configuration file can be used to indicate whether the antenna switching capability of the main card will be rolled back. For the description of the antenna switching capability, please refer to the relevant description of the aforementioned embodiment of the present application, which will not be repeated here.

[0098] It is understandable that the electronic device may automatically enter the DR-DSDS mode when it is turned on, and the main card supports the TDD antenna switching mode, triggering the execution of step S702. The electronic device may also trigger the execution of step S702 when it switches from other modes to the DR-DSDS mode upon receiving a user selection operation, and the main card supports the TDD antenna switching mode. This embodiment of the present application does not limit this.

[0099] In some embodiments, the first configuration file may include multiple bits, and one bit may correspond to one frequency band. The frequency band range specifically corresponding to a bit may be determined by the bit position of the bit in the first configuration file. The bit position of a bit may be represented by a position identifier of the bit, and the position identifier may represent the arrangement order of the bit among multiple bits. Optionally, the electronic device may obtain frequency band mapping information. The frequency band mapping information may include a correspondence between a bit position identifier and a frequency band range. The frequency band mapping information may, for example, be a correspondence between a bit position identifier and a frequency band range stored in the form of a table. For example, Table 1 is a frequency band mapping information provided in this application.

[0100] Table 1

[0101] As can be seen from Table 1, in the first configuration file, bit 187 may correspond to band A, bit 188 may correspond to band B, bit 189 may correspond to band C, bit 190 may correspond to band D, and bit 191 may correspond to band E. Band A, band B, band C, band D, and band E may be, for example, 5G NR bands. For example, band A may be band N8, band B may be band N20, band C may be band N28, band D may be band N38, and band E may be band N41.

[0102] It can be understood that Table 1 is only an example of frequency band mapping information. The specific size of the frequency band range corresponding to a certain bit position may be based on the communication standard or actual needs, and the embodiments of the present application do not limit this.

[0103] In some embodiments, after determining the first frequency band used by the primary card, the electronic device can determine the bit position of the first frequency band in the first configuration file based on a frequency band mapping table. Furthermore, based on the first bit value of the bit position corresponding to the first frequency band, it can be determined whether antenna coupling exists between the primary card's transmit antenna and the secondary card's receive antenna in a dual-SIM configuration, that is, whether the primary card's antenna switching capability will be reverted.

[0104] In some embodiments, the first bit value may be a first numerical value or a second numerical value. If the first bit value is the first numerical value (for example, 1), it may indicate that there is antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, that is, the antenna switching capability of the main card will be regressed. Correspondingly, if the first bit value is the second numerical value (for example, 0), it may indicate that there is no antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, that is, the antenna switching capability of the main card will not be regressed, or it may be described as the main card maintaining the maximum antenna switching capability.

[0105] For example, please refer to Figure 8A, which is a schematic diagram of another first configuration file provided in an embodiment of the present application. For example, assuming that the electronic device determines that the first frequency band used by the main card is frequency band C, it can be seen from the frequency band mapping information (Table 1) that the bit position corresponding to frequency band C is the 189th bit. The bit value of the 189th bit in the first configuration file shown in Figure 8A is 1, which can indicate that there is antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, that is, the antenna switching capability of the main card needs to be rolled back. For another example, assuming that the electronic device determines that the first frequency band used by the main card is frequency band D, it can be seen from Table 1 that the bit position corresponding to frequency band D is the 190th bit. The bit value of the 190th bit in the first configuration file shown in Figure 8A is 0, which can indicate that there is no antenna coupling between the transmitting antenna of the main card and the receiving antenna of the secondary card, that is, the antenna switching capability of the main card does not need to be rolled back.

[0106] S703: When the first bit value is a first numerical value, determine a second bit value corresponding to the second frequency band from configuration information corresponding to the first frequency band in the second configuration file.

[0107] In an embodiment of the present application, when the electronic device determines that the first bit value is a first numerical value, it can determine the second bit value corresponding to the second frequency band from the configuration information corresponding to the first frequency band in the second configuration file. The first bit value is the first numerical value, indicating that in a dual-card combination of the first frequency band and the second frequency band, there is antenna coupling between the main card's transmitting antenna and the secondary card's receiving antenna, and the antenna switching capability of the main card will be reverted. The second configuration file can be used to indicate the antenna switching capability of the main card in at least one dual-card combination, and the at least one dual-card combination includes a dual-card combination in which the main card uses the first frequency band and the secondary card uses the second frequency band. It is worth noting that in the case where the main card can support multiple frequency bands, the second configuration file may include configuration information corresponding to the multiple frequency bands of the main card. Therefore, the electronic device can first determine the configuration information corresponding to the first frequency band from the second configuration file, and then determine the second bit value corresponding to the second frequency band from the configuration information corresponding to the first frequency band in the second configuration file.

[0108] In some embodiments, the second configuration file may include multiple bits, and one bit may correspond to one frequency band. The frequency band range specifically corresponding to a bit may be determined by the bit position of the bit in the second configuration file. The bit position of a bit may be represented by the position identifier of the bit, and the position identifier may represent the arrangement order of the bit among multiple bits. Optionally, the electronic device may obtain the bit position corresponding to the second frequency band according to the frequency band mapping information shown in Table 1 above. In other words, the first configuration file and the second configuration file may share the frequency band mapping information, that is, the frequency band mapping information may be universal frequency band mapping information. For example, assuming that the second frequency band is frequency band E, then according to the frequency band mapping information shown in Table 1, it can be known that the bit position corresponding to frequency band E is the 191st bit, and then the electronic device can determine the second bit value of the 191st bit corresponding to the second frequency band in the second configuration file.

[0109] In some embodiments, the second bit value may be a third value or a fourth value. The second bit value is a third value (for example, 1), which may indicate that under the dual-card combination of the first frequency band and the second frequency band, the antenna switching capability of the main card falls back to the second antenna switching capability corresponding to the second bit value. Here, the second antenna switching capability may be understood as the antenna switching capability after the current antenna switching capability of the main card is rolled back, that is, under the dual-card combination of the first frequency band and the second frequency band, the electronic device falls back the antenna switching capability of the main card to the second antenna switching capability, thereby avoiding the main card's transmitting communication in the first frequency band from interrupting the secondary card's receiving communication in the second frequency band.

[0110] S704, when the second bit value is the third value, determine the second antenna switching capability of the main card according to the bit unit to which the third value belongs in the second configuration file, and fall back the antenna switching capability corresponding to the main card from the first antenna switching capability to the second antenna switching capability.

[0111] In an embodiment of the present application, when the second bit value is a third value, the electronic device can further determine the second antenna switching capability of the main card based on the bit unit to which the bit position corresponding to the third value in the second configuration file belongs, and revert the antenna switching capability corresponding to the main card from the first antenna switching capability to the second antenna switching capability. Here, the first antenna switching capability can be the current antenna switching capability of the main card. Reverting the first antenna switching capability of the main card to the second antenna switching capability can prevent the main card's transmit communication in the first frequency band from interrupting the secondary card's receive communication in the second frequency band. The second configuration file can be divided into multiple bit units, and the multiple bit units can be arranged in sequence. Each bit unit can include the same number of bits, and the antenna switching capability of the main card corresponding to each bit in the same bit unit is the same.

[0112] In some embodiments, the second configuration file can be divided into N bit units, which are arranged in sequence. The second antenna switching capability of the main card corresponding to each bit belonging to the nth bit unit is an n-way antenna switching capability. N is a positive integer, and n is a positive integer less than or equal to N. For example, the second antenna switching capability of the main card corresponding to each bit belonging to the 1st bit unit is a 1-way antenna switching capability, that is, the number of transmit antennas that the main card can switch is 1.

[0113] In some embodiments, each bit unit in the second configuration file may include M bits, and the M bits in each bit unit may be independently ordered, that is, the position identifiers of the bit positions in the second configuration file are all integers less than or equal to M. For example, the position identifiers of the M bits belonging to the first bit unit may be 1 to M, and the position identifiers of the M bits belonging to the second bit unit may also be 1 to M.

[0114] In some embodiments, the bit whose bit value in the second configuration file is the first numerical value can indicate that when the frequency band of the main card and the frequency band of the secondary card are combined corresponding to the position identifier of the bit, the antenna switching capability of the main card will fall back to the second antenna switching capability, and the size of the second antenna switching capability is related to the order of the bit units to which the bit belongs.

[0115] For example, please refer to Figure 8B, which is a schematic diagram of another second configuration file provided in an embodiment of the present application. For example, assuming that the electronic device determines that the second frequency band used by the secondary card is frequency band E, it can be seen from the frequency band mapping information (Table 1) that the bit position corresponding to frequency band E is the 191st bit. The second configuration file shown in Figure 8B includes 4 bit units, each of which contains a bit with a bit position of 191st. The bit value of the 191st bit in the first bit unit is 1 (first numerical value), and the bit value of the 191st bit in the remaining bit units is 0 (second numerical value). Therefore, when the frequency band of the main card and the frequency band E corresponding to the 191st bit of the secondary card are combined, the second antenna switching capability of the main card is the 1-way antenna switching capability corresponding to the first bit unit. Combined with Figure 8A, it can be represented that the frequency band C of the main card is combined with the frequency band E of the secondary card. The electronic device reverts the antenna switching capability of the main card to the 1-way antenna switching capability, which can avoid the main card's service of transmitting signals in frequency band C interrupting the secondary card's service of receiving signals in frequency band E.

[0116] It should be noted that in this embodiment of the present application, the electronic device can simultaneously obtain the first configuration file and the second configuration file and then execute steps S702-S704. The electronic device can also first obtain the first configuration file, execute step S702, then obtain the second configuration file, and execute steps S703-S704. The combination of the first and second configuration files can indicate the antenna switching capability of the primary card in different frequency bands of the primary and secondary cards.

[0117] By implementing the embodiments of the present application, the electronic device can combine the different frequency band combinations of the main card and the secondary card to regress the antenna switching capability of the main card to varying degrees, thereby avoiding the interruption of the secondary card's receiving signal service by the main card's transmitting signal service. This antenna switching method is conducive to improving the flexibility of antenna switching.

[0118] Please refer to Figure 9, which is a flowchart of another method for adjusting antenna switching capability provided by an embodiment of the present application. The method can be performed by an electronic device, the electronic device can operate in DR-DSDS mode, and the main card can support TDD antenna switching mode. As shown in Figure 9, it can include but is not limited to the following steps:

[0119] S901: Obtain a first configuration file.

[0120] In an embodiment of the present application, the electronic device may first obtain a first configuration file, which may be used to indicate whether the antenna switching capability of the primary card will be reverted under the frequency band combination of the primary card and the secondary card. Optionally, the first configuration file may be pre-configured and stored locally in the electronic device.

[0121] S902: Determine whether it is necessary to roll back the first antenna switching capability corresponding to the primary card according to the first configuration file and the first frequency band.

[0122] In this embodiment of the present application, after the electronic device obtains the first configuration file, it can determine whether to revert to the first antenna switching capability in a dual-SIM configuration based on the first configuration file and the first frequency band to prevent interference between the secondary card's receiving signal services and the primary card's transmitting signal services. The first antenna switching capability can be used to indicate the number of transmit antennas currently available for the primary card, i.e., the first antenna switching capability is the primary card's current antenna switching capability. The first frequency band is the frequency band currently used by the primary card.

[0123] If the primary card's first antenna switching capability is to be rolled back, the first bit value corresponding to the first frequency band in the first configuration file is preconfigured to the first value. If the primary card's first antenna switching capability is not to be rolled back, the first bit value corresponding to the first frequency band in the first configuration file is preconfigured to the second value. If the electronic device determines, based on the first configuration file, that the primary card's first antenna switching capability is to be rolled back, step S903 may be executed. If the electronic device determines, based on the first configuration file, that the primary card's first antenna switching capability is not to be rolled back, the primary card's first antenna switching capability may be maintained unchanged, or the primary card's maximum antenna switching capability may be maintained.

[0124] S903: Obtain a second configuration file.

[0125] In an embodiment of the present application, the electronic device may obtain a second configuration file in response to the fallback of the antenna switching capability of the primary card. The second configuration file may be used to indicate the antenna switching capability corresponding to at least one dual-card combination. Here, the second configuration file may be pre-configured and stored locally in the electronic device.

[0126] It is worth noting that the bits in the first configuration file can correspond to the frequency band of the primary card, and the bits in the second configuration file can correspond to the frequency band of the secondary card. In this way, the first and second configuration files can be combined to represent the antenna switching capability of the primary card under different frequency band combinations of the primary and secondary cards.

[0127] S904: Determine the second antenna switching capability corresponding to the main card according to the second configuration file, the first frequency band, and the second frequency band, and revert the antenna switching capability corresponding to the main card from the first antenna switching capability to the second antenna switching capability.

[0128] In an embodiment of the present application, the electronic device can determine the second antenna switching capability corresponding to the primary card based on the second configuration file, the first frequency band, and the second frequency band. The electronic device can then revert the primary card's first antenna switching capability to the second antenna switching capability to prevent the secondary card's signal reception service from being interrupted by the primary card's signal transmission service. The second frequency band is the frequency band currently used by the secondary card, and the second configuration file is used to indicate the antenna switching capabilities corresponding to the primary card in at least one frequency band combination. Each frequency band combination in the at least one frequency band combination is composed of a frequency band used by the primary card and a frequency band used by the secondary card. The at least one frequency band combination includes a first frequency band combination, which is a frequency band combination consisting of the first frequency band used by the primary card and the second frequency band used by the secondary card.

[0129] The second configuration file may be divided into a plurality of bit units, which may be arranged in sequence. Each bit unit may include the same number of bits, and each bit unit may correspond to an antenna switching capability of the primary card. For example, a bit unit arranged earlier in the sequence of the plurality of bit units may correspond to a lower antenna switching capability.

[0130] In some embodiments, the main card can support multiple frequency bands. If the main card supports multiple frequency bands, the second configuration file can include configuration information corresponding to the multiple frequency bands of the main card. The configuration information corresponding to a frequency band of the main card can include the antenna switching capability for a combination of a frequency band of the main card and different frequency bands of the secondary card. In this case, the electronic device can determine the second antenna switching capability corresponding to the main card based on the configuration information corresponding to the first frequency band and the second frequency band in the second configuration file. Furthermore, different configuration information can correspond to different file identifiers, and the file identifier can be associated with the position identifier of the frequency band of the main card in the first configuration file. For example, assuming that the main card supports two frequency bands, Band A and Band B, and Band A is identified as position 189 in the first configuration file, and Band B is identified as position 190 in the first configuration file, then the file identifier corresponding to the configuration information of Band A in the second configuration file for the main card can be, for example, digital identifier 1, and the file identifier corresponding to the configuration information of Band B in the second configuration file for the main card can be, for example, digital identifier 2. Optionally, the configuration information corresponding to multiple frequency bands of multiple main cards can also be split into multiple configuration files for storage.

[0131] For ease of understanding, the following describes a process in which the electronic device reverts the antenna switching capability of the main card to the second antenna switching capability with reference to examples of the first configuration file and the second configuration file.

[0132] For example 1, please refer to Figure 10A, which is a schematic diagram of a first configuration file and a second configuration file provided in an embodiment of the present application. Assuming that the main card of the electronic device supports a frequency band A, the first configuration file and the second configuration file obtained can be as shown in Figure 10A. If the electronic device determines that the first frequency band currently used by the main card is frequency band A and the second frequency band used by the secondary card is frequency band B, it can first determine, based on the frequency band mapping information, that frequency band A corresponds to the 191st bit and frequency band B corresponds to the 126th bit. Then, according to the first configuration file, the electronic device can determine that the first bit value corresponding to the 191st bit is 1, indicating that the frequency band A of the main card is combined with the frequency band B of the secondary card, and the antenna switching capability of the main card will be rolled back. According to the second configuration file, it can be determined that the second bit value of the 126th bit is 1 in the first bit unit, that is, the frequency band A of the main card is combined with the frequency band B of the secondary card, and the second antenna switching capability of the main card is a single antenna switching capability. That is to say, in a dual-card combination where the primary card uses frequency band A and the secondary card uses frequency band B, the electronic device will revert the antenna switching capability of the primary card to a single-channel antenna switching capability, thereby preventing the secondary card's signal receiving service from being interrupted by the primary card's signal transmitting service.

[0133] For example two, please refer to Figure 10B, which is a schematic diagram of another first configuration file and a second configuration file provided in an embodiment of the present application. Assuming that the main card of the electronic device can support two frequency bands: band A and band C, the first configuration file and the second configuration file obtained can be as shown in Figure 10B. The electronic device can first determine, based on the frequency band mapping information, that band A corresponds to the 191st bit and band C corresponds to the 184th bit. Since the position identifier of band A is greater than the position identifier of band C, the second second configuration information in the second configuration file corresponding to band A can be determined. If the electronic device determines that the first frequency band currently used by the main card is band A and the second frequency band used by the secondary card is band D. Furthermore, based on the first configuration file, the electronic device can determine that the first bit value corresponding to the 191st bit is 1, indicating that the frequency band A of the main card is combined with the frequency band D of the secondary card, and the antenna switching capability of the main card will be rolled back. The frequency band mapping information can determine that frequency band D corresponds to the 120th bit, and then according to the second second configuration information in the second configuration file, it can be determined that the second bit value of the 120th bit in the 4th bit unit is 1, that is, it is determined that in the dual-card combination of the main card using frequency band A and the secondary card using frequency band D, the electronic device will revert the antenna switching capability of the main card to a 4-way antenna switching capability, which can avoid the service of the secondary card receiving signals being interrupted by the service of the main card transmitting signals.

[0134] By implementing the embodiments of the present application, the electronic device can obtain the first configuration file and the second configuration file, and combine the first configuration file and the second configuration file to implement different degrees of fallback of the antenna switching capability of the primary card for different frequency band combinations of the primary card and the secondary card, thereby preventing the secondary card's receiving signal service from being interrupted by the primary card's transmitting signal service. This helps to achieve refined antenna switching for the primary card and improves the flexibility of antenna switching.

[0135] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of 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 herein are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive).

[0136] It should be noted that for the aforementioned various method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0137] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

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

[0139] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which can include: a flash drive, ROM, RAM, a magnetic disk or an optical disk, etc.

[0140] The above disclosure is only a preferred embodiment of the present application and is only a part of the embodiments of the present application. It cannot be used to limit the scope of rights of the present application.

Claims

1. A method for adjusting antenna switching capability, characterized in that: The method is applied to an electronic device, and the method comprises: When the electronic device is in a dual-receiving dual-card dual-standby mode and the main card supports a time division duplex antenna switching mode, Determine whether to roll back the first antenna switching capability corresponding to the main card according to the first configuration file and the first frequency band; the first frequency band is the currently used frequency band of the main card; the first antenna switching capability is used to indicate the number of currently switchable transmitting antennas of the main card; the first configuration file is used to indicate the frequency band for which the antenna switching capability needs to be rolled back; When it is determined that the first antenna switching capability corresponding to the main card needs to be rolled back, the second antenna switching capability corresponding to the main card is determined according to the second configuration file, the first frequency band and the second frequency band, and the antenna switching capability corresponding to the main card is rolled back from the first antenna switching capability to the second antenna switching capability; the second frequency band is the currently used frequency band of the secondary card, and the second configuration file is used to indicate the antenna switching capabilities corresponding to the main card under at least one frequency band combination, each frequency band combination in the at least one frequency band combination is composed of a frequency band used by the main card and a frequency band used by the secondary card, the at least one frequency band combination includes a first frequency band combination, the first frequency band combination is a frequency band combination composed of the first frequency band and the second frequency band, and the second antenna switching capability is the antenna switching capability corresponding to the main card under the first frequency band combination.

2. A method for adjusting antenna switching capability, characterized in that: The method is applied to an electronic device, and the method comprises: When the electronic device is in a dual-receiving dual-card dual-standby mode and the primary card supports a time division duplex antenna switching mode: When the value of the bit corresponding to the first frequency band in the first configuration file is the first value, and the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is the third value, the antenna switching capability corresponding to the main card is reverted from the first antenna switching capability to the second antenna switching capability; When the value of the bit corresponding to the first frequency band in the first configuration file is a second value, the antenna switching capability corresponding to the main card is not rolled back; Among them, the first frequency band is the currently used frequency band of the main card, the first configuration file is used to indicate the frequency band for which the antenna switching capability needs to be rolled back, the second frequency band is the currently used frequency band of the secondary card, the second configuration file is used to indicate the antenna switching capabilities corresponding to the main card under at least one frequency band combination, each frequency band combination in the at least one frequency band combination is composed of a frequency band used by the main card and a frequency band used by the secondary card, the at least one frequency band combination includes a first frequency band combination, the first frequency band combination is a frequency band combination composed of the first frequency band and the second frequency band, the first antenna switching capability is used to indicate the number of currently switchable transmitting antennas of the main card, and the second antenna switching capability is the antenna switching capability corresponding to the main card under the first frequency band combination determined according to the second configuration file, the first frequency band, and the second frequency band.

3. The method according to claim 1, characterized in that The first configuration file includes a plurality of bits, each bit of the plurality of bits corresponds to a frequency band of the main card; The determining, according to the first configuration file and the first frequency band, whether it is necessary to roll back the first antenna switching capability corresponding to the main card includes: When the value of the bit corresponding to the first frequency band in the first configuration file is a first value, determining that the first antenna switching capability corresponding to the main card needs to be rolled back; When the value of the bit corresponding to the first frequency band in the first configuration file is the second value, it is determined that there is no need to roll back the first antenna switching capability corresponding to the main card.

4. The method according to any one of claims 1 to 3, characterized in that: The determining, according to the second configuration file, the first frequency band, and the second frequency band, the second antenna switching capability corresponding to the main card includes: Determine the second antenna switching capability corresponding to the main card according to the configuration information corresponding to the first frequency band and the second frequency band in the second configuration file; the second configuration file includes configuration information corresponding to at least one frequency band corresponding to the main card, and the at least one frequency band includes the first frequency band.

5. The method according to any one of claims 1 to 4, characterized in that: The second configuration file includes a plurality of bits, each bit of the plurality of bits corresponds to a frequency band of the secondary card; The determining, according to the second configuration file, the first frequency band, and the second frequency band, the second antenna switching capability corresponding to the main card includes: When the value of the bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is a third value, When the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the first position, the second antenna switching capability corresponding to the main card is an x-way antenna switching capability; the x-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the main card is x, where x is a positive integer less than the maximum number of antennas that can be used in the current frequency band used by the main card of the electronic device; or, When the position of the third numerical value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the main card is a y-way antenna switching capability; the y-way antenna switching capability is used to indicate that the number of currently switchable transmitting antennas of the main card is y, the second position is different from the first position, and y is a positive integer different from x and less than the maximum number of antennas that can be used in the current frequency band used by the main card of the electronic device.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Determine the bit identification information corresponding to the second frequency band according to the frequency band mapping information; the frequency band mapping information includes a correspondence between k frequency bands and k bits of identification information; the k frequency bands include the second frequency band, and k is a positive integer; According to the identification information and the configuration information corresponding to the first frequency band in the second configuration file, a value of a bit corresponding to the second frequency band in the configuration information corresponding to the first frequency band in the second configuration file is determined.

7. The method according to claim 5, characterized in that The configuration information corresponding to the first frequency band in the second configuration file includes n bit units, and each of the n bit units includes the same number of bits; When the third value is located in the configuration information corresponding to the first frequency band in the second configuration file When the first position is the first position, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability, including: when the first position belongs to the j-th bit unit among the n bit units, the second antenna switching capability corresponding to the main card is the x-way antenna switching capability; j is a positive integer less than or equal to n, x is a positive integer less than or equal to n, and n is an integer greater than or equal to 2, or, When the position of the third value in the configuration information corresponding to the first frequency band in the second configuration file is the second position, the second antenna switching capability corresponding to the main card is a y-way antenna switching capability, including: when the first position belongs to the kth bit unit among the n bit units, the second antenna switching capability corresponding to the main card is a y-way antenna switching capability; k is a positive integer less than or equal to n, and k is not equal to j, y is a positive integer less than or equal to n, and y is not equal to x.

8. The method according to claim 7, characterized in that Each of the n bit units includes 256 bits.

9. The method according to claim 7, characterized in that The method further comprises at least one of the following: The maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is a positive integer greater than n; or, The maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is n+1; or, n is equal to 4, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 5; or, n is equal to 3, and the maximum number of antennas that can be used in the current frequency band of the main card of the electronic device is 4; or, The first value is 1; or, The second value is 0; or, The third value is 1.

10. An electronic device, characterized in that: It comprises a memory and one or more processors; the memory is coupled to the one or more processors and is used to store a computer program, the computer program comprises program instructions; the one or more processors call the program instructions so that the electronic device executes the method as described in any one of claims 1-9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

12. A chip system, which is applied to electronic equipment, characterized in that: The electronic device comprises one or more processors, and when the one or more processors execute computer instructions, the electronic device executes the method as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

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

    CN113259925A

  • Managing MSIM concurrent activity

    CN114467321A

  • Method and device for processing service, terminal equipment and chip

    CN114615690A

  • Dual-card communication method, dual-card communication device and terminal equipment

    CN116744392A

  • Techniques for antenna switching management in multi-subscriber identity module mode

    CN116803013A