Summary of the invention
The technical matters that the present invention mainly solves is to provide the system and method for radio-frequency power amplifier in a kind of testing mobile terminal, can test with relatively simple, relatively at a high speed mode radio frequency power amplifier, improve the testing efficiency of radio-frequency power amplifier.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: the system providing the radio-frequency power amplifier in a kind of testing mobile terminal, and this system comprises signaling module, computing machine, single-chip microcomputer, radio-frequency power amplifier and proving installation; Signaling module is for generation of undressed original signal; Computing machine is used for the test code after by compiling and is downloaded to single-chip microcomputer by serial line interface; Single-chip microcomputer is used for controlling radio-frequency power amplifier according to test code and carries out amplification process to original signal; Whether proving installation reaches through the original signal of amplifying after process the intensity supplying antenna transmission for testing.
Wherein, single-chip microcomputer comprises GPIO interface, and radio-frequency power amplifier comprises radio-frequency front-end interface, and wherein, single-chip microcomputer utilizes GPIO interface software analog radio frequency front-end interface and radio-frequency power amplifier to carry out communication.
Wherein, test code comprises the type of original signal and the predetermined gain of original signal, and wherein, the type of original signal and the predetermined gain of original signal are sent to radio-frequency power amplifier by GPIO interface by single-chip microcomputer.
Wherein, radio-frequency power amplifier comprises switching over module and gain amplifier module, radio-frequency power amplifier is according to the Type Control switching over module of original signal to select the amplification channel corresponding with original signal, and radio-frequency power amplifier controls gain amplifier module according to the predetermined gain of original signal and amplifies according to predetermined gain to make original signal.
Wherein, the type of original signal is the one in 2G signal, 3G signal and 4G signal.
Wherein, original signal is at least one in voice signal and data-signal, and wherein, when original signal comprises voice signal and data-signal, first radio-frequency power amplifier carries out amplification process to voice signal, then carries out to data-signal amplifications and process.
Wherein, this system comprises further: power circuit, for providing working power to single-chip microcomputer and radio-frequency power amplifier; Crystal oscillating circuit, for providing clock signal to single-chip microcomputer; Reset circuit, for providing reset signal to make monolithic processor resetting to duty to single-chip microcomputer.For solving the problems of the technologies described above, another technical solution used in the present invention is: the method providing the radio-frequency power amplifier in a kind of testing mobile terminal, and the method comprises: by computing machine, compiled test code is downloaded to single-chip microcomputer by serial line interface; Undressed original signal is produced by signaling module; Control radio-frequency power amplifier by single-chip microcomputer according to test code and amplification process is carried out to original signal; Test whether reach through the original signal of amplifying after process the intensity supplying antenna transmission by proving installation.
Wherein, control radio-frequency power amplifier by single-chip microcomputer according to test code to comprise the step that original signal carries out amplifying process: test code comprises the type of original signal and the predetermined gain of original signal, wherein, utilize GPIO interface software analog radio frequency front-end interface that the type of original signal and the predetermined gain of original signal are sent to radio-frequency power amplifier by single-chip microcomputer; Radio-frequency power amplifier comprises switching over module and gain amplifier module, by radio-frequency power amplifier according to the Type Control switching over module of original signal to select the amplification channel corresponding with original signal, amplified according to predetermined gain to make original signal by the predetermined gain control gain amplifier module of radio-frequency power amplifier according to original signal.
Wherein, original signal comprises voice signal and data-signal, predetermined gain comprises the first predetermined gain and the second predetermined gain, and first radio-frequency power amplifier carries out amplification process to voice signal according to the first predetermined gain, then carries out amplification process to data-signal according to the second predetermined gain.
The invention has the beneficial effects as follows: the situation being different from prior art, in testing mobile terminal of the present invention, the test code after compiling is downloaded to single-chip microcomputer by serial line interface by computing machine by the system and method for radio-frequency power amplifier, control radio-frequency power amplifier by single-chip microcomputer according to test code and amplification process is carried out to original signal, whether reach the intensity for antenna transmission by the proving installation original signal of testing after amplifying and processing.By the way, the present invention can test with relatively simple, relatively at a high speed mode radio frequency power amplifier, improves the testing efficiency of radio-frequency power amplifier.
Embodiment
Below in conjunction with drawings and embodiments, the present invention is described in detail.
Fig. 1 is the structural representation of the system of radio-frequency power amplifier in the testing mobile terminal of the embodiment of the present invention.As shown in Figure 1, this system comprises: signaling module 10, computing machine 20, single-chip microcomputer 30, radio-frequency power amplifier 40, proving installation 50, power circuit 60, crystal oscillating circuit 70 and reset circuit 80.
Signaling module 10 is connected with radio-frequency power amplifier 40, transfers to radio-frequency power amplifier 40 for generation of undressed original signal.Wherein, the type of original signal is the one in 2G signal, 3G signal and 4G signal, and original signal is at least one in voice signal and data-signal.
Computing machine 20 comprises serial line interface 201, and computing machine 20 is for being downloaded to single-chip microcomputer 30 by the test code after compiling by serial line interface 201.Wherein, test code is code power amplifier 40 being carried out to performance adjustment.
Single-chip microcomputer 30 carries out amplification process for controlling radio-frequency power amplifier 40 pairs of original signals according to test code.Wherein, single-chip microcomputer 30 comprises GPIO interface 301 and serial line interface 302, and radio-frequency power amplifier 40 comprises radio-frequency front-end (MIPIRFFE) interface 401, switching over module 402 and gain amplifier module 403.
Single-chip microcomputer 30 carries out communication to obtain the test code after compiling from computing machine 20 by serial line interface 302 and computing machine 20.Single-chip microcomputer 30 utilizes GPIO interface 301 software simulation radio-frequency front-end interface and radio-frequency power amplifier 40 to carry out communication.Wherein, test code comprises the type of original signal and the predetermined gain of original signal, single-chip microcomputer 30 utilizes GPIO interface 301 software simulation radio-frequency front-end interface so that the type of original signal and the predetermined gain of original signal are sent to radio-frequency power amplifier 40, is in predetermined test mode to make radio-frequency power amplifier 40.
Specifically, GPIO interface 301 comprises a GPIO mouth (not shown) and the 2nd GPIO mouth (not shown), and radio-frequency front-end interface 401 comprises clock signal terminal (not shown) and data signal terminal (not shown).One GPIO mouth and clock signal terminal sub-connection, single-chip microcomputer 30 provides clock signal according to MIPIRFFE protocol integrated test system the one GPIO mouth to clock signal terminal, 2nd GPIO mouth and data signal end sub-connection, single-chip microcomputer 30 sends the type of original signal and the predetermined gain of original signal according to MIPIRFFE protocol integrated test system the 2nd GPIO mouth to data signal terminal.
After radio-frequency power amplifier 40 gets the type of original signal and the predetermined gain of original signal from radio-frequency front-end interface 401, radio-frequency power amplifier 40 is according to the Type Control switching over module 402 of original signal to select the amplification channel corresponding with original signal, and radio-frequency power amplifier 40 controls gain amplifier module 403 according to the predetermined gain of original signal and amplifies according to predetermined gain to make original signal.Wherein, when original signal comprises voice signal and data-signal, first radio-frequency power amplifier 40 carries out amplification process to voice signal, then carries out amplification process to data-signal.
Proving installation 50 is connected with radio-frequency power amplifier 40, whether reaches the intensity supplying antenna transmission for testing through the original signal of amplifying after process.
Power circuit 60 is connected with radio-frequency power amplifier 40 respectively at single-chip microcomputer 30, for providing stable working power to single-chip microcomputer 30 and radio-frequency power amplifier 40.Preferably, the output terminal of power circuit 60 is provided with switch 601, by the opened/closed control single chip computer 30 of switch 601 and the/power-off that powers on of power amplifier 40.
Crystal oscillating circuit 70 is connected with single-chip microcomputer 30, for providing clock signal to single-chip microcomputer 30.
Reset circuit 80 is connected with single-chip microcomputer 30, is reset to duty for providing reset signal to single-chip microcomputer 30 to make single-chip microcomputer 30.
The specific works process of the system of the radio-frequency power amplifier in the testing mobile terminal of the embodiment of the present invention is as follows:
Compiled test code is downloaded to after in single-chip microcomputer 30 by serial line interface 201 by computing machine 20, once power circuit 60 and crystal oscillating circuit 70 ready, single-chip microcomputer 30 electrifying startup.When single-chip microcomputer 30 receive reset circuit 80 send reset signal and after being reset to duty, single-chip microcomputer 30 starts the operation performed in test code.Specifically, single-chip microcomputer 30 is initialization GPIO interface 301 and serial line interface 302 first, then utilizes GPIO interface 301 software simulation MIPIRFFE interface and radio-frequency power amplifier 40 to carry out communication with the predetermined gain of the type and original signal of transmitting original signal.Type due to original signal is 2G signal, one in 3G signal and 4G signal, the predetermined gain of original signal constantly changes in the process of test, single-chip microcomputer 30 needs the type of the original signal of carrying in test code and the predetermined gain of original signal to be sent to radio-frequency power amplifier 40, after radio-frequency power amplifier 40 receives the type of original signal and the predetermined gain of original signal, radio-frequency power amplifier 40 amplifies according to predetermined gain to make original signal to select the amplification channel corresponding with original signal and to control gain amplifier module 403 according to the predetermined gain of original signal according to the Type Control switching over module 402 of original signal.Such as, when original signal be 2G signal, predetermined gain be magnify 20 time, radio-frequency power amplifier 40 gauge tap handover module 401 selects the amplification channel amplifying 2G signal, and control gain amplifier module 403 is amplified the original signal be arranged in the amplification channel of 2G signal according to the predetermined gain of 20 times.In actual applications, the switching over module 402 of radio-frequency power amplifier 40 and gain amplifier module 403 are all go to control by the register of radio-frequency power amplifier 40, so the type of original signal and the predetermined gain of original signal are written to register corresponding in radio-frequency power amplifier 40 by GPIO interface 301 software simulation MIPIRFFE interface by single-chip microcomputer 30.After radio-frequency power amplifier 40 pairs of original signals carry out amplification process, proving installation 50 is tested the original signal after amplifying process and whether is reached the intensity supplying antenna transmission.Preferably, in order to reduce the number of times that test code is downloaded, in test code, integrated computer 20 directly carries out the function read and write by the register in serial line interface 201 radio frequency power amplifier 40.For example, if the original signal after amplifying process tested by proving installation 50 do not reach the intensity supplying antenna transmission, then computing machine 20 can only by the register of serial line interface 201 by new predetermined gain write radio-frequency power amplifier 40 correspondence, now, radio-frequency power amplifier 40 exports the original signal after amplifying by new predetermined gain and tests for proving installation 50.
In addition, in specific works process, when original signal comprises voice signal and data-signal, when predetermined gain comprises the first predetermined gain and the second predetermined gain, then first radio-frequency power amplifier 40 carries out amplification process to voice signal according to the first predetermined gain, then carries out amplification process to data-signal according to the second predetermined gain.Proving installation 50 is tested the voice signal after amplifying and processing and data-signal simultaneously, to judge whether the original signal comprising voice signal and data-signal is reaching the intensity for antenna transmission after amplifying process.
Fig. 2 is the process flow diagram of the method for radio-frequency power amplifier in the testing mobile terminal of the embodiment of the present invention, and wherein, the method system as shown in Figure 1 performs.If it is noted that there is result identical in fact, method of the present invention is not limited with the flow sequence shown in Fig. 2.As shown in Figure 2, the method comprising the steps of:
Step S101: compiled test code is downloaded to single-chip microcomputer by serial line interface by computing machine.
In step S101, test code is only code power amplifier being carried out to performance adjustment, and it is not the complete machine software code of mobile terminal.
Step S102: produce undressed original signal by signaling module.
In step s 102, the type of original signal is the one in 2G signal, 3G signal and 4G signal, and original signal is at least one in voice signal and data-signal.
Step S103: control radio-frequency power amplifier by single-chip microcomputer according to test code and amplification process is carried out to original signal.
In step s 103, control radio-frequency power amplifier by single-chip microcomputer according to test code to comprise the step that original signal carries out amplifying process: test code comprises the type of original signal and the predetermined gain of original signal, wherein, utilize GPIO interface software analog radio frequency front-end interface that the type of original signal and the predetermined gain of original signal are sent to radio-frequency power amplifier by single-chip microcomputer.Radio-frequency power amplifier comprises switching over module and gain amplifier module, by radio-frequency power amplifier according to the Type Control switching over module of original signal to select the amplification channel corresponding with original signal, amplified according to predetermined gain to make original signal by the predetermined gain control gain amplifier module of radio-frequency power amplifier according to original signal.
Wherein, when original signal comprises voice signal and data-signal, when predetermined gain comprises the first predetermined gain and the second predetermined gain, first radio-frequency power amplifier carries out amplification process to voice signal according to the first predetermined gain, then carries out amplification process to data-signal according to the second predetermined gain.
Step S104: test whether reach through the original signal of amplifying after process the intensity supplying antenna transmission by proving installation.
In step S104, if proving installation test is when the original signal of amplifying after process does not reach the intensity for antenna transmission, then again rewrites test code and continue to perform step S101.
Preferably, because the switching over module 402 of radio-frequency power amplifier 40 and gain amplifier module 403 are all go to control by the register of radio-frequency power amplifier 40, when integrated computer in test code directly carries out by the register in serial line interface radio frequency power amplifier the function read and write, if proving installation test is when the original signal of amplifying after process does not reach the intensity for antenna transmission, then the register of the type of the original signal after renewal and/or predetermined gain write radio-frequency power amplifier 40 correspondence can be realized next round test only by serial line interface by computing machine.
The invention has the beneficial effects as follows: the situation being different from prior art, in testing mobile terminal of the present invention, the test code after compiling is downloaded to single-chip microcomputer by serial line interface by computing machine by the system and method for radio-frequency power amplifier, control radio-frequency power amplifier by single-chip microcomputer according to test code and amplification process is carried out to original signal, whether reach the intensity for antenna transmission by the proving installation original signal of testing after amplifying and processing.By the way, the present invention can test with relatively simple, relatively at a high speed mode radio frequency power amplifier, improves the testing efficiency of radio-frequency power amplifier.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.