Summary of the invention
The implementation method that the purpose of this invention is to provide a kind of radio frequency module power amplification universal debugging interface; It provides the general debugging driving interface of a kind of radio frequency module power amplification working point; The change of RF power amplification can not cause the change of debug terminal code; Simultaneously can carry out management and control and the tuning parameter version can dispose, improve the consistance of production run standardization and radio frequency module power amplification working point, thereby enhance productivity and quality the tuning parameter version.
For achieving the above object, solution of the present invention is: a kind of implementation method of radio frequency module power amplification universal debugging interface, and the implementation method step is:
Step 1: that utilizes driving method repository in the driving method configuration layer opens function creation radio frequency module power amplification object instance, sets up the communication connection corresponding relation with radio frequency module power amplification;
In step 1; The driving method repository passes to the debugging Management Library Driver in the driven management layer with the radio frequency module power amplification connection string; The debugging Management Library Driver separates connection string and identifies the radio frequency module power amplification type according to certain protocol format; Debugging drives case library according to the radio frequency module power amplification in the particular type load driver instance layer again; Utilize debugging to drive then and open function creation radio frequency module power amplification debugger object instance in the case library, simultaneously radio frequency module power amplification debugger object instance handle is returned to the upper strata;
Step 2: the configuration submodule disposes automatically debug method and tuning parameter, indicates the adjustment method and the radio frequency module power amplification working status parameter value of radio frequency module power amplification;
Step 3: utilize the creation method function creation module power amplifier of driving method repository to debug the driving method object automatically, create debugging driving method corresponding relation automatically;
Step 4: utilize the automatic input parameter of debugging driving method of parameter value function configuration of the method to set up of driving method repository, the necessary tuning parameter of automatic debugging is set;
Step 5: utilize the operation function of driving method repository to carry out debugging driving method automatically, start automatic debug procedures;
Step 6: utilize the output parameter value function that obtains of driving method repository to obtain tune-up data, effect is to obtain the drain electrode grid voltage data after debugging is accomplished;
Step 7: utilize the release function of driving method repository to discharge certain driving method object memory source.
The general-purpose platform of said radio frequency module power amplification working point parameter configuration provides for the configuration submodule, and said radio frequency module power amplification working point tuning parameter version can be reviewed, and the use version of working point tuning parameter is configurable.
The automatic commissioning test environment of said radio frequency module power amplification debugging Driver Library is provided by the debugging submodule, and said debugging submodule extracts according to configuration information and identification tuning parameter version information automatically.
Said driving method repository adopts the design philosophy of software factory pattern; The debugging of radio frequency module power amplification is driven all methods to be encapsulated according to the mode of standard; For the upper strata provides unified interface, the method interface that radio frequency module power amplification is supported is visible, and method is selected configuration.
Said debugging Management Library Driver is that the upper strata provides unified interface; Adopt design idea of oriented object; Automatically analyze and management debugging driving case library according to the radio-frequency module connection string, dynamic creation radio frequency module power amplification driven object and method support a plurality of radio frequency module power amplifications to debug simultaneously.
Said debugging drives case library and adopts design idea of oriented object, supports to create a plurality of radio-frequency module driven object, for the upper strata provides unified interface and a kind of radio frequency module power amplification working point driving method implementation procedure.
Said driving method repository, debugging Management Library Driver, debugging drive case library and do
*.dll file
The beneficial effect of the utility model is:
1, the difference between shielded radio frequency module module power amplifier manufacturer, model, the communications protocol is for the debugging of all radio frequency module power amplifications provides unified interface.
2, after realization is debugged automatically, reduce artificial error in judgement influence, improve the confidence level of power amplifier working point.
3, unify tuning parameter input and output interface, the standardization that improves production run is carried out management and control to the tuning parameter version, improves the consistance of radio-frequency module offline parameter calibration, improve production efficiency and product quality.
4, adjustment method can be selected, and can realize multiple adjustment method and deposits, for secondary development is lowered the threshold.
5, the tuning parameter template construct is simple, reduces the tune-up data development difficulty.
Embodiment
See shown in Figure 1ly, the general debugging Driver Library implementation method of a kind of radio frequency module power amplification working point has in configurating terminal, debug terminal, tuning parameter template, radio frequency module power amplification and the universal test card at one,
The general debugging Driver Library of a, a kind of radio frequency module power amplification working point mainly is divided into four layers: hierarchical structure is seen shown in Figure 2.The driving method configuration layer is that configurating terminal and debug terminal provide some basic API driving method interfaces; The driven management layer is responsible for loading the driving case library and intelligent management drives case library; Driving instance layer mainly provides the driving code of radio frequency module power amplification, mainly drives the universal test card through the RS232 interface, drives radio frequency module power amplification by the universal test card again; Physical layer mainly comprises universal test card, radio frequency module power amplification, DC voltage, reometer and some annexes of power supply is provided for radio frequency module power amplification; The driving method repository is arranged in the driving method configuration layer; The debugging Management Library Driver is arranged in the driven management layer; Debugging drives case library and is arranged in the driving instance layer.
B, in configurating terminal configuration radio frequency module power amplification tuning parameter title, adjustment method and tuning parameter value.
C, in the technological process of production of configurating terminal configuration tuning parameter title.
D, debug terminal load the tuning parameter title according to the website of radio frequency module power amplification, and tuning parameter title and adjustment method name are passed to general debugging Driver Library.
In step a, driving method repository, debugging Management Library Driver, debugging drive case library and all are
*.dll file.
In steps d, can accomplish the initialization of radio frequency module power amplification, in the driving method repository, will generate a radio frequency module power amplification container, be used to manage the radio frequency module power amplification handle; In the debugging Management Library Driver, generate a radio frequency module power amplification debugging Driver Library Manage Containers, be used for managing the radio frequency module power amplification debugging and drive case library and radio frequency module power amplification driving method entry address.
1, ATML method base (driving method repository) is in order to reach the purpose of unified instrument module driving method interface: adopt the mentality of designing of object factory, mainly comprise five parts: definition driving method base class; Definition derives the derived class (being equivalent to the product model the factory) of instrument module driving method from base class; Method factory; The method generator; The api interface function of external reference driving method.
A mainly comprises the member of the instrument module driving method base class described in the step 1;
A) function parameter is provided with structure
{
The parameter title;
Parameter type;
Number of parameters;
Parameter value;
Parameter unit;
}
B) input parameter container < function parameter is provided with structure >
C) output parameter container < function parameter is provided with structure >
D) input parameter (input parameter container) is set
E) obtain input parameter (input parameter container)
F) output parameter (output parameter container) is set
G) obtain output parameter (output parameter container)
H) operation
I) initialization
B mainly comprises at the external api interface function of the visit driving method described in the step 1;
A) open (
The instrument module style number,
The instrument module connection string,
The instrument module handle
)
B) close (instrument module style number, instrument module connection string)
C) obtain all driving method titles (method name, method number)
D) obtain a quasi-instrument module drive method title (instrument module style number, method name, method number)
E) create a method (method name, method handle)
F) discharge a method (method handle)
G) the functional description language (method handle, functional description language) of a method is set
H) obtain the functional description language (method handle, functional description language) of a method
I) obtain the input parameter number (method handle, input parameter number) of a method
J) obtain input parameter details (
The method handle,
The input parameter call number,
The input parameter title,
The input parameter type,
The input parameter number,
The input parameter value,
Input parameter unit
)
K) input parameter value (method handle, input parameter call number, input parameter value) is set
L) obtain output parameter number (method handle, output parameter number)
M) obtain output parameter details (
The method handle,
The output parameter call number,
The output parameter title,
The output parameter type,
The output parameter number,
Output parameter value,
Output parameter unit
)
N) an operation method (method handle)
Adopt the basic design of " scalable factory " in the method factory described in the step 1, when adding new " an instrument module driving method derived class " at every turn, needn't revise it code.Instrument module driving method factory function division is clear, and each new " instrument module driving method " all must be registered factory, and " driving method sign " and " pointer of generating function " passed to it.Usually generating function has only delegation, roughly like this:
2, ATML method base (driving method repository) is in order to reach the purpose that the instrument module driving method is visible, select configuration: adopt general type design, state that a Map container is used for preserving the instrument module driving method title that all were registered.
3, ATML method base (driving method repository) externally provides the api function interface of " obtaining adjustment method " in order to reach the configurable purpose of calibration steps in the ATML method base.
4, the debugging Management Library Driver adopts Object-Oriented Design; Radio frequency module power amplification connection string according to debug terminal; Load libraries LoadLibrary function through the Microsoft of Microsoft loads radio frequency module power amplification debugging driving case library; And register debugging Driver Library management Map, and " debugging Driver Library title ", " Driver Library handle " and " radio frequency module power amplification handle " are passed to it.
5, a kind of implementation method of radio frequency module power amplification universal debugging interface, the implementation method step is:
Step 1: that utilizes driving method repository in the driving method configuration layer opens function creation radio frequency module power amplification object instance, sets up the communication connection corresponding relation with radio frequency module power amplification.
In step 1; The driving method repository passes to the debugging Management Library Driver in the driven management layer with the radio frequency module power amplification connection string; The debugging Management Library Driver separates connection string and identifies the radio frequency module power amplification type according to certain protocol format; Debugging drives case library according to the radio frequency module power amplification in the particular type load driver instance layer again; Utilize debugging to drive then and open function creation radio frequency module power amplification debugger object instance in the case library, simultaneously radio frequency module power amplification debugger object instance handle is returned to the upper strata;
Step 2: configuration automatically debug method and tuning parameter, the tuning parameter template indicates the adjustment method and the radio frequency module power amplification working status parameter value of radio frequency module power amplification referring to Fig. 3.
Step 3: utilize the creation method function creation module power amplifier of driving method repository to debug the driving method object automatically, create debugging driving method corresponding relation automatically.
Step 4: utilize the automatic input parameter of debugging driving method of parameter value function configuration of the method to set up of driving method repository, the necessary tuning parameter of automatic debugging is set.
Step 5: utilize the operation function of driving method repository to carry out debugging driving method automatically, start automatic debug procedures.
Step 6: utilize the output parameter value function that obtains of driving method repository to obtain tune-up data, effect is to obtain the DA data after debugging is accomplished
Step 7: utilize the release function of driving method repository to discharge certain driving method object memory source; Finish debug procedures, reduce memory cost.
The general-purpose platform of said radio frequency module power amplification working point parameter configuration provides for the configuration submodule, and said radio frequency module power amplification working point tuning parameter version can be reviewed, and the use version of working point tuning parameter is configurable.
The automatic commissioning test environment of said radio frequency module power amplification debugging Driver Library is provided by the debugging submodule, and said debugging submodule extracts according to configuration information and identification tuning parameter version information automatically.
Said driving method repository adopts the design philosophy of software factory pattern; The debugging of radio frequency module power amplification is driven all methods to be encapsulated according to the mode of standard; For the upper strata provides unified interface, the method interface that radio frequency module power amplification is supported is visible, and method is selected configuration.
Said debugging Management Library Driver is that the upper strata provides unified interface; Adopt design idea of oriented object; Automatically analyze and management debugging driving case library according to the radio-frequency module connection string, dynamic creation radio frequency module power amplification driven object and method support a plurality of radio frequency module power amplifications to debug simultaneously.
Said debugging drives case library and adopts design idea of oriented object, supports to create a plurality of radio-frequency module driven object, for the upper strata provides unified interface and a kind of radio frequency module power amplification working point driving method implementation procedure.
6, automatically debug method is arranged in debugging driving case library; Debugging drives case library and adopts Object-Oriented Design thought; Adopt the RS232 interface communication, send and receive instruction, the radio frequency module power amplification debugging api interface function of standard externally is provided through the RS232 interface.
A mainly comprises at the debugging of the radio frequency module power amplification described in the step 6 api interface;
A) open also initialization apparatus
B) closing device
C) debugging radio frequency module power amplifier is also write Lou level grid voltage data in equipment automatically, is called for short DA
D) read Lou level grid voltage data in the slave unit
The method step of the automatic debugging radio frequency module of b power amplifier working point comprises:
Step 1: power on to radio frequency module power amplification
Step 2: pid parameter is set, and wherein P is a scale-up factor, and I is an integral coefficient, and D is a differential coefficient.
Step 3: the DA data that empty radio frequency module power amplification
Step 4: the temperature T of obtaining radio frequency module power amplification
Step 5: the scope of T ± 5 is write an initial value
Step 6: read electric current from reometer
Step 7: whether the difference of judging current electric current and target current in the current error scope, in error range, then withdraws from debugging strictly according to the facts; Otherwise enter into next step
Step 8:, utilize pid algorithm to calculate down the leakage level grid voltage value DAi of any according to the difference of current electric current and target current
The scope of step 9: T ± 5 is set to DAi
Step 10: judge that whether the debugging number of times arrives the number of times of setting, if there is not repeated execution of steps 6,7,8,9, otherwise withdraws from debugging.
7, the Excel worksheet platform of Microsoft is adopted in the exploitation of tuning parameter template, and development difficulty is low.The concrete form of tuning parameter template is seen Fig. 3.
This invention not only is suitable for radio frequency module power amplification working point debugging Driver Library, also is suitable for the debugging Driver Library of other product power amplifier working points.