WO2023155595A1 - Power calibration method for maximum power fluctuation, terminal device, and storage medium - Google Patents

Power calibration method for maximum power fluctuation, terminal device, and storage medium Download PDF

Info

Publication number
WO2023155595A1
WO2023155595A1 PCT/CN2022/141279 CN2022141279W WO2023155595A1 WO 2023155595 A1 WO2023155595 A1 WO 2023155595A1 CN 2022141279 W CN2022141279 W CN 2022141279W WO 2023155595 A1 WO2023155595 A1 WO 2023155595A1
Authority
WO
WIPO (PCT)
Prior art keywords
power
equal
pmax
offset value
current calibration
Prior art date
Application number
PCT/CN2022/141279
Other languages
French (fr)
Chinese (zh)
Inventor
冯红旗
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023155595A1 publication Critical patent/WO2023155595A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • H04B17/13Monitoring; Testing of transmitters for calibration of power amplifiers, e.g. gain or non-linearity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/21Monitoring; Testing of receivers for calibration; for correcting measurements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of terminal equipment, in particular to a power calibration method for maximum power fluctuation, terminal equipment and a storage medium.
  • the current mainstream calibration algorithm based on the power of terminal equipment taking the leading Q chip platform company in the industry as an example, as shown in Figure 1, is a mainstream calibration flow chart based on the power of terminal equipment.
  • the obvious defect is that before calibration, it is necessary to find and set the initial automatic gain control (Auto Gain Control, AGC) scanning maximum value n, which needs to meet the requirement that the output power is greater than the maximum power of 3dB. margin; but the process of finding this n0 value is cumbersome, which affects the calibration efficiency.
  • AGC Automatic Gain Control
  • Embodiments of the present application provide a power calibration method for maximum power fluctuation, a terminal device, and a storage medium.
  • the first aspect of the present application provides a power calibration method for maximum power fluctuation, including:
  • the second aspect of the present application provides a terminal device, including:
  • the setting module is used to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, and n takes 0;
  • a test module configured to test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value
  • a recording module configured to record the power value corresponding to n being 0 and write it into the specified terminal when the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value equipment;
  • the test module is further configured to, when the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and the test n is n+1 Whether the current calibration power P is greater than or equal to the sum of the Pmax and the first offset value;
  • the recording module is further configured to record n from 0 to n+1 when the current calibration power P of n is greater than or equal to the sum of the Pmax and the first offset value.
  • the power value corresponding to each n is written into the designated terminal device.
  • the third aspect of the present application provides a terminal device, including instructions, which, when run on a processor, cause the terminal device to execute the method described in the first aspect of the present application.
  • Still another aspect of the embodiments of the present application discloses a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the method described in the first aspect of the present application.
  • an application distribution platform is used to distribute computer program products, wherein, when the computer program products are run on a computer, the computer is made to execute the first aspect of the application the method described.
  • Figure 1 is a flow chart of mainstream calibration based on the power of terminal equipment
  • FIG. 2 is a schematic diagram of an embodiment of a power calibration method for maximum power fluctuation in the embodiment of the present application
  • FIG. 3 is a schematic flowchart of a power calibration method for maximum power fluctuations in an embodiment of the present application
  • FIG. 4 is a schematic diagram of another embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application.
  • FIG. 5 is a schematic flow chart of a power calibration method for maximum power fluctuations in an embodiment of the present application
  • FIG. 6 is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application.
  • Fig. 7 is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application.
  • the embodiment of the present application provides a power calibration method for maximum power fluctuation, a terminal device and a storage medium, which are used to improve the calibration efficiency by scanning from the minimum AGC value to the AGC value that meets the maximum power requirement, and can Meet the compliance indicators of the maximum power of different terminal equipment.
  • this n0 value found by one or some individuals, in the process of mass production, the reserved 3dB margin cannot be used for power fluctuations and differences caused by individual differences. Ensure that all terminals of the same type meet the calibration requirements, or this n0 value is too high for some individuals, and there is a risk of burning the front-end power amplifier (Power Amplifier, PA); or this n0 value is too high for some individuals If it is too low, the maximum output power of the terminal is insufficient, which does not meet the compliance index requirements.
  • Power Amplifier, PA Power Amplifier
  • FIG. 2 it is a schematic diagram of an embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application, which may include:
  • the method may further include: when the current calibration power P where the n is 0 is greater than or equal to the sum of the Pmax and the first offset value, setting the current calibration power P corresponding to 0 for the n
  • the calibration power P is used as the maximum power of the designated terminal equipment.
  • n is n+1, and it is tested whether the current calibration power P where n is n+1 is greater than equal to the sum of the Pmax and the first offset value.
  • the method may further include: when the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value, setting n to n+1 The current calibration power P corresponding to 1 is used as the maximum power of the specified terminal device.
  • the method may also include:
  • n is n+1 again, and the current calibration power P of n+1 is used for testing n Whether it is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value, Record the power value corresponding to each n starting from 0 to n+1 and write it into the designated terminal device.
  • the method may also include:
  • n is n+1 again, and the current calibration power of n+1 is again tested for n Whether P is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P of the n+1 is greater than or equal to the sum of the Pmax and the first offset value , record the power value corresponding to each n starting from 0 to n+1 and write it into the designated terminal device.
  • FIG. 3 it is a schematic flowchart of a power calibration method for maximum power fluctuation in an embodiment of the present application.
  • the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment is set, and the automatic gain control AGC scan initial value n of the radio frequency transceiver chip RFIC is set, and n is set to 0; Whether the calibration power P is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value, record n Take the power value corresponding to 0 and write it into the designated terminal device; in the case where the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, Test whether the current calibration power P where n is n+1 is greater than or equal to the sum of the Pmax and the first offset value; when the current calibration power P where n is n+1 is greater than or equal to the Pmax and the first offset value In the case of a sum of offset values, record the power value corresponding
  • the calibration efficiency is improved, and the compliance index of the maximum power of different terminal equipment can be met. It overcomes the steps that the original algorithm needs to find the n0 value, which improves the calibration efficiency; overcomes the problem that the original algorithm’s n0 value is too large for some motherboards and may burn the power amplifier (Power Amplifier, PA); overcomes the original algorithm’s n0 The value is too small for some motherboards, resulting in too small terminal output power, resulting in the problem that the maximum power compliance index cannot be met.
  • this application innovatively proposes a power calibration scheme that can cover the maximum power difference of different main boards, which is different from the current original calibration method, by scanning from the minimum AGC value to the AGC value that meets the maximum power requirement, to improve It improves the efficiency and eliminates the two risks of the previous algorithm.
  • FIG. 4 it is a schematic diagram of another embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application, which may include:
  • the determination of the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC may include:
  • n takes the current calibration power of the second scan initial value n2, greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first an offset value smaller than the second offset value, the second offset value smaller than the third offset value;
  • the The second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC;
  • the current calibration power of the second scan initial value n2 for the n is not satisfied, it is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value
  • the n is n2+1, and it is tested whether the current calibration power of n is n2+1 is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value;
  • the n2+1 is used as the The first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  • the maximum power upper limit of a certain calibration frequency band of the specified terminal equipment is set as Pmax
  • the minimum power lower limit Pmin of the first calibration frequency band is set
  • the radio frequency transceiver chip Radio Frequency Integrated Circuits, RFIC
  • the embodiment of the present application can improve the initial AGC setting value, that is, it is not necessary to start the calibration scan from the minimum value of 0, and only need to meet the minimum AGC value to meet the requirements of the calibration minimum power. If it is too high, there will be problems of burning PA or too small compliance index, so the range that can be set is more flexible and the range is relatively wide. You can set a margin of about 6dB on the basis of the set minimum calibration power. This margin is enough to cover power fluctuations between different terminal devices.
  • first offset value, the second offset value and the third offset value in the present application can be adjusted according to actual conditions, and are not specifically limited in the present application.
  • the first offset value is 0, and the test whether the current calibration power P whose n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
  • P is greater than or equal to the sum of the Pmax and the first offset value
  • the current calibration power P of n is 0 is less than the set In the case of the sum of the Pmax and the first offset value
  • n is n+1, and whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the offset value
  • the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the offset value
  • record the power value corresponding to each n from 0 to n+1 and write it into the designated terminal device
  • the following 402-405 steps can be included as follows:
  • n1 is 21.
  • n takes the initial value n1 of the first scan and the current calibration power P is greater than or equal to the Pmax
  • record n takes the power value corresponding to the initial value n1 of the first scan and writes it into the specified Terminal Equipment.
  • the method may further include: in the case that the current calibration power P of the n being n1 is greater than or equal to the Pmax, using the current calibration power P corresponding to the n being n1 as the specified terminal device Maximum power.
  • n is n+1 and the current calibration power P is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the specified terminal device.
  • the method may further include: in the case that the current calibration power P of the n being n+1 is greater than or equal to the Pmax, using the current calibration power P corresponding to the n being n+1 as the Specifies the maximum power of the end device.
  • the first scan initial value n1 may be used as the initial scan minimum value to calibrate the power of other terminal devices of the same type.
  • Other terminal devices of the same type do not need to determine the initial scan minimum value, which improves calibration efficiency.
  • step 406 is an optional step.
  • FIG. 5 it is a schematic flowchart of a power calibration method for maximum power fluctuation in an embodiment of the present application.
  • the embodiment of the present application can improve the initial AGC setting value, that is, it is not necessary to start the calibration scan from the minimum value of 0, and only need to meet the minimum AGC value to meet the requirements of the calibration minimum power. If it is too high, there will be problems of burning PA or too small compliance index, so the range that can be set is more flexible and the range is relatively wide. You can set a margin of about 6dB on the basis of the set minimum calibration power.
  • the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment is set, the minimum power lower limit Pmin of the first calibration frequency band is set, and the automatic gain control AGC of the radio frequency transceiver chip RFIC is determined.
  • a scanning initial value n1 the first value n1 is greater than 0 and less than the preset maximum scanning initial value; test whether n takes the current calibration power P of the first scanning initial value n1 greater than or equal to the Pmax; In the case that the current calibration power P of the first scan initial value n1 is greater than or equal to the Pmax, record n takes the power value corresponding to the first scan initial value n1 and writes it into the designated terminal device; In the case where the current calibration power P of the first scan initial value n1 is less than the Pmax, n is n+1, and the current calibration power P of n is n+1 is tested to be greater than or equal to the Pmax; In the case that the current calibration power P of n+1 is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the designated terminal device.
  • the first scanning initial value n1 is used as the initial scanning minimum value to calibrate the power of other terminal devices of the same type.
  • the calibration efficiency is improved, and the compliance index of the maximum power of different terminal equipment can be met. It overcomes the steps that the original algorithm needs to find the n0 value, which improves the calibration efficiency; overcomes the problem that the original algorithm’s n0 value is too large for some motherboards and may burn the power amplifier (Power Amplifier, PA); overcomes the original algorithm’s n0
  • the value is too small for some motherboards, resulting in too small terminal output power, resulting in the problem that the maximum power compliance index cannot be met.
  • this application innovatively proposes a method that can cover the maximum power of different motherboards.
  • the power calibration scheme of power difference is different from the current original calibration method.
  • FIG. 6 it is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application, which may include:
  • the setting module 601 is used to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, n is 0;
  • a testing module 602 configured to test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
  • a recording module 603, configured to record the power value corresponding to n taking 0 and write the specified Terminal Equipment
  • the testing module 602 is further configured to: when the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and the current calibration power P where n is n+1 is tested. Whether the calibration power P is greater than or equal to the sum of the Pmax and the first offset value;
  • the power values corresponding to n are written into the designated terminal device.
  • the setting module 601 is also used to set the minimum power lower limit Pmin of the first calibration frequency band; determine the first scan initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC, the first value n1 Greater than 0, less than the preset maximum scan initial value;
  • the test module 602 is also used for the first offset value to be 0, to test whether the current calibration power P whose n takes the first scanning initial value n1 is greater than or equal to the Pmax;
  • the recording module 603 is further configured to record the power value corresponding to n taking the first scanning initial value n1 and write to said specified terminal device;
  • the testing module 602 is also used for testing the current calibration power P where n is n+1 when the current calibration power P of the first scan initial value n1 is smaller than the Pmax. Whether it is greater than or equal to the Pmax;
  • the recording module 603 is also used to record the power value corresponding to each n of n from n1 to n+1 when the current calibration power P of n is n+1 is greater than or equal to the Pmax, and write the Specify the terminal device described above.
  • the setting module 601 is specifically used to set the second scan initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC; test whether n takes the current calibration power of the second scan initial value n2, Greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first offset value is smaller than the second offset value, and the second offset value The offset value is less than the third offset value; the current calibration power of the second scan initial value n2 is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the first offset value.
  • the second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  • the setting module 601 is specifically further configured to take the current calibration power of the second scan initial value n2 as the n to be unsatisfactory, be greater than or equal to the difference between the Pmin and the second offset value, and be less than or equal to In the case of the difference between the Pmin and the third offset value, the n is n+1, and it is tested whether the current calibration power of n is n+1 is greater than or equal to the difference between the Pmin and the second offset value, and less than It is equal to the difference between the Pmin and the third offset value; when n takes n+1, the current calibration power is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value If it is not good, the n+1 is used as the initial value n1 of the first scan of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  • the recording module 603 is further configured to use the first scan initial value n1 as the initial scan minimum value to calibrate the power of other terminal devices of the same type.
  • the testing module 602 is further configured to, when the current calibration power P where n is n+1 is less than the sum of the Pmax and the first offset value, n is again n+1, and the test n and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value;
  • the recording module 603 is also used to record n from 0 to n+1 when the current calibration power P of n is greater than or equal to the sum of the Pmax and the first offset value.
  • the power value corresponding to each n is written into the designated terminal device.
  • the recording module 603 is further configured to set the current calibration power P corresponding to 0 for n to be greater than or equal to the sum of the Pmax and the first offset value.
  • the calibration power P is used as the maximum power of the specified terminal equipment;
  • the recording module 603 is further configured to set the current calibration power P corresponding to n to n+1 when the n is equal to or greater than the sum of the Pmax and the first offset value.
  • the calibration power P is used as the maximum power of the designated terminal equipment.
  • FIG. 7 it is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application, which may include:
  • Fig. 7 shows a block diagram of a partial structure of a mobile phone related to the wireless terminal provided by the embodiment of the present invention.
  • the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (wireless fidelity, Wi-Fi) module 770, a processing Device 780, and power supply 790 and other components.
  • RF Radio Frequency
  • the RF circuit 710 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 780; in addition, the designed uplink data is sent to the base station.
  • the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like.
  • RF circuitry 710 may also communicate with networks and other devices via wireless communications.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile Communication
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720 .
  • the memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc.
  • the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
  • the input unit 730 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone.
  • the input unit 730 may include a touch panel 731 and other input devices 732 .
  • the touch panel 731 also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 731 or near the touch panel 731). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 731 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 780, and can receive and execute commands sent by the processor 780.
  • the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the input unit 730 may also include other input devices 732 .
  • other input devices 732 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
  • the display unit 740 may be used to display information input by or provided to the user and various menus of the mobile phone.
  • the display unit 740 may include a display panel 741.
  • the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it transmits to the processor 780 to determine the type of the touch event, and then the processor 780 determines the type of the touch event according to the The type provides a corresponding visual output on the display panel 741 .
  • the touch panel 731 and the display panel 741 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
  • the handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and/or when the mobile phone is moved to the ear. or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
  • the audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 780, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
  • Wi-Fi is a short-distance wireless transmission technology.
  • the mobile phone can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 770. It provides users with wireless broadband Internet access.
  • FIG. 7 shows a Wi-Fi module 770, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
  • the processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 720, and calling data stored in the memory 720, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole.
  • the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 780 .
  • the mobile phone also includes a power supply 790 (such as a battery) for supplying power to each component.
  • a power supply 790 (such as a battery) for supplying power to each component.
  • the power supply can be logically connected to the processor 780 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.
  • the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
  • the processor 780 is configured to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, where n is 0; Test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value; the current calibration power P where the n is 0 is greater than or equal to the sum of the Pmax and the first offset value In the case of , record the power value corresponding to n taking 0 and write it into the specified terminal device; when the current calibration power P of n taking 0 is less than the sum of the Pmax and the first offset value, When n is n+1, test whether the current calibration power P of n being n+1 is greater than or equal to the sum of the Pmax and the first offset value; when the current calibration power P of n being n+1 is greater than or equal to the In the case of the sum of the Pmax and the first
  • the processor 780 is also used to set the minimum power lower limit Pmin of the first calibration frequency band; determine the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC, and the first value n1 is greater than 0, less than the preset maximum scanning initial value; the first offset value is 0, testing whether the current calibration power P of n taking the first scanning initial value n1 is greater than or equal to the Pmax; In the case that the current calibration power P of a scan initial value n1 is greater than or equal to the Pmax, record n takes the power value corresponding to the first scan initial value n1 and writes it into the designated terminal device; When the current calibration power P of the first scanning initial value n1 is less than the Pmax, n is n+1, and the current calibration power P of n+1 is tested to be greater than or equal to the Pmax; when the n is n+ When the current calibration power P of 1 is greater than or equal to the Pmax, record the power value corresponding to each n from
  • the processor 780 is specifically configured to set the second scan initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC; test whether the current calibration power of the second scan initial value n2 is greater than equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first offset value is smaller than the second offset value, and the second offset The value is less than the third offset value; the current calibration power of the second scanning initial value n2 in the n is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third In the case of the difference of offset values, the second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  • the processor 780 is specifically further configured to take the current calibration power of the second scanning initial value n2 as the n being not satisfied, be greater than or equal to the difference between the Pmin and the second offset value, and be less than or equal to the specified
  • the n is n+1, and the current calibration power of n+1 is tested to be greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to The difference between the Pmin and the third offset value; when n takes n+1, the current calibration power is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value
  • the n+1 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  • the processor 780 is further configured to use the first scan initial value n1 as the initial scan minimum value to calibrate the power of other terminal devices of the same model.
  • the processor 780 is further configured to, when the current calibration power P where n is n+1 is less than the sum of the Pmax and the first offset value, n is again n+1, and the test n and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value; and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the In the case of the sum of the first offset values, the power value corresponding to each n starting from 0 to n+1 is recorded and written into the designated terminal device.
  • the processor 780 is further configured to set the current calibration power P corresponding to 0 for n to be greater than or equal to the sum of the Pmax and the first offset value.
  • the calibration power P is used as the maximum power of the designated terminal device; when the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the first offset value, the n is taken as The current calibration power P corresponding to n+1 is used as the maximum power of the designated terminal device.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
  • a magnetic medium such as a floppy disk, a hard disk, or a magnetic tape
  • an optical medium such as a DVD
  • a semiconductor medium such as a solid state disk (Solid State Disk, SSD)
  • the disclosed system, device and method can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electromagnetism (AREA)
  • Nonlinear Science (AREA)
  • Circuits Of Receivers In General (AREA)
  • Transmitters (AREA)

Abstract

Disclosed in embodiments of the present application are a power calibration method for maximum power fluctuation, a terminal device, and a storage medium. The method in the embodiments of the present application comprises: setting a maximum power upper limit Pmax of a first calibration frequency band of a specified terminal device, and setting an automatic gain control (AGC) scanning initial value n of a radio frequency transceiver chip RFIC, n being 0; testing whether the current calibration power P when n is 0 is greater than or equal to a sum of Pmax and a first offset value; if yes, recording a power value corresponding to n being 0 and writing the power value into the specified terminal device; if not, n being n+1, and testing whether the current calibration power P when n is n+1 is greater than or equal to the sum of Pmax and the first offset value; and if yes, recording the power value corresponding to each n from 0 to n+1, and writing the power value into the specified terminal device.

Description

最大功率波动的功率校准方法、终端设备及存储介质Power calibration method for maximum power fluctuation, terminal equipment and storage medium
本申请要求于2022年02月21日提交、申请号为202210155581.0、发明名称为“最大This application is required to be submitted on February 21, 2022, the application number is 202210155581.0, and the title of the invention is "the largest 功率波动的功率校准方法,终端设备及存储介质”的中国专利申请的优先权,其全部内容Power Calibration Method for Power Fluctuation, Terminal Equipment and Storage Medium” Chinese patent application priority, its entire content 通过引用结合在本申请中。Incorporated in this application by reference.
技术领域technical field
本申请涉及终端设备领域,尤其涉及一种最大功率波动的功率校准方法,终端设备及存储介质。The present application relates to the field of terminal equipment, in particular to a power calibration method for maximum power fluctuation, terminal equipment and a storage medium.
背景技术Background technique
目前基于终端设备的功率的主流校准算法,以业界的龙头Q芯片平台公司为例,如图1所示,为基于终端设备的功率的主流校准流程图。The current mainstream calibration algorithm based on the power of terminal equipment, taking the leading Q chip platform company in the industry as an example, as shown in Figure 1, is a mainstream calibration flow chart based on the power of terminal equipment.
对于上述的校准方式,存在的明显的缺陷在于,校准之前必须去找到并设定初始的自动增益控制(Auto Gain Control,AGC)扫描最大值n,这个最大值需要满足输出功率大于最大功率3dB的余量;但是找这个n0值的过程繁琐,影响校准效率。For the above-mentioned calibration method, the obvious defect is that before calibration, it is necessary to find and set the initial automatic gain control (Auto Gain Control, AGC) scanning maximum value n, which needs to meet the requirement that the output power is greater than the maximum power of 3dB. margin; but the process of finding this n0 value is cumbersome, which affects the calibration efficiency.
发明内容Contents of the invention
本申请实施例提供了一种最大功率波动的功率校准方法,终端设备及存储介质。Embodiments of the present application provide a power calibration method for maximum power fluctuation, a terminal device, and a storage medium.
本申请第一方面提供一种最大功率波动的功率校准方法,包括:The first aspect of the present application provides a power calibration method for maximum power fluctuation, including:
设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;Set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scan initial value n of the radio frequency transceiver chip RFIC, n is taken as 0;
测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;Test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;In the case where the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to n being 0 and write it into the designated terminal device;
在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;In the case where the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and it is tested whether the current calibration power P where n is n+1 is greater than or equal to the The sum of the Pmax and the first offset value;
在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to each n of n starting from 0 to n+1 and Write to the specified terminal device.
本申请第二方面提供一种终端设备,包括:The second aspect of the present application provides a terminal device, including:
设定模块,用于设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;The setting module is used to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, and n takes 0;
测试模块,用于测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;A test module, configured to test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
记录模块,用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;A recording module, configured to record the power value corresponding to n being 0 and write it into the specified terminal when the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value equipment;
所述测试模块,还用于在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;The test module is further configured to, when the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and the test n is n+1 Whether the current calibration power P is greater than or equal to the sum of the Pmax and the first offset value;
所述记录模块,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module is further configured to record n from 0 to n+1 when the current calibration power P of n is greater than or equal to the sum of the Pmax and the first offset value. The power value corresponding to each n is written into the designated terminal device.
本申请第三方面提供一种终端设备,包括指令,当其在处理器上运行时,使得所述终端设备执行本申请第一方面所述的方法。The third aspect of the present application provides a terminal device, including instructions, which, when run on a processor, cause the terminal device to execute the method described in the first aspect of the present application.
本申请实施例又一方面公开一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本申请第一方面所述的方法。Still another aspect of the embodiments of the present application discloses a computer program product, which, when the computer program product is run on a computer, causes the computer to execute the method described in the first aspect of the present application.
本申请实施例又一方面公开一种应用发布平台,所述应用发布平台用于发布计算机程序产品,其中,当所述计算机程序产品在计算机上运行时,使得所述计算机执行本申请第一方面所述的方法。Yet another aspect of the embodiments of the present application discloses an application distribution platform, the application distribution platform is used to distribute computer program products, wherein, when the computer program products are run on a computer, the computer is made to execute the first aspect of the application the method described.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和有益效果将从说明书、附图以及权利要求书中体现。The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below. Other features and beneficial effects of the present application will appear from the description, drawings and claims.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the accompanying drawings that need to be used in the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为基于终端设备的功率的主流校准流程图;Figure 1 is a flow chart of mainstream calibration based on the power of terminal equipment;
图2为本申请实施例中最大功率波动的功率校准方法的一个实施例示意图;FIG. 2 is a schematic diagram of an embodiment of a power calibration method for maximum power fluctuation in the embodiment of the present application;
图3为本申请实施例中最大功率波动的功率校准方法的流程示意图;FIG. 3 is a schematic flowchart of a power calibration method for maximum power fluctuations in an embodiment of the present application;
图4为本申请实施例中最大功率波动的功率校准方法的另一个实施例示意图;FIG. 4 is a schematic diagram of another embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application;
图5为本申请实施例中最大功率波动的功率校准方法的流程示意图;FIG. 5 is a schematic flow chart of a power calibration method for maximum power fluctuations in an embodiment of the present application;
图6为本申请实施例中一种终端设备的一个实施例示意图;FIG. 6 is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application;
图7为本申请实施例中电子设备的另一个实施例示意图。Fig. 7 is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种最大功率波动的功率校准方法,终端设备及存储介质,用于通过从最小的AGC值扫描到满足最大功率要求的AGC值的方式,提高了校准效率,而且,可以满足不同终端设备最大功率的合规性指标。The embodiment of the present application provides a power calibration method for maximum power fluctuation, a terminal device and a storage medium, which are used to improve the calibration efficiency by scanning from the minimum AGC value to the AGC value that meets the maximum power requirement, and can Meet the compliance indicators of the maximum power of different terminal equipment.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiment of the application will be described below in conjunction with the drawings in the embodiment of the application. Obviously, the described embodiment is only a part of the application Examples, but not all examples. Based on the embodiments in this application, all should belong to the protection scope of this application.
在现有技术中,设定指定终端设备的某个校准频段的最大功率上限Pmax,比如Pmax=23dBm;按照最大功率上限设定射频芯片(Radio Frequency Integrated Circuits,RFIC)的最大扫描AGC初始值n。对于不同的AGC值,对应不同的校准输出功率。由于不同的终端射频通路的损耗不一样,所以AGC值和最终的输出功率没有固定的对应关系,但表现为AGC值越大,最终的输出功率越大的线性关系,一般可以设定初始值n=50左右;In the prior art, set the maximum power upper limit Pmax of a certain calibration frequency band of the specified terminal equipment, such as Pmax=23dBm; set the maximum scan AGC initial value n of the radio frequency chip (Radio Frequency Integrated Circuits, RFIC) according to the maximum power upper limit . For different AGC values, corresponding to different calibration output power. Since the loss of the radio frequency path of different terminals is not the same, there is no fixed correspondence between the AGC value and the final output power, but it shows a linear relationship between the larger the AGC value and the larger the final output power. Generally, the initial value n can be set = about 50;
设定n=50去校准测试实际的输出功率P是否大于等于Pmax,并满足3dB的余量,也就是是否满足P≥Pmax+3;满足之后记录此时的n值(记为n0);如果满足所述的条件,则使用此时的AGC值即n0值去开始校准过程,从n0递减的方式扫描到0,步长为1;并记录n=n0到n=0所对应的具体的输出功率值,保存结果到终端设备。使用这个n0值去校准此同一型号的其他终端设备个体。Set n=50 to calibrate and test whether the actual output power P is greater than or equal to Pmax, and meet the 3dB margin, that is, whether P≥Pmax+3 is satisfied; after satisfying, record the n value at this time (denoted as n0); if If the above conditions are met, use the AGC value at this time, that is, the value of n0 to start the calibration process, scan from n0 to 0 in a decreasing manner, and the step size is 1; and record the specific output corresponding to n=n0 to n=0 Power value, save the result to the terminal device. Use this n0 value to calibrate other end-equipment individuals of the same model.
找这个n0值的过程繁琐,影响效率;通过一个或者部分个体找到的这个n0值,在大批量生产的过程中,由于个体的差异导致的功率波动和差异,预留的3dB的余量也不能保证同型号的所有终端满足校准要求,要么这个n0值对某些个体来说功率偏高,会有烧毁前端功率放大器(Power Amplifier,PA)的风险;要么这个n0值对某些个体来说功率偏低,导致终端的最大输出功率不足,不满足合规性指标要求。The process of finding this n0 value is cumbersome and affects efficiency; this n0 value found by one or some individuals, in the process of mass production, the reserved 3dB margin cannot be used for power fluctuations and differences caused by individual differences. Ensure that all terminals of the same type meet the calibration requirements, or this n0 value is too high for some individuals, and there is a risk of burning the front-end power amplifier (Power Amplifier, PA); or this n0 value is too high for some individuals If it is too low, the maximum output power of the terminal is insufficient, which does not meet the compliance index requirements.
下面以实施例的方式,对本申请技术方案做进一步的说明,如图2所示,为本申请实施例中最大功率波动的功率校准方法的一个实施例示意图,可以包括:The following is a further description of the technical solution of the present application in the form of an embodiment. As shown in FIG. 2, it is a schematic diagram of an embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application, which may include:
201、设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0。201. Set the maximum power upper limit Pmax of the first calibration frequency band of the designated terminal device, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, where n is set to 0.
设定指定终端设备的某个校准频段的最大功率上限为Pmax,还设定射频收发芯片(Radio Frequency Integrated Circuits,RFIC)的自动增益控制(Auto Gain Control,AGC)扫描初始值n,这里的n取最少值0。Set the maximum power limit of a certain calibration frequency band of the specified terminal equipment to Pmax, and also set the initial value n of the Auto Gain Control (AGC) scan of the RF transceiver chip (Radio Frequency Integrated Circuits, RFIC), where n Take the minimum value of 0.
202、测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和。202. Test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value.
示例性的,测试此时,n=0对应的当前校准功率P是否大于等于Pmax+第一偏移值。例如第一偏移值为3,可以判断此时n=0对应的当前校准功率P≥Pmax+3,还是P<Pmax+3。Exemplarily, it is tested at this time whether the current calibration power P corresponding to n=0 is greater than or equal to Pmax+the first offset value. For example, if the first offset value is 3, it can be determined whether the current calibration power corresponding to n=0 is P≥Pmax+3 or P<Pmax+3.
203、在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备。203. When the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to n being 0 and write it into the specified terminal device.
示例性的,如果n=0对应的当前校准功率P≥Pmax+3,则记录此时n=0对应的功率值并写入该指定终端设备。Exemplarily, if the current calibration power P≥Pmax+3 corresponding to n=0, record the power value corresponding to n=0 at this time and write it into the designated terminal device.
可选的,所述方法还可以包括:在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取0对应的当前校准功率P作为所述指定终端设备的最大功率。Optionally, the method may further include: when the current calibration power P where the n is 0 is greater than or equal to the sum of the Pmax and the first offset value, setting the current calibration power P corresponding to 0 for the n The calibration power P is used as the maximum power of the designated terminal equipment.
204、在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和。204. In the case where the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and it is tested whether the current calibration power P where n is n+1 is greater than equal to the sum of the Pmax and the first offset value.
示例性的,如果n=0对应的当前校准功率P<Pmax+3,则n=n+1=0+1=1,记录此时n=1对应的当前校准功率P≥Pmax+3,还是P<Pmax+3。Exemplarily, if the current calibration power P<Pmax+3 corresponding to n=0, then n=n+1=0+1=1, record the current calibration power P≥Pmax+3 corresponding to n=1 at this time, or P<Pmax+3.
205、在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。205. When the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the first offset value, record the power corresponding to each n of n starting from 0 to n+1 value and write to the specified terminal device.
示例性的,如果n=1对应的当前校准功率P≥Pmax+3,记录n=0和n=1分别对应的功率值并写入该指定终端设备。Exemplarily, if n=1 corresponds to the current calibration power P≥Pmax+3, record the power values corresponding to n=0 and n=1 respectively and write them into the designated terminal device.
可选的,所述方法还可以包括:在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。Optionally, the method may further include: when the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value, setting n to n+1 The current calibration power P corresponding to 1 is used as the maximum power of the specified terminal device.
可选的,所述方法还可以包括:Optionally, the method may also include:
在所述n取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再取n+1,测试n再取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;在所述n再取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n+1 is less than the sum of the Pmax and the first offset value, n is n+1 again, and the current calibration power P of n+1 is used for testing n Whether it is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value, Record the power value corresponding to each n starting from 0 to n+1 and write it into the designated terminal device.
示例性的,如果n=1对应的当前校准功率P<Pmax+3,则n=n+1=1+1=2,记录此时n=2对应的当前校准功率P≥Pmax+3,还是P<Pmax+3。如果n=2对应的当前校准功率P≥Pmax+3,记录n=0、n=1和n=2分别对应的功率值并写入该指定终端设备。Exemplarily, if the current calibration power P<Pmax+3 corresponding to n=1, then n=n+1=1+1=2, record the current calibration power P≥Pmax+3 corresponding to n=2 at this time, or P<Pmax+3. If the current calibration power P≥Pmax+3 corresponding to n=2, record the power values corresponding to n=0, n=1 and n=2 respectively and write them into the designated terminal device.
可选的,所述方法还可以包括:Optionally, the method may also include:
在所述n再取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再次取n+1,测试n再次取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;在所述n再次取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n+1 is less than the sum of the Pmax and the first offset value, n is n+1 again, and the current calibration power of n+1 is again tested for n Whether P is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P of the n+1 is greater than or equal to the sum of the Pmax and the first offset value , record the power value corresponding to each n starting from 0 to n+1 and write it into the designated terminal device.
示例性的,如果n=2对应的当前校准功率P<Pmax+3,则n=n+1=2+1=2,记录此时n=3对应的当前校准功率P≥Pmax+3,还是P<Pmax+3。如果n=3对应的当前校准功率P≥Pmax+3,记录n=0、n=1、n=2和n=3分别对应的功率值并写入该指定终端设备。Exemplarily, if the current calibration power P<Pmax+3 corresponding to n=2, then n=n+1=2+1=2, record the current calibration power P≥Pmax+3 corresponding to n=3 at this time, or P<Pmax+3. If the current calibration power P≥Pmax+3 corresponding to n=3, record the power values corresponding to n=0, n=1, n=2 and n=3 respectively and write them into the specified terminal device.
示例性的,如图3所示,为本申请实施例中最大功率波动的功率校准方法的流程示意 图。设定指定终端设备的某个校准频段的最大功率上限Pmax;设定RFIC的AGC输出扫描初始值为最小值0;从最小值0开始,步长step=1,依次增加AGC的值n,并记录每个n值对应的校准功率值;当n值对应的功率值大于等于Pmax值3dB时,校准停止。记录AGC值从0到最大对应的功率校准值,最终结果写入终端设备。Exemplarily, as shown in FIG. 3 , it is a schematic flowchart of a power calibration method for maximum power fluctuation in an embodiment of the present application. Set the maximum power upper limit Pmax of a certain calibration frequency band of the specified terminal equipment; set the initial value of the AGC output scan of the RFIC to the minimum value of 0; start from the minimum value of 0, the step size step=1, increase the value n of AGC in turn, and Record the calibration power value corresponding to each n value; when the power value corresponding to the n value is greater than or equal to the Pmax value 3dB, the calibration stops. Record the power calibration value corresponding to the AGC value from 0 to the maximum, and write the final result to the terminal device.
在本申请实施例中,设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。通过从最小的AGC值扫描到满足最大功率要求的AGC值的方式,提高了校准效率,而且,可以满足不同终端设备最大功率的合规性指标。克服了原始算法需要找n0值的步骤,提高了校准效率;克服了原始算法的n0值对某些主板来讲过大可能烧毁功率放大器(Power Amplifier,PA)的问题;克服了原始算法的n0值对某些主板来讲过小造成终端输出功率过小,导致不能满足最大功率合规性指标的问题。即本申请创新性的提出了一种能覆盖到不同主板最大功率差异的功率校准方案,区别于当前原始的校准方式,通过从最小的AGC值扫描到满足最大功率要求的AGC值的方式,提高了效率,消除了之前算法的两个风险。In the embodiment of this application, the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment is set, and the automatic gain control AGC scan initial value n of the radio frequency transceiver chip RFIC is set, and n is set to 0; Whether the calibration power P is greater than or equal to the sum of the Pmax and the first offset value; in the case where the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value, record n Take the power value corresponding to 0 and write it into the designated terminal device; in the case where the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, Test whether the current calibration power P where n is n+1 is greater than or equal to the sum of the Pmax and the first offset value; when the current calibration power P where n is n+1 is greater than or equal to the Pmax and the first offset value In the case of a sum of offset values, record the power value corresponding to each n from 0 to n+1 of n and write it into the specified terminal device. By scanning from the minimum AGC value to the AGC value that meets the maximum power requirement, the calibration efficiency is improved, and the compliance index of the maximum power of different terminal equipment can be met. It overcomes the steps that the original algorithm needs to find the n0 value, which improves the calibration efficiency; overcomes the problem that the original algorithm’s n0 value is too large for some motherboards and may burn the power amplifier (Power Amplifier, PA); overcomes the original algorithm’s n0 The value is too small for some motherboards, resulting in too small terminal output power, resulting in the problem that the maximum power compliance index cannot be met. That is to say, this application innovatively proposes a power calibration scheme that can cover the maximum power difference of different main boards, which is different from the current original calibration method, by scanning from the minimum AGC value to the AGC value that meets the maximum power requirement, to improve It improves the efficiency and eliminates the two risks of the previous algorithm.
如图4所示,为本申请实施例中最大功率波动的功率校准方法的另一个实施例示意图,可以包括:As shown in Figure 4, it is a schematic diagram of another embodiment of the power calibration method for maximum power fluctuation in the embodiment of the present application, which may include:
401、设定指定终端设备的第一校准频段的最大功率上限Pmax,设定所述第一校准频段的最小功率下限Pmin,以及确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值。401. Set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal device, set the minimum power lower limit Pmin of the first calibration frequency band, and determine the first scan initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC , the first value n1 is greater than 0 and less than a preset maximum scanning initial value.
可选的,所述确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,可以包括:Optionally, the determination of the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC may include:
设定所述射频收发芯片RFIC的自动增益控制AGC的第二扫描初始值n2;Setting the second scanning initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC;
测试n取所述第二扫描初始值n2的当前校准功率是否,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差,所述第一偏移值小于所述第二偏移值,所述第二偏移值小于所述第三偏移值;Test whether n takes the current calibration power of the second scan initial value n2, greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first an offset value smaller than the second offset value, the second offset value smaller than the third offset value;
在所述n取所述第二扫描初始值n2的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述第二扫描初始值n2作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1;In the case where the current calibration power of the second scanning initial value n2 of the n is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value, the The second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC;
在所述n取所述第二扫描初始值n2的当前校准功率不满足,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,所述n取n2+1,测试n取n2+1的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差;When the current calibration power of the second scan initial value n2 for the n is not satisfied, it is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value Next, the n is n2+1, and it is tested whether the current calibration power of n is n2+1 is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value;
在n取n2+1的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述n2+1作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。In the case that the current calibration power of n2+1 is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the n2+1 is used as the The first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
示例性的,设定指定终端设备的某个校准频段的最大功率上限为Pmax,设定所述第一校准频段的最小功率下限Pmin,还设定射频收发芯片(Radio Frequency Integrated Circuits,RFIC)的自动增益控制(Auto Gain Control,AGC)扫描初始值n2,这里的n2例如取20, 第二偏移值取7,第三偏移值取6。测试n=20对应的当前校准功率P,是否满足Pmin-7≤P≤Pmin-6。Exemplarily, the maximum power upper limit of a certain calibration frequency band of the specified terminal equipment is set as Pmax, the minimum power lower limit Pmin of the first calibration frequency band is set, and the radio frequency transceiver chip (Radio Frequency Integrated Circuits, RFIC) is also set. The automatic gain control (Auto Gain Control, AGC) scans the initial value n2, where n2 is 20, for example, the second offset value is 7, and the third offset value is 6. Test whether the current calibration power P corresponding to n=20 satisfies Pmin-7≤P≤Pmin-6.
如果n=20对应的当前校准功率P,满足Pmin-7≤P≤Pmin-6,则将n=20作为第一扫描初始值n1。如果n=20对应的当前校准功率P,不满足Pmin-7≤P≤Pmin-6,则取n=n+1=20+1=21,测试n=21对应的当前校准功率P,是否满足Pmin-7≤P≤Pmin-6。If the current calibration power P corresponding to n=20 satisfies Pmin-7≤P≤Pmin-6, then n=20 is taken as the initial value n1 of the first scan. If the current calibration power P corresponding to n=20 does not satisfy Pmin-7≤P≤Pmin-6, then take n=n+1=20+1=21, and test whether the current calibration power P corresponding to n=21 satisfies Pmin-7≤P≤Pmin-6.
如果n=21对应的当前校准功率P,满足Pmin-7≤P≤Pmin-6,则将n=21作为第一扫描初始值n1。如果n=21对应的当前校准功率P,不满足Pmin-7≤P≤Pmin-6,则取n=n+1=21+1=22,测试n=22对应的当前校准功率P,是否满足Pmin-7≤P≤Pmin-6,依次类推,此处不再赘述。If the current calibration power P corresponding to n=21 satisfies Pmin-7≤P≤Pmin-6, then n=21 is taken as the initial value n1 of the first scan. If the current calibration power P corresponding to n=21 does not satisfy Pmin-7≤P≤Pmin-6, then take n=n+1=21+1=22, and test whether the current calibration power P corresponding to n=22 satisfies Pmin-7≤P≤Pmin-6, and so on, which will not be repeated here.
可以理解的是,本申请实施例可以改进初始的AGC设定值,即不需要从最小值0开始做校准扫描,只需要满足最小的AGC值能满足校准最小功率的要求,这个最小功率由于不会过高有烧PA或者过小合规性指标不过的问题,所以可设定的范围就比较灵活范围也比较广,可以在设定的最小校准功率的基础上,再设定6dB左右的余量,这个余量足以覆盖到不同终端设备之间的功率波动。It can be understood that the embodiment of the present application can improve the initial AGC setting value, that is, it is not necessary to start the calibration scan from the minimum value of 0, and only need to meet the minimum AGC value to meet the requirements of the calibration minimum power. If it is too high, there will be problems of burning PA or too small compliance index, so the range that can be set is more flexible and the range is relatively wide. You can set a margin of about 6dB on the basis of the set minimum calibration power. This margin is enough to cover power fluctuations between different terminal devices.
需要说明的是,本申请中的第一偏移值,第二偏移值和第三偏移值,可以根据实际情况调整,本申请不做具体限定。It should be noted that the first offset value, the second offset value and the third offset value in the present application can be adjusted according to actual conditions, and are not specifically limited in the present application.
可选的,所述第一偏移值为0,所述测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与偏移值之和;在所述n取n+1的当前校准功率P大于等于所述Pmax与偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备,可以包括下面的402-405步骤,如下所示:Optionally, the first offset value is 0, and the test whether the current calibration power P whose n is 0 is greater than or equal to the sum of the Pmax and the first offset value; When P is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to n being 0 and write it into the designated terminal device; when the current calibration power P of n is 0 is less than the set In the case of the sum of the Pmax and the first offset value, n is n+1, and whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the offset value; in the n When the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the offset value, record the power value corresponding to each n from 0 to n+1 and write it into the designated terminal device, The following 402-405 steps can be included as follows:
402、测试n取第一扫描初始值n1的当前校准功率P是否大于等于所述Pmax。402. Test whether n takes the initial value n1 of the first scan to see if the current calibration power P is greater than or equal to the Pmax.
例如,n1为21。示例性的,测试此时n=n1=21对应的当前校准功率P是否大于等于Pmax。即可以判断此时n=21对应的当前校准功率P≥Pmax,还是P<Pmax。For example, n1 is 21. Exemplarily, it is tested whether the current calibration power P corresponding to n=n1=21 is greater than or equal to Pmax. That is, it can be judged whether the current calibration power corresponding to n=21 is P≥Pmax or P<Pmax.
403、在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备。403. In the case that n takes the initial value n1 of the first scan and the current calibration power P is greater than or equal to the Pmax, record n takes the power value corresponding to the initial value n1 of the first scan and writes it into the specified Terminal Equipment.
示例性的,如果n=21对应的当前校准功率P≥Pmax,则记录此时n=21对应的功率值并写入该指定终端设备。Exemplarily, if the current calibration power P≥Pmax corresponding to n=21, record the power value corresponding to n=21 at this time and write it into the specified terminal device.
可选的,所述方法还可以包括:在所述n取n1的当前校准功率P大于等于所述Pmax的情况下,将所述n取n1对应的当前校准功率P作为所述指定终端设备的最大功率。Optionally, the method may further include: in the case that the current calibration power P of the n being n1 is greater than or equal to the Pmax, using the current calibration power P corresponding to the n being n1 as the specified terminal device Maximum power.
404、在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax。404. In the case that the current calibration power P where n is the initial value n1 of the first scan is less than the Pmax, n is n+1, and it is tested whether the current calibration power P where n is n+1 is greater than or equal to the Pmax.
示例性的,如果n=21对应的当前校准功率P<Pmax,则n=n+1=21+1=22,测试此时n=22对应的当前校准功率P是否大于等于Pmax。即可以判断此时n=22对应的当前校准功率P≥Pmax,还是P<Pmax。Exemplarily, if the current calibration power P corresponding to n=21<Pmax, then n=n+1=21+1=22, it is tested whether the current calibration power P corresponding to n=22 is greater than or equal to Pmax. That is, it can be judged whether the current calibration power corresponding to n=22 is P≥Pmax or P<Pmax.
405、在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率值并写入所述指定终端设备。405. In the case that n is n+1 and the current calibration power P is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the specified terminal device.
示例性的,如果n=22对应的当前校准功率P≥Pmax,记录n=21和n=22分别对应的功率值并写入该指定终端设备。Exemplarily, if the current calibration power P≥Pmax corresponding to n=22, record the power values corresponding to n=21 and n=22 respectively and write them into the specified terminal device.
可选的,所述方法还可以包括:在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。Optionally, the method may further include: in the case that the current calibration power P of the n being n+1 is greater than or equal to the Pmax, using the current calibration power P corresponding to the n being n+1 as the Specifies the maximum power of the end device.
406、将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。406. Use the first scan initial value n1 as the initial scan minimum value, and calibrate the power of other terminal devices of the same type.
示例性的,可以将第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。其他同型号终端设备就不需要确定初始扫描最小值了,提高校准效率。Exemplarily, the first scan initial value n1 may be used as the initial scan minimum value to calibrate the power of other terminal devices of the same type. Other terminal devices of the same type do not need to determine the initial scan minimum value, which improves calibration efficiency.
可选的,步骤406为可选的步骤。Optionally, step 406 is an optional step.
示例性的,如图5所示,为本申请实施例中最大功率波动的功率校准方法的流程示意图。设定指定终端设备的某个校准频段的最大功率上限Pmax;设定所述第一校准频段的最小功率下限Pmin。可以理解的是,本申请实施例可以改进初始的AGC设定值,即不需要从最小值0开始做校准扫描,只需要满足最小的AGC值能满足校准最小功率的要求,这个最小功率由于不会过高有烧PA或者过小合规性指标不过的问题,所以可设定的范围就比较灵活范围也比较广,可以在设定的最小校准功率的基础上,再设定6dB左右的余量,这个余量足以覆盖到不同终端设备之间的功率波动。从AGC设定值开始,步长step=1,依次增加AGC的值n,并记录每个n值对应的校准功率值;当n值对应的功率值大于等于Pmax时,校准停止。记录AGC值从设定值到最大对应的功率校准值,最终结果写入终端设备。Exemplarily, as shown in FIG. 5 , it is a schematic flowchart of a power calibration method for maximum power fluctuation in an embodiment of the present application. Setting the maximum power upper limit Pmax of a certain calibration frequency band of the specified terminal device; setting the minimum power lower limit Pmin of the first calibration frequency band. It can be understood that the embodiment of the present application can improve the initial AGC setting value, that is, it is not necessary to start the calibration scan from the minimum value of 0, and only need to meet the minimum AGC value to meet the requirements of the calibration minimum power. If it is too high, there will be problems of burning PA or too small compliance index, so the range that can be set is more flexible and the range is relatively wide. You can set a margin of about 6dB on the basis of the set minimum calibration power. This margin is enough to cover power fluctuations between different terminal devices. Starting from the AGC set value, the step size is step=1, increasing the AGC value n in turn, and recording the calibration power value corresponding to each n value; when the power value corresponding to the n value is greater than or equal to Pmax, the calibration stops. Record the AGC value from the set value to the maximum corresponding power calibration value, and the final result is written into the terminal device.
在本申请实施例中,设定指定终端设备的第一校准频段的最大功率上限Pmax,设定所述第一校准频段的最小功率下限Pmin,以及确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值;测试n取第一扫描初始值n1的当前校准功率P是否大于等于所述Pmax;在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备;在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax;在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率值并写入所述指定终端设备。将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。通过从设定的AGC值扫描到满足最大功率要求的AGC值的方式,提高了校准效率,而且,可以满足不同终端设备最大功率的合规性指标。克服了原始算法需要找n0值的步骤,提高了校准效率;克服了原始算法的n0值对某些主板来讲过大可能烧毁功率放大器(Power Amplifier,PA)的问题;克服了原始算法的n0值对某些主板来讲过小造成终端输出功率过小,导致不能满足最大功率合规性指标的问题。即由于实际场景中对最小功率的要求没有最大功率这么严苛,并且小功率也不会有PA烧毁或者合规性的问题,所以,本申请创新性的提出了一种能覆盖到不同主板最大功率差异的功率校准方案,区别于当前原始的校准方式,通过从设定的AGC值扫描到满足最大功率要求的AGC值的方式,提高了效率,消除了之前算法的两个风险。In this embodiment of the present application, the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment is set, the minimum power lower limit Pmin of the first calibration frequency band is set, and the automatic gain control AGC of the radio frequency transceiver chip RFIC is determined. A scanning initial value n1, the first value n1 is greater than 0 and less than the preset maximum scanning initial value; test whether n takes the current calibration power P of the first scanning initial value n1 greater than or equal to the Pmax; In the case that the current calibration power P of the first scan initial value n1 is greater than or equal to the Pmax, record n takes the power value corresponding to the first scan initial value n1 and writes it into the designated terminal device; In the case where the current calibration power P of the first scan initial value n1 is less than the Pmax, n is n+1, and the current calibration power P of n is n+1 is tested to be greater than or equal to the Pmax; In the case that the current calibration power P of n+1 is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the designated terminal device. The first scanning initial value n1 is used as the initial scanning minimum value to calibrate the power of other terminal devices of the same type. By scanning from the set AGC value to the AGC value that meets the maximum power requirement, the calibration efficiency is improved, and the compliance index of the maximum power of different terminal equipment can be met. It overcomes the steps that the original algorithm needs to find the n0 value, which improves the calibration efficiency; overcomes the problem that the original algorithm’s n0 value is too large for some motherboards and may burn the power amplifier (Power Amplifier, PA); overcomes the original algorithm’s n0 The value is too small for some motherboards, resulting in too small terminal output power, resulting in the problem that the maximum power compliance index cannot be met. That is, because the minimum power requirements in actual scenarios are not as strict as the maximum power, and there will be no problems of PA burnout or compliance with low power, so this application innovatively proposes a method that can cover the maximum power of different motherboards. The power calibration scheme of power difference is different from the current original calibration method. By scanning from the set AGC value to the AGC value that meets the maximum power requirement, the efficiency is improved and the two risks of the previous algorithm are eliminated.
如图6所示,为本申请实施例中一种终端设备的一个实施例示意图,可以包括:As shown in FIG. 6, it is a schematic diagram of an embodiment of a terminal device in the embodiment of the present application, which may include:
设定模块601,用于设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;The setting module 601 is used to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, n is 0;
测试模块602,用于测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;A testing module 602, configured to test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
记录模块603,用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;A recording module 603, configured to record the power value corresponding to n taking 0 and write the specified Terminal Equipment;
测试模块602,还用于在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;The testing module 602 is further configured to: when the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and the current calibration power P where n is n+1 is tested. Whether the calibration power P is greater than or equal to the sum of the Pmax and the first offset value;
记录模块603,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第 一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module 603 is further configured to record each value of n starting from 0 to n+1 when the current calibration power P of n=n+1 is greater than or equal to the sum of the Pmax and the first offset value. The power values corresponding to n are written into the designated terminal device.
可选的,设定模块601,还用于设定所述第一校准频段的最小功率下限Pmin;确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值;Optionally, the setting module 601 is also used to set the minimum power lower limit Pmin of the first calibration frequency band; determine the first scan initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC, the first value n1 Greater than 0, less than the preset maximum scan initial value;
测试模块602,还用于所述第一偏移值为0,测试n取第一扫描初始值n1的当前校准功率P是否大于等于所述Pmax;The test module 602 is also used for the first offset value to be 0, to test whether the current calibration power P whose n takes the first scanning initial value n1 is greater than or equal to the Pmax;
记录模块603,还用于在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备;The recording module 603 is further configured to record the power value corresponding to n taking the first scanning initial value n1 and write to said specified terminal device;
测试模块602,还用于在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax;The testing module 602 is also used for testing the current calibration power P where n is n+1 when the current calibration power P of the first scan initial value n1 is smaller than the Pmax. Whether it is greater than or equal to the Pmax;
记录模块603,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module 603 is also used to record the power value corresponding to each n of n from n1 to n+1 when the current calibration power P of n is n+1 is greater than or equal to the Pmax, and write the Specify the terminal device described above.
可选的,设定模块601,具体用于设定所述射频收发芯片RFIC的自动增益控制AGC的第二扫描初始值n2;测试n取所述第二扫描初始值n2的当前校准功率是否,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差,所述第一偏移值小于所述第二偏移值,所述第二偏移值小于所述第三偏移值;在所述n取所述第二扫描初始值n2的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述第二扫描初始值n2作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。Optionally, the setting module 601 is specifically used to set the second scan initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC; test whether n takes the current calibration power of the second scan initial value n2, Greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first offset value is smaller than the second offset value, and the second offset value The offset value is less than the third offset value; the current calibration power of the second scan initial value n2 is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the first offset value. In the case of the difference between the three offset values, the second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
可选的,设定模块601,具体还用于在所述n取所述第二扫描初始值n2的当前校准功率不满足,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,所述n取n+1,测试n取n+1的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差;在n取n+1的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述n+1作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。Optionally, the setting module 601 is specifically further configured to take the current calibration power of the second scan initial value n2 as the n to be unsatisfactory, be greater than or equal to the difference between the Pmin and the second offset value, and be less than or equal to In the case of the difference between the Pmin and the third offset value, the n is n+1, and it is tested whether the current calibration power of n is n+1 is greater than or equal to the difference between the Pmin and the second offset value, and less than It is equal to the difference between the Pmin and the third offset value; when n takes n+1, the current calibration power is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value If it is not good, the n+1 is used as the initial value n1 of the first scan of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
可选的,记录模块603,还用于将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。Optionally, the recording module 603 is further configured to use the first scan initial value n1 as the initial scan minimum value to calibrate the power of other terminal devices of the same type.
可选的,测试模块602,还用于在所述n取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再取n+1,测试n再取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;Optionally, the testing module 602 is further configured to, when the current calibration power P where n is n+1 is less than the sum of the Pmax and the first offset value, n is again n+1, and the test n and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value;
记录模块603,还用于在所述n再取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module 603 is also used to record n from 0 to n+1 when the current calibration power P of n is greater than or equal to the sum of the Pmax and the first offset value. The power value corresponding to each n is written into the designated terminal device.
可选的,记录模块603,还用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取0对应的当前校准功率P作为所述指定终端设备的最大功率;Optionally, the recording module 603 is further configured to set the current calibration power P corresponding to 0 for n to be greater than or equal to the sum of the Pmax and the first offset value. The calibration power P is used as the maximum power of the specified terminal equipment;
记录模块603,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。The recording module 603 is further configured to set the current calibration power P corresponding to n to n+1 when the n is equal to or greater than the sum of the Pmax and the first offset value. The calibration power P is used as the maximum power of the designated terminal equipment.
如图7所示,为本申请实施例中电子设备的另一个实施例示意图,可以包括:As shown in Figure 7, it is a schematic diagram of another embodiment of the electronic device in the embodiment of the present application, which may include:
图7示出的是与本发明实施例提供的无线终端相关的手机的部分结构的框图。参考图 7,手机包括:射频(Radio Frequency,RF)电路710、存储器720、输入单元730、显示单元740、传感器750、音频电路760、无线保真(wireless fidelity,Wi-Fi)模块770、处理器780、以及电源790等部件。本领域技术人员可以理解,图7中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Fig. 7 shows a block diagram of a partial structure of a mobile phone related to the wireless terminal provided by the embodiment of the present invention. Referring to Fig. 7, the mobile phone includes: a radio frequency (Radio Frequency, RF) circuit 710, a memory 720, an input unit 730, a display unit 740, a sensor 750, an audio circuit 760, a wireless fidelity (wireless fidelity, Wi-Fi) module 770, a processing Device 780, and power supply 790 and other components. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 7 does not constitute a limitation to the mobile phone, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
下面结合图7对手机的各个构成部件进行具体的介绍:The following is a specific introduction to each component of the mobile phone in conjunction with Figure 7:
RF电路710可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器780处理;另外,将设计上行的数据发送给基站。通常,RF电路710包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路710还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 710 can be used for sending and receiving information or receiving and sending signals during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 780; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 710 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (Low Noise Amplifier, LNA), a duplexer, and the like. In addition, RF circuitry 710 may also communicate with networks and other devices via wireless communications. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile Communication (Global System of Mobile communication, GSM), General Packet Radio Service (General Packet Radio Service, GPRS), Code Division Multiple Access (Code Division Multiple Access, CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
存储器720可用于存储软件程序以及模块,处理器780通过运行存储在存储器720的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器720可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器720可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 720 can be used to store software programs and modules, and the processor 780 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 720 . The memory 720 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 720 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.
输入单元730可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元730可包括触控面板731以及其他输入设备732。触控面板731,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板731上或在触控面板731附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板731可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器780,并能接收处理器780发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板731。除了触控面板731,输入单元730还可以包括其他输入设备732。具体地,其他输入设备732可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 730 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 730 may include a touch panel 731 and other input devices 732 . The touch panel 731, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 731 or near the touch panel 731). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 731 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 780, and can receive and execute commands sent by the processor 780. In addition, the touch panel 731 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 731 , the input unit 730 may also include other input devices 732 . Specifically, other input devices 732 may include but not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, and the like.
显示单元740可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元740可包括显示面板741,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板741。进一步的,触控面板731可覆盖显示面板741,当触控面板731检测到在其上或附近的触摸操作后,传送给处理器780以确定触摸事件的类型,随后处理器780根据触摸事件的类型在显示面板741上提供相应的视觉输出。虽然在图7中,触控面板731与显示面板741是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板731与显示面板741集成而实现手机的输入和输出功能。The display unit 740 may be used to display information input by or provided to the user and various menus of the mobile phone. The display unit 740 may include a display panel 741. Optionally, the display panel 741 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. Further, the touch panel 731 may cover the display panel 741, and when the touch panel 731 detects a touch operation on or near it, it transmits to the processor 780 to determine the type of the touch event, and then the processor 780 determines the type of the touch event according to the The type provides a corresponding visual output on the display panel 741 . Although in FIG. 7, the touch panel 731 and the display panel 741 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 731 and the display panel 741 can be integrated to form a mobile phone. Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器750,比如光传感器、运动传感器以及其他传感器。具 体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板741的亮度,接近传感器可在手机移动到耳边时,关闭显示面板741和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。The handset may also include at least one sensor 750, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 741 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 741 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, and can be used for applications that recognize the posture of mobile phones (such as horizontal and vertical screen switching, related Games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. repeat.
音频电路760、扬声器761,传声器762可提供用户与手机之间的音频接口。音频电路760可将接收到的音频数据转换后的电信号,传输到扬声器761,由扬声器761转换为声音信号输出;另一方面,传声器762将收集的声音信号转换为电信号,由音频电路760接收后转换为音频数据,再将音频数据输出处理器780处理后,经RF电路710以发送给比如另一手机,或者将音频数据输出至存储器720以便进一步处理。The audio circuit 760, the speaker 761, and the microphone 762 can provide an audio interface between the user and the mobile phone. The audio circuit 760 can transmit the electrical signal converted from the received audio data to the speaker 761, and the speaker 761 converts it into an audio signal for output; After being received, it is converted into audio data, and then the audio data is processed by the output processor 780, and then sent to another mobile phone through the RF circuit 710, or the audio data is output to the memory 720 for further processing.
Wi-Fi属于短距离无线传输技术,手机通过Wi-Fi模块770可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图7示出了Wi-Fi模块770,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。Wi-Fi is a short-distance wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages, and access streaming media through the Wi-Fi module 770. It provides users with wireless broadband Internet access. Although FIG. 7 shows a Wi-Fi module 770, it can be understood that it is not an essential component of the mobile phone, and can be completely omitted as required without changing the essence of the invention.
处理器780是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器720内的软件程序和/或模块,以及调用存储在存储器720内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器780可包括一个或多个处理单元;优选的,处理器780可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器780中。The processor 780 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and/or modules stored in the memory 720, and calling data stored in the memory 720, execution Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. Optionally, the processor 780 may include one or more processing units; preferably, the processor 780 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc. , the modem processor mainly handles wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 780 .
手机还包括给各个部件供电的电源790(比如电池),优选的,电源可以通过电源管理系统与处理器780逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone also includes a power supply 790 (such as a battery) for supplying power to each component. Preferably, the power supply can be logically connected to the processor 780 through the power management system, so as to realize functions such as managing charging, discharging, and power consumption management through the power management system.
尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown, the mobile phone may also include a camera, a Bluetooth module, etc., which will not be repeated here.
在本发明实施例中,处理器780,用于设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the embodiment of the present invention, the processor 780 is configured to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, where n is 0; Test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value; the current calibration power P where the n is 0 is greater than or equal to the sum of the Pmax and the first offset value In the case of , record the power value corresponding to n taking 0 and write it into the specified terminal device; when the current calibration power P of n taking 0 is less than the sum of the Pmax and the first offset value, When n is n+1, test whether the current calibration power P of n being n+1 is greater than or equal to the sum of the Pmax and the first offset value; when the current calibration power P of n being n+1 is greater than or equal to the In the case of the sum of the Pmax and the first offset value, record the power value corresponding to each n of n starting from 0 to n+1 and write it into the designated terminal device.
可选的,处理器780,还用于设定所述第一校准频段的最小功率下限Pmin;确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值;所述第一偏移值为0,测试n取第一扫描初始值n1的当前校准功率P是否大于等于所述Pmax;在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备;在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax;在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率 值并写入所述指定终端设备。Optionally, the processor 780 is also used to set the minimum power lower limit Pmin of the first calibration frequency band; determine the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC, and the first value n1 is greater than 0, less than the preset maximum scanning initial value; the first offset value is 0, testing whether the current calibration power P of n taking the first scanning initial value n1 is greater than or equal to the Pmax; In the case that the current calibration power P of a scan initial value n1 is greater than or equal to the Pmax, record n takes the power value corresponding to the first scan initial value n1 and writes it into the designated terminal device; When the current calibration power P of the first scanning initial value n1 is less than the Pmax, n is n+1, and the current calibration power P of n+1 is tested to be greater than or equal to the Pmax; when the n is n+ When the current calibration power P of 1 is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the designated terminal device.
可选的,处理器780,具体用于设定所述射频收发芯片RFIC的自动增益控制AGC的第二扫描初始值n2;测试n取所述第二扫描初始值n2的当前校准功率是否,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差,所述第一偏移值小于所述第二偏移值,所述第二偏移值小于所述第三偏移值;在所述n取所述第二扫描初始值n2的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述第二扫描初始值n2作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。Optionally, the processor 780 is specifically configured to set the second scan initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC; test whether the current calibration power of the second scan initial value n2 is greater than equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first offset value is smaller than the second offset value, and the second offset The value is less than the third offset value; the current calibration power of the second scanning initial value n2 in the n is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third In the case of the difference of offset values, the second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
可选的,处理器780,具体还用于在所述n取所述第二扫描初始值n2的当前校准功率不满足,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,所述n取n+1,测试n取n+1的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差;在n取n+1的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述n+1作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。Optionally, the processor 780 is specifically further configured to take the current calibration power of the second scanning initial value n2 as the n being not satisfied, be greater than or equal to the difference between the Pmin and the second offset value, and be less than or equal to the specified In the case of the difference between the Pmin and the third offset value, the n is n+1, and the current calibration power of n+1 is tested to be greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to The difference between the Pmin and the third offset value; when n takes n+1, the current calibration power is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value In the case of , the n+1 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
可选的,处理器780,还用于将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。Optionally, the processor 780 is further configured to use the first scan initial value n1 as the initial scan minimum value to calibrate the power of other terminal devices of the same model.
可选的,处理器780,还用于在所述n取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再取n+1,测试n再取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;在所述n再取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。Optionally, the processor 780 is further configured to, when the current calibration power P where n is n+1 is less than the sum of the Pmax and the first offset value, n is again n+1, and the test n and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value; and then determine whether the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the In the case of the sum of the first offset values, the power value corresponding to each n starting from 0 to n+1 is recorded and written into the designated terminal device.
可选的,处理器780,还用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取0对应的当前校准功率P作为所述指定终端设备的最大功率;在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。Optionally, the processor 780 is further configured to set the current calibration power P corresponding to 0 for n to be greater than or equal to the sum of the Pmax and the first offset value. The calibration power P is used as the maximum power of the designated terminal device; when the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the first offset value, the n is taken as The current calibration power P corresponding to n+1 is used as the maximum power of the designated terminal device.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。In the above embodiments, all or part of them may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be stored by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, or a magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (Solid State Disk, SSD)), etc.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显 示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions described in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (20)

  1. 一种最大功率波动的功率校准方法,其特征在于,包括:A power calibration method for maximum power fluctuation, characterized in that it includes:
    设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;Set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scan initial value n of the radio frequency transceiver chip RFIC, n is taken as 0;
    测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;Test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
    在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;In the case where the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to n being 0 and write it into the designated terminal device;
    在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;In the case where the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and it is tested whether the current calibration power P where n is n+1 is greater than or equal to the The sum of the Pmax and the first offset value;
    在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the first offset value, record the power value corresponding to each n of n starting from 0 to n+1 and Write to the specified terminal device.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    设定所述第一校准频段的最小功率下限Pmin;Setting the minimum power lower limit Pmin of the first calibration frequency band;
    设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,包括:Set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, including:
    确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值;Determine the first scan initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC, the first value n1 is greater than 0 and less than the preset maximum scan initial value;
    所述第一偏移值为0,所述测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与偏移值之和;在所述n取n+1的当前校准功率P大于等于所述Pmax与偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备,包括:The first offset value is 0, and the test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value; the current calibration power P where n is 0 is greater than or equal to the In the case of the sum of the Pmax and the first offset value, record the power value corresponding to n taking 0 and write it into the specified terminal device; when the n takes 0, the current calibration power P is less than the Pmax and the set In the case of the sum of the first offset value, n is n+1, and whether the current calibration power P of n is n+1 is greater than or equal to the sum of the Pmax and the offset value; when the n is n+1 In the case where the current calibration power P is greater than or equal to the sum of the Pmax and the offset value, record the power value corresponding to each n from 0 to n+1 and write it into the designated terminal device, including:
    测试n取第一扫描初始值n1的当前校准功率P是否大于等于所述Pmax;Test whether the current calibration power P of the first scan initial value n1 is greater than or equal to the Pmax;
    在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备;In the case that n takes the first scan initial value n1 and the current calibration power P is greater than or equal to the Pmax, record n takes the power value corresponding to the first scan initial value n1 and writes it into the specified terminal device ;
    在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax;In the case where the current calibration power P of the first scan initial value n1 is smaller than the Pmax, n is n+1, and it is tested whether the current calibration power P of the n+1 is greater than or equal to the Pmax;
    在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case that n is n+1 and the current calibration power P is greater than or equal to the Pmax, record the power value corresponding to each n from n1 to n+1 and write it into the designated terminal device.
  3. 根据权利要求2所述的方法,其特征在于,所述确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,包括:The method according to claim 2, wherein said determining the first scan initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC comprises:
    设定所述射频收发芯片RFIC的自动增益控制AGC的第二扫描初始值n2;Setting the second scanning initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC;
    测试n取所述第二扫描初始值n2的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差,所述第一偏移值小于所述第二偏移值,所述第二偏移值小于所述第三偏移值;Test whether the current calibration power of the second scan initial value n2 is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, the first offset value an offset value smaller than the second offset value, the second offset value smaller than the third offset value;
    在所述n取所述第二扫描初始值n2的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述第二扫描初始值n2作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。In the case where the current calibration power of the second scanning initial value n2 of the n is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value, the The second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, characterized in that the method further comprises:
    在所述n取所述第二扫描初始值n2的当前校准功率不满足,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,所述n取n+1,测试n取n+1的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin 与第三偏移值之差;When the current calibration power of the second scan initial value n2 for the n is not satisfied, it is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value Next, the n is n+1, and it is tested whether the current calibration power of n is n+1 is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value;
    在n取n+1的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述n+1作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。When n takes n+1 and the current calibration power is greater than or equal to the difference between the Pmin and the second offset value, and is less than or equal to the difference between the Pmin and the third offset value, the n+1 is used as the The first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  5. 根据权利要求2-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2-4, wherein the method further comprises:
    将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。The first scanning initial value n1 is used as the initial scanning minimum value to calibrate the power of other terminal devices of the same type.
  6. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    在所述n取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再取n+1,测试n再取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;In the case where the current calibration power P of n+1 is less than the sum of the Pmax and the first offset value, n is n+1 again, and the current calibration power P of n+1 is used for testing n Whether it is greater than or equal to the sum of the Pmax and the first offset value;
    在所述n再取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value for n, record the power value corresponding to each n of n starting from 0 to n+1 And write to the specified terminal device.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method according to claim 6, further comprising:
    在所述n再取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再次取n+1,测试n再次取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;In the case where the current calibration power P of n+1 is less than the sum of the Pmax and the first offset value, n is n+1 again, and the current calibration power of n+1 is again tested for n Whether P is greater than or equal to the sum of the Pmax and the first offset value;
    在所述n再次取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。In the case where the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value for n again, record the power value corresponding to each n of n starting from 0 to n+1 And write to the specified terminal device.
  8. 根据权利要求1-4中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-4, wherein the method further comprises:
    在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取0对应的当前校准功率P作为所述指定终端设备的最大功率;In the case that the current calibration power P where n is set to 0 is greater than or equal to the sum of the Pmax and the first offset value, the current calibration power P corresponding to the n set to 0 is used as the maximum value of the designated terminal device power;
    在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。In the case where the current calibration power P of n=n+1 is greater than or equal to the sum of the Pmax and the first offset value, the current calibration power P corresponding to n=n+1 is used as the specified The maximum power of the end device.
  9. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    在所述n取n1的当前校准功率P大于等于所述Pmax的情况下,将所述n取n1对应的当前校准功率P作为所述指定终端设备的最大功率。In the case that the current calibration power P of n being n1 is greater than or equal to the Pmax, the current calibration power P corresponding to n being n1 is used as the maximum power of the designated terminal device.
  10. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    设定模块,用于设定指定终端设备的第一校准频段的最大功率上限Pmax,以及设定射频收发芯片RFIC的自动增益控制AGC扫描初始值n,n取0;The setting module is used to set the maximum power upper limit Pmax of the first calibration frequency band of the specified terminal equipment, and set the automatic gain control AGC scanning initial value n of the radio frequency transceiver chip RFIC, and n takes 0;
    测试模块,用于测试n取0的当前校准功率P是否大于等于所述Pmax与第一偏移值之和;A test module, configured to test whether the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value;
    记录模块,用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n取0对应的功率值并写入所述指定终端设备;A recording module, configured to record the power value corresponding to n being 0 and write it into the specified terminal when the current calibration power P where n is 0 is greater than or equal to the sum of the Pmax and the first offset value equipment;
    所述测试模块,还用于在所述n取0的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;The test module is further configured to, when the current calibration power P where n is 0 is less than the sum of the Pmax and the first offset value, n is n+1, and the test n is n+1 Whether the current calibration power P is greater than or equal to the sum of the Pmax and the first offset value;
    所述记录模块,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module is further configured to record n from 0 to n+1 when the current calibration power P of n is greater than or equal to the sum of the Pmax and the first offset value. The power value corresponding to each n is written into the designated terminal device.
  11. 根据权利要求10所述的设备,其特征在于,所述设定模块,还用于设定所述第一校准频段的最小功率下限Pmin;确定射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1,所述第一值n1大于0,小于预设的最大扫描初始值;The device according to claim 10, wherein the setting module is also used to set the minimum power lower limit Pmin of the first calibration frequency band; determine the first scan of the automatic gain control AGC of the radio frequency transceiver chip RFIC An initial value n1, the first value n1 is greater than 0 and less than a preset maximum scanning initial value;
    所述测试模块,还用于所述第一偏移值为0,测试n取第一扫描初始值n1的当前校准 功率P是否大于等于所述Pmax;The test module is also used for the first offset value to be 0, and whether the current calibration power P of the first scanning initial value n1 of the test n is greater than or equal to the Pmax;
    所述记录模块,还用于在所述n取所述第一扫描初始值n1的当前校准功率P大于等于所述Pmax的情况下,记录n取所述第一扫描初始值n1对应的功率值并写入所述指定终端设备;The recording module is also used to record the power value corresponding to n taking the first scanning initial value n1 when the current calibration power P of the first scanning initial value n1 is taken as n is greater than or equal to the Pmax and write to the designated terminal device;
    所述测试模块,还用于在所述n取所述第一扫描初始值n1的当前校准功率P小于所述Pmax的情况下,n取n+1,测试n取n+1的当前校准功率P是否大于等于所述Pmax;The test module is also used to set n to be n+1 and test the current calibration power of n to be n+1 when the current calibration power P of the first scanning initial value n1 is taken as the n is less than the Pmax Whether P is greater than or equal to the Pmax;
    所述记录模块,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax的情况下,记录n从n1开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module is also used to record the power value corresponding to each n of n starting from n1 to n+1 and write the designated terminal device.
  12. 根据权利要求11所述的设备,其特征在于,所述设定模块,具体用于设定所述射频收发芯片RFIC的自动增益控制AGC的第二扫描初始值n2;测试n取所述第二扫描初始值n2的当前校准功率是否,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差,所述第一偏移值小于所述第二偏移值,所述第二偏移值小于所述第三偏移值;在所述n取所述第二扫描初始值n2的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述第二扫描初始值n2作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。The device according to claim 11, wherein the setting module is specifically used to set the second scanning initial value n2 of the automatic gain control AGC of the radio frequency transceiver chip RFIC; the test n takes the second Whether the current calibration power of the scanning initial value n2 is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to the difference between the Pmin and the third offset value, and the first offset value is smaller than the first offset value Two offset values, the second offset value is less than the third offset value; the current calibration power of the second scanning initial value n2 is greater than or equal to the difference between the Pmin and the second offset value. difference, and is less than or equal to the difference between the Pmin and the third offset value, the second scanning initial value n2 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  13. 根据权利要求11所述的设备,其特征在于,所述设定模块,具体还用于在所述n取所述第二扫描初始值n2的当前校准功率不满足,大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,所述n取n+1,测试n取n+1的当前校准功率是否大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差;在n取n+1的当前校准功率大于等于所述Pmin与第二偏移值之差,且小于等于所述Pmin与第三偏移值之差的情况下,将所述n+1作为所述射频收发芯片RFIC的自动增益控制AGC的第一扫描初始值n1。The device according to claim 11, wherein the setting module is further configured to take the current calibration power of the second scanning initial value n2 as the n is not satisfied, and is greater than or equal to the Pmin and the first When the difference between the two offset values is less than or equal to the difference between the Pmin and the third offset value, the n is n+1, and it is tested whether the current calibration power of n is n+1 is greater than or equal to the Pmin and the third offset value. The difference between the second offset value and less than or equal to the difference between the Pmin and the third offset value; the current calibration power of n+1 is greater than or equal to the difference between the Pmin and the second offset value, and less than or equal to In the case of the difference between the Pmin and the third offset value, the n+1 is used as the first scanning initial value n1 of the automatic gain control AGC of the radio frequency transceiver chip RFIC.
  14. 根据权利要求11所述的设备,其特征在于,所述记录模块,还用于将所述第一扫描初始值n1作为初始扫描最小值,校准其他同型号终端设备的功率。The device according to claim 11, wherein the recording module is further configured to use the first scanning initial value n1 as an initial scanning minimum value to calibrate the power of other terminal devices of the same type.
  15. 根据权利要求10所述的设备,其特征在于,所述测试模块,还用于在所述n取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再取n+1,测试n再取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;The device according to claim 10, wherein the test module is also used for the case where the current calibration power P of n=n+1 is less than the sum of the Pmax and the first offset value Next, take n+1 again for n, and test whether the current calibration power P of n+1 for n is greater than or equal to the sum of the Pmax and the first offset value;
    所述记录模块,还用于在所述n再取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module is also used to record n from 0 to n+1 when the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value. The power value corresponding to each n of is written into the designated terminal device.
  16. 根据权利要求15所述的设备,其特征在于,所述测试模块,还用于在所述n再取n+1的当前校准功率P小于所述Pmax与所述第一偏移值之和的情况下,n再次取n+1,测试n再次取n+1的当前校准功率P是否大于等于所述Pmax与所述第一偏移值之和;The device according to claim 15, wherein the test module is further configured to take n+1 of the current calibration power P less than the sum of the Pmax and the first offset value. In this case, n takes n+1 again, and it is tested whether the current calibration power P of n taking n+1 again is greater than or equal to the sum of the Pmax and the first offset value;
    所述记录模块,还用于在所述n再次取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,记录n从0开始到n+1的每个n对应的功率值并写入所述指定终端设备。The recording module is also used to record n from 0 to n+1 when the current calibration power P of n+1 is greater than or equal to the sum of the Pmax and the first offset value. The power value corresponding to each n of is written into the designated terminal device.
  17. 根据权利要求10所述的设备,其特征在于,所述记录模块,还用于在所述n取0的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取0对应的当前校准功率P作为所述指定终端设备的最大功率;The device according to claim 10, characterized in that the recording module is further configured to: when the current calibration power P where the n is 0 is greater than or equal to the sum of the Pmax and the first offset value , taking the current calibration power P corresponding to 0 as the maximum power of the specified terminal device;
    所述记录模块,还用于在所述n取n+1的当前校准功率P大于等于所述Pmax与所述第一偏移值之和的情况下,将所述n取n+1对应的当前校准功率P作为所述指定终端设备的最大功率。The recording module is further configured to set the n to n+1 corresponding to the current calibration power P greater than or equal to the sum of the Pmax and the first offset value The current calibration power P is used as the maximum power of the designated terminal device.
  18. 根据权利要求11所述的设备,其特征在于,所述记录模块,还用于在所述n取n1 的当前校准功率P大于等于所述Pmax的情况下,将所述n取n1对应的当前校准功率P作为所述指定终端设备的最大功率。The device according to claim 11, wherein the recording module is further configured to record the current calibration power P corresponding to n1 when the current calibration power P of n1 is greater than or equal to the Pmax The calibration power P is used as the maximum power of the designated terminal equipment.
  19. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    存储有可执行程序代码的存储器;a memory storing executable program code;
    与所述存储器耦合的处理器;a processor coupled to the memory;
    所述处理器用于对应执行如权利要求1-9中任一项所述的方法。The processor is configured to correspondingly execute the method according to any one of claims 1-9.
  20. 一种计算机可读存储介质,包括指令,当其在处理器上运行时,使得处理器执行如权利要求1-9中任一项所述的方法。A computer-readable storage medium comprising instructions, which, when run on a processor, cause the processor to perform the method according to any one of claims 1-9.
PCT/CN2022/141279 2022-02-21 2022-12-23 Power calibration method for maximum power fluctuation, terminal device, and storage medium WO2023155595A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210155581.0 2022-02-21
CN202210155581.0A CN114520672A (en) 2022-02-21 2022-02-21 Power calibration method for maximum power fluctuation, terminal device and storage medium

Publications (1)

Publication Number Publication Date
WO2023155595A1 true WO2023155595A1 (en) 2023-08-24

Family

ID=81598798

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141279 WO2023155595A1 (en) 2022-02-21 2022-12-23 Power calibration method for maximum power fluctuation, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN114520672A (en)
WO (1) WO2023155595A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114520672A (en) * 2022-02-21 2022-05-20 Oppo广东移动通信有限公司 Power calibration method for maximum power fluctuation, terminal device and storage medium
CN114679228A (en) * 2022-04-08 2022-06-28 Oppo广东移动通信有限公司 Output power calibration method, device, terminal, storage medium and product

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119146A (en) * 2007-09-03 2008-02-06 北京天碁科技有限公司 Method, system and device for performing calibration to communication terminal emitter power
CN101304270A (en) * 2007-05-10 2008-11-12 展讯通信(上海)有限公司 Method for implementing APC quick accurate calibration
CN101499807A (en) * 2008-02-01 2009-08-05 深圳富泰宏精密工业有限公司 Self-calibration system and method for mobile phone power
CN101977090A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Radio-frequency calibration method and device of mobile terminal
CN103036623A (en) * 2011-09-30 2013-04-10 重庆重邮信科通信技术有限公司 Mobile terminal power control test calibrating method and mobile terminal
CN114520672A (en) * 2022-02-21 2022-05-20 Oppo广东移动通信有限公司 Power calibration method for maximum power fluctuation, terminal device and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106922014B (en) * 2015-12-28 2020-04-14 联芯科技有限公司 Production calibration initial table generation method and system and mobile terminal
CN112235762A (en) * 2020-10-14 2021-01-15 重庆邮电大学 Rapid calibration method for eMTC terminal power control under signaling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101304270A (en) * 2007-05-10 2008-11-12 展讯通信(上海)有限公司 Method for implementing APC quick accurate calibration
CN101119146A (en) * 2007-09-03 2008-02-06 北京天碁科技有限公司 Method, system and device for performing calibration to communication terminal emitter power
CN101499807A (en) * 2008-02-01 2009-08-05 深圳富泰宏精密工业有限公司 Self-calibration system and method for mobile phone power
CN101977090A (en) * 2010-10-27 2011-02-16 中兴通讯股份有限公司 Radio-frequency calibration method and device of mobile terminal
CN103036623A (en) * 2011-09-30 2013-04-10 重庆重邮信科通信技术有限公司 Mobile terminal power control test calibrating method and mobile terminal
CN114520672A (en) * 2022-02-21 2022-05-20 Oppo广东移动通信有限公司 Power calibration method for maximum power fluctuation, terminal device and storage medium

Also Published As

Publication number Publication date
CN114520672A (en) 2022-05-20

Similar Documents

Publication Publication Date Title
WO2023155595A1 (en) Power calibration method for maximum power fluctuation, terminal device, and storage medium
WO2020078257A1 (en) Mobile terminal, network ping-pong handover prevention method and apparatus, and storage medium
EP3432136B1 (en) Sound effect configuration method and related device
CN108781236B (en) Audio playing method and electronic equipment
WO2022001050A1 (en) Method for processing relax measurement parameter update and terminal device
CN105788612A (en) Method and device for testing tone quality
CN111093259B (en) Bluetooth power adjustment method and device, storage medium and terminal
CN111179861A (en) Brightness calibration method and device, storage medium and terminal
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
WO2017215511A1 (en) Control method of scene sound effect and related products
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
WO2023246516A1 (en) Method and apparatus for generating visit report of clinical research project
CN108370540A (en) Communication equipment and the method, apparatus for reducing communication equipment power consumption
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN111194097A (en) Mobile terminal, Bluetooth connection method and storage device
CN108834013A (en) A kind of wearable device electric quantity balancing method and Related product
CN109041190B (en) Power control method and terminal
CN106126170B (en) Sound effect setting method of terminal and terminal
CN116994596A (en) Howling suppression method and device, storage medium and electronic equipment
CN110730013B (en) Method for improving transmission stray and mobile terminal
US20210286588A1 (en) Method and apparatus for playing alarm and electronic device
CN112261634B (en) Bluetooth transmission control method and device, terminal equipment and storage medium
CN114301550A (en) Radio frequency test method, intelligent terminal and storage medium
CN114257902A (en) Sound cavity, temperature control method thereof, terminal and storage medium
CN109582240B (en) Data moving method and related equipment thereof

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22926893

Country of ref document: EP

Kind code of ref document: A1