CN1829127B - Method for building communication terminal test instrumentation control platform based on microkernel - Google Patents
Method for building communication terminal test instrumentation control platform based on microkernel Download PDFInfo
- Publication number
- CN1829127B CN1829127B CN200610076315XA CN200610076315A CN1829127B CN 1829127 B CN1829127 B CN 1829127B CN 200610076315X A CN200610076315X A CN 200610076315XA CN 200610076315 A CN200610076315 A CN 200610076315A CN 1829127 B CN1829127 B CN 1829127B
- Authority
- CN
- China
- Prior art keywords
- kernel
- control assembly
- micro
- protocol stack
- parameter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000012360 testing method Methods 0.000 title claims abstract description 45
- 238000004891 communication Methods 0.000 title claims abstract description 16
- 230000006870 function Effects 0.000 claims description 104
- 238000005259 measurement Methods 0.000 claims description 72
- 238000013507 mapping Methods 0.000 claims description 25
- 238000012986 modification Methods 0.000 claims description 23
- 230000004048 modification Effects 0.000 claims description 23
- 238000004458 analytical method Methods 0.000 claims description 21
- 230000000712 assembly Effects 0.000 claims description 18
- 238000000429 assembly Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 13
- 238000010276 construction Methods 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 4
- 230000007246 mechanism Effects 0.000 claims description 3
- 238000013461 design Methods 0.000 description 21
- 239000010410 layer Substances 0.000 description 12
- 238000010295 mobile communication Methods 0.000 description 3
- 238000011056 performance test Methods 0.000 description 3
- 238000001228 spectrum Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000012467 final product Substances 0.000 description 1
- 239000011229 interlayer Substances 0.000 description 1
- 239000002346 layers by function Substances 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention discloses a micro-kernel based on communication terminal test meter control platform constructing method. Said testing platform includes user application module, micro-kernel, system control assembly, survey control assembly protocol stack control assembly, said micro-kernel containing system control assembly, survey control assembly and protocol stack control assembly log on message, including 1, through micro-kernel command resolving interface connection user application module and said micro-kernel, wherein said command resolving interface interpretation analysing SCPI command send to said micro-kernel by user application module, and executing said instruction correspondent function, 2, connecting said micro-kernel and control assembly through micro-kernel parametric query interface, these control assembly querying said micro-kernel current parameter configuring through parametric query interface, 3, through micro-kernel data reporting interface, said survey control assembly measuring result transmitted to said user application module through said micro-kernel.
Description
Technical field
The present invention relates to a kind of construction method of the communication terminal test instrumentation controlling platform based on micro-kernel, the method for designing that has wherein comprised the controlling platform architecture, the method for designing of micro-kernel and the method for designing of each assembly, a kind of to have an extended capability strong thereby constitute, and realizes the test instrumentation controlling platform of characteristics such as difficulty is low.
Background technology
At moving communicating field, experienced from analog to digital evolution from low speed to high speed, the test of the portable terminal ring that is absolutely necessary.In order to guarantee portable terminal access network and for the user proposes service smoothly, carry out sufficient performance test and correctness test to its various indexs.
Uniformity test for terminal, comprise the radio-frequency (RF) index test, protocol test and other are tested three class testings, each class testing is at different mobile communication standards, different requirements is also arranged, along with the standard of mobile communication is more and more, the requirement of test instrumentation can be supported different standards and increasing test item, this just requires when the architecture of design instrument, fully take into account the extensibility of whole meter body architecture and customize characteristic certainly, so not only can increase and customize the measurement item easily, also can support more mobile communication standard easily, to adapt to the develop rapidly of moving communicating field.
Therefore, the architecture of a controlling platform that can be repeated to realize be functional unitization, nuclear interface standardizing, kernel microminiaturization, and has open architecture.Functional unitization is meant in module package to an assembly of will finish an a certain special measurement, for example the test of the test of the test of frequency spectrum, Adjacent Channel Leakage Power Ratio or the error rate etc.; Nuclear interface standardizing is meant can be smoothly with kernel and other component communications for the bonding functional unit, and all assemblies all adopt the self-defining standard interface of a cover; The microminiaturized indication of kernel is meant in the design of communication instrument, as far as possible with most crucial parts microminiaturization, is designed to a micro-kernel, only finishes most importantly, and basic functions provides general registration interface and calling interface to all assemblies.We call controlling platform architecture based on micro-kernel to this architecture.
Traditional communication instrument controlling platform architecture mostly is a hierarchy, the hierarchy type architecture be system according to function expansion, be divided into several layers.Hierarchical system is organized into a hierarchical structure, and each layer is a top service, and as the client of lower floor.Innermost layer is " kernel ", finishes the most basic common operation access of physical database (for example to).Outwards each layer carries out the function expansion gradually, satisfies the demand of different system scale.
The organizational form support of hierarchy type controlling platform architecture is convenient to increase new function based on the design that can increase level of abstraction, makes system have extensibility.Like this, allow a complication system is decomposed by incremental steps.And, because that each layer at most only influences is two-layer,, allows every layer with the diverse ways realization, for software reuse provides powerful support simultaneously as long as provide identical interface to adjacent layer.
Summary of the invention
The objective of the invention is to propose a kind of controlling platform architecture on the terminal test instrument of being applied to based on micro-kernel, this architecture is based on the functional characteristics of test instrumentation and the characteristic that realizes, follow the mentality of designing of functional unitization, nuclear interface standardizing, kernel microminiaturization, thereby has stronger flexibility with respect to traditional test instrumentation controlling platform architecture, widely adaptability and autgmentability.
According to the present invention, a kind of construction method of the communication terminal test instrumentation controlling platform based on micro-kernel is provided, described test platform comprises user's application module, micro-kernel, control assembly, control assembly comprises system's control assembly, measure control assembly and protocol stack control assembly, described micro-kernel also comprises registration interface, described control assembly is registered in described micro-kernel by the registration interface function that is provided by described micro-kernel is provided, described micro-kernel comprises system's control assembly, measure the log-on message of control assembly and protocol stack control assembly, described log-on message comprises the title of assembly, realize the position and the parameter relevant with concrete function of assembly function, described method comprises:
(1) the command analysis interface by micro-kernel connects described user's application module and described micro-kernel, wherein said command analysis interface interpretive analysis sends to the SCPI order of described micro-kernel by described user's application module, and carries out the corresponding function of described order;
(2) the parameter query interface by micro-kernel connects described micro-kernel and these control assemblys, and the parameter current that these control assemblys are inquired about in the described micro-kernel by described parameter query interface disposes;
(3) data by micro-kernel report interface, and the measurement result of described measurement control assembly is sent to described user's application module via described micro-kernel.
Preferably, each control assembly that described test instrumentation exists in the search system when starting is loaded into these control assemblys in the system by the registration function of calling each control assembly.
Preferably, described component Name uses the SCPI order, and the position of described realization assembly function is the function pointer that assembly function is realized.
Preferably, described log-on message is registered in command mapping table, parameter configuration table and three structures of metadata cache of described micro-kernel;
Wherein step (1) also comprises step:
When described micro-kernel from described user's application module receive SCPI order the time, described micro-kernel at first makes an explanation to described order, analyzes its legitimacy, searches described order then in described command mapping table;
If described order does not exist, return wrong status information;
If order exists, then further judge the attribute of order;
If described order is to want the query argument setting, then search described parameter configuration table, the parameter that inquires is directly fed back to described user's application module by described command analysis interface;
If described order will be inquired about measurement result, then search described metadata cache, give described user's application module with the measurement feedback that inquires;
If described order will be carried out parameter modification, then revise described parameter configuration table earlier, call the function executing module in these control assemblys then;
If described order need not revised parameter, then directly call the function executing module in these control assemblys.
Preferably, step (2) also comprises step:
When described micro-kernel called a certain function, described micro-kernel was revised parameter list, calls the function executing module in these control assemblys then,
Described function executing module is obtained the current parameter that needs modification by described parameter query interface accessing parameter list, carries out concrete modify feature then.
Preferably, step (3) also comprises step:
Described measurement control assembly stores measurement result in the metadata cache of described micro-kernel,
Described user's application module goes to inquire about measurement result in the described metadata cache by described command analysis interface, and shows or pass to the Long-distance Control user.
Preferably, described measurement control assembly comprises Registering modules, measurement parameter modified module and measuring and calculating module;
The registration interface that wherein said Registering modules uses described micro-kernel to provide, the information of measurement parameter being revised and measured each function of using in the calculating is registered in command mapping table, parameter configuration table and the metadata cache of described micro-kernel;
Described measurement parameter modified module is revised needs the parameter used in the Measurement Algorithm;
Described measuring and calculating module is carried out concrete Measurement Algorithm.
Preferably, method of the present invention also comprises step:
Described user's application module initiates to measure sign on, and described micro-kernel is delivered in described instruction;
Described micro-kernel is by the querying command mapping table, and the measuring and calculating module of scheduling measurement control assembly is measured calculating, and result of calculation is reported to data buffer area,
Described user's application module is shown on the interface as required or is further reported Long-distance Control.
Preferably, described protocol stack control assembly comprises the protocol stack parameter modification component and calls out control assembly, protocol stack parameter modification component and call out control assembly and include Registering modules and control module, and protocol stack exists with process form independently.
Preferably, method of the present invention also comprises step:
The user chooses required control on described user's application module, described user's application module sends corresponding message to described micro-kernel;
Described micro-kernel is searched the log-on message of protocol stack control assembly in command mapping table and parameter configuration table, the control module of scheduling protocol stack control assembly, described control module sends message to the protocol stack process, and the message feedback of reception protocol stack process, transmit and be reacted on described user's application module, thereby realize the control of test platform for protocol stack.
Preferably, described system control assembly comprises Registering modules and control module,
Wherein said method also comprises step:
The system operation that the user carries out on described user's application module is given described micro-kernel by corresponding message informing;
Described micro-kernel is by the log-on message in querying command mapping table and the parameter configuration table, the scheduling of executive system controlled function, and with the result in the enterprising line output of described user's application module.
Preferably, described user's application module comprises the interface portion and the Long-distance Control part of controlling platform;
Wherein said interface portion and Long-distance Control be partly by described command analysis interface, carries out for the scheduling of measuring control, protocol stack control and system control function and state, parameter query.
Preferably, described scheduling comprises:
Described user's application module sends to described micro-kernel with the SCPI order that the pairing SCPI of operation orders or Long-distance Control sent that the user carries out on interface portion,
Described micro-kernel querying command mapping table, parameter configuration table and metadata cache find the module that realizes described function dispatching then, thereby realize described function.
Preferably, described user's application module and these control assemblys are in application layer together, and the mutual scheduling by described micro-kernel between them realizes.
Preferably, method of the present invention also comprises step:
When new measurement control assembly joins in the system, need new measurement control assembly is joined in the suitable file;
When system carries out initialization, described micro-kernel is searched the measurement control assembly that exists under the current system automatically, automatically loading comprises new measurement control assembly at each interior measurement control assembly then, and these function informations of measuring control assemblys are registered in the described micro-kernel;
Under the driving of described user's application module, described micro-kernel is measured by the new assembly control module of scheduling mechanism scheduling.
Preferably, described protocol stack control assembly is the protocol stack parameter modification component,
Described method also comprises step:
When new protocol stack control assembly joined in the system, system joined new protocol stack control assembly in the suitable file;
When system carries out initialization, described micro-kernel is searched the protocol stack control assembly that exists under the current system automatically, automatically loading comprises new protocol stack control assembly at each interior protocol stack control assembly then, and the function information of these protocol stack control assemblys is registered in the described micro-kernel;
The protocol stack parameter modification function of in described user's application module, using described new protocol stack control assembly to be supported.
The method according to this invention by define standard interface between micro-kernel and assembly, mostly be the user measurement function is provided, and only needs to add one under the measurement function module and measures assembly; Opposite process when the user no longer needs a certain to measure, only need remove this measurement assembly.When instrument needed a kind of agreement of many supports, only need be increased a new protocol stack module on the current protocol stack module position arranged side by side, have each new protocol stack assembly under the module that increases newly.Opposite process, when no longer needing to support a certain protocol stack, only all protocol stack assemblies that need remove under this protocol stack module get final product.Like this, can realize very easily function customization characteristic certainly and can reduce characteristic.
Description of drawings
Fig. 1 shows traditional test instrumentation controlling platform architecture Design;
Fig. 2 shows according to the test instrumentation controlling platform architecture Design based on micro-kernel of the present invention;
Fig. 3 shows according to microkernel designs design of the present invention.
Embodiment
Below in conjunction with accompanying drawing and describe the construction method of the communication terminal test instrumentation controlling platform based on micro-kernel of the present invention with reference to preferred embodiment.
According to technical scheme of the present invention, a kind of common architecture method for designing of the communication terminal test instrumentation controlling platform based on micro-kernel is provided, described common architecture comprises the system configuration of controlling platform, microkernel design scheme, component design scheme, and described method comprises feature:
(1) according to the functional requirement of test instrumentation controlling platform, controlling platform can be divided into terminal and measure control, protocol stack control and three functional modules of system's control, terminal is measured the performance test of terminal transmitter such as frequency spectrum that control comprises terminal, Adjacent Channel Leakage Power Ratio, the error rate and receiver, protocol stack control comprises and the broadcast channel parameter is set, finishes call flow, and system's control comprises tranmitting frequency that current cell signal is set, transmitting power etc.Each functional module is relatively independent, depends on each other for existence again.The protocol stack control module is responsible for testing protocol consistency, needs system control module that the necessary parameter configuration is provided simultaneously; Measure control module and be responsible for the test of terminal capabilities, need protocol stack control module and terminal to set up to call out simultaneously and be connected, need system control module to carry out suitable parameter setting.
(2) because each functional module interdependence, need the mutual of necessary parameter and state information, the controlling platform architecture need be supported in transmission information between the module, simultaneously for when adding new functional module, be convenient to expansion, the architecture of controlling platform adopts a kind of opening architecture based on micro-kernel.The information interaction of protocol stack control module and system control module, measurement control are dispatched by micro-kernel with the information interaction of protocol stack control module and system control module.
(3) according to the relation of micro-kernel and each module, micro-kernel can be dispatched the concrete function of each module and inquire about current configuration, for example micro-kernel can scheduling protocol stack control module be initiated endpoint registration, make a call to terminal, then scheduling measurement control module measuring terminals frequency spectrum, Adjacent Channel Leakage Power Ratio or the like.Micro-kernel is only finished the function scheduling, and not responsible concrete function realizes that each functional module is responsible for concrete function and is realized.
(4) check the registration of each functions of modules information in micro-kernel will be realized just must realizing the scheduling of measuring control, protocol stack control and system control module, go to search concrete function implementation method according to log-on message.The subfunction item of each functional module should comprise at least in the information of micro-kernel registration: module, function implementation method and finish the required parameter of this function under function title, the function.Receive the request of a function on when micro-kernel after, just in log-on message, search this function,, finish suitable scheduling, if there is no, carry out fault processing if exist.
(5) according to concerning the design function assembly between micro-kernel and each functional module.
Measure control module and can be subdivided into submodules such as spectral monitoring device, Adjacent Channel Leakage Power Ratio, the error rate again, each submodule is called one and measures assembly, each measurement function assembly all has subfunctions such as registration, measurement parameter modification and measurement calculating, registering functional is finished and is measured the information registration of assembly at micro-kernel, and measurement parameter is revised and measured computing function and finishes concrete measurement.
The protocol stack control module can be subdivided into submodules such as protocol stack parameter modification, calling control again, each submodule is called a protocol stack assembly, each protocol stack functional unit all has registration and protocol stack controlled function, registering functional is finished the information registration of protocol stack assembly at micro-kernel, and the protocol stack controlled function is finished concrete protocol stack control.
System control module can be subdivided into submodules such as radio frequency control, calibrating indicating instrument, meter information inquiry again, each submodule is called a systemic-function assembly, each systemic-function assembly all has registration and system control function, registering functional is finished the information registration of system component at micro-kernel, and system control function is finished concrete system's control.
(6) according to above design, micro-kernel is responsible for measuring the scheduling of each functional unit under control, protocol stack control and the system's control, therefore, user's application module only need and micro-kernel mutual, the interface that micro-kernel provides function to dispatch to user's application module, the user can control instrument on user interface or by Long-distance Control.
(7) realize customization and tailorability.
Construction method to the communication terminal test instrumentation controlling platform based on micro-kernel of the present invention is further described below.
1, microkernel design method
(1) architecture of traditional test instrumentation controlling platform as shown in Figure 1, most of or whole layer functions are realized that by kernel all interface functions are only relevant with adjacent layer, and system and application are independent, but the variation of its each functional layer all can influence whole system, and the interlayer fail safe is low.Based on the controlling platform architecture of micro-kernel as shown in Figure 2, its basic thought is that some functions and the service that belonged to the legacy operating system kernel are originally told from kernel, interact with the form of subsystem (assembly below unitedly calls " assembly ") and kernel or by kernel and other subsystem.Each assembly is mainly realized in the mode of dynamic link libraries again.Controlling platform architecture based on micro-kernel has autgmentability flexibly.
(2) as shown in Figure 2, micro-kernel need offer the unified registration interface of each assembly, and the registration interface function that assembly uses micro-kernel to provide is finished the registration of assembly function at micro-kernel according to step (4).Each assembly that test instrumentation exists under the search system when starting, the registration function by calling each assembly with the assembly dynamic load in system.
(3) log-on message of assembly is wanted the function of this assembly of energy unique identification, so will comprise component Name in the log-on message, particularly, component Name can use as the SCPI of one of test instrumentation standard (Standard Command for Programmable Instruments, programmable instrument standard commands) and order; The log-on message of assembly also should comprise the position of realizing this assembly function, and function address normally is so also will comprise the function pointer that assembly function is realized in the log-on message; Other information also should comprise the parameter value relevant with concrete function, parameter type or the like, and these information are registered in command mapping table, parameter configuration table and three structures of metadata cache of micro-kernel.Deposit all SCPI orders in the command mapping table, parameter configuration table is deposited the parameter information that the SCPI order need be used, and metadata cache is deposited measurement result.
(4) as shown in Figure 3, master control need provide unified dispatch interface for each functional unit, with convenient each assembly of scheduling according to step (2) (3) (4).Mainly comprise three interfaces:
1. the command analysis interface of micro-kernel is responsible for the SCPI order that interpretive analysis user applying portion sends to micro-kernel, carries out the corresponding function of this order then.The command analysis interface is the core of micro-kernel, and the scheduling of each function, the inquiry of information all need to finish by this module.This interface mainly offers user's application module and uses.
Particularly, shown in inner each module of Fig. 3 micro-kernel, the work of command analysis interface is, when micro-kernel from user's application module receive SCPI order the time, micro-kernel at first makes an explanation to order, analyzes its legitimacy, in the command mapping table, search this order then, if order does not exist, return wrong status information, if there is the attribute of further judging order in order.If this order is to want the query argument setting, then search parameter configuration table, the parameter that inquires is directly fed back to user's applying portion by the command analysis interface; If this order will be inquired about measurement result, then search metadata cache, give user's applying portion with the measurement feedback that inquires; If this order will be carried out parameter modification, then revise parameter configuration table, calling function Executive Module then earlier; If this order need not revised parameter, then direct calling function Executive Module.
2. the parameter query interface of micro-kernel offers the current parameter configuration of each functional unit inquiry.When micro-kernel calls a certain function,, and then carry out concrete function at first by the current parameter configuration of parameter query interface inquiry.
By the function of command analysis interface as can be known, micro-kernel is at first revised parameter list calling function assembly then, and functional unit need pass through parameter query interface accessing parameter list, obtains the current parameter revised of needing, and is carrying out concrete modify feature then.
3. the data of micro-kernel report interface, are responsible for measurement result is stored in the metadata cache, and user's application module can go measurement result in the data query buffer memory by the command analysis interface then, show or pass to the Long-distance Control user.This interface mainly offers measures the assembly use.
2, measure component design method
(1) measuring assembly can be loaded in the system dynamically, and each measures assembly provides a certain performance test for terminal.Measure assembly and adopt the unified structure design, be divided into Registering modules, measurement parameter modified module and measuring and calculating module.
(2) Registering modules uses the registration interface that micro-kernel provides, and the information of measurement parameter being revised and measured each function of using in calculating is registered in command mapping table, parameter configuration table and the metadata cache of micro-kernel.The measurement parameter modified module is responsible for revising needs the parameter used in the Measurement Algorithm, measuring and calculating module is responsible for concrete Measurement Algorithm.
(3) each of current instrument support measured in the initialization procedure of program start and successfully be registered in the system, when carrying out a concrete measurement, user's applying portion can initiate to measure sign on then, and this message is delivered to micro-kernel and handled.Micro-kernel is by the querying command mapping table, and the computing module of scheduling measurement assembly is measured calculating, and result of calculation is reported to data buffer area, and user's applying portion is shown on the interface as required or further reports Long-distance Control.
3, protocol stack control assembly design
(1) the protocol stack control assembly can be loaded in the system dynamically, for terminal provides testing protocol consistency.The protocol stack control assembly is divided into assemblies such as protocol stack parameter modification, calling control, and each assembly includes Registering modules and control module.Because the real-time of protocol stack is had relatively high expectations, there be (implementation method of protocol stack is not in this document discussion scope) in protocol stack with process independently, so protocol stack control is mainly finished by interprocess communication, the control module of protocol stack control assembly is finished concrete parameter modification or CCF by sending message to protocol stack and receiving feedback from protocol stack.
(2) registering functional uses the registration interface that micro-kernel provides, and protocol stack parameter modification and the information of calling out each function in the control are registered in the command mapping table and parameter configuration table of micro-kernel.
(3) the protocol stack control assembly also passes through to finish testing protocol consistency in the successfully adding system of registration interface in the initialization procedure of program start.Test platform to the concrete control flow of protocol stack is: at first, the user chooses required control on user's application module, comprise parameter modification, endpoint registration, calling etc., and user's application module sends corresponding message to micro-kernel; Then, micro-kernel is searched the log-on message of protocol stack in command mapping table and parameter configuration table, and then sends message to the protocol stack process; At last, micro-kernel receives the message feedback of protocol stack process, transmits and is reacted on user's application module.
4, system's control assembly is set
(1) system's control assembly can dynamic load in system, can be divided into assemblies such as radio frequency control, calibrating indicating instrument, meter information inquiry according to function.Assembly designs according to unified structure, comprises Registering modules and control module.
(2) Registering modules uses the registration interface that micro-kernel provides, and the information of each function in system's control assembly is registered in the command mapping table and parameter configuration table of micro-kernel.Control module is finished concrete system control function.
(3) by in the successfully adding system of registration interface, micro-kernel is finished corresponding system control function according to the request of user's application module to system's control assembly in the initialization procedure of program start.Any system operation that the user carries out on user's applying portion all can have corresponding message informing micro-kernel, micro-kernel is by the log-on message in querying command mapping table and the parameter configuration table, finish the scheduling of system control function, at last with the result in the enterprising line output of user's application module.Micro-kernel is searched the log-on message of protocol stack control assembly in command mapping table and parameter configuration table, the control module of scheduling protocol stack control assembly, control module sends message to the protocol stack process, and the message feedback of reception protocol stack process, transmit and be reacted on user's application module, thereby realize of the control of communication terminal test instrumentation controlling platform for protocol stack.
5, user's application module is set
(1) user's application module comprises the interface portion and the Long-distance Control part of controlling platform.Wherein interface portion refers to that the user directly controls instrument by instrument display screen, and Long-distance Control refers to that partly the user passes through the GPIB line and connects host computer and instrument, sends the SCPI order by host computer to instrument instrument is controlled.According to the method for designing of micro-kernel, micro-kernel provides the command analysis interface for user's application module, and interface and Long-distance Control all use this interface to finish the scheduling of measuring control, protocol stack control and system control function and state, parameter query.The main foundation of scheduling is the SCPI order, user's application module sends to micro-kernel with the SCPI order that the pairing SCPI of operation orders or Long-distance Control sent that the user carries out on the interface, micro-kernel querying command mapping table, parameter configuration table and metadata cache, find the module that realizes this function then, dispatch, finish this function.
(2) as shown in Figure 2, user's application module never directly interacts with measurement assembly, protocol stack assembly and these concrete application modules of system's control assembly, so in common software structure based on micro-kernel, though user's application module and each functional unit are in application layer together, between them is that scheduling by micro-kernel realizes alternately.
6, realize extensibility and tailorability
(1) according in architecture of the present invention, micro-kernel is the core of whole test instrumentation controlling platform, has preserved the log-on message of all functions assembly of instrument, can each function of flexible dispatching.For this reason, micro-kernel provides the registration interface and the dispatch interface of standard.Measure the structural design of assembly according to Registering modules, measurement parameter modified module and measuring and calculating module; Protocol stack assembly and system's control assembly are according to the structural design of Registering modules and control module.We are called controlling platform architecture based on micro-kernel with this architecture.
(2) use is based on the controlling platform architecture of micro-kernel, and system can realize measuring the extensibility and the tailorability of assembly, protocol stack assembly and system's control assembly very easily.
1. a new measurement assembly will be joined in the system, only need the structural design according to Registering modules, measurement parameter modified module and measuring and calculating module, then new assembly be joined in the system, all assemblies can be searched for and load to instrument after starting automatically.With MS Windows operating system is example, can encapsulate measuring the form of assembly with dynamic link library.Then, the dynamic link library of new measurement assembly is joined under the suitable file, when initialization is carried out in system start-up, micro-kernel can be searched the measurement assembly that exists under the current system automatically, automatically load each assembly then and comprise initiate assembly, the function information of each assembly is registered to micro-kernel.Afterwards, under the driving of user's application module, micro-kernel will be dispatched New Parent by scheduling mechanism and launch surveying work.
A new protocol stack assembly will be joined in the system, only need the structural design according to Registering modules and control module, then new assembly be joined in the system, all assemblies can be searched for and load to instrument after starting automatically.With MS Windows operating system is example, establishes now to add the protocol stack parameter modification component, the form of protocol stack parameter modification component with dynamic link library can be encapsulated.Then, the dynamic link library of new assembly is joined under the suitable file, when initialization is carried out in system start-up, micro-kernel can be searched the protocol stack parameter modification component that exists under the current system automatically, automatically load each assembly then and comprise initiate assembly, the function information of each assembly is registered to micro-kernel.Afterwards, the protocol stack parameter modification function that just can on user's application module, use assembly to support.
New system's control assembly will be joined in the system, only need the structural design according to Registering modules and control module, then new assembly be joined in the system, all assemblies can be searched for and load to instrument after starting automatically.Idiographic flow is identical with the interpolation of protocol stack assembly.
2. tailorability is meant the needs according to the user, and accurate configuration is provided.Because highly independent between each assembly, be independent of each other, then can delete flexibly and replace an assembly, and can assemble flexibly.Utilize this specific character can realize the upgrading of instrument system easily.
Claims (16)
1. construction method based on the communication terminal test instrumentation controlling platform of micro-kernel, described communication terminal test instrumentation controlling platform comprises user's application module, micro-kernel, control assembly, described control assembly comprises system's control assembly, measure control assembly and protocol stack control assembly, described micro-kernel also comprises registration interface, described control assembly is registered in described micro-kernel by the registration interface function that is provided by described micro-kernel is provided, described micro-kernel comprises system's control assembly, measure the log-on message of control assembly and protocol stack control assembly, described log-on message comprises the title of assembly, realize the position and the parameter relevant with concrete function of assembly function, described method comprises:
(1) the command analysis interface by micro-kernel connects described user's application module and described micro-kernel, wherein said command analysis interface interpretive analysis sends to programmable instrument standard commands (SCPI) order of described micro-kernel by described user's application module, and carries out described SCPI and order corresponding function;
(2) the parameter query interface by micro-kernel connects described micro-kernel and described control assembly, and the parameter current that described control assembly is inquired about in the described micro-kernel by described parameter query interface disposes;
(3) data by micro-kernel report interface that the measurement result of described measurement control assembly is stored in the metadata cache, and described user's application module is by the measurement result of the described measurement control assembly in the command analysis interface data query buffer memory of described micro-kernel.
2. method according to claim 1, wherein, each control assembly that described test instrumentation exists in the search system when starting is loaded into each control assembly in the system by the registration function of calling each control assembly.
3. method according to claim 1, wherein said component Name are used the SCPI order, and the position of described realization assembly function is the function pointer that assembly function is realized.
4. method according to claim 1, wherein said log-on message are registered in command mapping table, parameter configuration table and three structures of metadata cache of described micro-kernel;
Wherein step (1) also comprises step:
When described micro-kernel when described user's application module receives SCPI order, described micro-kernel at first makes an explanation to described order, analyzes its legitimacy, searches described order then in described command mapping table;
If described order does not exist, return wrong status information;
If order exists, then further judge the attribute of order;
If described order is to want the query argument setting, then search described parameter configuration table, the parameter that inquires is directly fed back to described user's application module by described command analysis interface;
If described order will be inquired about measurement result, then search described metadata cache, give described user's application module with the measurement feedback that inquires;
If described order will be carried out parameter modification, then revise described parameter configuration table earlier, call the function executing module in the described control assembly then;
If described order need not revised parameter, then directly call the function executing module in the described control assembly.
5. method according to claim 1, wherein step (2) also comprises step:
When described micro-kernel called a certain function, described micro-kernel was revised parameter list, calls the function executing module in the described control assembly then,
Described function executing module is obtained the current parameter that needs modification by described parameter query interface accessing parameter list, carries out concrete modify feature then.
6. method according to claim 1, wherein step (3) also comprises step:
Described measurement control assembly stores measurement result in the metadata cache of described micro-kernel,
Described user's application module goes to inquire about measurement result in the described metadata cache by described command analysis interface, and shows or pass to the Long-distance Control user.
7. method according to claim 2, wherein said measurement control assembly comprises Registering modules, measurement parameter modified module and measuring and calculating module;
The registration interface that wherein said Registering modules uses described micro-kernel to provide, the information of measurement parameter being revised and measured each function of using in the calculating is registered in command mapping table, parameter configuration table and the metadata cache of described micro-kernel;
Described measurement parameter modified module is revised needs the parameter used in the Measurement Algorithm;
Described measuring and calculating module is carried out concrete Measurement Algorithm.
8. method according to claim 7 also comprises step:
Described user's application module initiates to measure sign on, and described micro-kernel is delivered in described instruction;
Described micro-kernel is by the querying command mapping table, and the measuring and calculating module of scheduling measurement control assembly is measured calculating, and result of calculation is reported to data buffer area,
Described user's application module is shown described result of calculation as required or is further reported Long-distance Control on the interface.
9. method according to claim 2, wherein said protocol stack control assembly comprises the protocol stack parameter modification component and calls out control assembly, described protocol stack parameter modification component and call out control assembly and include Registering modules and control module, and protocol stack exists with process form independently.
10. method according to claim 9 also comprises step:
The user chooses required control on described user's application module, described user's application module sends corresponding message to described micro-kernel;
Described micro-kernel is searched the log-on message of protocol stack control assembly in command mapping table and parameter configuration table, the control module of scheduling protocol stack control assembly, described control module sends message to the protocol stack process, and the message feedback of reception protocol stack process, transmit and be reacted on described user's application module, thereby realize of the control of communication terminal test instrumentation controlling platform for protocol stack.
11. method according to claim 2, wherein said system control assembly comprises Registering modules and control module,
Wherein said method also comprises step:
The system operation that the user carries out on described user's application module is given described micro-kernel by corresponding message informing;
Described micro-kernel is by the log-on message in querying command mapping table and the parameter configuration table, the scheduling of executive system controlled function, and with the result in the enterprising line output of described user's application module.
12. method according to claim 1, described user's application module comprise the interface portion and the Long-distance Control part of controlling platform;
Wherein said interface portion and Long-distance Control be partly by described command analysis interface, carries out for the scheduling of measuring control, protocol stack control and system control function and state, parameter query.
13. method according to claim 12, wherein said scheduling comprises:
Described user's application module sends to described micro-kernel with the SCPI order that the pairing SCPI of operation orders or Long-distance Control sent that the user carries out on interface portion,
Described micro-kernel querying command mapping table, parameter configuration table and metadata cache, the module that finds the function that realizes that described SCPI order is corresponding then to be dispatching, thereby realize the corresponding function of described SCPI order.
14. method according to claim 1, wherein said user's application module and described control assembly are in application layer together, and the mutual scheduling by described micro-kernel between described user's application module and the described control assembly realizes.
15. method according to claim 1 also comprises step:
When new measurement control assembly joins in the system, need new measurement control assembly is joined in the suitable file;
When system carries out initialization, described micro-kernel is searched the measurement control assembly that exists under the current system automatically, automatically loading comprises new measurement control assembly at each interior measurement control assembly then, and the function information of described measurement control assembly is registered in the described micro-kernel;
Under the driving of described user's application module, described micro-kernel is measured by the new measurement control assembly of scheduling mechanism scheduling.
16. method according to claim 1, wherein said protocol stack control assembly is the protocol stack parameter modification component,
Described method also comprises step:
When new protocol stack control assembly joined in the system, system joined new protocol stack control assembly in the suitable file;
When system carries out initialization, described micro-kernel is searched the protocol stack control assembly that exists under the current system automatically, automatically loading comprises new protocol stack control assembly at each interior protocol stack control assembly then, and the function information of these protocol stack control assemblys is registered in the described micro-kernel;
The protocol stack parameter modification function of in described user's application module, using described new protocol stack control assembly to be supported.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610076315XA CN1829127B (en) | 2006-04-20 | 2006-04-20 | Method for building communication terminal test instrumentation control platform based on microkernel |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200610076315XA CN1829127B (en) | 2006-04-20 | 2006-04-20 | Method for building communication terminal test instrumentation control platform based on microkernel |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1829127A CN1829127A (en) | 2006-09-06 |
CN1829127B true CN1829127B (en) | 2011-06-29 |
Family
ID=36947286
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200610076315XA Active CN1829127B (en) | 2006-04-20 | 2006-04-20 | Method for building communication terminal test instrumentation control platform based on microkernel |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1829127B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101944063B (en) * | 2010-09-21 | 2012-06-13 | 南京中德保护控制系统有限公司 | Real-time dynamic scheduling policy test method based on digital microkernel |
CN101977196B (en) * | 2010-10-29 | 2013-07-10 | 西安交通大学 | Non-invasive method for constructing microkernel virtualization platform |
CN102467092B (en) * | 2010-11-03 | 2016-04-06 | 北京普源精电科技有限公司 | The communicating control method of computing machine and surveying instrument and system |
CN105677424A (en) * | 2016-01-08 | 2016-06-15 | 广东亿迅科技有限公司 | Method for hot loading of component-based development integration based on microkernel |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1251183A (en) * | 1997-03-19 | 2000-04-19 | 西门子公司 | Integrated circuit and method for testing the same |
EP1128602A1 (en) * | 2000-02-23 | 2001-08-29 | Tektronix, Inc. | Apparatus for building a protocol stack and corresponding method |
CN1357981A (en) * | 2000-12-04 | 2002-07-10 | 深圳黎明电脑网络有限公司 | Method of testing several kinds of application protocol |
CN1564135A (en) * | 2004-03-19 | 2005-01-12 | 中国科学院计算技术研究所 | Consistency detection frame contg. complex computation procedue protocal |
-
2006
- 2006-04-20 CN CN200610076315XA patent/CN1829127B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1251183A (en) * | 1997-03-19 | 2000-04-19 | 西门子公司 | Integrated circuit and method for testing the same |
EP1128602A1 (en) * | 2000-02-23 | 2001-08-29 | Tektronix, Inc. | Apparatus for building a protocol stack and corresponding method |
CN1357981A (en) * | 2000-12-04 | 2002-07-10 | 深圳黎明电脑网络有限公司 | Method of testing several kinds of application protocol |
CN1564135A (en) * | 2004-03-19 | 2005-01-12 | 中国科学院计算技术研究所 | Consistency detection frame contg. complex computation procedue protocal |
Also Published As
Publication number | Publication date |
---|---|
CN1829127A (en) | 2006-09-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102548042B (en) | Platform and method for customizing and releasing mobile terminal application software in self-service mode | |
CN108388207A (en) | The handheld field maintenance tool of essential safety with improved help function | |
RU2370895C2 (en) | Virtual radio communication system and device | |
CN1829127B (en) | Method for building communication terminal test instrumentation control platform based on microkernel | |
CN102298365B (en) | Method for automatically identifying and managing spaceflight measurement and control earth station device change | |
EP2284757A1 (en) | Security vulnerability information aggregation | |
WO2006017779A1 (en) | Data mart generation and use in association with an operations intelligence platform | |
CN101510151A (en) | Synthesis monitoring cross-platform configuration human-machine interface system | |
EP2352315A1 (en) | Method for performing unstructured supplementary service data (ussd) service | |
WO2001022226A1 (en) | Event management system utilizing dynamic adaptation for external devices | |
CN113985780B (en) | Multi-channel remote control device and method, storage medium and electronic equipment | |
CA2669500A1 (en) | Enhanced network adapter framework | |
US8650573B2 (en) | System and method for controlling priority in SCA multi-component and multi-port environment | |
CN113158439B (en) | Simulation system for communication navigation system test | |
CN101833452A (en) | Monitor software design method based on sensor | |
JP3887672B2 (en) | Protocol stack generation apparatus and method | |
CN107479876A (en) | A kind of five layer architecture design methods for building unmanned aerial vehicle station software | |
CN106815013A (en) | A kind of seating plane health control ground support system framework of two-way interactive | |
CN100571156C (en) | A kind of in Upper NM Station the method for integrating lower network management function | |
CN113094419A (en) | Data analysis system, method, client and storage medium | |
Scott | Comparative advantage through manufacturing execution systems | |
CN104615539A (en) | Measurement parameter processing method and system | |
CN114845328B (en) | Polymorphism NR radio frequency test system, test case generation method and test method | |
CN107612744B (en) | Intelligent transportation equipment operation and maintenance system based on mobile platform | |
WO2020135350A1 (en) | Network element access method and apparatus, network management platform and computer-readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee |
Owner name: BEIJING STARPOINT TECHNOLOGY CO., LTD. Free format text: FORMER NAME: XINGHELIANGDIAN COMMUNICATION SOFTWARE CO LTD, BEIJING |
|
CP03 | Change of name, title or address |
Address after: 100102 Beijing City, Chaoyang District Lize two Road No. 2 three floor, four floor of the South Patentee after: BEIJING STARPOINT TECHNOLOGY CO., LTD. Address before: 100083, Haidian District, Xueyuan Road, No. 40 research, 1-1 floor, two floor, Beijing Patentee before: Xingheliangdian Communication Software Co., Ltd., Beijing |