CN113037324A - Antenna switching method and device and electronic equipment - Google Patents

Antenna switching method and device and electronic equipment Download PDF

Info

Publication number
CN113037324A
CN113037324A CN202110220238.5A CN202110220238A CN113037324A CN 113037324 A CN113037324 A CN 113037324A CN 202110220238 A CN202110220238 A CN 202110220238A CN 113037324 A CN113037324 A CN 113037324A
Authority
CN
China
Prior art keywords
antenna
power amplifier
standing wave
wave ratio
voltage standing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110220238.5A
Other languages
Chinese (zh)
Inventor
张华�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110220238.5A priority Critical patent/CN113037324A/en
Publication of CN113037324A publication Critical patent/CN113037324A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode

Abstract

The application discloses an antenna switching method, an antenna switching device and electronic equipment, and belongs to the technical field of antennas. Acquiring a first voltage standing wave ratio of a power amplifier in a first path, wherein the power amplifier is communicated with a first antenna in the first path; if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second channel, wherein the power amplifier is communicated with a second antenna in the second channel; and determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna. In the above, the antenna to which the power amplifier is connected is determined by comparing the voltage standing wave ratios obtained when the power amplifier is connected to different antennas, so that the input power and voltage of the power amplifier during operation are reduced, and the risk of failure of the power amplifier is reduced.

Description

Antenna switching method and device and electronic equipment
Technical Field
The application belongs to the technical field of antennas, and particularly relates to an antenna switching method, an antenna switching device and electronic equipment.
Background
A Power Amplifier (PA) is a radio frequency front-end high-Power active device, and consumes a large current, emits a high-Power radio frequency signal, and generates a large amount of heat during operation, so that the failure rate of the PA is much higher than that of devices such as a switch and a filter. Common failure causes of PAs include excessive input power, excessive voltage, ESD (electrostatic discharge), and the like.
In actual operation, the antenna efficiency is affected due to the hand holding of the antenna, the damage of the antenna or other reasons, and the Voltage Standing Wave Ratio (VSWR) of the PA transmission signal becomes large. When the same power needs to be transmitted, the PA requires more input power and higher voltage, increasing the risk of failure of the PA.
Disclosure of Invention
The embodiment of the application aims to provide an antenna switching method, an antenna switching device and electronic equipment, and can solve the problem that a power amplifier in the prior art is high in failure risk.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an antenna switching method, which is applied to an electronic device, where the electronic device includes a power amplifier, a first antenna, and a second antenna, and the method includes:
acquiring a first voltage standing wave ratio of the power amplifier in a first path, wherein the power amplifier is communicated with the first antenna in the first path;
if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second passage, wherein the power amplifier is communicated with the second antenna in the second passage;
and determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
In a second aspect, an embodiment of the present application provides an antenna switching apparatus, which is applied to an electronic device, where the electronic device includes a power amplifier, a first antenna, and a second antenna, and the apparatus includes:
the first obtaining module is used for obtaining a first voltage standing wave ratio of the power amplifier in a first path, and the power amplifier is communicated with the first antenna in the first path;
a second obtaining module, configured to obtain a second voltage standing wave ratio of the power amplifier in a second path if the first voltage standing wave ratio is greater than a preset threshold, where the power amplifier is communicated with the second antenna in the second path;
and the determining module is used for determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the antenna switching method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the antenna switching method of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the antenna switching method according to the first aspect.
In the embodiment of the application, the size of the voltage standing wave ratio obtained when the power amplifier is communicated with different antennas is compared to determine the antenna communicated with the power amplifier, so that the input power and the voltage of the power amplifier during operation are reduced, and the failure risk of the power amplifier is reduced.
Drawings
Fig. 1 is a flowchart of an antenna switching method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 3 is another flowchart of an antenna switching method according to an embodiment of the present application;
fig. 4 is a flowchart of an antenna switching method according to an embodiment of the present application;
fig. 5 is a structural diagram of an antenna switching apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used are interchangeable under appropriate circumstances such that embodiments of the application can be practiced in sequences other than those illustrated or described herein, and the terms "first" and "second" used herein generally do not denote any order, nor do they denote any order, for example, the first object may be one or more. In addition, "and/or" in the specification and the claims means at least one of connected objects, and a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The antenna switching method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart of an antenna switching method provided in an embodiment of the present application, and as shown in fig. 1, the antenna switching method provided in this embodiment is applied to an electronic device, where the electronic device includes a power amplifier, a first antenna, and a second antenna, and the method includes:
step 101, obtaining a first voltage standing wave ratio of the power amplifier in a first path, wherein the power amplifier is communicated with the first antenna in the first path.
The power amplifier communicates with the first antenna in the first path. The first path may be understood as a current path, and a Voltage Standing Wave Ratio (VSWR) of the power amplifier in the current path may be calculated at preset time intervals to obtain the first VSWR.
And 102, if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second passage, wherein the power amplifier is communicated with the second antenna in the second passage.
The preset threshold may be preset, or may be factory settings of the electronic device, which is not limited herein. The power amplifier can be communicated with the first antenna or the second antenna through a first switch, for example, a first end of the first switch is connected to the power amplifier, a second end of the first switch is connected to the first antenna, a third end of the first switch is connected to the second antenna, and at the same time, the power amplifier is communicated with the first antenna or the second antenna; at this time, the first switch may be a single-pole double-throw switch, the second terminal and the third terminal of the first switch are both terminals to be turned on, and only one of the second terminal and the third terminal is turned on at the same time. In addition, the first switch may be replaced by a double-pole double-throw switch or a double-pole four-throw switch, which is not limited herein.
In this step, if the first voltage standing wave ratio is greater than the preset threshold, the antenna connected to the power amplifier may be switched by adjusting the first switch, that is, the first antenna connected to the power amplifier is switched to the second antenna. And acquiring a second voltage standing wave ratio of the power amplifier under the condition that the power amplifier is communicated with the second antenna.
Step 103, determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
And determining that the power amplifier is connected with the first antenna or the second antenna by comparing the first voltage standing wave ratio with the second voltage standing wave ratio. The smaller the voltage standing wave ratio is, the lower the failure risk of the power amplifier is, when a target antenna communicated with the power amplifier is determined, the antenna corresponding to the voltage standing wave ratio with the smaller median value of the first voltage standing wave ratio and the second voltage standing wave ratio can be selected as the target antenna, and the failure risk of the power amplifier is reduced. For example, if the first vswr is greater than or equal to the second vswr, the target antenna is the second antenna; and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, the target antenna is the first antenna.
In this embodiment, a first voltage standing wave ratio of the power amplifier in a first path is obtained, where the power amplifier is communicated with the first antenna; if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second passage, wherein the power amplifier is communicated with the second antenna in the second passage; and determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna. In the above, the antenna to which the power amplifier is connected is determined by comparing the voltage standing wave ratios obtained when the power amplifier is connected to different antennas, so that the input power and voltage of the power amplifier during operation are reduced, and the risk of failure of the power amplifier is reduced.
In an embodiment of the present application, as shown in fig. 2, the electronic device further includes a transceiver 1 and a bidirectional coupler 3, a first end of the transceiver 1 is communicated with a first end of the power amplifier 2, a second end of the power amplifier 2 is communicated with a first end of the bidirectional coupler 3, a second end of the bidirectional coupler 3 is communicated with the first antenna 6 or the second antenna 7, and a third end or a fourth end of the bidirectional coupler 3 is communicated with a second end of the transceiver 1;
correspondingly, as shown in fig. 3, the step 101 of obtaining a first voltage standing wave ratio of the power amplifier in the first path includes:
step 1011, obtaining a first received signal strength of a signal received by the transceiver in the first sub-path, where a fourth end of the bidirectional coupler in the first sub-path is connected and communicated with a second end of the transceiver, and the fourth end of the bidirectional coupler outputs a transmission signal.
As shown in fig. 2, the electronic device further includes a second switch 5, the bidirectional coupler 3 is connected to the transceiver 1 through the second switch, specifically, a second terminal of the transceiver 1 is connected to a first terminal of the second switch 5, a second terminal of the second switch 5 is connected to a third terminal of the bidirectional coupler 3, and a third terminal of the second switch 5 is connected to a fourth terminal of the bidirectional coupler 3.
The transceiver 1 is configured to modulate and demodulate a radio frequency signal, the power amplifier 2 may amplify the radio frequency signal transmitted by the transceiver, and the bidirectional coupler 3 may simultaneously couple radio frequency signals in two directions, including a transmission signal and a transmission signal, as shown in fig. 2, where a reference sign a indicates a transmission signal direction corresponding to a first coupling coefficient, and a reference sign B indicates a reflection signal direction corresponding to a second coupling coefficient.
In the first sub-path, the power amplifier 2 communicates with the first antenna 6, and the fourth terminal of the bidirectional coupler 3 communicates with the second terminal of the transceiver 1.
And 1012, acquiring a second received signal strength of a signal received by the transceiver in a second sub-path, where the power amplifier is communicated with the first antenna in the second sub-path, a third end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the third end of the bidirectional coupler outputs a reflected signal.
The first passage may be a first sub-passage or a second sub-passage. In the second sub-path, the power amplifier 2 communicates with the first antenna 6, and the third end of the bidirectional coupler 3 communicates with the second end of the transceiver 1.
And 1013, obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength.
When the first voltage standing wave ratio is calculated, the following method can be adopted for calculation: obtaining the power of a transmitting signal according to the strength of the first receiving signal and the first coupling coefficient;
obtaining reflected signal power according to the second received signal strength and the second coupling coefficient;
and obtaining the first voltage standing wave ratio according to the transmitting signal power and the reflected signal power.
In the above, an output signal of the fourth end of the bidirectional coupler corresponds to the first coupling coefficient, and an output signal of the third end of the bidirectional coupler corresponds to the second coupling coefficient.
For example, the transmitted signal power P1 ═ Pf × Cpf, where Pf is the first received signal strength, Cpf is the first coupling coefficient, and the reflected signal power P2 ═ Pr × Cpr, where Pr is the second received signal strength, and Cpr is the second coupling coefficient; the reflection coefficient Γ ═ P2/P1 ═ Pr Cpr)/(Pf ═ Cpf), and the first voltage standing wave ratio was calculated from (1+ Γ)/(1- Γ).
The first voltage standing wave ratio can be obtained by adopting the above calculation mode, and the second voltage standing wave ratio can be obtained by calculation. The second path includes two communication cases, the first is: the power amplifier is communicated with the second antenna, the fourth end of the bidirectional coupler is communicated with the second end of the transceiver, and the second type is as follows: the power amplifier is communicated with the second antenna, and the third end of the bidirectional coupler is communicated with the second end of the transceiver.
Further, as shown in fig. 2, the electronic device further includes a first switch 4, a second terminal of the bidirectional coupler 3 is communicated with a first terminal of the first switch 4, a second terminal of the first switch 4 is communicated with the first antenna 6, and a third terminal of the first switch 4 is communicated with the second antenna 7;
103, determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the method comprises the following steps:
if the first voltage standing wave ratio is larger than or equal to the second voltage standing wave ratio, the power amplifier is communicated with the second antenna;
and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch.
In the above, if the first voltage standing wave ratio is greater than or equal to the second voltage standing wave ratio, the first switch is not switched, and the power amplifier and the second antenna are kept connected. And if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch. By comparing the first voltage standing wave ratio with the second voltage standing wave ratio, the antenna corresponding to the voltage standing wave ratio with the smaller median value of the first voltage standing wave ratio and the second voltage standing wave ratio can be selected to be communicated with the power amplifier, and the failure risk of the power amplifier can be reduced.
The following illustrates an antenna switching method provided in the present application.
As shown in fig. 2, the transceiver 1 is used for modulating and demodulating a radio frequency signal, the power amplifier 2 is used for amplifying a radio frequency signal transmitted by the transceiver 1, and the bidirectional coupler 3 can simultaneously couple two directions of radio frequency signals, including a transmission signal and a reflection signal, where reference sign a indicates a transmission signal direction corresponding to the first coupling coefficient Cpf, and reference sign B indicates a reflection signal direction corresponding to the second coupling coefficient Cpr.
The first switch 4 and the second switch 5 may be single pole double throw switches, switchable to different paths by the first switch 4 and the second switch 5. The first switch 4 may also be replaced by a double-pole double-throw switch or a double-pole four-throw switch, which is not limited herein.
Fig. 4 shows an antenna switching method provided in the embodiment of the present application, which includes the following steps:
step 201: a first VSWR1 is obtained for the power amplifier when it is in communication with the present antenna, if the present antenna is the first antenna 6.
Step 202: judging whether the VSWR1 is greater than a preset threshold Vt (standing wave ratio threshold), and if the VSWR1 is greater than or equal to the preset threshold Vt, turning to step 203; if the VSWR1 is less than the predetermined threshold Vt, proceed to step 204.
Step 203: waiting for the preset time Ts, which can be understood as a detection period, can avoid the problems of too frequent switching, power consumption increase and the like caused by frequent detection. After waiting for the detection period, the detection is performed again, i.e. the step 201 is performed.
Step 204: the antenna to which the power amplifier is connected is switched, and the second VSWR2 is obtained, that is, the first switch 4 is switched, so that the power amplifier is communicated with the second antenna 7, and the second VSWR2 in this case is detected, and at this time, the current antenna is the second antenna 7.
Step 205: determining whether the first VSWR1 is greater than the second VSWR2, and if the VSWR1 is greater than or equal to the VSWR2, performing a step 206; if VSWR1 is less than VSWR2, proceed to step 207.
Step 206: without switching the antennas, transmission is maintained using the second antenna 7, while the power amplifier is in communication with the second antenna 7 (transmitting using an antenna with a small standing wave ratio).
Step 207: the antennas are switched so that the power amplifier is connected to the first antenna 6, and the step 203 is executed, and after the action is completed, the detection period Ts is waited.
In the above, the first switch may switch the transmission signal to a different antenna, the bidirectional coupler may be used to obtain the vswr of the power amplifier, when the vswr on the first antenna path exceeds the preset threshold Vt, the bidirectional coupler may switch to the second antenna path and detect the vswr of the power amplifier, and the first vswr and the second vswr may be compared to select a path with a smaller vsw to transmit the signal, thereby reducing the risk of failure of the power amplifier.
As shown in fig. 5, fig. 5 is a structural diagram of an antenna switching apparatus according to an embodiment of the present application, where the antenna switching apparatus 500 according to the present application is applied to an electronic device, the electronic device includes a power amplifier, a first antenna, and a second antenna, and the antenna switching apparatus 500 includes:
a first obtaining module 501, configured to obtain a first voltage standing wave ratio of the power amplifier in a first path, where the power amplifier is in communication with the first antenna;
a second obtaining module 502, configured to obtain a second voltage standing wave ratio of the power amplifier in a second path if the first voltage standing wave ratio is greater than a preset threshold, where the power amplifier is communicated with the second antenna in the second path;
a determining module 503, configured to determine, according to the first voltage standing wave ratio and the second voltage standing wave ratio, that the power amplifier is communicated with a target antenna, where the target antenna is the first antenna or the second antenna.
Further, the electronic device further comprises a transceiver and a bidirectional coupler, wherein a first end of the transceiver is communicated with a first end of the power amplifier, a second end of the power amplifier is communicated with a first end of the bidirectional coupler, a second end of the bidirectional coupler is communicated with the first antenna or the second antenna, and a third end or a fourth end of the bidirectional coupler is communicated with a second end of the transceiver;
the first obtaining module 501 includes:
the first obtaining sub-module is configured to obtain a first received signal strength of a signal received by the transceiver in a first sub-path, where the power amplifier is communicated with the first antenna in the first sub-path, a fourth end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the fourth end of the bidirectional coupler outputs a transmit signal;
a second obtaining sub-module, configured to obtain a second received signal strength of a signal received by the transceiver in a second sub-path, where the power amplifier in the second sub-path is communicated with the first antenna, a third end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the third end of the bidirectional coupler outputs a reflected signal;
and the third obtaining submodule is used for obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength.
Further, an output signal of a fourth end of the bidirectional coupler corresponds to a first coupling coefficient, and an output signal of a third end of the bidirectional coupler corresponds to a second coupling coefficient;
the third obtaining submodule is configured to obtain a transmit signal power according to the first received signal strength and the first coupling coefficient; obtaining reflected signal power according to the second received signal strength and the second coupling coefficient; and obtaining the first voltage standing wave ratio according to the transmitting signal power and the reflected signal power.
Further, the electronic device further comprises a first switch, a second end of the bidirectional coupler is communicated with a first end of the first switch, a second end of the first switch is communicated with the first antenna, and a third end of the first switch is communicated with the second antenna;
the determining module 503 is configured to:
if the first voltage standing wave ratio is larger than or equal to the second voltage standing wave ratio, the power amplifier is communicated with the second antenna;
and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch.
The antenna switching apparatus 500 provided in this embodiment of the application can implement each process implemented by the electronic device in the method embodiments of fig. 1 and fig. 3 and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
The antenna switching device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a Network Attached Storage (NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The antenna switching device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. As shown in fig. 6, an electronic device according to an embodiment of the present application is further provided, which includes a processor 610, a memory 609, and a program or an instruction stored in the memory 609 and capable of being executed on the processor 610, where the program or the instruction is executed by the processor 610 to implement each process of the above-mentioned antenna switching method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 610 is configured to obtain a first voltage standing wave ratio of the power amplifier in a first path in which the power amplifier is in communication with the first antenna;
if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second passage, wherein the power amplifier is communicated with the second antenna in the second passage;
and determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
Further, the electronic device further comprises a transceiver and a bidirectional coupler, wherein a first end of the transceiver is communicated with a first end of the power amplifier, a second end of the power amplifier is communicated with a first end of the bidirectional coupler, a second end of the bidirectional coupler is communicated with the first antenna or the second antenna, and a third end or a fourth end of the bidirectional coupler is communicated with a second end of the transceiver;
a processor 610, configured to obtain a first received signal strength of a signal received by the transceiver in a first sub-path, where the power amplifier is in communication with the first antenna in the first sub-path, a fourth end of the bidirectional coupler is in communication with a second end of the transceiver, and the fourth end of the bidirectional coupler outputs a transmit signal;
acquiring a second received signal strength of a signal received by the transceiver in a second sub-path, wherein the power amplifier is communicated with the first antenna in the second sub-path, a third end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the third end of the bidirectional coupler outputs a reflected signal;
and obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength.
Further, an output signal of a fourth end of the bidirectional coupler corresponds to a first coupling coefficient, and an output signal of a third end of the bidirectional coupler corresponds to a second coupling coefficient;
a processor 610, configured to obtain a transmit signal power according to the first received signal strength and the first coupling coefficient;
obtaining reflected signal power according to the second received signal strength and the second coupling coefficient;
and obtaining the first voltage standing wave ratio according to the transmitting signal power and the reflected signal power.
Further, the electronic device further comprises a first switch, a second end of the bidirectional coupler is communicated with a first end of the first switch, a second end of the first switch is communicated with the first antenna, and a third end of the first switch is communicated with the second antenna;
a processor 610 configured to maintain communication between the power amplifier and the second antenna if the first vswr is greater than or equal to the second vswr;
and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch.
The electronic device provided in the embodiment of the present application can implement each process implemented by the electronic device in the method embodiments of fig. 1 and fig. 3 and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the process of the embodiment of the antenna switching method is implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above antenna switching method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An antenna switching method applied to an electronic device, wherein the electronic device comprises a power amplifier, a first antenna and a second antenna, the method comprising:
acquiring a first voltage standing wave ratio of the power amplifier in a first path, wherein the power amplifier is communicated with the first antenna in the first path;
if the first voltage standing wave ratio is larger than a preset threshold value, acquiring a second voltage standing wave ratio of the power amplifier in a second passage, wherein the power amplifier is communicated with the second antenna in the second passage;
and determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
2. The method of claim 1, wherein the electronic device further comprises a transceiver and a bi-directional coupler, wherein a first end of the transceiver is in communication with a first end of the power amplifier, wherein a second end of the power amplifier is in communication with a first end of the bi-directional coupler, wherein a second end of the bi-directional coupler is in communication with the first antenna or the second antenna, and wherein a third end or a fourth end of the bi-directional coupler is in communication with a second end of the transceiver;
the obtaining a first voltage standing wave ratio of the power amplifier in a first path comprises:
acquiring a first received signal strength of a signal received by the transceiver in a first sub-path, wherein the power amplifier is communicated with the first antenna in the first sub-path, a fourth end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the fourth end of the bidirectional coupler outputs a transmitting signal;
acquiring a second received signal strength of a signal received by the transceiver in a second sub-path, wherein the power amplifier is communicated with the first antenna in the second sub-path, a third end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the third end of the bidirectional coupler outputs a reflected signal;
and obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength.
3. The method of claim 2, wherein the output signal of the fourth terminal of the bidirectional coupler corresponds to a first coupling coefficient and the output signal of the third terminal of the bidirectional coupler corresponds to a second coupling coefficient;
the obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength includes:
obtaining the power of a transmitting signal according to the strength of the first receiving signal and the first coupling coefficient;
obtaining reflected signal power according to the second received signal strength and the second coupling coefficient;
and obtaining the first voltage standing wave ratio according to the transmitting signal power and the reflected signal power.
4. The method of claim 2, wherein the electronic device further comprises a first switch, wherein a second terminal of the bi-directional coupler is in communication with a first terminal of the first switch, wherein a second terminal of the first switch is in communication with the first antenna, and wherein a third terminal of the first switch is in communication with the second antenna;
the determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio comprises:
if the first voltage standing wave ratio is larger than or equal to the second voltage standing wave ratio, the power amplifier is communicated with the second antenna;
and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch.
5. An antenna switching device applied to an electronic device, wherein the electronic device comprises a power amplifier, a first antenna and a second antenna, the device comprising:
the first obtaining module is used for obtaining a first voltage standing wave ratio of the power amplifier in a first path, and the power amplifier is communicated with the first antenna in the first path;
a second obtaining module, configured to obtain a second voltage standing wave ratio of the power amplifier in a second path if the first voltage standing wave ratio is greater than a preset threshold, where the power amplifier is communicated with the second antenna in the second path;
and the determining module is used for determining that the power amplifier is communicated with a target antenna according to the first voltage standing wave ratio and the second voltage standing wave ratio, wherein the target antenna is the first antenna or the second antenna.
6. The apparatus of claim 5, wherein the electronic device further comprises a transceiver and a bi-directional coupler, wherein a first end of the transceiver is in communication with a first end of the power amplifier, wherein a second end of the power amplifier is in communication with a first end of the bi-directional coupler, wherein a second end of the bi-directional coupler is in communication with the first antenna or the second antenna, and wherein a third end or a fourth end of the bi-directional coupler is in communication with a second end of the transceiver;
the first obtaining module includes:
the first obtaining sub-module is configured to obtain a first received signal strength of a signal received by the transceiver in a first sub-path, where the power amplifier is communicated with the first antenna in the first sub-path, a fourth end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the fourth end of the bidirectional coupler outputs a transmit signal;
a second obtaining sub-module, configured to obtain a second received signal strength of a signal received by the transceiver in a second sub-path, where the power amplifier in the second sub-path is communicated with the first antenna, a third end of the bidirectional coupler is connected and communicated with a second end of the transceiver, and the third end of the bidirectional coupler outputs a reflected signal;
and the third obtaining submodule is used for obtaining the first voltage standing wave ratio according to the first received signal strength and the second received signal strength.
7. The apparatus of claim 6, wherein the output signal of the fourth terminal of the bidirectional coupler corresponds to a first coupling coefficient and the output signal of the third terminal of the bidirectional coupler corresponds to a second coupling coefficient;
the third obtaining sub-module is configured to:
obtaining the power of a transmitting signal according to the strength of the first receiving signal and the first coupling coefficient;
obtaining reflected signal power according to the second received signal strength and the second coupling coefficient;
and obtaining the first voltage standing wave ratio according to the transmitting signal power and the reflected signal power.
8. The apparatus of claim 6, wherein the electronic device further comprises a first switch, wherein a second terminal of the bi-directional coupler is in communication with a first terminal of the first switch, wherein a second terminal of the first switch is in communication with the first antenna, and wherein a third terminal of the first switch is in communication with the second antenna;
the determining module is configured to:
if the first voltage standing wave ratio is larger than or equal to the second voltage standing wave ratio, the power amplifier is communicated with the second antenna;
and if the first voltage standing wave ratio is smaller than the second voltage standing wave ratio, switching the first switch to enable the power amplifier to be communicated with the first antenna through the first end of the first switch.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the antenna switching method according to any one of claims 1-4.
10. A readable storage medium, characterized in that the readable storage medium stores thereon a program or instructions which, when executed by a processor, implement the steps of the antenna switching method according to any of claims 1-4.
CN202110220238.5A 2021-02-26 2021-02-26 Antenna switching method and device and electronic equipment Pending CN113037324A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110220238.5A CN113037324A (en) 2021-02-26 2021-02-26 Antenna switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110220238.5A CN113037324A (en) 2021-02-26 2021-02-26 Antenna switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113037324A true CN113037324A (en) 2021-06-25

Family

ID=76462464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110220238.5A Pending CN113037324A (en) 2021-02-26 2021-02-26 Antenna switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113037324A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596296A (en) * 2013-11-18 2014-02-19 惠州Tcl移动通信有限公司 Antenna switchover method and terminal
CN105703053A (en) * 2016-01-06 2016-06-22 广东欧珀移动通信有限公司 Antenna switching method and terminal
CN110212877A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of circuit control method, electronic equipment and radio circuit
US20200212862A1 (en) * 2018-12-27 2020-07-02 Qualcomm Incorporated Radio frequency front-end protection with tunable coupler

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103596296A (en) * 2013-11-18 2014-02-19 惠州Tcl移动通信有限公司 Antenna switchover method and terminal
CN105703053A (en) * 2016-01-06 2016-06-22 广东欧珀移动通信有限公司 Antenna switching method and terminal
US20200212862A1 (en) * 2018-12-27 2020-07-02 Qualcomm Incorporated Radio frequency front-end protection with tunable coupler
CN110212877A (en) * 2019-05-31 2019-09-06 维沃移动通信有限公司 A kind of circuit control method, electronic equipment and radio circuit

Similar Documents

Publication Publication Date Title
CN109150327B (en) Antenna detection method, antenna detection device and mobile terminal
US20090233558A1 (en) Communication device and method using human body
US20190182779A1 (en) Active antenna system, mobile terminal, and configuration method of antenna system
US9113367B2 (en) Method, apparatus and system for determining voltage standing wave ratio in a downlink period of radio communication
CN112769445B (en) Radio frequency circuit, signal transmitting method and electronic equipment
CN112886978B (en) Radio frequency circuit, electronic device and control method
CN112886988B (en) Radio frequency system, radio frequency circuit detection method and device and electronic equipment
CN108833701B (en) Antenna control method, antenna system and terminal
CN112291022B (en) Radio frequency parameter detection circuit, method and electronic equipment
CN106100675A (en) A kind of radio frequency front-end device, antenna assembly and mobile terminal
JP2008147934A (en) Wireless transmitter/receiver of tdd method
CN111756396A (en) Radio frequency circuit, electronic device, and control method
CN116054972A (en) Electronic device, test method, test apparatus, and readable storage medium
KR100375398B1 (en) Transmitting circuit and transceiver including the same
CN113315536B (en) Radio frequency circuit and electronic device
US20210250064A1 (en) Communication device and method for operating the same
CN106571878B (en) Method and device for detecting radio frequency fault
CN113037324A (en) Antenna switching method and device and electronic equipment
CN113114279B (en) Radio frequency circuit, electronic device and signal processing method
CN109547646B (en) Mobile terminal and interference processing method thereof
CN112994812B (en) Communication control method, communication control device, electronic apparatus, and readable storage medium
CN114978229A (en) Radio frequency control method and device and electronic equipment
CN110350939B (en) Method and device for protecting PA
CN112566086A (en) Data transmission method and device, electronic equipment and readable storage medium
CN112769446A (en) Radio frequency circuit, signal transceiving method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210625

WD01 Invention patent application deemed withdrawn after publication