Detailed Description
In order to more clearly understand the technical features, objects, and effects of the present invention, embodiments of the present invention will now be described with reference to the accompanying drawings. Wherein like parts are given like reference numerals.
Example 1
The embodiment provides a method for controlling a terminal antenna, which comprises the following steps: step 101, detecting a first working current of a power amplifier; and 102, if the first working current is greater than the first reference working current, communicating a current working antenna communicated with the main set receiving path and the main set transmitting path with the diversity receiving path, and communicating antennas except the current working antenna with the main set receiving path and the main set transmitting path.
As can be seen from the above, the preferred antenna can be selected as the antenna of the main set receiving and transmitting path in this embodiment.
Example 2
The embodiment provides a method for controlling a terminal antenna, as shown in fig. 2, the method includes:
step 201, detecting a first operating current of a power amplifier.
Step 202, judging whether the first working current is larger than a first reference working current; if the first working current is greater than the first reference working current, if yes, go to step 203; if the determination result is negative, step 201 is entered.
And 203, communicating the current working antenna communicated with the main set receiving path and the main set transmitting path with the diversity receiving path, and communicating the antennas except the current working antenna with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may be a main set antenna of the terminal, and the antennas other than the currently operating antenna may be diversity antennas of the terminal. When the main set antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data are the working currents of the power amplifier corresponding to different transmitting powers of the main set antenna. When the main set antenna is communicated with the main set receiving path and the main set transmitting path, and the diversity antenna is communicated with the diversity receiving path, when the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting power of the main set antenna, the main set antenna is communicated with the diversity receiving path, and the diversity antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may also be a diversity antenna of the terminal, and antennas other than the currently operating antenna may be a main set antenna of the terminal. When the diversity antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data is the working current of the power amplifier corresponding to different transmitting powers of the diversity antenna. When the diversity antenna is communicated with the main set receiving path and the main set transmitting path and the main set antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set transmitting path, and the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting frequency of the diversity antenna, the diversity antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the first working current of the power amplifier may be detected by collecting a voltage of a sampling resistor connected to the power amplifier, and calculating a current value passing through the sampling resistor according to the collected voltage and a resistance value of the sampling resistor.
The embodiment has the advantages that in the main set antenna and the diversity antenna, a better antenna is selected as the antenna of the main set receiving and transmitting path, the output power and the working current of the power amplifier in the main set transmitting path are reduced, the power consumption of the wireless terminal is reduced, and the service time of the wireless terminal battery is prolonged by improving the wireless performance of the main set transmitting path of the terminal.
Example 3
The embodiment provides a method for controlling a terminal antenna, as shown in fig. 3, the method includes:
step 301, detecting a first operating current of a power amplifier.
Step 302, judging whether the first working current is larger than a first reference working current; if the first working current is greater than the first reference working current, step 303 is performed. If the determination result is negative, go to step 301.
Step 303, communicating the currently operating antenna communicated with the main set receiving path and the main set transmitting path with the diversity receiving path, and communicating the antennas other than the currently operating antenna with the main set receiving path and the main set transmitting path.
Step 304, determining whether the communication time for communicating the antennas other than the currently operating antenna with the main set receiving path and the main set transmitting path reaches a predetermined time, if yes, entering step 307, and if not, entering step 305.
Step 305, detecting a second operating current of the power amplifier.
Step 306, determining whether the second working current is greater than the first working current, if the determination result is that the second working current is greater than the first working current, step 307 is entered, and if the determination result is no, step 304 is entered.
Step 307, communicating antennas other than the currently operating antenna, which are communicated with the main set receiving path and the main set transmitting path, with the diversity receiving path, and communicating the currently operating antenna with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may be a main set antenna of the terminal, and the antennas other than the currently operating antenna may be diversity antennas of the terminal. When the main set antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data are the working currents of the power amplifier corresponding to different transmitting powers of the main set antenna. When the main set antenna is communicated with the main set receiving path and the main set transmitting path, and the diversity antenna is communicated with the diversity receiving path, when the working current of the power amplifier is larger than the reference working current corresponding to the transmitting frequency of the main set antenna, the main set antenna is communicated with the diversity receiving path, and the diversity antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may also be a diversity antenna of the terminal, and antennas other than the currently operating antenna may be a main set antenna of the terminal. When the diversity antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data is the working current of the power amplifier corresponding to different transmitting powers of the diversity antenna. When the diversity antenna is communicated with the main set receiving path and the main set transmitting path and the main set antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set transmitting path, and the working current of the power amplifier is larger than the reference working current corresponding to the transmitting power of the diversity antenna, the diversity antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the first working current and the second working current of the power amplifier are detected by collecting the voltage of a sampling resistor connected to the power amplifier and calculating the current value passing through the sampling resistor according to the collected voltage and the resistance value of the sampling resistor.
The embodiment has the advantages that in the main set antenna and the diversity antenna, a better antenna is selected as the antenna of the main set receiving and transmitting path, the output power and the working current of the power amplifier in the main set transmitting path are reduced, the power consumption of the wireless terminal is reduced, and the service time of the wireless terminal battery is prolonged by improving the wireless performance of the main set transmitting path of the terminal.
Example 4
The embodiment provides an apparatus for controlling a terminal antenna, which includes: a detection unit and a processing unit. The detection unit is used for detecting a first working current of the power amplifier. The processing unit is used for communicating a current working antenna communicated with the main set receiving path and the main set transmitting path with the diversity receiving path and communicating antennas except the current working antenna with the main set receiving path and the main set transmitting path if the detected first working current is larger than a first reference working current.
As can be seen from the above, the preferred antenna can be selected as the antenna of the main set receiving and transmitting path in this embodiment.
Example 5
The present embodiment provides an apparatus for controlling a terminal antenna, as shown in fig. 4, the apparatus including: a detection unit 401, a determination unit 402 and a processing unit 403. The detecting unit 401 is configured to detect a first operating current of the power amplifier. The determining unit 402 is configured to determine whether the first operating current is greater than a first reference operating current; the processing unit 403 is configured to, when the determination result of the determining unit 402 is that the first operating current is greater than the first reference operating current, communicate a currently operating antenna, which is in communication with the main set receiving path and the main set transmitting path, with the diversity receiving path, and communicate antennas other than the currently operating antenna with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may be a main set antenna of the terminal, and the antennas other than the currently operating antenna may be diversity antennas of the terminal. When the main set antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data are the working currents of the power amplifier corresponding to different transmitting powers of the main set antenna. When the main set antenna is communicated with the main set receiving path and the main set transmitting path, and the diversity antenna is communicated with the diversity receiving path, when the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting frequency of the main set antenna, the main set antenna is communicated with the diversity receiving path, and the diversity antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may also be a diversity antenna of the terminal, and antennas other than the currently operating antenna may be a main set antenna of the terminal. When the diversity antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data is the working current of the power amplifier corresponding to different transmitting powers of the diversity antenna. When the diversity antenna is communicated with the main set receiving path and the main set transmitting path and the main set antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set transmitting path, and the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting frequency of the diversity antenna, the diversity antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the detecting unit includes a collecting unit (not shown in fig. 4) and a calculating unit (not shown in fig. 4), the collecting unit is configured to collect a voltage of a sampling resistor connected to the power amplifier, and the calculating unit is configured to calculate the first operating current of the power amplifier according to the collected voltage and a resistance value of the sampling resistor.
Those skilled in the art can change the structure of the device according to the disclosure of the present embodiment. For example, the acquisition unit of the detection unit 401 is implemented by an analog-to-digital (a/D) controller in the terminal, and the calculation unit, the judgment unit 402 and the first processing unit 403 of the detection unit 401 are implemented by a processing unit, such as: and a baseband processing chip of the terminal.
The method has the advantages that through switching between the main set antenna and the diversity antenna, a better antenna is selected as an antenna of a main set receiving and transmitting path, and through improving the wireless performance of the main set transmitting path of the terminal, the output power and the working current of a power amplifier in the main set transmitting path are reduced, the power consumption of the terminal is reduced, and the service time of a terminal battery is prolonged.
Example 6
The present embodiment provides an apparatus for controlling a terminal antenna, as shown in fig. 5, the apparatus including: the radio frequency detection device comprises a first detection unit 501, a first judgment unit 502, a first processing unit 503, a first radio frequency switch 504, a second radio frequency switch 505, a second detection unit 511, a second judgment unit 512, a second processing unit 513, a third radio frequency switch 514, a fourth radio frequency switch 515, a third judgment unit 521, a third processing unit 522, a fifth radio frequency switch 523 and a sixth radio frequency switch 524.
The first detecting unit 501 is configured to detect a first operating current of a power amplifier; the first determining unit 502 is configured to determine whether the first working current is greater than a first reference working current; a first processing unit 503, configured to, when the first determining unit 501 determines that the first operating current is greater than the first reference operating current, communicate a currently operating antenna, which is in communication with the main set receiving path and the main set transmitting path, with the diversity receiving path through the first radio frequency switch 504, and communicate antennas, which are not in communication with the currently operating antenna, with the main set receiving path and the main set transmitting path through the second radio frequency switch 505;
the second detecting unit 511 is configured to detect a second operating current of the power amplifier; the second determining unit 512 is configured to determine whether the second working current is greater than the first working current; the second processing unit 513 is configured to, when the second determining unit 512 determines that the second working current is greater than the first working current, connect an antenna other than the currently working antenna, which is connected to the main set receiving path and the main set transmitting path, to the diversity receiving path through the third rf switch 514; the currently operating antenna is connected to the main set receive path and the main set transmit path through a fourth rf switch 515.
The third determining unit 521 is configured to determine whether a connection time for connecting an antenna other than the currently operating antenna with the main set receiving path and the main set transmitting path reaches a preset time; when the third determining unit 521 determines that the connection time reaches the preset time, the third processing unit 522 is configured to connect the antenna other than the currently operating antenna, which is connected to the main set receiving path and the main set transmitting path, to the diversity receiving path through the fifth radio frequency switch 523, and connect the currently operating antenna to the main set receiving path and the main set transmitting path through the sixth radio frequency switch 524.
The first detecting unit 501 is similar in functional structure to the second detecting unit 511. The first detection unit 501 and the second detection unit 511 include a collecting unit for collecting a voltage of a sampling resistor connected to the power amplifier; and the calculating unit is used for calculating the first working current or the second working current of the power amplifier according to the acquired voltage and the resistance value of the sampling resistor.
Those skilled in the art can change the structure of the device according to the disclosure of the present embodiment. For example, the acquisition units of the first detection unit 501 and the second detection unit 511 are realized by an analog-to-digital (a/D) controller in the terminal; the calculation units of the first detection unit 501 and the second detection unit 511, the first judgment unit 502, the first processing unit 503, the second judgment unit 512, the second processing unit 513, the third judgment unit 521 and the third processing unit 522 are implemented by one processing unit, such as a baseband processing chip of a terminal; the first radio frequency switch 504, the second radio frequency switch 505, the third radio frequency switch 514, the fourth radio frequency switch 515, the fifth radio frequency switch 523 and the sixth radio frequency switch 524 are implemented by four radio frequency switches, wherein one end of each of the two radio frequency switches is connected with the input end of the current working antenna, the other end of each of the two radio frequency switches is respectively connected with the main set receiving path, the main set transmitting path and the diversity receiving path, and the two radio frequency switches respectively connect the current working antenna with the main set receiving path, the main set transmitting path or the diversity receiving path through the two radio frequency switches according to the control signal output by the baseband processing chip; similarly, one end of the other two radio frequency switches is connected with the input end of the antenna except the current working antenna, the other end of the other two radio frequency switches is respectively connected with the main set receiving channel, the main set transmitting channel and the diversity receiving channel, and the two radio frequency switches respectively communicate the antenna except the current working antenna with the main set receiving channel, the main set transmitting channel or the diversity receiving channel through the two radio frequency switches according to the control signal output by the baseband processing chip.
In this embodiment, the currently operating antenna may be a main set antenna of the terminal, and the antennas other than the currently operating antenna may be diversity antennas of the terminal. When the main set antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data are the working currents of the power amplifier corresponding to different transmitting powers of the main set antenna. When the main set antenna is communicated with the main set receiving path and the main set transmitting path, and the diversity antenna is communicated with the diversity receiving path, when the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting frequency of the main set antenna, the main set antenna is communicated with the diversity receiving path, and the diversity antenna is communicated with the main set receiving path and the main set transmitting path.
In this embodiment, the currently operating antenna may also be a diversity antenna of the terminal, and antennas other than the currently operating antenna may be a main set antenna of the terminal. When the diversity antenna is connected with the main set receiving path and the main set transmitting path, the working current of the power amplifier is a first working current, the first reference working current is empirical data obtained through experiments, and the data is the working current of the power amplifier corresponding to different transmitting powers of the diversity antenna. When the diversity antenna is communicated with the main set receiving path and the main set transmitting path and the main set antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set transmitting path, and the working current of the power amplifier is larger than the first reference working current corresponding to the transmitting power of the diversity antenna, the diversity antenna is communicated with the diversity receiving path and the main set antenna is communicated with the main set receiving path and the main set transmitting path.
The method has the advantages that through switching between the main set antenna and the diversity antenna, a better antenna is selected as an antenna of a main set receiving and transmitting path, and through improving the wireless performance of the main set transmitting path of the terminal, the output power and the working current of a power amplifier in the main set transmitting path are reduced, the power consumption of the wireless terminal is reduced, and the service life of a battery of the wireless terminal is prolonged.
Example 7
As shown in fig. 6, a functional structure of a mobile phone 600 for switching a main set antenna and a diversity antenna in embodiment 7 of the present invention is shown, where the mobile phone 600 includes: a main set antenna 601, a diversity antenna 602, a radio frequency switch 603 and 606, a baseband processing chip 607, a duplexer 608, a main set receiving path 609, a main set transmitting path 610, a diversity receiving path 611, an analog-to-digital controller 612, a power amplifying circuit 613, a power supply 614 and a sampling resistor R.
Radio frequency switches 603, 604, 605 and 606 are used to select the main set antenna 601 and the diversity antenna 602. Radio frequency switches 603, 604 are provided at the input of main set antenna 601 and radio frequency switches 605 and 606 are provided at the input of diversity antenna 602. The rf switches 603 and 605 are also connected to the baseband processing chip 607 and the duplexer 608. As shown in fig. 6, a duplexer 608 is connected to a master set receive path 609 and a master set transmit path 610. the master set receive path 609 and the master set transmit path 610 are also connected to the baseband processing chip 607. The rf switches 604 and 606 are connected to the baseband processing chip 607 and the diversity reception path 611, and the diversity reception path 611 is also connected to the baseband processing chip 607.
The sampling resistor R is disposed between the power amplifier 613 and the power supply 614, and the analog-to-digital controller 612 is connected in parallel to two ends of the sampling resistor R, converts the acquired voltage values at the two ends of the sampling resistor R into digital values, and transmits the digital values to the baseband processing chip 607. The baseband processing chip 607 calculates the current value passing through the sampling resistor R by the collected voltage values at the two ends of the sampling resistor R and the stored resistance value of the sampling resistor R, and the current value passing through the sampling resistor R is equal to the working current I of the power amplifier.
The FLASH memory (not shown in fig. 6) of the baseband processing chip 607 further includes a 1 st connection mode (the main set antenna 601 is connected to the main set reception path 609 and the main set transmission path 610, and the diversity antenna 602 is connected to the diversity reception path 611) and a 2 nd connection mode (the diversity antenna 602 is connected to the main set reception path 609 and the main set transmission path 610, and the main set antenna 601 is connected to the diversity reception path 611) in which the main set antenna 601 and the diversity antenna 602 are incorporated, and a reference operating current I of the power amplifier 613 in the 1 st connection mode and the 2 nd connection moderef1350mA (working current of power amplifier corresponding to transmitting power of main set antenna 601) and Iref2450mA (operating current of the power amplifier corresponding to the transmit power of the diversity antenna 602).
The baseband processing chip 607 outputs a switch control signal to turn on the rf switches 603 and 606 according to the 1 st connection mode of the built-in antenna 601 and the diversity antenna 602, so that the antenna 601 is connected to the main set receiving path 609 and the main set transmitting path 610 through the rf switch 603 and the duplexer 608; diversity antenna 602 is connected to diversity receive path 611 through radio frequency switch 606.
When the wireless performance of the antenna 601 deteriorates, the power amplifier 613 increases the transmission power of the handset transmission signal, so that the operating current of the power amplifier 613 also increases.
The baseband processing chip 607 detects the operating current I of the power amplifier 6131The baseband processing chip 607 outputs the operating current I of the power amplifier 613 to 500mA1500mA and a reference working current Iref1350mA to determine the working current I of the power amplifier 6131Greater than a reference operating current Iref1。
The baseband processing chip 607 outputs a switch control signal to the rf switch 603 and 606, turns off the rf switches 603 and 606, and turns on the rf switches 604 and 605 to switch the main set antenna 601 and the diversity antenna 602 to the 2 nd connection mode, i.e., the main set antenna 601 is connected to the diversity reception path 611 through the rf switch 604, and the diversity antenna 602 is connected to the main set reception path 609 and the main set transmission path 610 through the rf switch 605 and the duplexer 608.
The power amplifier 613 detected by the baseband processing chip 607 has an operating current I in the 2 nd operating mode2Is 430 mA. The baseband processing chip 607 outputs the operating current I2And an operating current I1Comparing to determine the working current I1Greater than the operating current I2The baseband processing chip 607 determines whether or not the switching period (ideally 5 seconds) of the main antenna 601 and the diversity antenna 602 has arrived, and if the switching period has arrived, the baseband processing chip 607 switches the main antenna 601 and the diversity antenna 602 to the connection mode 1.
In the present embodiment, if the operating current I2Greater than the operating current I1Then baseband processing chip 607 switches primary set antenna 601 and diversity antenna 602 directly to connection 1 mode without switching primary set antenna 601 and diversity antenna 602 according to the switching period.
Those skilled in the art can change the technical contents of the present embodiment according to the disclosure of the present embodiment. For example, the baseband processing chip 607 outputs a switch control signal to turn on the rf switches 604 and 605 according to the 2 nd connection mode of the built-in main set antenna 601 and the diversity antenna 602, so that the diversity antenna 602 is connected to the main set receiving path 609 and the main set transmitting path 610 through the rf switch 605 and the duplexer 608; the main set antenna 601 is connected to a diversity receive path 611 through a radio frequency switch 604.
When the wireless performance of the diversity antenna 602 deteriorates, the power amplifier 613 increases the transmission power of the handset transmission signal, so that the operating current of the power amplifier 613 also increases.
The baseband processing chip 607 detects the operating current I of the power amplifier 6133The baseband processing chip 607 outputs the operating current I of the power amplifier 613 to 500mA3500mA and a reference working current Iref2Comparing with 450mA to judge I3Is greater than Iref2The baseband processing chip 607 outputs a switch control signal to the rf switch 603 and 606, turns off the rf switches 604 and 605, and turns on the rf switches 603 and 606, so that the main set antenna 601 and the diversity antenna 602 are switched to the 1 st connection mode, that is, the main set antenna 601 is connected to the main set receiving path 609 and the main set transmitting path 610 through the rf switch 603 and the duplexer 608; diversity antenna 602 is connected to diversity receive path 611 through radio frequency switch 606.
The power amplifier 613 detected by the baseband processing chip 607 has an operating current I in the 1 st connection mode4Is 430 mA. The baseband processing chip 607 outputs the operating current I3And an operating current I4Comparing to determine the working current I3Greater than the operating current I4Then the baseband processing chip 607 causes the main set antenna 601 and the diversity antenna 602 to operate in connection 1 mode.
The rf switches 603-606 in this embodiment can also be implemented by two single-pole double-throw three-terminal rf switches, wherein one port of one three-terminal rf switch is connected to the duplexer, and two outer ports are respectively connected to the main antenna 601 and the diversity antenna 602; one port of the other three-terminal radio frequency switch is connected with a diversity receiving path, and the two outer ports are respectively connected with a main set antenna 601 and a diversity antenna 602. The baseband processing chip 607 can respectively realize the 1 st connection mode and the 2 nd connection mode by outputting the rf switch control signal.
The method has the advantages that the working current of the power amplifier is detected, the better antenna is selected as the antenna of the main set receiving and transmitting path, the wireless performance of the main set transmitting path of the terminal is improved, the output power and the working current of the power amplifier in the main set transmitting path are reduced, the power consumption of the wireless terminal is reduced, and the service life of a battery of the wireless terminal is prolonged.
The above description is only an exemplary embodiment of the present invention, and is not intended to limit the scope of the present invention. Any equivalent changes and modifications that can be made by one skilled in the art without departing from the spirit and principles of the invention should fall within the protection scope of the invention.