Radio frequency circuit and electronic device

By designing a radio frequency circuit including multiple transmitting units, receiving units and control units, the problem of data service lag in electronic devices in DSDA working mode is solved, and faster hardware configuration and higher data service throughput are achieved.

WO2025129441A1PCT designated stage expired Publication Date: 2025-06-26HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/139791
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2025-06-26

AI Technical Summary

Technical Problem

In the DSDA working mode of electronic devices, if SIM1 starts to execute call services when performing data services, it is necessary to reconfigure the radio frequency circuit, resulting in stuttering of data services.

Method used

A radio frequency circuit is designed, including a first transmitting unit, a second transmitting unit, a first switch, a first receiving unit, a first radio frequency front-end circuit, a first antenna unit and a control unit. The connection mode of the first switch is controlled by the control unit, and the receiving unit, the radio frequency front-end circuit and the antenna unit are reconfigured only when necessary, without reconfiguring the transmitting unit.

Benefits of technology

It effectively shortens the time required for electronic devices to configure hardware in DSDA working mode, reduces the lag in data services, and improves the upstream throughput and user experience of data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139791_26062025_PF_FP_ABST
    Figure CN2023139791_26062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of radio frequency, and discloses a radio frequency circuit and an electronic device. In the radio frequency circuit, the output end of a first transmitting unit and the output end of a second transmitting unit are both connected to a first end of a radio frequency front-end circuit by means of switches. The first transmitting unit is dedicated to a data service, and the second transmitting unit is dedicated to a call service. A receiving unit is connected to a second end of the radio frequency front-end circuit. A third end of the radio frequency front-end circuit is connected to an antenna unit. A control unit is used for controlling the switches. In this way, if an electronic device starts to execute a call service in the process of executing a data service, there is no need to reconfigure the first transmitting unit. Thus, the time required for hardware configuration of the electronic device in a DSDA working mode can be effectively shortened, thereby effectively reducing stuttering when the electronic device executes the data service in the DSDA working mode, improving the user experience effect.
Need to check novelty before this filing date? Find Prior Art

Description

RF circuits and electronic equipment Technical Field

[0001] The present application relates to the field of radio frequency technology, and in particular to a radio frequency circuit and electronic equipment. Background Art

[0002] Electronic devices include mobile phones, tablet computers, and the like. Generally, electronic devices have radio frequency circuits, which are used to implement wireless communication functions. The radio frequency circuit may include a transmitting unit, a receiving unit, a radio frequency front-end circuit, and an antenna unit. The transmitting unit is connected to the first end of the radio frequency front-end circuit, the receiving unit is connected to the second end of the radio frequency front-end circuit, and the antenna unit is connected to the third end of the radio frequency front-end circuit. Thus, when the first and third ends of the radio frequency front-end circuit are connected, the radio frequency circuit can transmit wireless communication signals. When the second and third ends of the radio frequency front-end circuit are connected, the radio frequency circuit can receive wireless communication signals.

[0003] In related technologies, electronic devices can have two subscriber identity modules (SIMs) and support dual SIM dual active (DSDA) operation. For example, if an electronic device has SIM1 and SIM2, DSDA operation means that while SIM1 is performing data services, SIM2 can also perform call services.

[0004] However, in related technologies, both SIM1 and SIM2 require radio frequency circuits to receive and transmit wireless communication signals when performing services. In this case, if SIM2 starts a call service while SIM1 is performing a data service, the transmitting unit, receiving unit, radio frequency front-end circuit, and antenna unit must be reconfigured, which can cause lag when SIM1 performs a data service.

[0005] Summary of the Invention

[0006] The present invention provides a radio frequency circuit and an electronic device, which can effectively improve the lag phenomenon when the electronic device is in DSDA mode and performs data services. The technical solution is as follows:

[0007] In a first aspect, a radio frequency circuit is provided. The radio frequency circuit is applied to an electronic device. The radio frequency circuit includes a first transmitting unit, a second transmitting unit, a first switch, a first receiving unit, a first radio frequency front-end circuit, a first antenna unit, and a control unit.

[0008] The first transmitting unit and the second transmitting unit are both used to output RF signals. Here, the output end of the first transmitting unit is connected to the first end of the first switch, and the output end of the second transmitting unit is connected to the second end of the first switch. The third end of the first switch is connected to the first end of the first RF front-end circuit. The input end of the first receiving unit is connected to the second end of the first RF front-end circuit; the third end of the first RF front-end circuit is connected to the first antenna unit. Either the first end or the second end of the first switch can be connected to the third end of the first switch. Either the first end or the second end of the first RF front-end circuit can be connected to the third end of the first RF front-end circuit.

[0009] The first output terminal of the control unit is connected to the control terminal of the first switch. The control unit is configured to connect the first and third terminals of the first switch when the first transmitting unit enters an operating state; and to connect the second and third terminals of the first switch when the second transmitting unit enters an operating state. In this way, when the first transmitting unit is in an operating state, it can output a radio frequency signal to the first terminal of the first switch; when the second transmitting unit is in an operating state, it can output a radio frequency signal to the second terminal of the first switch.

[0010] In an embodiment of the present application, the first transmitting unit can be in a working state when the electronic device performs a data service, and output a radio frequency signal to the first end of the first switch; the second transmitting unit can be in a working state when the electronic device performs a call service, and output a radio frequency signal to the second end of the first switch. That is to say, the first transmitting unit only serves the data service, and the second transmitting unit only serves the call service. In this way, if the electronic device starts to perform a call service while performing a data service, it is only necessary to reconfigure the first receiving unit, the first radio frequency front-end circuit and the first antenna unit, and control the first switch, without reconfiguring the first transmitting unit. This can effectively shorten the time required for the electronic device to perform hardware configuration in the DSDA working mode, thereby effectively improving the jamming phenomenon when the electronic device performs data services in the DSDA working mode, improving the uplink throughput of the electronic device when performing data services, and improving the user experience.

[0011] In some embodiments, the first switch further has a fourth end. Any one of the first end and the second end of the first switch can be connected to any one of the third end and the fourth end of the first switch. The radio frequency circuit further includes an impedance unit, the first end of the impedance unit is connected to the fourth end of the first switch, and the second end of the impedance unit is connected to the ground line. In this embodiment, the control unit is configured to: when the first transmitting unit enters an inoperative state, control the first end and the fourth end of the first switch to be connected; when the second transmitting unit enters an inoperative state, control the second end and the fourth end of the first switch to be connected. That is to say, when the first transmitting unit does not need to output a radio frequency signal, the output end of the first transmitting unit can be connected to the impedance unit, so that the output end of the first transmitting unit always maintains a certain impedance, thereby improving the reliability of the first transmitting unit.

[0012] In some embodiments, the radio frequency circuit further includes a second switch and a second receiving unit.

[0013] A first end of the second switch is connected to the input end of the first receiving unit, a second end of the second switch is connected to the input end of the second receiving unit, and a third end of the second switch is connected to the second end of the first RF front-end circuit. Either the first end or the second end of the second switch can be connected to the third end of the second switch.

[0014] The second output terminal of the control unit is connected to the control terminal of the second switch. The control unit is configured to connect the first and third terminals of the second switch when the first receiving unit enters the operating state; and to connect the second and third terminals of the second switch when the second receiving unit enters the operating state. In this way, when the first receiving unit enters the operating state, RF signals can be received via the first antenna unit, the first RF front-end circuit, and the second switch. When the second receiving unit enters the operating state, RF signals can also be received via the first antenna unit, the first RF front-end circuit, and the second switch.

[0015] In an embodiment of the present application, the first receiving unit can be in a working state when the electronic device performs a data service, and is used to receive radio frequency signals; the second receiving unit can be in a working state when the electronic device performs a call service, and is used to receive radio frequency signals. That is to say, the first receiving unit only serves data services, and the second receiving unit only serves call services. In this way, if the electronic device starts to perform a call service while performing a data service, there is no need to reconfigure the receiving unit. This can effectively shorten the time required for the electronic device to perform hardware configuration in the DSDA working mode, thereby effectively improving the jamming phenomenon when the electronic device performs data services in the DSDA working mode, improving the downlink throughput of the electronic device when performing data services, and improving the user experience.

[0016] In some embodiments, the radio frequency circuit includes a transceiver. The transceiver includes a first transmitting unit, a second transmitting unit, and a first receiving unit. The transceiver also includes a processing unit that can determine whether the first transmitting unit, the second transmitting unit, and the first receiving unit are in an operating state. An output of the processing unit is connected to an input of a control unit. A third output of the control unit is connected to the first radio frequency front-end circuit.

[0017] Here, the processing unit is configured to: transmit a first control instruction to the control unit when the first transmitting unit enters the working state; transmit a second control instruction to the control unit when the second transmitting unit enters the working state; and transmit a third control instruction to the control unit when the first receiving unit enters the working state;

[0018] The control unit is configured to: when receiving a first control instruction, control the first end and the third end of the first switch to be connected, and control the first end and the third end of the first RF front-end circuit to be connected; when receiving a second control instruction, control the second end and the third end of the first switch to be connected, and control the first end and the third end of the first RF front-end circuit to be connected; when receiving a third control instruction, control the second end and the third end of the first RF front-end circuit to be connected.

[0019] In some embodiments, the first RF front-end circuit includes a first amplifier and a second amplifier. The first amplifier is connected between a first terminal of the first RF front-end circuit and a third terminal of the first RF front-end circuit. The second amplifier is connected between the third terminal of the first RF front-end circuit and the second terminal of the first RF front-end circuit.

[0020] The control unit is further configured to: upon receiving a first control instruction, adjust the gain of the first amplifier according to the first control instruction; upon receiving a second control instruction, adjust the gain of the first amplifier according to the second control instruction; and upon receiving a third control instruction, adjust the gain of the second amplifier according to the third control instruction.

[0021] In some embodiments, the first antenna unit includes a tuning circuit and an antenna radiator. A first terminal of the tuning circuit is connected to a third terminal of the first RF front-end circuit, and a second terminal of the tuning circuit is connected to the antenna radiator. A fourth output terminal of the control unit is connected to the tuning circuit.

[0022] The control unit is configured to adjust the impedance of the tuning circuit according to a first frequency range when the first transmitting unit enters an operating state; and to adjust the impedance of the tuning circuit according to a second frequency range when the second transmitting unit enters an operating state. The first frequency range is the frequency range of the radio frequency signal output by the first transmitting unit when in an operating state, and the second frequency range is the frequency range of the radio frequency signal output by the second transmitting unit when in an operating state.

[0023] In some embodiments, the RF circuit further includes: a third transmitting unit, a fourth transmitting unit, a third switch, a third receiving unit, a second RF front-end circuit, and a second antenna unit.

[0024] The third transmitting unit and the fourth transmitting unit are both used to output RF signals. Here, the output end of the third transmitting unit is connected to the first end of the third switch, and the output end of the fourth transmitting unit is connected to the second end of the third switch. The third end of the third switch is connected to the first end of the second RF front-end circuit. The input end of the third receiving unit is connected to the second end of the second RF front-end circuit; the third end of the second RF front-end circuit is connected to the second antenna unit. In particular, either the first end or the second end of the third switch can be connected to the third end of the third switch. Either the first end or the second end of the second RF front-end circuit can be connected to the third end of the second RF front-end circuit.

[0025] The fifth output end of the control unit is connected to the control end of the third switch; the control unit is configured to: when the third transmitting unit enters the working state, control the first end and the third end of the third switch to be connected; when the fourth transmitting unit enters the working state, control the second end and the third end of the third switch to be connected.

[0026] In some embodiments, the RF circuit further includes a first power supply and a second power supply, wherein a voltage output terminal of the first power supply is connected to the first RF front-end circuit, and a voltage output terminal of the second power supply is connected to the second RF front-end circuit.

[0027] In one possible scenario, the first power supply and the second power supply can operate in average power mode. In this case, the sixth output terminal of the control unit is connected to the control terminal of the first power supply, and the control unit is configured to control the first power supply to operate in average power mode and output a voltage to the first RF front-end circuit. The seventh output terminal of the control unit is connected to the control terminal of the second power supply, and the control unit is configured to control the second power supply to operate in average power mode and output a voltage to the second RF front-end circuit.

[0028] In another possible case, the first power supply and the second power supply can operate in an envelope tracking mode.

[0029] In this case, the radio frequency circuit further includes: a first envelope generating circuit, a second envelope generating circuit, a fourth switch, a first differential generating circuit, a second differential generating circuit, a fifth switch, and a sixth switch.

[0030] The input terminal of the first transmitting unit and the input terminal of the third transmitting unit are connected to the first terminal of the first envelope generating circuit. The second terminal of the first envelope generating circuit is connected to the first terminal of the fourth switch. The input terminal of the second transmitting unit and the input terminal of the fourth transmitting unit are connected to the first terminal of the second envelope generating circuit. The second terminal of the second envelope generating circuit is connected to the second terminal of the fourth switch. The third terminal of the fourth switch is connected to the input terminal of the first differential generating circuit, and the fourth terminal of the fourth switch is connected to the input terminal of the second differential generating circuit.

[0031] The first output terminal of the first differential generation circuit is connected to the first terminal of the fifth switch. The second output terminal of the first differential generation circuit is connected to the first terminal of the sixth switch. The first output terminal of the second differential generation circuit is connected to the second terminal of the fifth switch. The second output terminal of the second differential generation circuit is connected to the second terminal of the sixth switch.

[0032] The third terminal of the fifth switch is connected to the first input terminal of the first power supply. The fourth terminal of the fifth switch is connected to the first input terminal of the second power supply. The third terminal of the sixth switch is connected to the second input terminal of the first power supply. The fourth terminal of the sixth switch is connected to the second input terminal of the second power supply.

[0033] The eighth output terminal of the control unit is connected to the control terminal of the fifth switch, and the ninth output terminal of the control unit is connected to the sixth switch. The control unit is configured to control the fifth switch and the sixth switch so that when the first transmitting unit or the second transmitting unit enters the operating state, the first power supply operates in the envelope tracking mode and outputs a voltage to the first RF front-end circuit; and when the third transmitting unit or the fourth transmitting unit enters the operating state, the second power supply operates in the envelope tracking mode and outputs a voltage to the second RF front-end circuit.

[0034] Specifically, when the first transmitting unit enters the working state, if the first end and the third end of the fourth switch are connected, the control unit controls the first end and the third end of the fifth switch to be connected, and the first end and the third end of the sixth switch to be connected; if the first end and the fourth end of the fourth switch are connected, the control unit controls the second end and the third end of the fifth switch to be connected, and the second end and the third end of the sixth switch to be connected.

[0035] When the second transmitting unit enters the working state, if the second end and the third end of the fourth switch are connected, the control unit controls the first end and the third end of the fifth switch to be connected, and the first end and the third end of the sixth switch to be connected; if the second end and the fourth end of the fourth switch are connected, the control unit controls the second end and the third end of the fifth switch to be connected, and the second end and the third end of the sixth switch to be connected.

[0036] When the third transmitting unit enters the working state, if the first end and the third end of the fourth switch are connected, the control unit controls the first end and the fourth end of the fifth switch to be connected, and the first end and the fourth end of the sixth switch to be connected; if the first end and the fourth end of the fourth switch are connected, the control unit controls the second end and the fourth end of the fifth switch to be connected, and the second end and the fourth end of the sixth switch to be connected.

[0037] When the fourth transmitting unit enters the working state, if the second end and the third end of the fourth switch are connected, the control unit controls the first end and the fourth end of the fifth switch to be connected, and the first end and the fourth end of the sixth switch to be connected; if the second end and the fourth end of the fourth switch are connected, the control unit controls the second end and the fourth end of the fifth switch to be connected, and the second end and the fourth end of the sixth switch to be connected.

[0038] In some embodiments, the first RF front-end circuit includes a power amplifier. The first power supply is used to output a voltage to the power amplifier in the first RF front-end circuit. In this case, the control unit is specifically used to:

[0039] If the first transmitting unit is in an operating state and the second transmitting unit enters an operating state, the following steps are performed: controlling the first and third ends of the first switch to be disconnected; controlling the power amplifier to enter a low power consumption mode or shutting down the power amplifier; controlling the first power supply to stop outputting voltage to the power amplifier; initializing the power amplifier; initializing the first power supply; controlling the second and third ends of the first switch to be connected, and controlling the first and third ends of the first RF front-end circuit to be connected; controlling the first power supply to output voltage to the power amplifier and adjusting the gain of the power amplifier; and adjusting the impedance of the tuning circuit in the first antenna unit.

[0040] In a second aspect, an electronic device is provided, comprising a system-on-chip and a radio frequency circuit according to any one of the first aspects. The system-on-chip is connected to the input of the first transmitting unit, the input of the second transmitting unit, and the output of the first receiving unit, so that the system-on-chip can output radio frequency signals to the first transmitting unit and the second transmitting unit, and can also receive radio frequency signals output by the first receiving unit.

[0041] It can be understood that the beneficial effects of the second aspect mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] FIG1 is a schematic diagram of the appearance of a first electronic device;

[0043] FIG2 is a schematic diagram of the appearance of a second electronic device;

[0044] FIG3 is a schematic structural diagram of a radio frequency circuit in the related art;

[0045] FIG4 is a circuit structure diagram of a radio frequency circuit in the related art;

[0046] FIG5 is a timing diagram of a radio frequency circuit in the related art;

[0047] FIG6 is a schematic structural diagram of a first radio frequency circuit provided in an embodiment of the present application;

[0048] FIG7 is a schematic structural diagram of a second radio frequency circuit provided in an embodiment of the present application;

[0049] FIG8 is a schematic structural diagram of a third radio frequency circuit provided in an embodiment of the present application;

[0050] FIG9 is a circuit structure diagram of a first radio frequency circuit provided in an embodiment of the present application;

[0051] FIG10 is a schematic structural diagram of a first antenna unit provided in an embodiment of the present application;

[0052] FIG11 is a schematic structural diagram of a fourth radio frequency circuit provided in an embodiment of the present application;

[0053] FIG12 is a circuit structure diagram of a second radio frequency circuit provided in an embodiment of the present application;

[0054] 13 is a connection circuit diagram of a first envelope generating circuit, a differential generating circuit, and a power supply provided in an embodiment of the present application;

[0055] FIG14 is a schematic diagram of the exploded structure of a housing of an electronic device provided in an embodiment of the present application.

[0056] FIG15 is a schematic diagram of dividing a frame provided in an embodiment of the present application;

[0057] FIG16 is a schematic diagram of the internal structure of a first electronic device provided in an embodiment of the present application;

[0058] FIG17 is a connection circuit diagram of a second envelope generating circuit, a differential generating circuit, and a power supply provided in an embodiment of the present application;

[0059] FIG18 is a flowchart of a control unit provided in an embodiment of the present application;

[0060] FIG19 is a module structure diagram of a control unit provided in an embodiment of the present application;

[0061] FIG20 is a schematic diagram of the internal structure of a second electronic device provided in an embodiment of the present application;

[0062] FIG21 is a diagram of a configuration process of a radio frequency circuit in the related art;

[0063] Figure 22 is a configuration process diagram of the radio frequency circuit provided in an embodiment of the present application.

[0064] The meanings of the figures are as follows:

[0065] Related technologies: 10. Electronic device; 20. Radio frequency circuit; 210. Transmitter; 211. First port; 212. First filter; 214. Upconverter; 216. First amplifier; 218. First oscillator; 220. Receiving unit; 221. Second port; 222. Second filter; 224. Downconverter; 226. Second amplifier; 228. Second oscillator; 230. Radio frequency front-end circuit; 231. Third amplifier; 232. First switch; 233. First duplexer; 234. Second duplexer; 235. Second switch; 236. Third switch; 237. Fourth amplifier; 240. Antenna unit;

[0066] The present application: 30, radio frequency circuit; 31, transceiver; 30A, first radio frequency module; 312, first transmitting unit; 314, second transmitting unit; 316, first receiving unit; 318, second receiving unit; 319, processing unit; 322, first switch; 324, second switch; 330, first radio frequency front-end circuit; 331, first amplifier; 332, seventh switch; 333, first duplexer; 334, second duplexer; 335, eighth switch; 336, ninth switch; 337, second amplifier; 340, first antenna unit; 342, antenna radiator; 344, tuning circuit; 350, control unit; 351, instruction receiving subunit; 352, status receiving subunit; 353, processing subunit; 354, first output subunit; 355, second output subunit Output unit; 30B, second RF module; 326, third switch; 362, third transmitting unit; 364, fourth transmitting unit; 366, third receiving unit; 370, second RF front-end circuit; 380, second antenna unit; 392, first power supply; 394, second power supply; 3101, fourth switch; 3102, first envelope generating circuit; 3103, second envelope generating circuit; 3104, fifth switch; 3105, sixth switch; 3106, first differential generating circuit; 3107, second differential generating circuit; 3108, impedance unit; 40, electronic device; 410, cover; 420, frame; 421, first component; 422, second component; 423, third component; 424, fourth component; 425, fifth component; 430, back cover. DETAILED DESCRIPTION

[0067] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0068] It should be understood that the “multiple” mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; “and / or” in this article is merely a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, words such as “first” and “second” are used to distinguish between identical or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as “first” and “second” do not limit the quantity and execution order, and words such as “first” and “second” do not necessarily limit them to be different.

[0069] Before explaining the radio frequency circuit provided in the embodiment of the present application in detail, the application scenarios and related technologies of the radio frequency circuit are first explained.

[0070] Electronic devices include mobile phones, tablet computers, and laptop computers. Figures 1 and 2 illustrate the appearance of two different electronic devices 10. In the embodiment shown in Figure 1, electronic device 10 is a mobile phone; in the embodiment shown in Figure 2, electronic device 10 is a tablet computer. Electronic device 10 typically includes a radio frequency circuit. This circuit is used to implement the wireless communication capabilities of electronic device 10.

[0071] Figure 3 is a schematic diagram of the structure of a radio frequency circuit 20 in the related art. As shown in Figure 3, the radio frequency circuit 20 includes a transmitting unit 210, a receiving unit 220, a radio frequency front-end circuit 230, and an antenna unit 240. The output end of the transmitting unit 210 is connected to the first end 1 of the radio frequency front-end circuit 230, the receiving unit 220 is connected to the second end 2 of the radio frequency front-end circuit 230, and the antenna unit 240 is connected to the third end 3 of the radio frequency front-end circuit 230. Thus, when the first end 1 and the third end 3 of the radio frequency front-end circuit 230 are connected, the radio frequency circuit 20 can transmit wireless communication signals. When the second end 2 and the third end 3 of the radio frequency front-end circuit 230 are connected, the radio frequency circuit 20 can receive wireless communication signals.

[0072] Specifically, FIG4 is a circuit structure diagram of a radio frequency circuit 20 in the related art, which shows the circuit structure of the radio frequency circuit 20 shown in FIG3 . As shown in FIG4 , the transmitting unit 210 includes a first port 211, a first filter 212, an up-converter 214, a first amplifier 216, and a first oscillator 218. The receiving unit 220 includes a second port 221, a second filter 222, a down-converter 224, a second amplifier 226, and a second oscillator 228. The radio frequency front-end circuit 230 includes a third amplifier 231, a first switch 232, a first duplexer 233, a second duplexer 234, a second switch 235, a third switch 236, and a fourth amplifier 237. The first amplifier 216 and the third amplifier 231 can both be power amplifiers (PAs). The second amplifier 226 and the fourth amplifier 237 can both be low noise amplifiers (LNAs). The first oscillator 218 and the second oscillator 228 are both local oscillators (LOs). Both the first duplexer 233 and the second duplexer 234 are time division duplexing (TDD) devices. The first duplexer 233 can operate within a first frequency range, meaning that when operating, the first duplexer 233 only allows signals within the first frequency range to pass through. The second duplexer 234 operates within a second frequency range. The first and second frequency ranges may or may not overlap.

[0073] Taking the RF circuit 20 shown in FIG4 as an example, when the frequency of the signal transmitted by the RF front-end circuit 230 is within the first frequency range, the working process of the RF circuit 20 is as follows:

[0074] 1. The RF circuit 20 is used to transmit wireless communication signals. In this case, the first end 1 and the second end 2 of the first switch 232 are connected, and the second end 2 and the first end 1 of the second switch 235 are connected. At this time, the transmitting unit 210, the RF front-end circuit 230, and the antenna unit 240 form an RF transmit path. The signal output by the first port 211 is sequentially transmitted through the first filter 212, the up-converter 214, the first amplifier 216, the third amplifier 231, the first end 1 and the second end 2 of the first switch 232, the first duplexer 233, the second end 2 and the first end 1 of the second switch 235 to the antenna unit 240, completing the transmission of the wireless communication signal.

[0075] 2. The RF circuit 20 is used to receive wireless communication signals. In this case, the first end 1 and the second end 2 of the second switch 235 are connected, and the third end 3 and the first end 1 of the third switch 236 are connected. At this time, the antenna unit 240, the RF front-end circuit 230 and the receiving unit 220 form an RF receive path. The antenna unit 240 receives the wireless communication signal and outputs the RF signal to the first end 1 of the second switch 235. The RF signal output by the antenna unit 240 is sequentially transmitted through the first end 1 and the second end 2 of the second switch 235, the first duplexer 233, the third end 3 and the first end 1 of the third switch 236, the fourth amplifier 237, the second amplifier 226, the down converter 224, and the second filter 222 to the second port 221, completing the reception of the wireless communication signal.

[0076] When the RF circuit 20 is working, if the frequency of the signal transmitted by the RF front-end circuit 230 is within the second frequency range, then: when the RF circuit 20 is used to transmit wireless communication signals, the first end 1 and the third end 3 in the first switch 232 are connected, and the third end 3 and the first end 1 in the second switch 235 are connected; when the RF circuit 20 is used to receive wireless communication signals, the first end 1 and the third end 3 in the second switch 235 are connected, and the second end 2 and the first end 1 in the third switch 236 are connected, which will not be repeated.

[0077] In the related art, the electronic device 10 may have two SIM cards and support the DSDA working mode. Taking the electronic device 10 having SIM1 and SIM2 as an example, the DSDA working mode means that while SIM1 is performing data services, SIM2 can perform call services.

[0078] The following describes the DSDA working mode using three application scenarios as examples:

[0079] 1. Electronic device 10 is playing an online game while receiving an incoming voice call. In this scenario, SIM1 can perform data services to serve the "online game" event; SIM2 can perform call services to serve the "receiving an incoming voice call" event.

[0080] 2. Electronic device 10 is making a video call while receiving a voice call. In this scenario, SIM1 can perform data services to serve the "video call" event, while SIM2 can perform call services to serve the "receive voice call" event.

[0081] 3. Electronic device 10 is performing a live video broadcast while answering an incoming voice call. In this scenario, SIM1 can perform data services to serve the "live video broadcast" event; SIM2 can perform call services to serve the "answering the voice call" event.

[0082] In related art, when the electronic device 10 operates in DSDA mode and the structure of the RF circuit 20 in the electronic device 10 is as shown in FIG3 or FIG4 , the RF circuit 20 needs to operate in a time division multiplexing manner. That is, the RF circuit 20 receives and transmits wireless communication signals for different service types (including data services and call services) in different time periods.

[0083] For example, Figure 5 is a timing diagram of the operation of a radio frequency circuit 20 in the related art. As shown in Figure 5, the operation timing of the radio frequency circuit includes seven time periods, T1, T2, T3, T4, T5, T6, and T7, in chronological order. During time period T1, SIM1 is performing data services, and the radio frequency circuit 20 receives and transmits wireless communication signals for data services. During time period T2, the radio frequency circuit 20 reconfigures its hardware resources to enable it to receive and transmit wireless communication signals for voice services. During time period T3, SIM2 is performing voice services, and the radio frequency circuit 20 receives and transmits wireless communication signals for voice services. During time period T4, the radio frequency circuit 20 reconfigures its hardware resources to enable it to receive and transmit wireless communication signals for data services. During time period T5, SIM1 is performing data services, and the radio frequency circuit 20 receives and transmits wireless communication signals for data services. During time period T6, the radio frequency circuit 20 reconfigures its hardware resources to enable it to receive and transmit wireless communication signals for voice services. During the T7 time period, SIM2 performs a call service, and the radio frequency circuit 20 receives and transmits wireless communication signals for the call service.

[0084] For the RF circuit 20 shown in FIG4 , the hardware resource reconfiguration includes but is not limited to the following:

[0085] In the transmitting unit 210, the oscillation frequency of the first oscillator 218, the gain of the first amplifier 216, and various parameters of the up-converter 214 are configured. In the receiving unit 220, the oscillation frequency of the second oscillator 228, the gain of the second amplifier 226, and various parameters of the down-converter 224 are configured. In the RF front-end circuit 230, the gain of the third amplifier 231 and the gain of the fourth amplifier 237 are configured, and the first switch 232, the second switch 235, and the third switch 236 are controlled. In the antenna unit 240, the impedance of the tuning circuit in the antenna unit 240 is configured.

[0086] It can be seen that since both SIM1 and SIM2 need to receive and transmit wireless communication signals through the RF circuit 20 when performing services. Due to factors such as cost, circuit board area and design scheme, SIM1 and SIM2 need to share the RF front-end circuit 230 and the power supply for supplying power to the RF front-end circuit 230 when performing services. Therefore, if SIM2 starts to perform call services while SIM1 is performing data services, it is necessary to reconfigure the transmitting unit 210, the receiving unit 220, the RF front-end circuit 230 and the antenna unit 240. In the related art, the electronic device 10 generally gives priority to call services, which leads to obvious freezes and reduced uplink and downlink rates when SIM1 performs data services.

[0087] To this end, an embodiment of the present application provides a radio frequency circuit and an electronic device using the radio frequency circuit. The radio frequency circuit can effectively improve the lag phenomenon when the electronic device in the related technology performs data services in the DSDA working mode, and improve the uplink and downlink throughput of the electronic device when performing data services.

[0088] The radio frequency circuit provided in the embodiments of the present application is explained in detail below. The radio frequency circuit provided in the embodiments of the present application can be applied to electronic devices, such as the electronic device 10 shown in Figures 1 and 2. In the following description of the embodiments of the present application, the reference numerals of the electronic components no longer follow the reference numerals of the same electronic components in the above-mentioned related art.

[0089] FIG6 is a schematic diagram of the structure of a radio frequency circuit 30 provided in an embodiment of the present application. As shown in FIG6 , the radio frequency circuit 30 includes a first transmitting unit 312, a second transmitting unit 314, a first switch 322, a first receiving unit 316, a first radio frequency front-end circuit 330, a first antenna unit 340, and a control unit 350.

[0090] The first switch 322 may be a single pole double throw (SPDT) switch having a first terminal 1, a second terminal 2, and a third terminal 3, wherein either the first terminal 1 or the second terminal 2 of the first switch 322 can be connected to the third terminal 3 of the first switch 322.

[0091] The first transmitting unit 312 is configured to output a radio frequency signal. The output terminal of the first transmitting unit 312 is connected to the first terminal 1 of the first switch 322, so that when the first transmitting unit 312 is in operation, the radio frequency signal can be output to the first terminal 1 of the first switch 322. The first transmitting unit 312 can be in operation and output the radio frequency signal to the first terminal 1 of the first switch 322 when the SIM card 1 of the electronic device 40 is executing a data service.

[0092] The second transmitting unit 314 is also configured to output radio frequency signals. The output terminal of the second transmitting unit 314 is connected to the second terminal 2 of the first switch 322, so that when the second transmitting unit 314 is in operation, it can output radio frequency signals to the second terminal 2 of the first switch 322. The second transmitting unit 314 can be in operation and output radio frequency signals to the second terminal 2 of the first switch 322 when SIM card 2 of the electronic device 40 is performing a call service.

[0093] The first RF front-end circuit 330 has a first terminal 1, a second terminal 2, and a third terminal 3. Either the first terminal 1 or the second terminal 2 of the first RF front-end circuit 330 can be connected to the third terminal 3 of the first RF front-end circuit 330. The third terminal 3 of the first switch 322 is connected to the first terminal 1 of the first RF front-end circuit 330. The second terminal 2 of the first RF front-end circuit 330 is connected to the input terminal of the first receiving unit 316. The first receiving unit 316 is configured to receive RF signals. The third terminal 3 of the first RF front-end circuit 330 is connected to the first antenna unit 340.

[0094] The control unit 350 has a first output terminal 1. The first output terminal 1 of the control unit 350 is connected to the control terminal 5 of the first switch 322, so that the control unit 350 can control the first switch 322. Here, the control unit 350 is configured to: control the first terminal 1 and the third terminal 3 of the first switch 322 to be connected when the first transmitting unit 312 enters the operating state; and control the second terminal 2 and the third terminal 3 of the first switch 322 to be connected when the second transmitting unit 314 enters the operating state.

[0095] Specifically, the first transmitting unit 312 is in working state when SIM1 of the electronic device 40 executes a data service. That is, when the RF circuit 30 is working, if SIM1 of the electronic device 40 needs to execute a data service, the first transmitting unit 312 enters the working state. At this time, the control unit 350 controls the first end 1 and the third end 3 of the first switch 322 to be connected. At the same time, the first end 1 and the third end 3 of the first RF front-end circuit 330 are connected. In this case, the first transmitting unit 312, the first switch 322, the first RF front-end circuit 330 and the first antenna unit 340 form a RF transmission channel. When the first transmitting unit 312 is in working state, the RF signal output by the first transmitting unit 312 is transmitted to the first antenna unit 340 in sequence through the first end 1 and the third end 3 of the first switch 322, the first end 1 and the third end 3 of the first RF front-end circuit 330, thereby completing the transmission of the wireless communication signal.

[0096] When SIM1 of electronic device 40 is executing a data service, if the second terminal 2 and the third terminal 3 of the first RF front-end circuit 330 are connected, the first antenna unit 340, the first RF front-end circuit 330, and the first receiving unit 316 form a RF receiving channel. In this case, the first antenna unit 340 can receive wireless communication signals, convert them into RF signals, and output them to the third terminal 3 of the first RF front-end circuit 330. The RF signals are then transmitted to the first receiving unit 316 via the third terminal 3 and the second terminal 2 of the first RF front-end circuit 330, thereby completing the reception of the wireless communication signals.

[0097] The second transmitting unit 314 is in operation when SIM2 of the electronic device 40 is performing a call service. That is, when the RF circuit 30 is operating, if SIM2 of the electronic device 40 needs to perform a call service, the second transmitting unit 314 enters the operation state. At this time, the control unit 350 controls the second end 2 and the third end 3 of the first switch 322 to be connected. Simultaneously, the first end 1 and the third end 3 of the first RF front-end circuit 330 are connected. In this case, the second transmitting unit 314, the first switch 322, the first RF front-end circuit 330, and the first antenna unit 340 form an RF transmission channel. When the second transmitting unit 314 is in operation, the RF signal output by the second transmitting unit 314 is transmitted sequentially through the second end 2 and the third end 3 of the first switch 322, and the first end 1 and the third end 3 of the first RF front-end circuit 330 to the first antenna unit 340, thereby completing the transmission of the wireless communication signal.

[0098] When SIM2 of electronic device 40 is performing a call service, if the second terminal 2 and the third terminal 3 of the first RF front-end circuit 330 are connected, the first antenna unit 340, the first RF front-end circuit 330, and the first receiving unit 316 form a RF receiving channel. In this case, the first antenna unit 340 can receive wireless communication signals, convert them into RF signals, and output them to the third terminal 3 of the first RF front-end circuit 330. The RF signals are then transmitted to the first receiving unit 316 via the third terminal 3 and the second terminal 2 of the first RF front-end circuit 330, thereby completing the reception of the wireless communication signals.

[0099] It can be seen that in the RF circuit 30 provided in the embodiment of the present application, the first transmitting unit 312 only serves data services, and the second transmitting unit 314 only serves call services. In this way, if SIM2 of the electronic device 40 starts to perform call services while SIM1 is performing data services, it is only necessary to reconfigure the first receiving unit 316, the first RF front-end circuit 330, and the first antenna unit 340, and control the first switch 322, without reconfiguring the first transmitting unit 312. As can be seen from the above description, controlling the first switch 322 only requires switching the connection between the first end 1 and the third end 3 to the connection between the second end 2 and the third end 3, which is much simpler than reconfiguring the first transmitting unit 312. Therefore, this can effectively shorten the time required for hardware configuration of the electronic device 40 in the DSDA working mode, thereby effectively improving the lag phenomenon when the electronic device 40 performs data services in the DSDA working mode, improving the uplink throughput of the electronic device when performing data services, and improving the user experience.

[0100] It will be appreciated that in this embodiment of the present application, when electronic device 40 is operating, the priority of the call service is higher than that of the data service. That is, if SIM1 is performing a data service and SIM2 needs to perform a call service, electronic device 40 will stop performing the data service and start performing the call service. After the call service is completed, electronic device 40 will resume performing the data service. In other embodiments, data service may also be prioritized over call service.

[0101] In some embodiments, the first switch 322 may be a non-reflective single-pole double-throw switch, also known as an absorptive single-pole double-throw switch. This prevents the port loads at the output of the first transmitting unit 312 and the output of the second transmitting unit 314 from being in a high-impedance state, thereby protecting the internal circuits of the first transmitting unit 312 and the second transmitting unit 314 and improving the reliability of the first transmitting unit 312 and the second transmitting unit 314.

[0102] In other embodiments, as shown in FIG7 , the first switch 322 may also be a double-pole double-throw (DPDT) switch. In this case, the first switch 322 has a first end 1, a second end 2, a third end 3, and a fourth end 4, and either the first end 1 or the second end 2 of the first switch 322 can be connected to either the third end 3 or the fourth end 4 of the first switch 322.

[0103] In this embodiment, the RF circuit 30 further includes an impedance unit 3108. A first end of the impedance unit 3108 is connected to the fourth end 4 of the first switch 322, and a second end of the impedance unit 3108 is connected to ground GND. In some preferred embodiments, the impedance unit 3108 has a preset impedance. The preset impedance is equal to the impedance of the third end 3 of the first switch 322 when the first end 1 and the third end 3 of the first RF front-end circuit 330 are connected. The control unit 350 is configured to: control the connection between the first end 1 and the fourth end 4 of the first switch 322 when the first transmitting unit 312 enters the non-operating state; and control the connection between the second end 2 and the fourth end 4 of the first switch 322 when the second transmitting unit 314 enters the non-operating state. It is understood that in other embodiments, the impedance of the impedance unit 3108 may be greater than or less than the preset impedance. In some possible embodiments, the impedance unit 3108 may be a resistor. In other possible embodiments, the impedance unit 3108 may be a circuit formed by multiple resistors connected in series or in parallel. In some other possible embodiments, the impedance unit 3108 may also be a circuit formed by connecting resistors, inductors and / or capacitors.

[0104] In this embodiment, when the first transmitting unit 312 enters the operating state, the first terminal 1 and the third terminal 3 of the first switch 322 are connected, and the impedance of the output terminal of the first transmitting unit 312 is equal to the preset impedance. When the first transmitting unit 312 enters the non-operating state, the first terminal 1 and the fourth terminal 4 of the first switch 322 are connected, and the impedance of the output terminal of the first transmitting unit 312 is also equal to the preset impedance. In other words, the configuration of the impedance unit 3108 ensures that the impedance of the output terminal of the first transmitting unit 312 remains constant, thereby protecting the first transmitting unit 312 and improving its reliability.

[0105] Similarly, when the second transmitting unit 314 enters the operating state, the second end 2 and the third end 3 of the first switch 322 are connected, and the impedance of the output end of the second transmitting unit 314 is equal to the preset impedance. When the second transmitting unit 314 enters the non-operating state, the second end 2 and the fourth end 4 of the first switch 322 are connected, and the impedance of the output end of the second transmitting unit 314 is also equal to the preset impedance. In other words, the configuration of the impedance unit 3108 can also ensure that the impedance of the output end of the second transmitting unit 314 remains constant, thereby protecting the second transmitting unit 314 and improving the reliability of the second transmitting unit 314.

[0106] The radio frequency circuit 30 provided in the embodiment of the present application is further expanded below based on the possible situation that the radio frequency circuit 30 has multiple receiving units.

[0107] FIG8 is a schematic diagram of the structure of another RF circuit 30 provided in an embodiment of the present application. In the embodiment shown in FIG8 , the impedance unit 3108 is a first resistor R1. As shown in FIG8 , in some embodiments, the RF circuit 30 further includes a second switch 324 and a second receiving unit 318.

[0108] The second switch 324 is a single-pole double-throw switch having a first terminal 1 , a second terminal 2 , and a third terminal 3 , and either the first terminal 1 or the second terminal 2 of the first switch 322 can be connected to the third terminal 3 of the first switch 322 .

[0109] The second receiving unit 318 is also used to receive RF signals. The input end of the first receiving unit 316 is connected to the first end 1 of the second switch 324, the input end of the second receiving unit 318 is connected to the second end 2 of the second switch 324, and the third end 3 of the second switch 324 is connected to the second end 2 of the first RF front-end circuit 330. Thus, when the first end 1 and the third end 3 of the second switch 324 are connected, the first receiving unit 316 is connected to the second end 2 of the first RF front-end circuit 330; when the second end 2 and the third end 3 of the second switch 324 are connected, the second receiving unit 318 is connected to the second end 2 of the first RF front-end circuit 330. The first receiving unit 316 can be in operation when SIM card 1 of the electronic device 40 is performing a data service, and the second receiving unit 318 can be in operation when SIM card 2 of the electronic device 40 is performing a call service.

[0110] The control unit 350 also has a second output terminal 2. The second output terminal 2 of the control unit 350 is connected to the control terminal 5 of the second switch 324, so that the control unit 350 can control the second switch 324. Here, the control unit 350 is configured to: control the first terminal and the third terminal of the second switch 324 to be connected when the first receiving unit 316 enters the operating state; and control the second terminal and the third terminal of the second switch 324 to be connected when the second receiving unit 318 enters the operating state.

[0111] Specifically, the first receiving unit 316 is in operation when SIM1 of the electronic device 40 is executing a data service. That is, when the RF circuit 30 is operating, if SIM1 of the electronic device 40 needs to execute a data service, the first receiving unit 316 enters operation. At this time, the control unit 350 controls the first terminal 1 and the third terminal 3 of the second switch 324 to connect. Simultaneously, the second terminal 2 and the third terminal 3 of the first RF front-end circuit 330 are connected. In this case, the first antenna unit 340, the first RF front-end circuit 330, the second switch 324, and the first receiving unit 316 form a RF receiving channel. At this time, the first antenna unit 340 can receive wireless communication signals, convert them into RF signals, and output them to the third terminal 3 of the first RF front-end circuit 330. This RF signal is transmitted sequentially through the third terminal 3 of the first RF front-end circuit 330, the second terminal 2, the third terminal 3 of the second switch 324, and the first terminal 1 to the first receiving unit 316, thereby completing the reception of the wireless communication signal.

[0112] The second receiving unit 318 is in operation when SIM2 of the electronic device 40 is performing a call service. That is, when the RF circuit 30 is operating, if SIM2 of the electronic device 40 needs to perform a call service, the second receiving unit 318 enters the operation state. At this time, the control unit 350 controls the second terminal 2 and the third terminal 3 of the second switch 324 to connect. Simultaneously, the second terminal 2 and the third terminal 3 of the first RF front-end circuit 330 are connected. In this case, the first antenna unit 340, the first RF front-end circuit 330, the second switch 324, and the second receiving unit 318 form a RF receiving channel. At this time, the first antenna unit 340 can receive wireless communication signals, convert them into RF signals, and output them to the third terminal 3 of the first RF front-end circuit 330. This RF signal is sequentially transmitted through the third terminal 3, the second terminal 2, the third terminal 3, and the second terminal 2 of the first RF front-end circuit 330 to the second receiving unit 318, thereby completing the reception of the wireless communication signal.

[0113] It can be seen that in the RF circuit 30 provided in the embodiment of the present application, the first transmitting unit 312 and the first receiving unit 316 only serve data services, and the second transmitting unit 314 and the second receiving unit 318 only serve call services. In this way, if SIM1 of the electronic device 40 starts to perform call services while SIM2 starts to perform call services, it is only necessary to reconfigure the first RF front-end circuit 330 and the first antenna unit 340 and control the first switch 322 and the second switch 324, without reconfiguring the first transmitting unit 312 and the first receiving unit 316. As can be seen from the above description, controlling the first switch 322 only requires switching the connection between the first terminal 1 and the third terminal 3 to the connection between the second terminal 2 and the third terminal 3, and the same is true for controlling the second switch 324. This is much simpler than reconfiguring the first transmitting unit 312 and the first receiving unit 316. Therefore, this can effectively shorten the time required for hardware configuration of the electronic device 40 in the DSDA working mode, thereby effectively improving the lag phenomenon when the electronic device 40 performs data services in the DSDA working mode, improving the downlink throughput of the electronic device when performing data services, and improving the user experience.

[0114] It is understood that in the embodiment shown in FIG8 , only the case where the RF circuit 30 includes two receiving units (a first receiving unit 316 and a second receiving unit 318) is shown. In other embodiments, the RF circuit 30 may further include more receiving units, for example, the RF circuit 30 may include four receiving units.

[0115] The radio frequency circuit 30 provided in the embodiment of the present application is further explained below from the working process of the control unit 350.

[0116] Figure 9 is a circuit diagram of a radio frequency circuit 30 provided in an embodiment of the present application. As shown in Figure 9 , the first transmitting unit 312 and the second transmitting unit 314 each include a filter, an upconverter, an amplifier, and an oscillator, among other components; the first receiving unit 316 and the second receiving unit 318 each include a filter, a downconverter, an amplifier, and an oscillator, among other components, which are not further described. In the embodiment shown in Figure 9 , the connecting wire between the first output terminal 1 of the control unit 350 and the control terminal 5 of the first switch 322 is not shown.

[0117] The first RF front-end circuit 330 includes a first amplifier 331, a seventh switch 332, a first duplexer 333, a second duplexer 334, an eighth switch 335, a ninth switch 336, and a second amplifier 337. In this embodiment, in the first case, the first end 1 and the third end 3 of the first RF front-end circuit 330 are connected, which means that the first end 1 and the second end 2 of the seventh switch 332 are connected, and the second end 2 and the first end 1 of the eighth switch 335 are connected. The second end 2 and the third end 3 of the first RF front-end circuit 330 are connected, which means that the first end 1 and the second end 2 of the eighth switch 335 are connected, and the third end 3 and the first end 1 of the ninth switch 336 are connected. In the second case, the first end 1 and the third end 3 of the first RF front-end circuit 330 are connected, which means that the first end 1 and the third end 3 of the seventh switch 332 are connected, and the third end 3 and the first end 1 of the eighth switch 335 are connected. The second end 2 and the third end 3 of the first RF front-end circuit 330 are connected, which means that the first end 1 and the third end 3 of the eighth switch 335 are connected, and the second end 2 and the first end 1 of the ninth switch 336 are connected. It is understood that in other embodiments, the first RF front-end circuit 330 may include fewer or more duplexers. For example, the first RF front-end circuit 330 may include only the first duplexer 333, or the first RF front-end circuit 330 may include three or four duplexers.

[0118] The RF circuit 30 may include a transceiver 31. Generally, a transmitting unit (including a first transmitting unit 312 and a second transmitting unit 314) and a receiving unit (including a first receiving unit 316 and a second receiving unit 318) are integrated into the transceiver 31. In this embodiment, as shown in FIG9 , the transceiver 31 also includes a processing unit 319. The processing unit 319 has an output terminal 1. The output terminal 1 of the processing unit 319 is connected to the input terminal 1a of the control unit 350, so that the processing unit 319 can transmit control instructions to the control unit 350.

[0119] Specifically, the processing unit 319 can determine whether the first transmitting unit 312, the second transmitting unit 314, the first receiving unit 316, and the second receiving unit 318 have entered the working state. For example, in some possible embodiments, the processing unit 319 can be connected to the first transmitting unit 312, the second transmitting unit 314, the first receiving unit 316, and the second receiving unit 318 to detect whether the first transmitting unit 312, the second transmitting unit 314, the first receiving unit 316, and the second receiving unit 318 have entered the working state. In other possible embodiments, generally, the input end of the first transmitting unit 312, the input end of the second transmitting unit 314, the output end of the first receiving unit 316, and the output end of the second receiving unit 318 all need to be connected to a system on chip (SOC) in the electronic device 40, so that the SOC can output radio frequency signals to the first transmitting unit 312 and the second transmitting unit 314, and can also receive radio frequency signals output by the first receiving unit 316 and the second receiving unit 318. Therefore, the processing unit 319 may also communicate with the SOC in the electronic device 40 to obtain whether the first transmitting unit 312 , the second transmitting unit 314 , the first receiving unit 316 , and the second receiving unit 318 have entered the working state.

[0120] Here, the processing unit 319 is configured to: transmit a first control instruction to the control unit 350 when the first transmitting unit 312 enters the working state; transmit a second control instruction to the control unit 350 when the second transmitting unit 314 enters the working state; transmit a third control instruction to the control unit 350 when the first receiving unit 316 enters the working state; and transmit a fourth control instruction to the control unit 350 when the second receiving unit 318 enters the working state.

[0121] Thus, the control unit 350's operation of "controlling the first terminal 1 and the third terminal 3 of the first switch 322 to be connected when the first transmitting unit 312 enters the working state" may specifically include: upon receiving the first control instruction, controlling the first terminal 1 and the third terminal 3 of the first switch 322 to be connected. The control unit 350's operation of "controlling the second terminal 2 and the third terminal 3 of the first switch 322 to be connected when the second transmitting unit 314 enters the working state" may specifically include: upon receiving the second control instruction, controlling the second terminal 2 and the third terminal 3 of the first switch 322 to be connected. The control unit 350's operation of "controlling the first terminal and the third terminal of the second switch 324 to be connected when the first receiving unit 316 enters the working state" may specifically include: upon receiving the third control instruction, controlling the first terminal and the third terminal of the second switch 324 to be connected. The control unit 350's operation of "controlling the second terminal and the third terminal of the second switch 324 to be connected when the second receiving unit 318 enters the working state" may specifically include: upon receiving the fourth control instruction, controlling the second terminal and the third terminal of the second switch 324 to be connected.

[0122] Since the first transmitting unit 312 and the first receiving unit 316 are both in operation when SIM1 of the electronic device 40 is executing a data service, the first control instruction and the third control instruction may be the same control instruction. Similarly, since the second transmitting unit 314 and the second receiving unit 318 are both in operation when SIM2 of the electronic device 40 is executing a call service, the second control instruction and the fourth control instruction may be the same control instruction.

[0123] In this embodiment, the control unit 350 further has a third output terminal 3. The third output terminal 3 of the control unit 350 is connected to the first RF front-end circuit 330, so that the control unit 350 can configure hardware resources for the first RF front-end circuit 330. Based on this, the control unit 350 is further configured to: upon receiving the first control instruction or the second control instruction, control the first terminal and the third terminal of the first RF front-end circuit 330 to be connected; upon receiving the third control instruction or the fourth control instruction, control the second terminal and the third terminal of the first RF front-end circuit 330 to be connected.

[0124] Specifically, since the first RF front-end circuit 330 includes a first duplexer 333 and a second duplexer, when the output terminal 1 of the processing unit 319 transmits a control instruction (including a first control instruction, a second control instruction, a third control instruction, and a fourth control instruction) to the input terminal 1a of the control unit 350, the control instruction may also include or imply the frequency of the RF signal that the first RF front-end circuit 330 needs to transmit. The frequency of the RF signal that the first RF front-end circuit 330 needs to transmit is the frequency of the RF signal output by the transmitting unit in a working state, or the frequency of the RF signal received by the receiving unit in a working state. In this way, after receiving the control instruction, the control unit 350 can configure the hardware resources of the first RF front-end circuit 330.

[0125] The following takes the first control instruction as an example to illustrate an embodiment of “the control unit 350 performs hardware resource configuration on the first RF front-end circuit 330 after receiving the control instruction”.

[0126] When the first transmitting unit 312 in the processing unit 319 enters an operating state, and the frequency of the radio frequency signal output by the first transmitting unit 312 while in the operating state is within the operating frequency range of the first duplexer 333, the processing unit 319 may transmit the first sub-instruction in the first control instruction to the control unit 350. After receiving the first sub-instruction, the control unit 350 controls the first terminal 1 of the first switch 322 to be connected to the third terminal 3, controls the first terminal 1 and the second terminal 2 of the seventh switch 332 to be connected to each other, and controls the second terminal 2 of the eighth switch 335 to be connected to the first terminal 1. In addition, after receiving the first sub-instruction, the control unit 350 may also adjust the gain of the first amplifier 331, etc., according to the first sub-instruction.

[0127] When the first transmitting unit 312 in the processing unit 319 enters an operating state, and the frequency of the radio frequency signal output by the first transmitting unit 312 while in the operating state is within the operating frequency range of the second duplexer 334, the processing unit 319 may transmit the second sub-instruction in the first control instruction to the control unit 350. After receiving the second sub-instruction, the control unit 350 controls the first terminal 1 and the third terminal 3 of the first switch 322 to be connected, controls the first terminal 1 and the third terminal 3 of the seventh switch 332 to be connected, and controls the third terminal 3 and the first terminal 1 of the eighth switch 335 to be connected. In addition, after receiving the second sub-instruction, the control unit 350 may also adjust the gain of the first amplifier 331, etc. according to the second sub-instruction.

[0128] Similarly, the second control instruction, the third control instruction, and the fourth control instruction may also include multiple sub-instructions, so that after receiving the control instruction, the control unit 350 performs hardware resource configuration on the first RF front-end circuit 330. The control unit 350 performs hardware resource configuration on the first RF front-end circuit 330, including adjusting the gain multiples of the first amplifier 331 and the second amplifier 337, and controlling the seventh switch 332, the eighth switch 335, and the ninth switch 336, which will not be repeated here.

[0129] 9 , the control unit 350 further includes a fourth output terminal 4. The fourth output terminal 4 of the control unit 350 is connected to the first antenna unit 340, so that the control unit 350 can configure hardware resources for the first antenna unit 340 after receiving a control instruction.

[0130] Specifically, FIG10 is a schematic diagram of the structure of a first antenna unit 340 provided in an embodiment of the present application. As shown in FIG10 , the first antenna unit 340 includes a tuning circuit 344 and an antenna radiator 342 .

[0131] A first end of the tuning circuit 344 is connected to a third end of the first RF front-end circuit 330, and a second end of the tuning circuit 344 is connected to the antenna radiator 342. A fourth output end of the control unit 350 is connected to the tuning circuit 344. Here, the control unit 350 configures the hardware resources of the first antenna unit 340 by configuring the impedance of the tuning circuit 344.

[0132] Specifically, the tuning circuit 344 may include multiple parallel branches. Each branch includes a switch device and an impedance device connected in series. For example, in the embodiment shown in FIG10 , the tuning circuit 344 includes four parallel branches, one of which is formed by a switch K1 and a first impedance device connected in series, and another of which is formed by a switch K2 and a second impedance device connected in series. The impedance of each impedance device (including the first impedance device, the second impedance device, the third impedance device, and the fourth impedance device) can be the same or different. Thus, the control unit 350 can control the impedance of the tuning circuit 344 by controlling switches K1, K2, K3, and K4. It will be appreciated that the embodiment shown in FIG10 only illustrates the connection of the antenna radiator 342 to the first RF front-end circuit 330 via one tuning circuit 344. In other embodiments, the antenna radiator 342 may also be connected to the first RF front-end circuit 330 via two tuning circuits 344. Each impedance device includes at least one of a capacitor and an inductor. In the embodiment shown in FIG. 10 , the switches K1 , K2 , K3 and K4 may also be replaced by a single-pole multi-throw switch.

[0133] In this embodiment, the control unit 350 is configured to: when the first transmitting unit 312 enters the working state, adjust the impedance of the tuning circuit 344 according to the first frequency range; when the second transmitting unit 314 enters the working state, adjust the impedance of the tuning circuit 344 according to the second frequency range.

[0134] The first frequency range is the frequency range of the radio frequency signal output by the first transmitting unit 312 when it is in operation. As previously described, the processing unit 319 can transmit a first control instruction to the control unit 350 when the first transmitting unit 312 enters the operation state. The first control instruction can include or implicitly include the first frequency range. Thus, upon receiving the first control instruction, the control unit 350 can adjust the impedance of the tuning circuit 344 based on the first frequency range.

[0135] The second frequency range is the frequency range of the radio frequency signal output by the second transmitting unit 314 when it is in an operating state. Similarly, the processing unit 319 can transmit a second control instruction to the control unit 350 when the second transmitting unit 314 enters an operating state. The second control instruction can include or implicitly include the second frequency range. In this way, after receiving the second control instruction, the control unit 350 can adjust the impedance of the tuning circuit 344 according to the second frequency range. In the embodiment of the present application, the first frequency range and the second frequency range can be the same or different, and are not limited here.

[0136] It is understandable that in some other embodiments, when the electronic device 40 is working, the frequency of the RF signal that the first RF front-end circuit 330 needs to transmit may also be transmitted to the control unit 350 by other devices (such as a system-level chip) in the electronic device 40.

[0137] In some embodiments, the components other than the control unit 350 in the RF circuit 30 shown in FIG8 or FIG9 can be referred to as a RF module. Taking FIG8 as an example, the first transmitting unit 312, the second transmitting unit 314, the first switch 322, the first RF front-end circuit 330, the first antenna unit 340, the second switch 324, the first receiving unit 316, and the second receiving unit 318 together constitute a RF module. The RF circuit 30 may include one or more such RF modules.

[0138] When the RF circuit 30 includes multiple RF modules, the multiple RF modules can work simultaneously. For example, when the electronic device 40 works in a dual-transmission mode such as ENDC (E-UTRAN new radio dual connectivity), at least two RF modules in the RF circuit 30 work simultaneously. Among them, the frequency range of the RF signal transmitted by each RF module when working can be the same or different. For example, in the electronic device 40, the frequency range of the RF signal transmitted by the RF module can be divided into low frequency (lowband, LB), middle frequency (middleband, MB), high frequency (high band, HB), and ultrahigh frequency (ultrahighband, UHB). Among them, the frequency range of low frequency is 700MHz (megahertz) to 1000MHz, the frequency range of middle frequency is 1700MHz to 2200MHz, the frequency range of high frequency is 2300MHz to 2700MHz, and the frequency range of ultrahigh frequency is greater than 2700MHz.

[0139] When the two RF modules in the RF circuit 30 are operating simultaneously, one RF module can be used to transmit a low-frequency RF signal, and the other RF module can also be used to transmit a low-frequency RF signal, or the other RF module can also be used to transmit an intermediate-frequency RF signal. In the embodiment of the present application, the first frequency range and the second frequency range can be any one of low frequency, intermediate frequency, high frequency, and ultra-high frequency.

[0140] The radio frequency circuit 30 provided in the embodiment of the present application is further explained below by taking the radio frequency circuit 30 including two radio frequency modules as an example.

[0141] FIG11 is a schematic diagram of the structure of another RF circuit 30 provided in an embodiment of the present application. As shown in FIG11 , in some embodiments, the RF circuit 30 further includes: a third transmitting unit 362, a fourth transmitting unit 364, a third switch 326, a third receiving unit 366, a second RF front-end circuit 370, and a second antenna unit 380.

[0142] The structure of the third switch 326 is the same as that of the first switch 322. The third switch 326 has a first end 1, a second end 2, and a third end 3. Either the first end 1 or the second end 2 of the third switch 326 can be connected to the third end 3 of the third switch 326. In some embodiments, the third switch 326 further has a fourth end 4. The fourth end 4 of the third switch 326 is connected to the ground line GND via a second resistor R2, which will not be further described.

[0143] The third transmitting unit 362 and the fourth transmitting unit 364 are both configured to output RF signals. The output of the third transmitting unit 362 is connected to the first terminal 1 of the third switch 326, and the output of the fourth transmitting unit 364 is connected to the second terminal 2 of the third switch 326. The third terminal 3 of the third switch 326 is connected to the first terminal 1 of the second RF front-end circuit 370. The input of the third receiving unit 366 is connected to the second terminal 2 of the second RF front-end circuit 370. The third terminal 3 of the second RF front-end circuit 370 is connected to the second antenna unit 380. Either the first terminal 1 or the second terminal 2 of the second RF front-end circuit 370 can be connected to the third terminal 3 of the second RF front-end circuit 370.

[0144] The fifth output terminal 5 of the control unit 350 is connected to the control terminal 5 of the third switch 326. The control unit 350 is configured to: when the third transmitting unit 362 enters the operating state, control the first terminal 1 and the third terminal 3 of the third switch 326 to be connected; when the fourth transmitting unit 364 enters the operating state, control the second terminal 2 and the third terminal 3 of the third switch 326 to be connected. The third transmitting unit 362 is in the operating state when SIM1 of the electronic device 40 is performing a data service; the fourth transmitting unit 364 is in the operating state when SIM2 of the electronic device 40 is performing a call service.

[0145] Thus, in the RF circuit 30, the first transmitting unit 312, the second transmitting unit 314, the first switch 322, the first receiving unit 316, the first RF front-end circuit 330, and the first antenna unit 340 form a RF module (hereinafter referred to as the first RF module 30A). The third transmitting unit 362, the fourth transmitting unit 364, the third switch 326, the third receiving unit 366, the second RF front-end circuit 370, and the second antenna unit 380 form another RF module (hereinafter referred to as the second RF module 30B).

[0146] It is understandable that the difference between the first RF module 30A and the second RF module 30B is that the frequency ranges of the transmitted RF signals may be different. The control logic of the control unit 350 for the first RF module 30A is exactly the same as that for the second RF module 30B, which will not be repeated here.

[0147] Still as shown in FIG11 , based on the first RF module 30A and the second RF module 30B, the RF circuit 30 may further include a first power supply 392 and a second power supply 394. The voltage output terminal 1 of the first power supply 392 is connected to the first RF front-end circuit 330 for outputting a voltage to the first RF front-end circuit 330. The voltage output terminal 1 of the second power supply 394 is connected to the second RF front-end circuit 370 for outputting a voltage to the second RF front-end circuit 370.

[0148] Specifically, Figure 12 is a circuit structure diagram of another RF circuit 30 provided in an embodiment of the present application, which shows the connection relationship between the first power supply 392 and the first RF front-end circuit 330. As shown in Figure 12, the first RF front-end circuit 330 includes a first amplifier 331, which is a power amplifier on the RF transmission channel. The first power supply 392 is used to output a voltage to the first amplifier 331. Similarly, the second power supply 394 is used to output a voltage to the power amplifier located on the RF transmission channel in the second RF front-end circuit 370. In the embodiment shown in Figure 12, the connecting wire between the first output terminal 1 of the control unit 350 and the control terminal 5 of the first switch 322 is not shown.

[0149] In the embodiment of the present application, the first power supply 392 and the second power supply 394 can operate in both an average power tracking (APT) mode and an envelope tracking (ET) mode, which will be described below respectively.

[0150] 1. The first power supply 392 and the second power supply 394 operate in average power mode.

[0151] Taking the voltage output by the first power supply 392 to the first amplifier 331 as an example, the first power supply 392 operating in average power mode means that the output power of the first amplifier 331 is calculated and the voltage output by the first power supply 392 to the first amplifier 331 is adjusted according to the output power of the first amplifier 331. In this mode, the voltage output by the first power supply 392 to the first amplifier 331 is a linear voltage, and the precision requirement for the output voltage of the first power supply 392 is relatively low.

[0152] In this embodiment, as shown in FIG11 , the control unit 350 further includes a sixth output terminal 6. The sixth output terminal 6 of the control unit 350 is connected to the control terminal 2 of the first power supply 392 and is used to control the output voltage of the voltage output terminal 1 of the first power supply 392. Here, the control unit 350 is configured to control the first power supply 392 to operate in average power mode and output a voltage to the first RF front-end circuit 330.

[0153] Similarly, the control unit 350 also has a seventh output terminal 7. The seventh output terminal 7 of the control unit 350 is connected to the control terminal 2 of the second power supply 394 and is used to control the output voltage of the voltage output terminal 1 of the second power supply 394. Here, the control unit 350 is configured to control the second power supply 394 to operate in average power mode and output voltage to the second RF front-end circuit 370.

[0154] Second, the first power supply 392 and the second power supply 394 operate in envelope tracking mode.

[0155] Taking the voltage output by the first power supply 392 to the first amplifier 331 as an example, operating the first power supply 392 in envelope tracking mode means that the first amplifier 331 is always operated in a saturated state, and the output power of the first amplifier 331 is controlled by adjusting the voltage output by the first power supply 392 to the first amplifier 331. In this mode, the voltage output by the first power supply 392 to the first amplifier 331 is a nonlinear voltage, and the precision of the output voltage of the first power supply 392 is required to be high.

[0156] In this embodiment, the RF circuit 30 also includes an envelope generating circuit and a differential generating circuit. Figure 13 is a circuit diagram of the connection between an envelope generating circuit, a differential generating circuit, and a power supply, provided in an embodiment of the present application. The envelope generating circuit includes a first envelope generating circuit 3102 and a second envelope generating circuit 3103, the differential generating circuit includes a first differential generating circuit 3106 and a second differential generating circuit 3107, and the power supply includes a first power supply 392 and a second power supply 394. As shown in Figure 13, the RF circuit 30 also includes a fourth switch 3101, a fifth switch 3104, and a sixth switch 3105.

[0157] The fourth switch 3101 is a double-pole, double-throw (DPDT) switch. The fourth switch 3101 has a first terminal 1, a second terminal 2, a third terminal 3, and a fourth terminal 4. Any of the first terminal 1 and the second terminal 2 of the fourth switch 3101 can be connected to any of the third terminal 3 and the fourth terminal 4 of the fourth switch 3101. The structures of the fifth switch 3104 and the sixth switch 3105 are identical to those of the fourth switch 3101. That is, any of the first terminal 1 and the second terminal 2 of the fifth switch 3104 can be connected to any of the third terminal 3 and the fourth terminal 4 of the fifth switch 3104. Any of the first terminal 1 and the second terminal 2 of the sixth switch 3105 can be connected to any of the third terminal 3 and the fourth terminal 4 of the sixth switch 3105.

[0158] The input terminal of the first transmitting unit 312 and the input terminal of the third transmitting unit 362 are connected to the first terminal of the first envelope generating circuit 3102. The second terminal of the first envelope generating circuit 3102 is connected to the first terminal 1 of the fourth switch 3101. The input terminal of the second transmitting unit 314 and the input terminal of the fourth transmitting unit 364 are connected to the first terminal of the second envelope generating circuit 3103. The second terminal of the second envelope generating circuit 3103 is connected to the second terminal 2 of the fourth switch 3101. The third terminal 3 of the fourth switch 3101 is connected to the input terminal of the first differential generating circuit 3106. The fourth terminal 4 of the fourth switch 3101 is connected to the input terminal of the second differential generating circuit 3107.

[0159] A first output terminal 1 of the first differential generating circuit 3106 is connected to a first terminal 1 of the fifth switch 3104. A second output terminal 2 of the first differential generating circuit 3106 is connected to a first terminal 1 of the sixth switch 3105. A first output terminal 1 of the second differential generating circuit 3107 is connected to a second terminal 2 of the fifth switch 3104. A second output terminal 2 of the second differential generating circuit 3107 is connected to a second terminal 2 of the sixth switch 3105. A third terminal 3 of the fifth switch 3104 is connected to a first input terminal 3 of the first power supply 392. A fourth terminal 4 of the fifth switch 3104 is connected to a first input terminal 3 of the second power supply 394. A third terminal 3 of the sixth switch 3105 is connected to a second input terminal 4 of the first power supply 392. A fourth terminal 4 of the sixth switch 3105 is connected to a second input terminal 4 of the second power supply 394.

[0160] The first envelope generating circuit 3102, the second envelope generating circuit 3103, the fourth switch 3101, the first differential generating circuit 3106, and the second differential generating circuit 3107 can be integrated into the transceiver 31. In this case, the fourth switch 3101 is controlled by the transceiver 31. The control unit 350 also has an eighth output terminal 8 and a ninth output terminal 9. The eighth output terminal 8 of the control unit 350 is connected to the control terminal 5 of the fifth switch 3104 for controlling the fifth switch 3104. The ninth output terminal 9 of the control unit 350 is connected to the control terminal 5 of the sixth switch 3105 for controlling the sixth switch 3105. In the embodiment shown in FIG13 , the connecting wire between the eighth output terminal 8 of the control unit 350 and the control terminal 5 of the fifth switch 3104 is not shown.

[0161] Here, the control unit 350 is configured to: control the fifth switch 3104 and the sixth switch 3105 so that when the first transmitting unit 312 or the second transmitting unit 314 enters the working state, the first power supply 392 operates in the envelope tracking mode and outputs a voltage to the first RF front-end circuit 330; and when the third transmitting unit 362 or the fourth transmitting unit 364 enters the working state, the second power supply 394 operates in the envelope tracking mode and outputs a voltage to the second RF front-end circuit 370.

[0162] The following describes in detail the process of the control unit 350 controlling the fifth switch 3104 and the sixth switch 3105 from eight different situations.

[0163] (1) When the first transmitting unit 312 enters the working state, if the first end 1 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the third end 3 of the fifth switch 3104 to be connected, and the first end 1 and the third end 3 of the sixth switch 3105 to be connected.

[0164] (2) When the first transmitting unit 312 enters the working state, if the first end 1 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the third end 3 of the fifth switch 3104 to be connected, and the second end 2 and the third end 3 of the sixth switch 3105 to be connected.

[0165] Because the input of the first transmitting unit 312 is connected to the first terminal 1 of the fourth switch 3101 via the first envelope generating circuit 3102, that is, the input of the first transmitting unit 312 and the first terminal of the first envelope generating circuit 3102 simultaneously input the same RF signal, when the first transmitting unit 312 enters the operating state, either the third terminal 3 or the fourth terminal 4 of the fourth switch 3101 requires connection to the first terminal 1 of the fourth switch 3101.

[0166] As indicated in the foregoing description, when the first transmitting unit 312 enters the operating state, the processing unit 319 in the transceiver 31 transmits a first control instruction to the control unit 350. The first control instruction may also include or implicitly indicate the state of the fourth switch 3101. The states of the fourth switch 3101 include "the first terminal 1 and the third terminal 3 of the fourth switch 3101 are connected" or "the first terminal 1 and the fourth terminal 4 of the fourth switch 3101 are connected." Furthermore, as indicated in the foregoing description, when the first transmitting unit 312 is in the operating state, it outputs an RF signal to the first RF front-end circuit 330. Therefore, when the first transmitting unit 312 is in the operating state, the first power supply 392 is required to output a voltage to the first RF front-end circuit 330.

[0167] Based on this, when the first transmitting unit 312 enters the operating state and the first end 1 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the third end 3 of the fifth switch 3104 to be connected, and the first end 1 and the third end 3 of the sixth switch 3105 to be connected. At this point, the first envelope generating circuit 3102 is connected to the input end of the first differential generating circuit 3106 via the first end 1 and the third end 3 of the fourth switch 3101; the first output end 1 of the first differential generating circuit 3106 is connected to the first input end 3 of the first power supply 392 via the first end 1 and the third end 3 of the fifth switch 3104; and the second output end 2 of the first differential generating circuit 3106 is connected to the second input end 4 of the first power supply 392 via the first end 1 and the third end 3 of the sixth switch 3105. In this way, the first envelope generating circuit 3102 can generate a first envelope tracking signal based on the RF signal input by the first transmitting unit 312. The first differential generating circuit 3106 can generate a first differential positive phase signal and a first differential negative phase signal based on the first envelope tracking signal. The first power supply 392 may operate in an envelope tracking mode according to the first differential positive phase signal and the first differential negative phase signal.

[0168] When the first transmitting unit 312 enters the operating state and the first terminal 1 and the fourth terminal 4 of the fourth switch 3101 are connected, the control unit 350 controls the second terminal 2 and the third terminal 3 of the fifth switch 3104 to be connected, and the second terminal 2 and the third terminal 3 of the sixth switch 3105 to be connected. At this point, the first envelope generating circuit 3102 is connected to the input terminal of the second differential generating circuit 3107 via the first terminal 1 and the fourth terminal 4 of the fourth switch 3101; the first output terminal 1 of the second differential generating circuit 3107 is connected to the first input terminal 3 of the first power supply 392 via the second terminal 2 and the third terminal 3 of the fifth switch 3104; and the second output terminal 2 of the second differential generating circuit 3107 is connected to the second input terminal 4 of the first power supply 392 via the second terminal 2 and the third terminal 3 of the sixth switch 3105. In this way, the first envelope generating circuit 3102 can generate a first envelope tracking signal based on the RF signal input by the first transmitting unit 312. The second differential generating circuit 3107 can generate a second differential positive phase signal and a second differential negative phase signal based on the first envelope tracking signal. The first power supply 392 may operate in an envelope tracking mode according to the second differential positive phase signal and the second differential negative phase signal.

[0169] (3) When the second transmitting unit 314 enters the working state, if the second end 2 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the third end 3 of the fifth switch 3104 to be connected, and the first end 1 and the third end 3 of the sixth switch 3105 to be connected.

[0170] (4) When the second transmitting unit 314 enters the working state, if the second end 2 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the third end 3 of the fifth switch 3104 to be connected, and the second end 2 and the third end 3 of the sixth switch 3105 to be connected.

[0171] When the second transmitting unit 314 enters the operating state, either the third end 3 or the fourth end 4 of the fourth switch 3101 requires connection to the second end 2 of the fourth switch 3101. Similarly, the second control instruction may include or implicitly indicate the state of the fourth switch 3101. The states of the fourth switch 3101 include "the second end 2 and the third end 3 of the fourth switch 3101 are connected" or "the second end 2 and the fourth end 4 of the fourth switch 3101 are connected." When the second transmitting unit 314 is in the operating state, the first power supply 392 is required to output a voltage to the first RF front-end circuit 330.

[0172] Based on this, when the second transmitting unit 314 enters the operating state and the second end 2 and third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and third end 3 of the fifth switch 3104 to be connected, and the first end 1 and third end 3 of the sixth switch 3105 to be connected. At this point, the second envelope generating circuit 3103 is connected to the input of the first differential generating circuit 3106 via the second end 2 and third end 3 of the fourth switch 3101; the first output end 1 of the first differential generating circuit 3106 is connected to the first input end 3 of the first power supply 392 via the first end 1 and third end 3 of the fifth switch 3104; and the second output end 2 of the first differential generating circuit 3106 is connected to the second input end 4 of the first power supply 392 via the first end 1 and third end 3 of the sixth switch 3105. In this way, the second envelope generating circuit 3103 can generate a second envelope tracking signal based on the RF signal input by the second transmitting unit 314. The first differential generating circuit 3106 can generate a third differential positive phase signal and a third differential negative phase signal based on the second envelope tracking signal. The first power supply 392 may operate in an envelope tracking mode according to the third differential positive phase signal and the third differential negative phase signal.

[0173] When the second transmitting unit 314 enters the operating state and the second end 2 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the third end 3 of the fifth switch 3104 to be connected, and the second end 2 and the third end 3 of the sixth switch 3105 to be connected. At this point, the second envelope generating circuit 3103 is connected to the input end of the second differential generating circuit 3107 via the second end 2 and the fourth end 4 of the fourth switch 3101; the first output end 1 of the second differential generating circuit 3107 is connected to the first input end 3 of the first power supply 392 via the second end 2 and the third end 3 of the fifth switch 3104; and the second output end 2 of the second differential generating circuit 3107 is connected to the second input end 4 of the first power supply 392 via the second end 2 and the third end 3 of the sixth switch 3105. In this way, the second envelope generating circuit 3103 can generate a second envelope tracking signal based on the RF signal input by the second transmitting unit 314. The second differential generating circuit 3107 generates a fourth differential positive phase signal and a fourth differential negative phase signal based on the second envelope tracking signal. The first power supply 392 may operate in an envelope tracking mode according to the fourth differential positive phase signal and the fourth differential negative phase signal.

[0174] (5) When the third transmitting unit 362 enters the working state, if the first end 1 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the fourth end 4 of the fifth switch 3104 to be connected, and the first end 1 and the fourth end 4 of the sixth switch 3105 to be connected.

[0175] (6) When the third transmitting unit 362 enters the working state, if the first end 1 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the fourth end 4 of the fifth switch 3104 to be connected, and the second end 2 and the fourth end 4 of the sixth switch 3105 to be connected.

[0176] When the third transmitting unit 362 enters the working state, any one of the third end 3 and the fourth end 4 of the fourth switch 3101 requires the first end 1 of the fourth switch 3101 to be turned on, and the second power supply 394 is required to output voltage to the second RF front-end circuit 370.

[0177] Based on this, when the third transmitting unit 362 enters the operating state and the first end 1 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the fourth end 4 of the fifth switch 3104 to be connected, and the first end 1 and the fourth end 4 of the sixth switch 3105 to be connected. At this time, the first envelope generating circuit 3102 is connected to the input end of the first differential generating circuit 3106 via the first end 1 and the third end 3 of the fourth switch 3101; the first output end 1 of the first differential generating circuit 3106 is connected to the first input end 3 of the second power supply 394 via the first end 1 and the fourth end 4 of the fifth switch 3104; and the second output end 2 of the first differential generating circuit 3106 is connected to the second input end 4 of the second power supply 394 via the first end 1 and the fourth end 4 of the sixth switch 3105. In this way, the first envelope generating circuit 3102 can generate a third envelope tracking signal based on the RF signal input by the third transmitting unit 362. The first differential generating circuit 3106 can generate a fifth differential positive phase signal and a fifth differential negative phase signal based on the third envelope tracking signal. The second power supply 394 may operate in an envelope tracking mode according to the fifth differential positive phase signal and the fifth differential negative phase signal.

[0178] When the third transmitting unit 362 enters the operating state and the first terminal 1 and the fourth terminal 4 of the fourth switch 3101 are connected, the control unit 350 controls the second terminal 2 and the fourth terminal 4 of the fifth switch 3104 to be connected, and the second terminal 2 and the fourth terminal 4 of the sixth switch 3105 to be connected. At this point, the first envelope generating circuit 3102 is connected to the input terminal of the second differential generating circuit 3107 via the first terminal 1 and the fourth terminal 4 of the fourth switch 3101; the first output terminal 1 of the second differential generating circuit 3107 is connected to the first input terminal 3 of the second power supply 394 via the second terminal 2 and the fourth terminal 4 of the fifth switch 3104; and the second output terminal 2 of the second differential generating circuit 3107 is connected to the second input terminal 4 of the second power supply 394 via the second terminal 2 and the fourth terminal 4 of the sixth switch 3105. In this way, the first envelope generating circuit 3102 can generate a third envelope tracking signal based on the RF signal input by the third transmitting unit 362. The second differential generating circuit 3107 can generate a sixth differential positive phase signal and a sixth differential negative phase signal based on the third envelope tracking signal. The second power supply 394 may operate in an envelope tracking mode according to the sixth differential positive phase signal and the sixth differential negative phase signal.

[0179] (7) When the fourth transmitting unit 364 enters the working state, if the second end 2 and the third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and the fourth end 4 of the fifth switch 3104 to be connected, and the first end 1 and the fourth end 4 of the sixth switch 3105 to be connected.

[0180] (8) When the fourth transmitting unit 364 enters the working state, if the second end 2 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the fourth end 4 of the fifth switch 3104 to be connected, and the second end 2 and the fourth end 4 of the sixth switch 3105 to be connected.

[0181] When the fourth transmitting unit 364 enters the working state, any one of the third end 3 and the fourth end 4 of the fourth switch 3101 requires the second end 2 of the fourth switch 3101 to be turned on, and the second power supply 394 is required to output voltage to the second RF front-end circuit 370.

[0182] Based on this, when the fourth transmitting unit 364 enters the operating state and the second end 2 and third end 3 of the fourth switch 3101 are connected, the control unit 350 controls the first end 1 and fourth end 4 of the fifth switch 3104 to be connected, and the first end 1 and fourth end 4 of the sixth switch 3105 to be connected. At this time, the second envelope generating circuit 3103 is connected to the input end of the first differential generating circuit 3106 via the second end 2 and third end 3 of the fourth switch 3101; the first output end 1 of the first differential generating circuit 3106 is connected to the first input end 3 of the second power supply 394 via the first end 1 and fourth end 4 of the fifth switch 3104; and the second output end 2 of the first differential generating circuit 3106 is connected to the second input end 4 of the second power supply 394 via the first end 1 and fourth end 4 of the sixth switch 3105. In this way, the second envelope generating circuit 3103 can generate a fourth envelope tracking signal based on the RF signal input by the fourth transmitting unit 364. The first differential generating circuit 3106 can generate a seventh differential positive phase signal and a seventh differential negative phase signal based on the fourth envelope tracking signal. The second power supply 394 may operate in an envelope tracking mode according to the seventh differential positive phase signal and the seventh differential negative phase signal.

[0183] When the fourth transmitting unit 364 enters the operating state and the second end 2 and the fourth end 4 of the fourth switch 3101 are connected, the control unit 350 controls the second end 2 and the fourth end 4 of the fifth switch 3104 to be connected, and the second end 2 and the fourth end 4 of the sixth switch 3105 to be connected. At this point, the second envelope generating circuit 3103 is connected to the input end of the second differential generating circuit 3107 via the second end 2 and the fourth end 4 of the fourth switch 3101; the first output end 1 of the second differential generating circuit 3107 is connected to the first input end 3 of the second power supply 394 via the second end 2 and the fourth end 4 of the fifth switch 3104; and the second output end 2 of the second differential generating circuit 3107 is connected to the second input end 4 of the second power supply 394 via the second end 2 and the fourth end 4 of the sixth switch 3105. In this way, the second envelope generating circuit 3103 can generate a fourth envelope tracking signal based on the RF signal input by the fourth transmitting unit 364. The second differential generating circuit 3107 can generate an eighth differential positive phase signal and an eighth differential negative phase signal based on the fourth envelope tracking signal. The second power supply 394 may operate in an envelope tracking mode according to the eighth differential positive phase signal and the eighth differential negative phase signal.

[0184] The radio frequency circuit 30 of the present application is explained in detail below from two specific embodiments in conjunction with the accompanying drawings.

[0185] The RF circuit 30 is applied to an electronic device 40. FIG14 is an exploded view of the housing of an electronic device 40 provided in an embodiment of the present application. As shown in FIG14 , the housing of the electronic device 40 can be formed by a combination of a cover 410, a frame 420, and a back cover 430. The housing formed by the combination of the cover 410, the frame 420, and the back cover 430 has a housing cavity, and the RF circuit 30 can be located within the housing cavity. The frame 420 is generally made of metal.

[0186] The frame 420 made of metal material can be used as an antenna radiator. Generally, the electronic device 40 can have multiple antenna radiators. Based on this, the frame 420 of the electronic device 40 can be divided into multiple components as shown in Figure 15. In the embodiment shown in Figure 15, the multiple components divided include a first component 421, a second component 422, a third component 423, a fourth component 424, and a fifth component 425. Any two of the first component 421, the second component 422, the third component 423, the fourth component 424, and the fifth component 425 are insulated from each other. In this way, the first component 421, the second component 422, the third component 423, the fourth component 424, and the fifth component 425 can all work as independent antenna radiators 342.

[0187] Fig. 16 is a schematic diagram of the internal structure of an electronic device 40 provided in an embodiment of the present application. As shown in Fig. 16, in addition to the radio frequency circuit 30, the electronic device 40 also includes a SOC and a clock chip.

[0188] Here, the control unit 350 is a chip with storage, calculation, high-precision timing, and also has the functions of multiple input, output and signal processing. Specifically, the control unit 350 can be any one of the chips such as application specific integrated circuit (ASIC), field programmable gate array (FPGA), system-level chip, board support package (BSP), etc. The control unit 350 is connected to the SOC through a serial peripheral interface (SPI) or I2C (interintegrated circuit) interface, I3C (improved inter integrated circuit) interface, so that communication signals can be transmitted between the SOC and the control unit 350. Generally, when the electronic device 40 is working, the communication signal transmitted by the SOC to the control unit 350 can carry the following information: the status of the electronic device 40, the frequency of the wireless communication signal transmitted or received by the electronic device 40, the number of SIM cards possessed by the electronic device, etc. Among them, the status of the electronic device 40 can be, for example, whether the folding screen electronic device 40 is currently in a folded state or an unfolded state. The frequency at which the electronic device 40 transmits or receives wireless communication signals may also be transmitted to the control unit 350 by the processing unit 319 in the transceiver 31. The communication signal transmitted by the control unit 350 to the SOC may carry the current operating status of the control unit 350. The control unit 350 is also connected to the clock chip via a clock signal (CLK) interface to obtain a clock signal.

[0189] In the embodiment shown in FIG16 , the electronic device 40 includes four RF modules. The first RF module 30A includes a first transmitting unit 312, a second transmitting unit 314, a first receiving unit 316, a second receiving unit 318, a first switch 322, a first RF front-end circuit 330, and two antenna units. The first RF module 30A is used to transmit low-frequency signals. When in operation, the first RF module 30A can transmit and receive wireless communication signals through either of its two antenna units.

[0190] The second RF module 30B includes a third transmitting unit 362, a fourth transmitting unit 364, a third receiving unit 366, a fourth receiving unit, a third switch 326, a second RF front-end circuit 370, and two antenna units. The second RF module 30B is used to transmit intermediate frequency (IF) signals. When the second RF module 30B is operating, it can also transmit and receive wireless communication signals using either of its two antenna units.

[0191] The circuit structures of the four RF modules are identical and will not be further described here. The first RF module 30A is used to transmit low-frequency signals, the second RF module 30B is used to transmit intermediate-frequency signals, the third RF module is used to transmit high-frequency signals, and the fourth RF module is used to transmit ultra-high-frequency signals. The first transmitting unit 312, the second transmitting unit 314, the third transmitting unit 362, the fourth transmitting unit 364, the fifth transmitting unit, the sixth transmitting unit, the seventh transmitting unit, the eighth transmitting unit, the first receiving unit 316, the second receiving unit 318, the third receiving unit 366, the fourth receiving unit, the fifth receiving unit, the sixth receiving unit, the seventh receiving unit, and the eighth receiving unit are all integrated into the transceiver 31. The SOC is also connected to the input terminals of each transmitting unit and the output terminals of each receiving unit in the transceiver 31 to transmit RF signals. For example, the SOC can be connected to the input terminals of the first transmitting unit 312 and the input terminals of the second transmitting unit 314, thereby outputting RF signals to the first transmitting unit 312 and the second transmitting unit 314. The SOC may also be connected to the output end of the first receiving unit 316 and the output end of the second receiving unit 318 , thereby receiving the radio frequency signals output by the first receiving unit 316 and the second receiving unit 318 .

[0192] In the transceiver 31, the output terminal 1 (not shown) of the processing unit 319 includes four sub-ports, namely TX0_MIPI0, RX0_MIPI1, TX1_MIPI2, and RX1_MIPI3. The input terminal 1a of the control unit 350 also includes four sub-ports, namely Slave_MIPI0, Slave_MIPI1, Slave_MIPI2, and Slave_MIPI3. The four sub-ports of the output terminal 1 of the processing unit 319 are connected to the four sub-ports of the input terminal 1a of the control unit 350 in a one-to-one correspondence. When the electronic device 40 is operating, the transceiver 31 can transmit control instructions to the control unit 350 through the four sub-ports TX0_MIPI0, RX0_MIPI1, TX1_MIPI2, and RX1_MIPI3. For example, when the first transmitting unit 312, the third transmitting unit 362, the fifth transmitting unit, and the seventh transmitting unit enter the operating state, the transceiver 31 can transmit control instructions to the control unit 350 through the TX0_MIPI0 sub-port. When the second transmitting unit 314, the fourth transmitting unit 364, the sixth transmitting unit, and the eighth transmitting unit enter the working state, the transceiver 31 can transmit control instructions to the control unit 350 through the TX1_MIPI2 subport. When the first receiving unit 316, the third receiving unit 366, the fifth receiving unit, and the seventh receiving unit enter the working state, the transceiver 31 can transmit control instructions to the control unit 350 through the RX0_MIPI1 subport. When the second receiving unit 318, the fourth receiving unit, the sixth receiving unit, and the eighth receiving unit enter the working state, the transceiver 31 can transmit control instructions to the control unit 350 through the RX1_MIPI3 subport.

[0193] The control unit 350 has a total of eleven output sub-ports, namely: Master_MIPI0, Master_MIPI1, Master_MIPI2, Master_MIPI3, Master_MIPI4, Master_MIPI5, GPIO1, GPIO2, GPIO3, GPIO4, GPIO5. These eleven sub-ports can be combined to form the first output terminal 1, second output terminal 2, third output terminal 3, fourth output terminal 4, fifth output terminal 5, sixth output terminal 6, seventh output terminal 7, eighth output terminal 8, and ninth output terminal 9 of the aforementioned control unit 350. Specifically: the GPIO1 sub-port is connected to the control terminal 5 of the first switch 322 (marked as 5A in Figure 16 for ease of distinction), and the GPIO1 sub-port is the first output terminal 1 of the control unit 350. The two sub-ports Master_MIPI0 and Master_MIPI1 are connected to the first RF front-end circuit 330, together forming the third output terminal 3 of the control unit 350. The two sub-ports, Master_MIPI4 and Master_MIPI5, are connected one-to-one to the two antenna units in the first RF module 30A. Both antenna units can function as the first antenna unit 340. Therefore, either of the two sub-ports, Master_MIPI4 and Master_MIPI5, can function as the fourth output terminal 4 of the control unit 350. The GPIO2 sub-port is connected to the control terminal 5 of the third switch 326 (labeled 5B in FIG. 16 for ease of distinction) and serves as the fifth output terminal 5 of the control unit 350. The Master_MIPI0 sub-port is connected to the control terminal 2 of the first power supply 392 and serves as the sixth output terminal 6 of the control unit 350. The Master_MIPI2 sub-port is connected to the control terminal 2 of the second power supply 394 and serves as the seventh output terminal 7 of the control unit 350. The GPIO5 sub-port is connected to the control terminal 5 of the fifth switch 3104 (marked as 5E in Figure 16 for easy distinction) and the control terminal 5 of the sixth switch 3105 (marked as 5F in Figure 16 for easy distinction). The GPIO5 sub-port is the eighth output terminal 8 and the ninth output terminal 9 of the control unit 350.

[0194] As shown in Figure 16, the control unit 350 can also control the second RF front-end circuit 370, the third RF front-end circuit, the fourth RF front-end circuit, and so on, which will not be described in detail. The first power supply 392 has only one voltage output terminal VCC1, which is used to output voltage to the first RF front-end circuit 330. The second power supply 394 has two voltage output terminals VCC2 and VCC3. The voltage output terminal VCC2 is used to output voltage to the second RF front-end circuit 370, and the voltage output terminal VCC3 is used to output voltage to the third and fourth RF front-end circuits.

[0195] The transceiver 31 also integrates a fourth switch 3101, a first envelope generating circuit 3102, a second envelope generating circuit 3103, a first differential generating circuit 3106, and a second differential generating circuit 3107. The connection relationship between the fourth switch 3101, the first envelope generating circuit 3102, the second envelope generating circuit 3103, the first differential generating circuit 3106, and the second differential generating circuit 3107 is shown in FIG17 and will not be further described. Here, the input terminals of the first transmitting unit 312, the third transmitting unit 362, the fifth transmitting unit, and the seventh transmitting unit are all connected to the first terminal of the first envelope generating circuit 3102. The input terminals of the second transmitting unit 314, the fourth transmitting unit 364, the sixth transmitting unit, and the eighth transmitting unit are all connected to the first terminal of the second envelope generating circuit 3103.

[0196] The following takes the transmission of a low-frequency signal by the electronic device 40 as an example to explain in detail the working process of the electronic device 40 and the working process of the control unit 350 .

[0197] 1. The first power supply 392 operates in average power mode.

[0198] Initially, SIM1 of electronic device 40 needs to perform data services, and first transmitting unit 312 enters the operating state. In this case, after receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by the transceiver 31, control unit 350 executes the following steps S1A to S4A, and S5A.

[0199] S1A, initializing the first amplifier 331 in the first RF front-end circuit 330.

[0200] S2A, initializing the first power supply 392.

[0201] S3A, controlling the first end 1 and the third end 3 of the first switch 322 to be connected, and controlling the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected.

[0202] S4A, controlling the first power supply 392 to operate in an average power mode, outputting a voltage to the first amplifier 331 , and adjusting the gain of the first amplifier 331 .

[0203] S5A, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0204] Steps S1A to S4A are performed sequentially. Step S5A is performed concurrently with steps S1A to S4A. After steps S1 to S5A are completed and the switches in the first amplifier 331 and tuning circuit 344 have completed their responses, the first transmitting unit 312, the first switch 322, the first RF front-end circuit 330, and the first antenna unit 340 form a RF transmission channel. The first antenna unit 340, the first RF front-end circuit 330, and the first receiving unit 316 form a RF reception channel. This completes the transmission and reception of wireless communication signals.

[0205] If SIM2 of electronic device 40 needs to perform a call service, that is, when first transmitting unit 312 is in an active state, second transmitting unit 314 enters an active state. In this case, control unit 350, after receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by transceiver 31, executes the following steps S1B to S7B and S8B, as shown in FIG18 .

[0206] S1B, controlling the first end 1 and the third end 3 of the first switch 322 to be disconnected.

[0207] S2B, controlling the first amplifier 331 to enter a low power consumption mode or turning off the first amplifier 331 .

[0208] S3B, controlling the first power supply 392 to stop outputting voltage to the first amplifier 331 .

[0209] S4B, initializing the first amplifier 331.

[0210] S5B, initializing the first power supply 392.

[0211] S6B, controlling the second end 2 and the third end 3 of the first switch 322 to be connected, and controlling the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected.

[0212] S7B, controlling the first power supply 392 to output voltage to the first amplifier 331 , and adjusting the gain of the first amplifier 331 .

[0213] S8B, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0214] Steps S1B to S7B are performed sequentially. Step S8B is performed concurrently with steps S1B to S7B. After steps S1B to S8B are completed and the switches in the first amplifier 331 and tuning circuit 344 have completed their responses, the second transmitting unit 314, the first switch 322, the first RF front-end circuit 330, and the first antenna unit 340 form a RF transmission channel. The first antenna unit 340, the first RF front-end circuit 330, and the second receiving unit 318 form a RF reception channel. This completes the transmission and reception of wireless communication signals.

[0215] Then, if SIM1 of electronic device 40 is executing data services, that is, if second transmitting unit 314 is in the active state, first transmitting unit 312 enters the active state. In this case, control unit 350, upon receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by transceiver 31, executes the following steps S1C to S7C, and S8C.

[0216] S1C, controlling the second end 2 and the third end 3 of the first switch 322 to be disconnected.

[0217] S2C: Control the first amplifier 331 to enter a low power consumption mode or turn off the first amplifier 331 .

[0218] S3C: Control the first power supply 392 to stop outputting voltage to the first amplifier 331 .

[0219] S4C, initializing the first amplifier 331.

[0220] S5C, initialize the first power supply 392.

[0221] S6C, controlling the first end 1 and the third end 3 of the first switch 322 to be connected, and controlling the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected.

[0222] S7C, controlling the first power supply 392 to output voltage to the first amplifier 331 , and adjusting the gain of the first amplifier 331 .

[0223] S8C, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0224] 2. The first power supply 392 operates in envelope tracking mode.

[0225] Initially, SIM1 of electronic device 40 needs to perform data services, and first transmitting unit 312 enters the operating state. In this case, after receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by the transceiver 31, control unit 350 executes the following steps S1D ​​to S4D and S5D.

[0226] S1D, initializing the first amplifier 331 in the first RF front-end circuit 330.

[0227] S2D, initialize the first power supply 392.

[0228] S3D controls the first end 1 and the third end 3 of the first switch 322 to be connected, controls the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected, controls the fifth switch 3104 and the sixth switch 3105, and enables the first input end 3 and the second input end 4 of the first power supply 392 to input the envelope tracking signal.

[0229] S4D, controlling the first power supply 392 to operate, outputting a voltage to the first amplifier 331 , and adjusting the gain of the first amplifier 331 .

[0230] S5D, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0231] Steps S1D ​​to S4D are performed sequentially. Step S5D is performed concurrently with steps S1D ​​to S4D. After steps S1 to S5D are completed and the switches in the first amplifier 331 and tuning circuit 344 have completed their responses, the first transmitting unit 312, the first switch 322, the first RF front-end circuit 330, and the first antenna unit 340 form a RF transmission channel. The first antenna unit 340, the first RF front-end circuit 330, and the first receiving unit 316 form a RF reception channel. This completes the transmission and reception of wireless communication signals.

[0232] If SIM2 of electronic device 40 needs to perform a call service, that is, when first transmitting unit 312 is in an active state, second transmitting unit 314 enters an active state. In this case, control unit 350, upon receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by transceiver 31, executes the following steps S1E to S7E and S8E.

[0233] S1E, controlling the first end 1 and the third end 3 of the first switch 322 to be disconnected, and controlling the fifth switch 3104 and the sixth switch 3105 to be turned off.

[0234] S2E: Control the first amplifier 331 to enter a low power consumption mode or turn off the first amplifier 331 .

[0235] S3E: Control the first power supply 392 to stop outputting voltage to the first amplifier 331 .

[0236] S4E, initializing the first amplifier 331.

[0237] S5E, initialize the first power supply 392.

[0238] S6E, controls the second end 2 and the third end 3 of the first switch 322 to be connected, controls the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected, controls the fifth switch 3104 and the sixth switch 3105, and enables the first input end 3 and the second input end 4 of the first power supply 392 to input the envelope tracking signal.

[0239] S7E: Control the first power supply 392 to output voltage to the first amplifier 331 , and adjust the gain of the first amplifier 331 .

[0240] S8E, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0241] Steps S1E to S7E are performed sequentially. Step S8E is performed concurrently with steps S1E to S7E. After steps S1E to S8E are completed and the switches in the first amplifier 331 and tuning circuit 344 have completed their responses, the second transmitting unit 314, the first switch 322, the first RF front-end circuit 330, and the first antenna unit 340 form a RF transmission channel. The first antenna unit 340, the first RF front-end circuit 330, and the second receiving unit 318 form a RF reception channel. This completes the transmission and reception of wireless communication signals.

[0242] Then, if SIM1 of electronic device 40 is executing data services, that is, when second transmitting unit 314 is in the working state, first transmitting unit 312 enters the working state. In this case, control unit 350, upon receiving the communication signal transmitted by the SOC, the clock signal transmitted by the clock chip, and the control command transmitted by transceiver 31, executes the following steps S1F to S7F and S8F.

[0243] S1F, controlling the second end 2 and the third end 3 of the first switch 322 to be disconnected, and controlling the fifth switch 3104 and the sixth switch 3105 to be turned off.

[0244] S2F: control the first amplifier 331 to enter a low power consumption mode or turn off the first amplifier 331 .

[0245] S3F: Control the first power supply 392 to stop outputting voltage to the first amplifier 331 .

[0246] S4F, initialize the first amplifier 331.

[0247] S5F, initialize the first power supply 392.

[0248] S6F controls the first end 1 and the third end 3 of the first switch 322 to be connected, controls the first end 1 and the third end 3 of the first RF front-end circuit 330 to be connected, controls the fifth switch 3104 and the sixth switch 3105, and enables the first input end 3 and the second input end 4 of the first power supply 392 to input the envelope tracking signal.

[0249] S7F, controlling the first power supply 392 to output voltage to the first amplifier 331 and adjusting the gain of the first amplifier 331 .

[0250] S8F, adjust the impedance of the tuning circuit 344 in the first antenna unit 340.

[0251] Based on this, the modular structure of the control unit 350 can be seen in Figure 19. As shown in Figure 19, the control unit 350 includes an instruction receiving subunit 351, a status receiving subunit 352, a processing subunit 353, a first output subunit 354, and a second output subunit 355. The instruction receiving subunit 351 is used to receive control instructions transmitted by the transceiver 31 through four subports: Slave_MIPI0, Slave_MIPI1, Slave_MIPI2, and Slave_MIPI3. After receiving the control instructions transmitted by the transceiver 31, the control unit 350 can forward them to each RF front-end circuit and antenna unit. The status receiving subunit 352 is used to receive communication signals transmitted by the SOC through the serial peripheral interface and receive clock signals through the clock signal interface. The processing subunit 353 is used to process the received control instructions, communication signals, and clock signals, and generate control instructions for controlling switching devices such as the first switch 322, the second switch 324, the third switch 326, the fifth switch 3104, and the sixth switch 3105. The first output subunit 354 and the second output subunit 355 are both used to output control instructions to control the switches, the RF front-end circuit and the antenna unit in the RF circuit 30 .

[0252] Figure 20 is a schematic diagram of the internal structure of another electronic device 40 provided in an embodiment of the present application. As shown in Figure 20, the first RF module 30A further includes a second switch 324. The control terminal 5 (not shown in Figure 20) of the second switch 324 can also be connected to the GPIO1 sub-port. In this case, the GPIO1 sub-port also serves as the second output terminal 2 of the control unit 350.

[0253] In this embodiment, when the control unit 350 configures the first switch 322, it also needs to simultaneously configure the second switch 324. For example, when the control unit 350 controls the first end 1 and the third end 3 of the first switch 322 to be connected, it also controls the first end 1 and the third end 3 of the second switch 324 to be connected. When the control unit 350 controls the second end 2 and the third end 3 of the first switch 322 to be connected, it also controls the second end 2 and the third end 3 of the second switch 324 to be connected. Detailed description is omitted.

[0254] The beneficial effects of the radio frequency circuit 30 provided in the embodiment of the present application are analyzed below with reference to the accompanying drawings.

[0255] Figure 21 is a configuration process diagram of the radio frequency circuit 20 in the related art, and Figure 22 is a configuration process diagram of the radio frequency circuit 30 provided in an embodiment of the present application. As shown in Figure 21, in the related art, if the electronic device 10 switches the service type (including data service and call service), the required hardware resource reconfiguration includes: configuring the transceiver, configuring the switch in the first radio frequency front-end circuit (i.e., the radio frequency front-end circuit 230), configuring the first power supply, configuring the first amplifier 231, and configuring the first antenna unit 240. As shown in Figure 22, when the radio frequency circuit 30 provided in the embodiment of the present application switches the service type of the electronic device 40, the required hardware resource reconfiguration includes: configuring the switch in the first radio frequency front-end circuit 330, configuring the first power supply 392, configuring the first amplifier 331, and configuring the first antenna unit 340. That is to say, compared with the related art, the radio frequency circuit 30 does not need to reconfigure the transceiver 31 when the electronic device 40 switches the service type. Therefore, this can effectively shorten the time required for hardware configuration of the electronic device 40 in the DSDA working mode, and improve the uplink and downlink throughput of the electronic device 40 with two SIMs when performing data services in the DSDA working mode, thereby effectively improving the lag phenomenon when the electronic device 40 is in the DSDA working mode and performing data services, improving the uplink and downlink throughput of the electronic device when performing data services, and improving the user experience.

[0256] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A radio frequency circuit, characterized in that, Including: A first transmitting unit, a second transmitting unit, a first switch, a first receiving unit, a first radio frequency front-end circuit, a first antenna unit, and a control unit; The output end of the first transmitting unit is connected to the first end of the first switch, the output end of the second transmitting unit is connected to the second end of the first switch, and the third end of the first switch is connected to the first end of the first radio frequency front-end circuit; the input end of the first receiving unit is connected to the second end of the first radio frequency front-end circuit; the third end of the first radio frequency front-end circuit is connected to the first antenna unit; The first output end of the control unit is connected to the control end of the first switch; the control unit is configured to: when the first transmitting unit enters the working state, control the first end and the third end of the first switch to be connected; when the second transmitting unit enters the working state, control the second end and the third end of the first switch to be connected.

2. The radio frequency circuit according to claim 1, characterized in that The radio frequency circuit further includes: an impedance unit, the first end of the impedance unit is connected to the fourth end of the first switch, and the second end of the impedance unit is connected to the ground wire; The control unit is configured to: when the first transmitting unit enters the non-working state, control the first end and the fourth end of the first switch to be connected; when the second transmitting unit enters the non-working state, control the second end and the fourth end of the first switch to be connected.

3. The radio frequency circuit according to claim 1 or 2, characterized in that, The radio frequency circuit further includes: a second switch and a second receiving unit; The first end of the second switch is connected to the input end of the first receiving unit, the second end of the second switch is connected to the input end of the second receiving unit, and the third end of the second switch is connected to the second end of the first radio frequency front-end circuit; The second output end of the control unit is connected to the control end of the second switch; the control unit is configured to: when the first receiving unit enters the working state, control the first end and the third end of the second switch to be connected; when the second receiving unit enters the working state, control the second end and the third end of the second switch to be connected.

4. The radio frequency circuit according to any one of claims 1 to 3, characterized in that, The radio frequency circuit further includes a transceiver, and the transceiver includes the first transmitting unit, the second transmitting unit, and the first receiving unit; The transceiver further includes a processing unit, the output end of the processing unit is connected to the input end of the control unit, and the third output end of the control unit is connected to the first radio frequency front-end circuit; The processing unit is configured to: when the first transmitting unit enters the working state, transmit a first control instruction to the control unit; when the second transmitting unit enters the working state, transmit a second control instruction to the control unit; when the first receiving unit enters the working state, transmit a third control instruction to the control unit; The control unit is configured to: when receiving the first control instruction, connect the first end and the third end of the first switch, and connect the first end and the third end of the first radio frequency front-end circuit; when receiving the second control instruction, connect the second end and the third end of the first switch, and connect the first end and the third end of the first radio frequency front-end circuit; when receiving the third control instruction, connect the second end and the third end of the first radio frequency front-end circuit.

5. The radio frequency circuit according to claim 4, characterized in that, The first radio frequency front-end circuit includes a first amplifier and a second amplifier. The first amplifier is connected between the first end and the third end of the first radio frequency front-end circuit, and the second amplifier is connected between the third end and the second end of the first radio frequency front-end circuit; The control unit is further configured to: when receiving the first control instruction, adjust the gain multiple of the first amplifier according to the first control instruction; when receiving the second control instruction, adjust the gain multiple of the first amplifier according to the second control instruction; when receiving the third control instruction, adjust the gain multiple of the second amplifier according to the third control instruction.

6. The radio frequency circuit according to any one of claims 1 to 5, characterized in that The first antenna unit includes a tuning circuit and an antenna radiator. The first end of the tuning circuit is connected to the third end of the first radio frequency front-end circuit, and the second end of the tuning circuit is connected to the antenna radiator; The fourth output end of the control unit is connected to the tuning circuit; The control unit is configured to: when the first transmitting unit enters the working state, adjust the impedance of the tuning circuit according to a first frequency range, where the first frequency range is the frequency range of the radio frequency signal output when the first transmitting unit is in the working state; when the second transmitting unit enters the working state, adjust the impedance of the tuning circuit according to a second frequency range, where the second frequency range is the frequency range of the radio frequency signal output when the second transmitting unit is in the working state.

7. The radio frequency circuit according to any one of claims 1 to 6, characterized in that The radio frequency circuit further includes: a third transmitting unit, a fourth transmitting unit, a third switch, a third receiving unit, a second radio frequency front-end circuit, and a second antenna unit; The output end of the third transmitting unit is connected to the first end of the third switch, the output end of the fourth transmitting unit is connected to the second end of the third switch, and the third end of the third switch is connected to the first end of the second radio frequency front-end circuit; the input end of the third receiving unit is connected to the second end of the second radio frequency front-end circuit; the third end of the second radio frequency front-end circuit is connected to the second antenna unit; The fifth output end of the control unit is connected to the control end of the third switch; the control unit is configured to: when the third transmitting unit enters the working state, connect the first end and the third end of the third switch; when the fourth transmitting unit enters the working state, connect the second end and the third end of the third switch.

8. The radio frequency circuit according to claim 7, wherein The radio frequency circuit further includes: a first power supply and a second power supply; The voltage output terminal of the first power supply is connected to the first radio frequency front-end circuit, and the sixth output terminal of the control unit is connected to the control terminal of the first power supply. The control unit is configured to: control the first power supply to operate in an average power mode and output voltage to the first radio frequency front-end circuit; The voltage output terminal of the second power supply is connected to the second radio frequency front-end circuit, and the seventh output terminal of the control unit is connected to the control terminal of the second power supply. The control unit is configured to: control the second power supply to operate in an average power mode and output voltage to the second radio frequency front-end circuit.

9. The radio frequency circuit according to claim 8, wherein The radio frequency circuit further includes: a first envelope generation circuit, a second envelope generation circuit, a fourth switch, a first differential generation circuit, a second differential generation circuit, a fifth switch, and a sixth switch; The input terminals of the first transmitting unit and the third transmitting unit are connected to the first end of the first envelope generation circuit, and the second end of the first envelope generation circuit is connected to the first end of the fourth switch; the input terminals of the second transmitting unit and the fourth transmitting unit are connected to the first end of the second envelope generation circuit, and the second end of the second envelope generation circuit is connected to the second end of the fourth switch; the third end of the fourth switch is connected to the input terminal of the first differential generation circuit, and the fourth end of the fourth switch is connected to the input terminal of the second differential generation circuit; The first output terminal of the first differential generation circuit is connected to the first end of the fifth switch, the second output terminal of the first differential generation circuit is connected to the first end of the sixth switch, the first output terminal of the second differential generation circuit is connected to the second end of the fifth switch, and the second output terminal of the second differential generation circuit is connected to the second end of the sixth switch; The third end of the fifth switch is connected to the first input terminal of the first power supply, and the fourth end of the fifth switch is connected to the first input terminal of the second power supply; the third end of the sixth switch is connected to the second input terminal of the first power supply, and the fourth end of the sixth switch is connected to the second input terminal of the second power supply; The eighth output terminal of the control unit is connected to the control terminal of the fifth switch, and the ninth output terminal of the control unit is connected to the sixth switch; the control unit is configured to: control the fifth switch and the sixth switch so that when the first transmitting unit or the second transmitting unit enters the working state, the first power supply operates in an envelope tracking mode and outputs voltage to the first radio frequency front-end circuit; when the third transmitting unit or the fourth transmitting unit enters the working state, the second power supply operates in an envelope tracking mode and outputs voltage to the second radio frequency front-end circuit.

10. The radio frequency circuit according to claim 9, wherein The control unit is configured to: when the first transmitting unit enters the working state, if the first end and the third end of the fourth switch are connected, control the first end and the third end of the fifth switch to be connected, and the first end and the third end of the sixth switch to be connected; if the first end and the fourth end of the fourth switch are connected, control the second end and the third end of the fifth switch to be connected, and the second end and the third end of the sixth switch to be connected.

11. The radio frequency circuit according to claim 9 or 10, characterized in that, The control unit is configured to: when the second transmitting unit enters the working state, if the second end and the third end of the fourth switch are connected, control the first end and the third end of the fifth switch to be connected, and the first end and the third end of the sixth switch to be connected; if the second end and the fourth end of the fourth switch are connected, control the second end and the third end of the fifth switch to be connected, and the second end and the third end of the sixth switch to be connected.

12. The radio frequency circuit according to claim 9, wherein The control unit is configured to: when the third transmitting unit enters the working state, if the first end and the third end of the fourth switch are connected, control the first end and the fourth end of the fifth switch to be connected, and the first end and the fourth end of the sixth switch to be connected; if the first end and the fourth end of the fourth switch are connected, control the second end and the fourth end of the fifth switch to be connected, and the second end and the fourth end of the sixth switch to be connected.

13. The radio frequency circuit according to claim 9 or 12, characterized in that, The control unit is configured to: when the fourth transmitting unit enters the working state, if the second end and the third end of the fourth switch are connected, control the first end and the fourth end of the fifth switch to be connected, and the first end and the fourth end of the sixth switch to be connected; if the second end and the fourth end of the fourth switch are connected, control the second end and the fourth end of the fifth switch to be connected, and the second end and the fourth end of the sixth switch to be connected.

14. The radio frequency circuit according to any one of claims 8 to 13, characterized in that, The first radio frequency front-end circuit includes a power amplifier, and the first power supply is configured to output a voltage to the power amplifier; the control unit is configured to: when the first transmitting unit is in the working state and the second transmitting unit enters the working state, then: control the disconnection of the first end and the third end of the first switch; control the power amplifier to enter the low power consumption mode or turn off the power amplifier; control the first power supply to stop outputting voltage to the power amplifier; initialize the power amplifier; initialize the first power supply; control the connection of the second end and the third end of the first switch, and control the connection of the first end and the third end of the first radio frequency front-end circuit; control the first power supply to output voltage to the power amplifier and adjust the gain multiple of the power amplifier; and, adjust the impedance of the tuning circuit in the first antenna unit.

15. An electronic device, characterized in that, It includes a system-on-chip and the radio frequency circuit according to any one of claims 1 to 14; the system-on-chip is connected to the input end of the first transmitting unit, the input end of the second transmitting unit, and the output end of the first receiving unit.

Citation Information

Patent Citations

  • Radio frequency circuit and electronic equipment

    CN213521880U

  • Radio frequency structure and electronic equipment

    CN214154506U

  • Radio frequency power amplifier power supply circuit and control method therefor

    WO2022143200A1

  • Antenna assembly, electronic device, and wearable device

    WO2022262454A1