Electronic device comprising plurality of antennas and method for operating same
A method performed by an electronic device, includes: generating a beamforming signal by using a first antenna and a second antenna; increasing a first input value of a first power amplifier and a second input value of a second power amplifier, based on performance of the beamforming signal being deteriorated; measuring a first output value of the first power amplifier based on the increased first input value and measuring a second output value of the second power amplifier based on the increased second input value; and determining, based on the measured first output value and the measured second output value, at least one of the first power amplifier or the second power amplifier is deteriorated in performance, and connecting a first attenuator or a second attenuator electrically to the deteriorated power amplifier.
1 . An electronic device comprising:
a first antenna;
a second antenna;
a first power amplifier electrically connected to the first antenna;
a second power amplifier electrically connected to the second antenna;
a first attenuator electrically connected to the first power amplifier;
a second attenuator electrically connected to the second power amplifier; and
a third power amplifier electrically connected the first attenuator and the second attenuator;
a processor operatively connected to the first power amplifier, the second power amplifier, the third power amplifier, the first attenuator and the second attenuator,
wherein the processor is configured to:
apply an output value of the third power amplifier as a first input value of the first power amplifier and a second input value of the second power amplifier,
generate a beamforming signal by using the first antenna and the second antenna,
increase the first input value of the first power amplifier and the second input value of the second power amplifier, based on performance of the beamforming signal,
measure a first output value of the first power amplifier with respect to the increased first input value and measure a second output value of the second power amplifier with respect to the increased second input value,
determine whether the first power amplifier operates in a first saturation region based on the measured first output value,
determine whether the second power amplifier operates in a second saturation region based on the measured second output value,
based on determining that the first power amplifier operates in the first saturation region, operate the first attenuator, and
based on determining that the second power amplifier operates in the second saturation region, operate the second attenuator,
wherein the first input value and the second input value are identical.
2 . The electronic device of claim 1 , wherein the processor is further configured to check the performance of the beamforming signal based on an equivalent isotropic radiated power (ETRP) value.
3 . The electronic device of claim 1 , wherein the processor is further configured to:
compare the first output value of the first power amplifier with another output value in a linear region of the increased first input value of the first power amplifier; and
determine that performance of the first power amplifier is deteriorated based on a difference between the first output value of the first power amplifier and the another output value in the linear region for the increased first input value of the first power amplifier being equal to or greater than a first threshold value.
4 . The electronic device of claim 1 , wherein the first attenuator comprises a first variable resistance and the second attenuator comprises a second variable resistance.
5 . The electronic device of claim 4 , wherein the processor is further configured to:
based on determining that the first power amplifier has deteriorated performance, reduce the first input value of the first power amplifier by operating the first attenuator, and
based on determining that the second power amplifier has deteriorated performance, reduce the second input value of the second power amplifier by operating the second attenuator.
6 . The electronic device of claim 1 , wherein the first power amplifier and the second power amplifier have different performances at a specific temperature.
7 . The electronic device of claim 1 , further comprising:
a foldable housing that is foldable along at least one axis; and
at least one sensor,
wherein the processor is further configured to:
detect folding or unfolding of the foldable housing of the electronic device by using the at least one sensor, and
increase the first input value of the first power amplifier and the second input value of the second power amplifier based on the performance of the beamforming signal being deteriorated in a folded state or an unfolded state.
8 . The electronic device of claim 1 , further comprising:
a rollable housing having at least one surface extendable; and
at least one sensor,
wherein the processor is further configured to:
detect extension or contraction of the rollable housing of the electronic device by using the at least one sensor, and
increase the first input value of the first power amplifier and the second input value of the second power amplifier based on the performance of the beamforming signal being deteriorated in a contracted state or an extended state.
9 . A method performed by an electronic device, the method comprising:
applying an output value of a third power amplifier as a first input value of a first power amplifier and a second input value of a second power amplifier;
generating a beamforming signal by using a first antenna and a second antenna;
increasing the first input value of the first power amplifier and the second input value of the second power amplifier, based on performance the beamforming signal;
measuring a first output value of the first power amplifier with respect to the increased first input value and measuring a second output value of the second power amplifier with respect to the increased second input value;
determining whether the first power amplifier operates in a first saturation region based on the measured first output value;
determining whether the second power amplifier operates in a second saturation region based on the measured second output value;
based on determining that the first power amplifier operates in the first saturation region operating a first attenuator; and
based on determining that the second power amplifier operates in the second saturation region, operating a second attenuator,
wherein the first input value and the second input value are identical.
10 . The method of claim 9 , further comprising checking the performance of the beamforming signal based on an equivalent isotropic radiated power (EIRP) value.
11 . The method of claim 9 , further comprising:
comparing the first output value of the first power amplifier with another output value in a linear region of the increased first input value of the first power amplifier; and
determining that performance of the first power amplifier is deteriorated based on a difference between the first output value of the first power amplifier and the another output value in the linear region for the increased first input value of the first power amplifier being equal to or greater than a first threshold value.
12 . The method of claim 9 , wherein the first attenuator comprise a first variable resistance and the second attenuator comprise a second variable resistance.
13 . The method of claim 9 , further comprising:
based on determining that the first power amplifier has deteriorated performance, reducing the first input value of the first power amplifier by operating the first attenuator, and
based on determining that the second power amplifier has deteriorated performance, reducing the second input value of the second power amplifier by operating the second attenuator.
14 . The method of claim 9 ,
wherein the first power amplifier and the second power amplifier have different performances at a specific temperature.
15 . The method of claim 9 , further comprising:
detecting folding or unfolding of a foldable housing of the electronic device by using at least one sensor, and
increasing the first input value of the first power amplifier and the second input value of the second power amplifier based on the performance of the beamforming signal being deteriorated in a folded state or an unfolded state.
16 . The method of claim 9 , further comprising:
detecting extension or contraction of a rollable housing of the electronic device by using at least one sensor, and
increasing the first input value of the first power amplifier and the second input value of the second power amplifier based on the performance of the beamforming signal being deteriorated in a contracted state or an extended state.
17 . A non-transitory storage medium storing one or more programs which are executed by one or more processors of an electronic device, to perform a method comprising:
applying an output value of a third power amplifier as a first input value of a first power amplifier and a second input value of a second power amplifier;
generating a beamforming signal by using a first antenna and a second antenna;
increasing the first input value of the first power amplifier and the second input value of the second power amplifier, based on performance the beamforming signal;
measuring a first output value of the first power amplifier with respect to the increased first input value and measuring a second output value of the second power amplifier with respect to the increased second input value;
determining whether the first power amplifier operates in a first saturation region based on the measured first output value;
determining whether the second power amplifier operates in a second saturation region based on the measured second output value;
based on determining that the first power amplifier operates in the first saturation region operating a first attenuator; and
based on determining that the second power amplifier operates in the second saturation region operating a second attenuator,
wherein the first input value and the second input value are identical.
18 . The non-transitory computer-readable storage medium of claim 17 , wherein the method further comprises:
checking the performance of the beamforming signal based on an equivalent isotropic radiated power (ETRP) value.