CN111585666B - Power compensation method and electronic equipment - Google Patents

Power compensation method and electronic equipment Download PDF

Info

Publication number
CN111585666B
CN111585666B CN202010402169.5A CN202010402169A CN111585666B CN 111585666 B CN111585666 B CN 111585666B CN 202010402169 A CN202010402169 A CN 202010402169A CN 111585666 B CN111585666 B CN 111585666B
Authority
CN
China
Prior art keywords
time node
target antenna
power
conducted
target
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.)
Active
Application number
CN202010402169.5A
Other languages
Chinese (zh)
Other versions
CN111585666A (en
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 CN202010402169.5A priority Critical patent/CN111585666B/en
Publication of CN111585666A publication Critical patent/CN111585666A/en
Application granted granted Critical
Publication of CN111585666B publication Critical patent/CN111585666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements

Landscapes

  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a power compensation method and electronic equipment, and relates to the technical field of communication. The method comprises the following steps: under the condition that the target antenna is in a working state, obtaining working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length; acquiring a first difference value between a first target antenna efficiency at a first time node and a second target antenna efficiency at a second time node according to the corresponding relation between different working frequency bands of other antennas and the target antenna efficiency; the second time node is a time node after the first time node is separated by at least one first preset time length; and under the condition that the first difference is larger than the preset threshold, performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node. The scheme of the invention can effectively solve the problem of antenna performance reduction caused by mutual coupling among a plurality of antennas in the same electronic equipment, and improve the communication quality.

Description

Power compensation method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a power compensation method and an electronic device.
Background
At present, with the continuous development of various wireless communication services and broadband data services, a multi-antenna technology is developed. Due to the limitation of size, mutual coupling among antenna units easily causes the performance of the antenna to be reduced, and the mutual coupling among the antenna units means that the efficiency of a certain antenna is influenced by the switching of the adjacent antenna state of the same terminal, so that the efficiency of the antenna is changed.
Disclosure of Invention
The embodiment of the invention provides a power compensation method and electronic equipment, and aims to solve the problem of antenna performance reduction caused by antenna mutual coupling.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a power compensation method applied to an electronic device with multiple antennas, including:
under the condition that a target antenna is in a working state, obtaining working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length;
acquiring a first difference value between a first target antenna efficiency and a second target antenna efficiency according to the corresponding relation between different working frequency bands of other antennas and the target antenna efficiency, wherein the first target antenna efficiency is the target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
and performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node under the condition that the first difference is larger than a preset threshold value.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a multi-antenna electronic device, and the electronic device includes:
the first obtaining module is used for obtaining the working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length under the condition that the target antenna is in a working state;
a second obtaining module, configured to obtain a first difference between a first target antenna efficiency and a second target antenna efficiency according to a correspondence between different working frequency bands of the other antennas and the target antenna efficiency, where the first target antenna efficiency is a target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
a first processing module, configured to perform power compensation on conducted transmit power or conducted receive power of the target antenna between the first time node and the second time node when the first difference is greater than a preset threshold.
In a third aspect, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the power compensation method described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the power compensation method as described above.
In this way, in the embodiment of the present invention, a first difference between a first target antenna efficiency and a second target antenna efficiency is obtained according to a corresponding relationship between different working frequency bands of other antennas and the target antenna efficiency, and power compensation is performed on conducted transmit power or conducted receive power of the target antenna between the first time node and the second time node when the first difference is greater than a preset threshold, so as to effectively solve a problem of antenna performance degradation caused by mutual coupling among multiple antennas in the same electronic device, and improve communication quality.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a power compensation method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a multi-antenna structure of an electronic device according to an embodiment of the invention;
FIG. 3 is a timing diagram of a target antenna according to an embodiment of the present invention;
FIG. 4 shows a block diagram of an electronic device of an embodiment of the invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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 invention.
As shown in fig. 1, an embodiment of the present invention provides a power compensation method applied to an electronic device with multiple antennas, including:
and step 11, under the condition that the target antenna is in a working state, obtaining the working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time.
Specifically, under the condition that the path of the target antenna is in the working state of information transmission, the working states of other antennas, that is, the working frequency bands of the other antennas, are periodically monitored at intervals of a first preset duration (the time for periodically monitoring the states of the antennas can be adjusted as needed), where the other antennas may affect the antenna efficiency of the target antenna in different working frequency band states. For example: as shown in fig. 2, the first antenna 1 is a target antenna, and the second antenna 2 and the third antenna 3 are other antennas.
Step 12, obtaining a first difference value between a first target antenna efficiency and a second target antenna efficiency according to the corresponding relation between different working frequency bands of the other antennas and the target antenna efficiency, wherein the first target antenna efficiency is the target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; and the second time node is a time node after the first time node is separated by at least one first preset time length.
Specifically, when a first time node is located, the working frequency bands of other antennas are obtained, and a first target antenna efficiency of the first time node is determined according to the corresponding relation; and when a second time node which is at least one first preset time length away from the first time node is obtained, obtaining the working frequency bands of other antennas, determining a second target antenna efficiency of the second time node according to the corresponding relation, and obtaining a difference value between the first target antenna efficiency of the first time node and the second target antenna efficiency of the second time node, namely a first difference value, wherein the first difference value is greater than or equal to 0.
Specifically, the related information that the other antennas affect the antenna efficiency of the target antenna may be entered in the electronic device in advance, that is, a corresponding relationship between different working frequency bands of the other antennas and the target antenna efficiency is established. The table of the correspondence is as follows:
target antenna efficiency Second antenna Third antenna
-6dB B8 frequency band n41 frequency band
-4dB B5 frequency band n41 frequency band
-5.5dB B8 frequency band n78 frequency band
-8dB B5 frequency band n78 frequency band
When the second antenna is in a B8 frequency band and the third antenna is in an n41 frequency band, the corresponding target antenna efficiency is-6 dB; when the second antenna is in the B5 frequency band and the third antenna is in the n41 frequency band, the corresponding target antenna efficiency is-4 dB; when the second antenna is in the B8 frequency band and the third antenna is in the n78 frequency band, the corresponding target antenna efficiency is-5.5 dB; when the second antenna is in the B5 frequency band and the third antenna is in the n78 frequency band, the corresponding target antenna efficiency is-8 dB.
And step 13, performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node under the condition that the first difference is larger than a preset threshold value.
Specifically, if the first difference is greater than a preset threshold, performing power compensation on the conducted transmission power or the conducted reception power of the target antenna between the first time node and the second time node; if the absolute value of the first difference is less than or equal to the preset threshold, the conducted transmitting power or the conducted receiving power of the target antenna does not need to be adjusted. The preset threshold is a limit value for judging whether other antennas have a large influence on the target antenna efficiency, and if the first difference is larger than the preset threshold, the target antenna efficiency at the second time node is poor, and the signal quality is also poor.
In the above embodiment of the present invention, a first difference between a first target antenna efficiency and a second target antenna efficiency is obtained according to a corresponding relationship between different working frequency bands of other antennas and the target antenna efficiency, and power compensation is performed on conducted transmit power or conducted receive power of the target antenna between the first time node and the second time node when the first difference is greater than a preset threshold, so as to effectively solve a problem of antenna performance degradation caused by mutual coupling among multiple antennas in the same electronic device, and improve communication quality.
Optionally, step 13 may specifically include:
determining a target power compensation value according to the first difference value and the preset threshold value;
and according to the target compensation value, performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node.
Specifically, a compensation value required for power compensation, that is, a target power compensation value, is determined according to a magnitude relationship between the first difference and the preset threshold and a difference between the first difference and the preset threshold, and power compensation for conducted transmission power or conducted reception power of the target antenna is completed between the first time node and the second time node.
Optionally, the target power compensation value is greater than or equal to a second difference between the preset threshold and the first difference, and the target power compensation value is less than or equal to the first difference.
Specifically, the second difference is a difference between the first difference and a preset threshold, and the second difference is greater than or equal to 0. And under the condition that the target power compensation value is the first difference value, the power compensation is carried out on the conducted transmitting power or the conducted receiving power of the target antenna, so that the effects of keeping the output power of the whole machine unchanged and the like can be achieved, and the communication quality is improved.
Further, the performing power compensation on the conducted transmission power or the conducted reception power of the target antenna between the first time node and the second time node according to the target power compensation value may specifically include:
determining a second time length according to the target power compensation value, wherein the second time length is the time length for performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna;
determining a third time node between the first time node and the second time node according to the second time length, wherein the third time node is an initial time node for performing power compensation;
completing power compensation for conducted transmit power or conducted receive power of the target antenna between the third time node and the second time node.
Specifically, after the power compensation is completed, the operating frequency bands of other antennas are continuously monitored.
Optionally, the time from the third time node to the second time node is at least the second duration.
Specifically, according to the target power compensation value, a second time length required for completing power compensation of the target power compensation value is obtained, and according to the second time length, the time for starting power compensation can be determined as a third time node, that is, the power compensation is started at least in advance of the time of the second time length, so that the power compensation is completed before the target antenna efficiency is deteriorated, the time for closed-loop power control is skipped, and the time period with poor signal quality is avoided in advance, thereby improving the communication quality.
The above method is explained in detail by a specific example below:
assuming that a minimum time component of the electronic device is t, periodically monitoring working frequency bands of other antennas (such as a second antenna and a third antenna) at intervals of a first preset time (such as n times of t), recording the working frequency bands of the other antennas of a first time node (namely a current time node), monitoring the working frequency bands of the other antennas of a second time node (namely a next time node), obtaining a first target antenna efficiency of the first time node and a second target antenna efficiency of the second time node, and obtaining a first difference M between the target antenna efficiencies of the two time nodes, wherein if M is greater than a preset threshold value M, power compensation needs to be performed on conducted transmitting power or conducted receiving power of the target antenna between the first time node and the second time node.
For example: the preset threshold value M is 3, when the first time node is reached, the working frequency band of the second antenna is a B5 frequency band, the working frequency band of the third antenna is an n41 frequency band, and the efficiency of the first target antenna is-4 dB; when the second time node is detected, the working frequency band of the second antenna is the B5 frequency band and is unchanged, and the working frequency band of the third antenna is switched from the n41 frequency band to the n78 frequency band, so that the efficiency of the second target antenna becomes-8 dB; then
m=|-8-(-4)|=|-4dB|=4dB
Namely, it is determined that the second target antenna efficiency is decreased by 4dB compared to the first target antenna efficiency, and exceeds the preset threshold, power compensation needs to be performed on the conducted transmitting power or the conducted receiving power of the target antenna at a third time node in advance, a target power compensation value for performing power compensation is greater than or equal to 1dB, and the target power compensation value is less than or equal to 4 dB.
As shown in fig. 3, in the target antenna timing chart, when n is 10 and the target power compensation value is 4dB, the first target antenna efficiency of the target antenna at the time point of 10 × t0 is-4 dB, the second target antenna efficiency at the time point of 20 × t0 is-8 dB, and if the time required for completing the power compensation of 4dB is 3 × t0, it is necessary to start the power compensation at least 3 × t0 ahead, that is, at the latest, it is necessary to start the power compensation at the time point of 17 × t0, so as to ensure that the power compensation is completed at the time point of 20 × t0, so that the power emitted by the whole machine at the time point of 20 × t0 is kept unchanged, and the communication efficiency is improved.
In summary, the embodiments of the present invention can perform power compensation on the conducted transmitting power or the conducted receiving power of the target antenna in advance without changing hardware, so as to improve the problem of antenna performance degradation caused by antenna mutual coupling (e.g., the problem of stutter caused by sudden degradation of bluetooth antenna performance when a bluetooth headset is used to listen to music).
As shown in fig. 4, an embodiment of the present invention further provides an electronic device 40, where the electronic device 40 is an electronic device with multiple antennas, and includes:
a first obtaining module 41, configured to obtain, every first preset time interval, a working frequency band of an antenna other than a target antenna in the multiple antennas when the target antenna is in a working state;
a second obtaining module 42, configured to obtain a first difference between a first target antenna efficiency and a second target antenna efficiency according to a corresponding relationship between different working frequency bands of the other antennas and the target antenna efficiency, where the first target antenna efficiency is a target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
a first processing module 43, configured to perform power compensation on the conducted transmit power or the conducted receive power of the target antenna between the first time node and the second time node if the first difference is greater than a preset threshold.
Optionally, the first processing module 43 includes:
the first processing unit is used for determining a target power compensation value according to the first difference value and the preset threshold value;
and the second processing unit is used for performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node according to the target power compensation value.
Optionally, the target power compensation value is greater than or equal to a second difference between the preset threshold and the first difference, and the target power compensation value is less than or equal to the first difference.
Optionally, the second processing unit includes:
the first obtaining subunit is configured to determine a second duration according to the target power compensation value, where the second duration is a duration for performing power compensation on conducted transmit power or conducted receive power of the target antenna;
a first determining subunit, configured to determine, according to the second duration, a third time node between the first time node and the second time node, where the third time node is an initial time node for performing power compensation;
a first processing subunit, configured to complete power compensation for conducted transmit power or conducted receive power of the target antenna between the third time node and the second time node.
The electronic device 40 can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 3, and details are not described here for avoiding repetition.
In the above embodiment of the present invention, the second obtaining module 42 obtains the first difference between the first target antenna efficiency and the second target antenna efficiency according to the corresponding relationship between the different working frequency bands of other antennas and the target antenna efficiency, and the first processing module 43 performs power compensation on the conducted transmission power or the conducted reception power of the target antenna between the first time node and the second time node when the first difference is greater than the preset threshold, so as to effectively solve the problem of antenna performance degradation caused by mutual coupling among multiple antennas in the same electronic device, and improve communication quality.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device 500 for implementing various embodiments of the present invention, where the electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 510 is configured to:
under the condition that a target antenna is in a working state, obtaining working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length;
acquiring a first difference value between a first target antenna efficiency and a second target antenna efficiency according to the corresponding relation between different working frequency bands of other antennas and the target antenna efficiency, wherein the first target antenna efficiency is the target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
and performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node under the condition that the first difference is larger than a preset threshold value.
Therefore, the electronic device obtains a first difference value between a first target antenna efficiency and a second target antenna efficiency according to corresponding relations between different working frequency bands of other antennas and the target antenna efficiency, and performs power compensation on conducted transmitting power or conducted receiving power of the target antenna between the first time node and the second time node under the condition that the first difference value is larger than a preset threshold value, so that the problem of antenna performance reduction caused by mutual coupling among multiple antennas in the same electronic device is effectively solved, and the communication quality is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the power compensation method embodiment are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the power compensation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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.
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 invention 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 invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A power compensation method applied to an electronic device having a plurality of antennas, comprising:
under the condition that a target antenna is in a working state, obtaining working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length;
acquiring a first difference value between a first target antenna efficiency and a second target antenna efficiency according to the corresponding relation between different working frequency bands of other antennas and the target antenna efficiency, wherein the first target antenna efficiency is the target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
and performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node under the condition that the first difference is larger than a preset threshold value.
2. The method of claim 1, wherein the power compensating the conducted transmit power or the conducted receive power of the target antenna comprises:
determining a target power compensation value according to the first difference value and the preset threshold value;
and according to the target power compensation value, performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node.
3. The method of claim 2, wherein the target power compensation value is greater than or equal to a second difference between the preset threshold and the first difference, and the target power compensation value is less than or equal to the first difference.
4. The method of claim 2, wherein the power compensating conducted transmit power or conducted receive power of the target antenna between the first time node and the second time node according to the target power compensation value comprises:
determining a second time length according to the target power compensation value, wherein the second time length is the time length for performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna;
determining a third time node between the first time node and the second time node according to the second time length, wherein the third time node is an initial time node for performing power compensation;
completing power compensation for conducted transmit power or conducted receive power of the target antenna between the third time node and the second time node.
5. An electronic device, the electronic device being an electronic device having a plurality of antennas, comprising:
the first obtaining module is used for obtaining the working frequency bands of other antennas except the target antenna in the plurality of antennas at intervals of a first preset time length under the condition that the target antenna is in a working state;
a second obtaining module, configured to obtain a first difference between a first target antenna efficiency and a second target antenna efficiency according to a correspondence between different working frequency bands of the other antennas and the target antenna efficiency, where the first target antenna efficiency is a target antenna efficiency corresponding to the working frequency bands of the other antennas at a first time node; the second target antenna efficiency is the target antenna efficiency corresponding to the working frequency band of the other antenna at a second time node; the second time node is a time node after the first time node is separated by at least one first preset time length;
a first processing module, configured to perform power compensation on conducted transmit power or conducted receive power of the target antenna between the first time node and the second time node when the first difference is greater than a preset threshold.
6. The electronic device of claim 5, wherein the first processing module comprises:
the first processing unit is used for determining a target power compensation value according to the first difference value and the preset threshold value;
and the second processing unit is used for performing power compensation on the conducted transmitting power or the conducted receiving power of the target antenna between the first time node and the second time node according to the target power compensation value.
7. The electronic device of claim 6, wherein the target power compensation value is greater than or equal to a second difference between the preset threshold and the first difference, and wherein the target power compensation value is less than or equal to the first difference.
8. The electronic device of claim 6, wherein the second processing unit comprises:
the first obtaining subunit is configured to determine a second duration according to the target power compensation value, where the second duration is a duration for performing power compensation on conducted transmit power or conducted receive power of the target antenna;
a first determining subunit, configured to determine, according to the second duration, a third time node between the first time node and the second time node, where the third time node is an initial time node for performing power compensation;
a first processing subunit, configured to complete power compensation for conducted transmit power or conducted receive power of the target antenna between the third time node and the second time node.
9. An electronic device, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the power compensation method according to any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the power compensation method according to any one of claims 1 to 4.
CN202010402169.5A 2020-05-13 2020-05-13 Power compensation method and electronic equipment Active CN111585666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010402169.5A CN111585666B (en) 2020-05-13 2020-05-13 Power compensation method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010402169.5A CN111585666B (en) 2020-05-13 2020-05-13 Power compensation method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111585666A CN111585666A (en) 2020-08-25
CN111585666B true CN111585666B (en) 2022-04-19

Family

ID=72126573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010402169.5A Active CN111585666B (en) 2020-05-13 2020-05-13 Power compensation method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111585666B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017073509A1 (en) * 2015-10-26 2017-05-04 株式会社村田製作所 Switch module
CN108777741A (en) * 2018-05-23 2018-11-09 Oppo广东移动通信有限公司 antenna switching control method and related product
CN109039397A (en) * 2018-08-01 2018-12-18 维沃移动通信有限公司 A kind of antenna circuit of mobile terminal, control method and device
CN110460352A (en) * 2019-08-21 2019-11-15 维沃移动通信有限公司 Communication control method and relevant device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017073509A1 (en) * 2015-10-26 2017-05-04 株式会社村田製作所 Switch module
CN108777741A (en) * 2018-05-23 2018-11-09 Oppo广东移动通信有限公司 antenna switching control method and related product
CN109039397A (en) * 2018-08-01 2018-12-18 维沃移动通信有限公司 A kind of antenna circuit of mobile terminal, control method and device
CN110460352A (en) * 2019-08-21 2019-11-15 维沃移动通信有限公司 Communication control method and relevant device

Also Published As

Publication number Publication date
CN111585666A (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN110149132B (en) Transmitting antenna switching method and terminal equipment
CN110891305B (en) Power control device and method and electronic equipment
CN111835488B (en) Method for determining mapping of antenna port and terminal
CN111565078B (en) Channel detection method in frequency division duplex mode, radio frequency circuit and electronic equipment
CN109587789B (en) Random access method, mobile terminal and network equipment
CN110289885B (en) Antenna tuning method and terminal
US20220131636A1 (en) Transmission antenna switching method and terminal device
CN110753389A (en) Network control method and electronic equipment
CN110399000B (en) Mobile terminal and temperature control method thereof
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN108832297B (en) Antenna working method and mobile terminal
CN110336623B (en) Power detection method and device and mobile terminal
CN111417185A (en) Transmission power control method and related equipment
CN111093137B (en) Volume control method, volume control equipment and computer readable storage medium
CN110557166B (en) Communication circuit adjusting method and terminal
CN109698711B (en) Radio frequency module and terminal equipment
CN109743141B (en) Data transmission adjusting method and terminal equipment
CN108879856B (en) Charging method and terminal
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN110086483B (en) Communication control method and terminal
CN109450508B (en) Antenna determination method and device and mobile terminal
CN109067429B (en) Control method and terminal equipment
CN115037831B (en) Mode control method and device, electronic equipment and earphone
CN111585666B (en) Power compensation method and electronic equipment
CN110381491B (en) Signal transmission method and terminal

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
GR01 Patent grant
GR01 Patent grant