CN108832944A - Power compensating method, device, terminal device and storage medium - Google Patents

Power compensating method, device, terminal device and storage medium Download PDF

Info

Publication number
CN108832944A
CN108832944A CN201810522364.4A CN201810522364A CN108832944A CN 108832944 A CN108832944 A CN 108832944A CN 201810522364 A CN201810522364 A CN 201810522364A CN 108832944 A CN108832944 A CN 108832944A
Authority
CN
China
Prior art keywords
transmitting antenna
transmitting
antenna
terminal device
auxiliary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810522364.4A
Other languages
Chinese (zh)
Other versions
CN108832944B (en
Inventor
张洲川
陈再成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810522364.4A priority Critical patent/CN108832944B/en
Publication of CN108832944A publication Critical patent/CN108832944A/en
Application granted granted Critical
Publication of CN108832944B publication Critical patent/CN108832944B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/06Receivers
    • H04B1/10Means associated with receiver for limiting or suppressing noise or interference
    • H04B1/12Neutralising, balancing, or compensation arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/101Monitoring; Testing of transmitters for measurement of specific parameters of the transmitter or components thereof
    • H04B17/102Power radiated at antenna
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/10Monitoring; Testing of transmitters
    • H04B17/11Monitoring; Testing of transmitters for calibration
    • H04B17/12Monitoring; Testing of transmitters for calibration of transmit antennas, e.g. of the amplitude or phase

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of power compensating method, device, terminal device and storage medium, this method includes when detecting that terminal device carries out signal transmitting, determine transmitting antenna used in transmitting signal, wherein, the terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna;If carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the power difference value of the auxiliary transmitting antenna and the main transmitting antenna;Power compensation is carried out to the transmitting signal according to the power difference value, this programme significantly improves antenna calibration precision.

Description

Power compensating method, device, terminal device and storage medium
Technical field
The invention relates to the communication technology more particularly to a kind of power compensating method, device, terminal device and storages Medium.
Background technique
Antenna emits as terminal device and receives one of the important device of signal, is integrated in each terminal device. After the transmitting signal of radio transmitter output in terminal device is transported to antenna by feeder line (cable), then by antenna with electricity Magnetic wave form is radiate.
Due to preparation process and the error of device, put etc. to carry out signal transmitting by antenna when and original transmitted Signal needs to carry out antenna calibration there are certain error, in the prior art, for there are the terminal device of multiple transmitting antennas, The calibration existing defects of transmitting antenna, need to improve.
Summary of the invention
The present invention provides a kind of power compensating method, device, terminal device and storage mediums, improve antenna calibration essence Degree.
In a first aspect, the embodiment of the present application provides a kind of power compensating method, including:
When detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined, wherein described Terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna;
If auxiliary transmitting antenna is used to carry out signal transmitting, it is determined that the auxiliary transmitting antenna and the main transmitting antenna Power difference value;
Power compensation is carried out to the transmitting signal according to the power difference value.
Second aspect, the embodiment of the present application also provides a kind of power compensating devices, including:
Antenna determining module, for when detecting that terminal device carries out signal transmitting, determining used in transmitting signal Transmitting antenna, wherein the terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna;
Power determination module, if for carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting antenna With the power difference value of the main transmitting antenna;
Compensating module, for carrying out power compensation to the transmitting signal according to the power difference value.
The third aspect, the embodiment of the present application also provides a kind of terminal devices, including:Processor, memory transmitting antenna And the computer program that can be run on a memory and on a processor is stored, the processor executes the computer program Power compensating method of the Shi Shixian as described in the embodiment of the present application.
Fourth aspect, the embodiment of the present application also provides a kind of storage medium comprising terminal device executable instruction, institutes Terminal device executable instruction is stated to mend when being executed as terminal device processor for executing power described in the embodiment of the present application Compensation method.
In the present solution, transmitting antenna used in transmitting signal is determined when detecting that terminal device carries out signal transmitting, Wherein, the terminal device includes main transmitting antenna and at least one auxiliary transmitting antenna, if using auxiliary transmitting antenna into The transmitting of row signal, it is determined that the power difference value of the auxiliary transmitting antenna and the main transmitting antenna, according to the power difference Value carries out power compensation to the transmitting signal, and this programme significantly improves antenna calibration precision.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, of the invention other Feature, objects and advantages will become more apparent upon:
Fig. 1 is a kind of flow chart of power compensating method provided by the embodiments of the present application;
Fig. 2 is the flow chart of another power compensating method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another power compensating method provided by the embodiments of the present application;
Fig. 4 is the flow chart of another power compensating method provided by the embodiments of the present application;
Fig. 5 is the flow chart of another power compensating method provided by the embodiments of the present application;
Fig. 6 is a kind of structural block diagram of power compensating device provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used to explain the present invention, rather than limitation of the invention.It also should be noted that for the ease of retouching It states, only the parts related to the present invention are shown in attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of power compensating method provided by the embodiments of the present application, is applicable to send out terminal device The power of transmitting antenna is compensated when penetrating signal, this method can be held by terminal device provided by the embodiments of the present application Row, the mode that software and/or hardware can be used in the power compensating device of the terminal device is realized, as shown in Figure 1, the present embodiment mentions The concrete scheme of confession is as follows:
Step S101, when detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined, Wherein, the terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna.
Terminal device can transmit signals to base station by antenna to be communicated with other terminal devices, or access internet Carry out network communication.In order to guarantee communication quality, mutiple antennas, such as a primary antenna and one are usually set in terminal device Auxiliary antenna.In order to guarantee that the consistency of sendaisle needs to carry out transmission power calibration in antenna transmitting signal process.
When determining that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.In a reality It applies in example, can determine whether to carry out signal transmitting by the operation and network state for detecting terminal device, illustratively, such as when inspection When measuring under terminal device is on call or non-offline mode state, transmitting antenna used in transmitting signal is determined, also It can be, when detecting that terminal device is under open state, it is determined that transmitting antenna used in transmitting signal.At another In embodiment, when detecting signal emission module work, it is determined that terminal device is carrying out signal transmitting, determines hair at this time Penetrate transmitting antenna used in signal.In one embodiment, by control DPDT (Double Pole Double Throw, Double-pole double throw) state to carry out the switching between different transmitting antennas, therefore can be by reading the connected state of DPDT to identify It determines currently to emit transmitting antenna used in signal.Illustratively, DPDT passes through the different settable 4 kinds of companies of the mode of connection Logical state, such as A, B, C and D, wherein every kind of connected state, which can be respectively corresponded, works as identification such as a, b, c and d using 4 transmitting antennas When being in different connected states to DPDT, the currently used transmitting antenna of terminal device can be determined accordingly.
It should be noted that main transmitting antenna and auxiliary transmitting antenna can by terminal device factory setting, can also according to test, Research staff is manually set, and when terminal device contains at least two transmitting antenna, can define one of them is main transmitting antenna, Transmitting antenna supplemented by others.
If step S102, carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting antenna and the master The power difference value of transmitting antenna.
When detecting that terminal device carries out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting antenna and main hair Penetrate the power difference value of antenna.Wherein, the power difference value be in test process measure in advance obtained main transmitting test bench with The difference of auxiliary transmitting test bench transmission power.In the prior art, the calibration parameter of antenna is tested by radio frequency testing seat, and will The calibration parameter is applied in signal transmitting, traditional terminal device such as smart phone, and the setting of radio frequency testing seat is switched in DPDT Input and transmitting module (such as honeycomb transmitting module) between, when for radio frequency testing seat setting DPDT switch output with antenna it Between when, different antenna rf test benches (such as primary antenna radio frequency testing seat and auxiliary antenna rf test bench) distance DPDT switch Length is different, and illustratively, the length difference of primary antenna radio frequency testing seat and auxiliary antenna rf test bench distance DPDT switch is in 2cm When, the transmission power Insertion Loss that the two measures is 1.2dB.In one embodiment, when using main transmitting antenna as antenna calibration basis When, if detect that terminal device carries out signal transmitting using auxiliary transmitting antenna, since Insertion Loss above-mentioned exists, need to auxiliary The transmission power of transmitting antenna compensates so that antenna calibration is correct.Specifically, can be by inquiring the power being locally stored Difference table determines the power difference value of currently used auxiliary transmitting antenna and main transmitting antenna, correspondingly, also saving in the table The calibration parameter of main transmitting antenna, the power difference table pass through main transmitting day by Self -adaptive, such as control test signal respectively Line and auxiliary transmitting antenna carry out signal transmitting, are joined by the calibration that the test result of main transmitting test bench obtains main transmitting antenna Number obtains power difference value and correspondence between auxiliary transmitting antenna and main transmitting antenna by the test result of auxiliary transmitting test bench It saves.
Step S103, power compensation is carried out to the transmitting signal according to the power difference value.
In one embodiment, which is stored in terminal device in the form of power difference table, wherein should Table further comprises the calibration parameter of main transmitting antenna, which can exist in the form of xml, can be directed in system, It can also be in the power difference table for carrying out importing the xml form when signal transmitting, according to the parameter in power difference (with high obturator For piece, illustratively, such as TxRGI parameter, Power parameter and DeltaPwr parameter) carry out power compensation, wherein calibration ginseng Number can be the calibration of the Tx based on 3/4g, and in one embodiment, terminal device includes main transmitting antenna and an auxiliary transmitting day Line, the power difference table determined in test process are as shown in table 1 below, wherein TxRGI is linear gauging parameter, parameter value model It encloses and can be 26~60, only exposition numerical point, Power are the corresponding main transmitting antenna of parameters value in TxRGI in table Calibration performance number, DeltaPwr is current auxiliary transmitting antenna and the corresponding power difference value of main transmitting antenna.
Table 1
Specifically, compensation power is the power difference inquired in table 1 when auxiliary transmitting antenna carries out signal transmitting Value, using the power difference value transmission power current as auxiliary transmitting antenna plus the calibration performance number of main transmitting antenna.
As shown in the above, when terminal device carries out signal transmitting, if carrying out signal hair using auxiliary transmitting antenna It penetrates, then accordingly carries out power compensation, so that transmission power of the terminal device when carrying out signal transmitting using auxiliary transmitting antenna Meet communication coherence request, improves the calibration accuracy of antenna.
Fig. 2 is the flow chart of another power compensating method provided by the embodiments of the present application, optionally, is set in detection terminal Before standby progress signal transmitting, further include:Determine transmitting calibration parameter and auxiliary transmitting antenna and the master of main transmitting antenna The power difference value of transmitting antenna, and saved.As shown in Fig. 2, technical solution is specific as follows:
Step S201, the transmitting calibration parameter and auxiliary transmitting antenna and the main transmitting antenna of main transmitting antenna are determined Power difference value, and saved.
In one embodiment, determination process can be:Control test signal carries out signal transmitting by main transmitting antenna, Foundation and the determining master corresponding with the main transmitting antenna of the test result of the corresponding main transmitting test bench of the main transmitting antenna Transmitting calibration parameter;Control test signal carries out signal transmitting by auxiliary transmitting antenna, and foundation and the auxiliary transmitting antenna are corresponding The test result of auxiliary transmitting test bench determine the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.Specifically , it can be switched by DPDT to switch the transmitting antenna that transmitting signal uses, when terminal device carries out letter using main transmitting antenna Number transmitting when, by it is main transmitting test bench test result obtain accurate transmitting calibration parameter, correspondingly, by DPDT switch into Row switches so that auxiliary transmitting antenna carries out signal transmitting, and the power that measures of the test bench for recording auxiliary transmitting antenna accordingly and master Power difference value in the calibration parameter of transmitting antenna, correspondence are stored in power difference table.
Step S202, when detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.
If step S203, carrying out signal transmitting using auxiliary transmitting antenna, the auxiliary hair is determined according to power difference table Penetrate the power difference value of antenna and the main transmitting antenna, wherein the power difference table include the transmitting calibration parameter with And power difference value corresponding with the transmitting calibration parameter.
Step S204, power compensation is carried out to the transmitting signal according to the power difference value.
It can be seen from the above, carrying out function accordingly when detecting that terminal device carries out signal transmitting using auxiliary transmitting antenna Rate compensation so that transmitting signal power stability meet communicating requirement, improve the calibration accuracy of transmitting antenna.
Fig. 3 is the flow chart of another power compensating method provided by the embodiments of the present application, optionally, the power difference Value includes the power difference value of the auxiliary transmitting antenna and main transmitting antenna under different frequency range.As shown in figure 3, technical solution is specific It is as follows:
Step S301, it determines the power difference value of the auxiliary transmitting antenna and main transmitting antenna under different frequency range, and carries out It saves.
Illustratively, the power difference such as following table of the auxiliary transmitting antenna and main transmitting antenna tested under band segment It is shown,
Table 2
Step S302, when detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.
Transmitting frequency range if step S303, carrying out signal transmitting using auxiliary transmitting antenna, according to current transmitting signal Inquiry power difference table determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
Terminal device can emit the transmitting signal of multiple and different frequency ranges, in one embodiment to meet communication needs In, according to the transmitting frequency range determination power difference value corresponding with the frequency range of transmitting signal to the transmission power of auxiliary transmitting antenna into Row compensation.
Step S304, power compensation is carried out to the transmitting signal according to the power difference value.
It can be seen from the above, passing through the transmitting to auxiliary transmitting antenna when terminal device sends the transmitting signal of different frequency range Power compensates, and meets the transmission power requirement of the frequency range, improves antenna calibration precision.
Fig. 4 is the flow chart of another power compensating method provided by the embodiments of the present application, optionally, described according to institute After power difference value is stated to transmitting signal progress power compensation, further include:Detect whether the terminal device meets hair Antenna switching condition is penetrated, if it is satisfied, then carrying out the switching of transmitting antenna, and corresponding and main according to the transmitting antenna after switching The power difference value of transmitting antenna carries out power compensation.As shown in figure 4, technical solution is specific as follows:
Step S401, the transmitting calibration parameter and auxiliary transmitting antenna and the main transmitting antenna of main transmitting antenna are determined Power difference value generates power difference table and is saved.
Wherein, transmitting calibration parameter include for it is different transmitting signals setting linear gauging parameters and with the linear school The corresponding calibration performance number of quasi- parameter.
Step S402, when detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.
Step S403, judge whether the transmitting antenna is main transmitting antenna, if so, S404 is thened follow the steps, if It is no, then follow the steps S405.
Step S404, current transmitting signal is calibrated according to the transmitting calibration parameter.
Step S405, corresponding school is obtained according to the corresponding linear gauging parameter query power difference table of current transmitting signal The calibration performance number and differing power value are summed to obtain correction transmission power, and driven by quasi- performance number and differing power value Transmitting module carries out gain adjustment so that the signal power that auxiliary transmitting antenna issues is the correction transmission power.
Step S406, judge whether terminal device meets transmitting antenna switching condition, if so, thening follow the steps S407.
In one embodiment, terminal device includes that at least two transmitting antennas, such as a main transmitting antenna and one are auxiliary Transmitting antenna can assess transmitting antenna performance, service performance is good in signal emission process using transmitting antenna Transmitting antenna carry out signal transmitting, when judge that transmitting antenna meets switching condition, correspondingly, progress step S407 sent out The switching of antenna is penetrated to improve the signal transmitting and receiving performance of terminal device.Optionally, respectively to main transmitting antenna and auxiliary transmitting antenna Received signal intensity is detected, when one of transmitting antenna received signal intensity is greater than another transmitting antenna (such as larger than 5dBm), and the big transmitting antenna of received signal strength is not that the signal of present terminal equipment emits the transmitting day used When line, step S407 is executed.
Step S407, the switching for carrying out transmitting antenna after switching, executes step S403.
It can be seen from the above, terminal device can carry out cutting for antenna according to transmitting antenna performance in carrying out signal emission process It changes, while carrying out corresponding power compensation according to the transmitting antenna after switching, the further perfect mechanism of antenna transmitting signal.
Fig. 5 is the flow chart of another window control power compensating method provided by the embodiments of the present application, optionally, described Detect whether the terminal device meets transmitting antenna switching condition, if it is satisfied, then the switching for carrying out transmitting antenna includes:Such as Fruit detects that the terminal device is in grip state, it is determined that the received signal strength of currently used transmitting antenna, if The received signal strength is less than the switching that preset threshold then carries out transmitting antenna.As shown in figure 5, technical solution is specific as follows:
Step S501, the transmitting calibration parameter and auxiliary transmitting antenna and the main transmitting antenna of main transmitting antenna are determined Power difference value generates power difference table and is saved.
Step S502, when detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.
Step S503, judge whether the transmitting antenna is main transmitting antenna, if so, S504 is thened follow the steps, if It is no, then follow the steps S505.
Step S504, current transmitting signal is calibrated according to the transmitting calibration parameter.
Step S505, corresponding school is obtained according to the corresponding linear gauging parameter query power difference table of current transmitting signal The calibration performance number and differing power value are summed to obtain correction transmission power, and driven by quasi- performance number and differing power value Transmitting module carries out gain adjustment so that the signal power that auxiliary transmitting antenna issues is the correction transmission power.
Step S506, the state parameter of terminal device is obtained.
Wherein, which can be the motion state parameters of acceleration transducer, the terminal device that gyroscope measures, It can also be the touch condition parameter that touch screen detects.
Step S507, terminal device is judged currently whether in grip state, if it is, holding according to the state parameter Row step S508, if not, thening follow the steps S506.
In one embodiment, which is acceleration parameter and/or gyroscope parameters, when parameter meets default item When part (such as acceleration or gyroscope parameters are not 0), i.e. judgement terminal device is in grip state.In another embodiment, The state parameter is the touch condition parameter of touch screen, and the parameter is for characterizing the touch area that touch screen detects, if touching It touches region satisfaction gripping Rule of judgment (the screen area accounting for being such as larger than equal to 1/8) and is then determined as terminal device in gripping shape State.
Step S508, judge whether terminal device meets transmitting antenna switching condition, if so, thening follow the steps S509.
Step S509, the switching for carrying out transmitting antenna after switching, executes step S503.
It can be seen from the above, the judgement whether transmitting antenna switches is carried out when detecting that terminal device is in grip state, Transmitting antenna switching efficiency is improved, after switching transmitting antenna, calls corresponding calibration parameter or power compensating value accordingly The correction for carrying out transmitting signal, significantly improves antenna calibration precision.
Fig. 6 is a kind of structural block diagram of power compensating device provided by the embodiments of the present application, and the device is above-mentioned for executing The power compensating method that embodiment provides, has the corresponding functional module of execution method and beneficial effect.As shown in fig. 6, the dress It sets and specifically includes:Antenna determining module 101, power determination module 102 and compensating module 103, wherein
Antenna determining module 101, for when detecting that terminal device carries out signal transmitting, determining that transmitting signal is used Transmitting antenna, wherein the terminal device includes main transmitting antenna and at least one auxiliary transmitting antenna.
Terminal device can transmit signals to base station by antenna to be communicated with other terminal devices, or access internet Carry out network communication.In order to guarantee communication quality, mutiple antennas, such as a primary antenna and one are usually set in terminal device Auxiliary antenna.In order to guarantee that the consistency of sendaisle needs to carry out transmission power calibration in antenna transmitting signal process.
When determining that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined.In a reality It applies in example, can determine whether to carry out signal transmitting by the operation and network state for detecting terminal device, illustratively, such as when inspection When measuring under terminal device is on call or non-offline mode state, transmitting antenna used in transmitting signal is determined, also It can be, when detecting that terminal device is under open state, it is determined that transmitting antenna used in transmitting signal.At another In embodiment, when detecting signal emission module work, it is determined that terminal device is carrying out signal transmitting, determines hair at this time Penetrate transmitting antenna used in signal.In one embodiment, by control DPDT (Double Pole Double Throw, Double-pole double throw) state to carry out the switching between different transmitting antennas, therefore can be by reading the connected state of DPDT to identify It determines currently to emit transmitting antenna used in signal.Illustratively, DPDT passes through the different settable 4 kinds of companies of the mode of connection Logical state, such as A, B, C and D, wherein every kind of connected state, which can be respectively corresponded, works as identification such as a, b, c and d using 4 transmitting antennas When being in different connected states to DPDT, the currently used transmitting antenna of terminal device can be determined accordingly.
It should be noted that main transmitting antenna and auxiliary transmitting antenna can by terminal device factory setting, can also according to test, Research staff is manually set, and when terminal device contains at least two transmitting antenna, can define one of them is main transmitting antenna, Transmitting antenna supplemented by others.
Power determination module 102, if for carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting day The power difference value of line and the main transmitting antenna.
When detecting that terminal device carries out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting antenna and main hair Penetrate the power difference value of antenna.Wherein, the power difference value be in test process measure in advance obtained main transmitting test bench with The difference of auxiliary transmitting test bench transmission power.In the prior art, the calibration parameter of antenna is tested by radio frequency testing seat, and will The calibration parameter is applied in signal transmitting, traditional terminal device such as smart phone, and the setting of radio frequency testing seat is switched in DPDT Input and transmitting module (such as honeycomb transmitting module) between, when for radio frequency testing seat setting DPDT switch output with antenna it Between when, different antenna rf test benches (such as primary antenna radio frequency testing seat and auxiliary antenna rf test bench) distance DPDT switch Length is different, and illustratively, the length difference of primary antenna radio frequency testing seat and auxiliary antenna rf test bench distance DPDT switch is in 2cm When, the transmission power Insertion Loss that the two measures is 1.2dB.In one embodiment, when using main transmitting antenna as antenna calibration basis When, if detect that terminal device carries out signal transmitting using auxiliary transmitting antenna, since Insertion Loss above-mentioned exists, need to auxiliary The transmission power of transmitting antenna compensates so that antenna calibration is correct.Specifically, can be by inquiring the power being locally stored Difference table determines the power difference value of currently used auxiliary transmitting antenna and main transmitting antenna, correspondingly, also saving in the table The calibration parameter of main transmitting antenna, the power difference table pass through main transmitting day by Self -adaptive, such as control test signal respectively Line and auxiliary transmitting antenna carry out signal transmitting, are joined by the calibration that the test result of main transmitting test bench obtains main transmitting antenna Number obtains power difference value and correspondence between auxiliary transmitting antenna and main transmitting antenna by the test result of auxiliary transmitting test bench It saves.
Compensating module 103, for carrying out power compensation to the transmitting signal according to the power difference value.
In one embodiment, which is stored in terminal device in the form of power difference table, wherein should Table further comprises the calibration parameter of main transmitting antenna, which can exist in the form of xml, can be directed in system, It can also be in the power difference table for carrying out importing the xml form when signal transmitting, according to the parameter in power difference (with high obturator For piece, illustratively, such as TxRGI parameter, Power parameter and DeltaPwr parameter) carry out power compensation, wherein calibration ginseng Number can be the calibration of the Tx based on 3/4g.Specifically, compensation power is in table 1 when auxiliary transmitting antenna carries out signal transmitting Obtained power difference value is inquired, the calibration performance number using the power difference value plus main transmitting antenna is worked as auxiliary transmitting antenna Preceding transmission power.
As shown in the above, when terminal device carries out signal transmitting, if carrying out signal hair using auxiliary transmitting antenna It penetrates, then accordingly carries out power compensation, so that transmission power of the terminal device when carrying out signal transmitting using auxiliary transmitting antenna Meet communication coherence request, improves the calibration accuracy of antenna.
In a possible embodiment, the power determination module 102 is also used to:
Before detection terminal device carries out signal transmitting, the transmitting calibration parameter and auxiliary transmitting of main transmitting antenna are determined The power difference value of antenna and the main transmitting antenna, and saved.
In a possible embodiment, the power determination module 102 is specifically used for:
Control test signal carries out signal transmitting, foundation and the corresponding main hair of the main transmitting antenna by main transmitting antenna Penetrate the determining main transmitting calibration parameter corresponding with the main transmitting antenna of test result of test bench;
Control test signal carries out signal transmitting, foundation and the corresponding auxiliary hair of the auxiliary transmitting antenna by auxiliary transmitting antenna The test result for penetrating test bench determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
In a possible embodiment, the power difference value includes auxiliary transmitting antenna and main hair under different frequency range Penetrate the power difference value of antenna.
In a possible embodiment, the antenna determining module 101 is also used to:
It is described according to the power difference value to the transmitting signal carry out power compensation after, detect the terminal and set It is standby whether to meet transmitting antenna switching condition, if it is satisfied, then carrying out the switching of transmitting antenna, and according to the transmitting day after switching The power difference value of the corresponding and main transmitting antenna of line carries out power compensation.
In a possible embodiment, the antenna determining module 101 is specifically used for:
If detecting that the terminal device is in grip state, it is determined that the reception signal of currently used transmitting antenna Intensity carries out the switching of transmitting antenna if the received signal strength is less than preset threshold.
In a possible embodiment, the power determination module 102 is specifically used for:
Power difference value table according to storage determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
The present embodiment provides a kind of terminal device on the basis of the various embodiments described above, and Fig. 7 is that the embodiment of the present application mentions The structural schematic diagram of a kind of terminal device supplied, as shown in fig. 7, the terminal device 200 includes:Memory 201, processor (Central Processing Unit, CPU) 202, Peripheral Interface 203, RF (Radio Frequency, radio frequency) circuit 205, Voicefrequency circuit 206, loudspeaker 211, power management chip 208, input/output (I/O) subsystem 209, touch screen 212, antenna Module 213, other input/control devicess 210 and outside port 204, these components pass through one or more communication bus or Signal wire 207 communicates.
It should be understood that graphic terminal 200 is only an example of terminal device, and terminal device 200 It can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device of the rights management provided in this embodiment for more opening application is described in detail below, should Terminal device is by taking smart phone as an example.
Memory 201, the memory 201 can be accessed by CPU202, Peripheral Interface 203 etc., and the memory 201 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU202 and deposited by Peripheral Interface 203, the Peripheral Interface 203 Reservoir 201.
I/O subsystem 209, the I/O subsystem 209 can be by the input/output peripherals in equipment, such as touch screen 212 With other input/control devicess 210, it is connected to Peripheral Interface 203.I/O subsystem 209 may include 2091 He of display controller For controlling one or more input controllers 2092 of other input/control devicess 210.Wherein, one or more input controls Device 2092 processed receives electric signal from other input/control devicess 210 or sends electric signal to other input/control devicess 210, Other input/control devicess 210 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 2092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 212, the touch screen 212 are the input interface and output interface between user terminal and user, can It is shown to user depending on output, visual output may include figure, text, icon, video etc..
Display controller 2091 in I/O subsystem 209 receives electric signal from touch screen 212 or sends out to touch screen 212 Electric signals.Touch screen 212 detects the contact on touch screen, and the contact that display controller 2091 will test is converted to and is shown The interaction of user interface object on touch screen 212, i.e. realization human-computer interaction, the user interface being shown on touch screen 212 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 205 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 205 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 205 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 205 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 206 is mainly used for receiving audio data from Peripheral Interface 203, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 211.
Loudspeaker 211 is reduced to sound for mobile phone to be passed through RF circuit 205 from the received voice signal of wireless network And the sound is played to user.
Power management chip 208, the hardware for being connected by CPU202, I/O subsystem and Peripheral Interface are powered And power management.
The executable present invention of the power compensating device and terminal device of the terminal device provided in above-described embodiment is any real The power compensating method for applying terminal device provided by example has and executes the corresponding functional module of this method and beneficial effect.Not The technical detail of detailed description in the above-described embodiments, reference can be made to the power of terminal device provided by any embodiment of the invention Compensation method.
The embodiment of the present application also provides a kind of storage medium comprising terminal device executable instruction, and the terminal device can It executes instruction when being executed by terminal device processor for executing a kind of power compensating method, this method includes:
When detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined, wherein described Terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna;
If auxiliary transmitting antenna is used to carry out signal transmitting, it is determined that the auxiliary transmitting antenna and the main transmitting antenna Power difference value;
Power compensation is carried out to the transmitting signal according to the power difference value.
In a possible embodiment, before detection terminal device carries out signal transmitting, further include:
Determine the transmitting calibration parameter of main transmitting antenna and the power difference of auxiliary transmitting antenna and the main transmitting antenna Value, and saved.
In a possible embodiment, the transmitting calibration parameter of the main transmitting antenna of the determination and auxiliary transmitting antenna and The power difference value of the main transmitting antenna includes:
Control test signal carries out signal transmitting, foundation and the corresponding main hair of the main transmitting antenna by main transmitting antenna Penetrate the determining main transmitting calibration parameter corresponding with the main transmitting antenna of test result of test bench;
Control test signal carries out signal transmitting, foundation and the corresponding auxiliary hair of the auxiliary transmitting antenna by auxiliary transmitting antenna The test result for penetrating test bench determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
In a possible embodiment, the power difference value includes auxiliary transmitting antenna and main hair under different frequency range Penetrate the power difference value of antenna.
In a possible embodiment, power benefit is carried out to the transmitting signal according to the power difference value described After repaying, further include:
Detect whether the terminal device meets transmitting antenna switching condition, if it is satisfied, then carrying out cutting for transmitting antenna It changes, and carries out power compensation according to the power difference value of the corresponding and main transmitting antenna of the transmitting antenna after switching.
In a possible embodiment, whether the detection terminal device meets transmitting antenna switching condition, such as Fruit meets, then the switching for carrying out transmitting antenna includes:
If detecting that the terminal device is in grip state, it is determined that the reception signal of currently used transmitting antenna Intensity carries out the switching of transmitting antenna if the received signal strength is less than preset threshold.
In a possible embodiment, the power difference of the determination auxiliary transmitting antenna and the main transmitting antenna Value includes:
Power difference value table according to storage determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as by network connection different computer systems in) two or More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement For computer program).
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present application The power compensating method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the invention Relevant operation in power compensating method.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. power compensating method, which is characterized in that including:
When detecting that terminal device carries out signal transmitting, transmitting antenna used in transmitting signal is determined, wherein the terminal Equipment includes a main transmitting antenna and at least one auxiliary transmitting antenna;
If carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the power of the auxiliary transmitting antenna and the main transmitting antenna Difference value;
Power compensation is carried out to the transmitting signal according to the power difference value.
2. the method according to claim 1, wherein also being wrapped before detection terminal device carries out signal transmitting It includes:
Determine the transmitting calibration parameter of main transmitting antenna and the power difference value of auxiliary transmitting antenna and the main transmitting antenna, and It is saved.
3. according to the method described in claim 2, it is characterized in that, the transmitting calibration parameter of the main transmitting antenna of the determination and The power difference value of auxiliary transmitting antenna and the main transmitting antenna includes:
Control test signal carries out signal transmitting by main transmitting antenna, and foundation and the corresponding main transmitting of the main transmitting antenna are surveyed Try the determining main transmitting calibration parameter corresponding with the main transmitting antenna of test result of seat;
Control test signal carries out signal transmitting by auxiliary transmitting antenna, and foundation and the corresponding auxiliary transmitting of the auxiliary transmitting antenna are surveyed The test result of examination seat determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
4. according to the method in claim 2 or 3, which is characterized in that the power difference value includes under different frequency range The power difference value of auxiliary transmitting antenna and main transmitting antenna.
5. according to the method described in claim 4, it is characterized in that, believing according to the power difference value the transmitting described Number carry out power compensation after, further include:
Detect whether the terminal device meets transmitting antenna switching condition, if it is satisfied, then the switching of transmitting antenna is carried out, and Power difference value according to the corresponding and main transmitting antenna of transmitting antenna after switching carries out power compensation.
6. according to the method described in claim 5, it is characterized in that, whether the detection terminal device meets transmitting antenna Switching condition, if it is satisfied, then the switching for carrying out transmitting antenna includes:
If detecting that the terminal device is in grip state, it is determined that the reception signal of currently used transmitting antenna is strong Degree carries out the switching of transmitting antenna if the received signal strength is less than preset threshold.
7. method according to claim 5 or 6, which is characterized in that the determination auxiliary transmitting antenna and the main hair The power difference value for penetrating antenna includes:
Power difference value table according to storage determines the power difference value of the auxiliary transmitting antenna and the main transmitting antenna.
8. power compensating device, which is characterized in that including:
Antenna determining module, for when detecting that terminal device carries out signal transmitting, determining transmitting used in transmitting signal Antenna, wherein the terminal device includes a main transmitting antenna and at least one auxiliary transmitting antenna;
Power determination module, if for carrying out signal transmitting using auxiliary transmitting antenna, it is determined that the auxiliary transmitting antenna and institute State the power difference value of main transmitting antenna;
Compensating module, for carrying out power compensation to the transmitting signal according to the power difference value.
9. a kind of terminal device, including:Processor, memory, transmitting antenna and storage are on a memory and can be in processor The computer program of upper operation, which is characterized in that the processor realizes such as claim 1-7 when executing the computer program Any one of described in power compensating method.
10. a kind of storage medium comprising terminal device executable instruction, which is characterized in that the terminal device executable instruction When being executed by terminal device processor for executing such as power compensating method of any of claims 1-7.
CN201810522364.4A 2018-05-28 2018-05-28 Power compensation method, device, terminal equipment and storage medium Active CN108832944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810522364.4A CN108832944B (en) 2018-05-28 2018-05-28 Power compensation method, device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810522364.4A CN108832944B (en) 2018-05-28 2018-05-28 Power compensation method, device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108832944A true CN108832944A (en) 2018-11-16
CN108832944B CN108832944B (en) 2020-02-07

Family

ID=64146185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810522364.4A Active CN108832944B (en) 2018-05-28 2018-05-28 Power compensation method, device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108832944B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669199A (en) * 2020-06-08 2020-09-15 维沃移动通信有限公司 Power detection circuit and electronic equipment
WO2021115250A1 (en) * 2019-12-11 2021-06-17 维沃移动通信有限公司 Power control apparatus and method, and electronic device
CN113514793A (en) * 2021-06-09 2021-10-19 上海铂联通信技术有限公司 Direction finding link calibration method and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101809874A (en) * 2007-08-08 2010-08-18 高通股份有限公司 Method and system for precise transmit power adjustment in wireless communication systems
US8630595B2 (en) * 2007-03-01 2014-01-14 Google Inc. System, method and apparatus for transmit diversity control based on variations in propagation path

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8630595B2 (en) * 2007-03-01 2014-01-14 Google Inc. System, method and apparatus for transmit diversity control based on variations in propagation path
CN101809874A (en) * 2007-08-08 2010-08-18 高通股份有限公司 Method and system for precise transmit power adjustment in wireless communication systems

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021115250A1 (en) * 2019-12-11 2021-06-17 维沃移动通信有限公司 Power control apparatus and method, and electronic device
CN111669199A (en) * 2020-06-08 2020-09-15 维沃移动通信有限公司 Power detection circuit and electronic equipment
CN113514793A (en) * 2021-06-09 2021-10-19 上海铂联通信技术有限公司 Direction finding link calibration method and system

Also Published As

Publication number Publication date
CN108832944B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN107277912B (en) Radio frequency interference processing method, device, storage medium and terminal
CN107393548B (en) Method and device for processing voice information collected by multiple voice assistant devices
CN108279408B (en) Proximity sensor calibration method and device, mobile terminal and computer readable medium
US20080051165A1 (en) Rf power control using proximity sensor
CN111093259B (en) Bluetooth power adjustment method and device, storage medium and terminal
CN112311930A (en) Terminal testing method and device, storage medium and mobile terminal
CN108832944A (en) Power compensating method, device, terminal device and storage medium
CN108055687A (en) Wireless network connecting method, device, terminal device and storage medium
CN108901031A (en) Radio frequency parameter method of adjustment, device, mobile terminal and storage medium
CN108964838A (en) transmission rate adjusting method, device and electronic device
CN111092671A (en) Signal strength reporting method and device, storage medium and terminal equipment
CN107122036B (en) Method and device for adjusting frequency of central processing unit
CN113286335B (en) Frequency point switching method and device, storage medium and access point
CN108833033B (en) Method and device for determining radio frequency calibration parameters, storage medium and mobile terminal
CN108337719A (en) wireless network scanning method, device, terminal device and storage medium
CN108307485A (en) wireless network scanning method, device, terminal device and storage medium
CN112367613A (en) Positioning method, positioning device, storage medium and terminal
CN117269946A (en) Distance determining method and device between Bluetooth devices, electronic device and medium
CN108337715A (en) Wireless network connecting method, device, terminal device and storage medium
CN108199788B (en) Transmission power testing method, device and system and electronic equipment
CN106293006B (en) Run the method, device and mobile terminal in Magnetic Sensor calibration algorithm library
CN113593602B (en) Audio processing method and device, electronic equipment and storage medium
CN108923866A (en) antenna calibration method, device, terminal device and storage medium
CN110849407B (en) Sensor testing method and device, storage medium and electronic equipment
CN108337718A (en) wireless network scanning method, device, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant