Summary of the invention
Technical problem to be solved by this invention provides a kind of emulation veneer and emulation mode thereof, influences problems such as research and development of products progress, efficient and cost to solve in the research and development of products process owing to lacking veneer.
In order to solve the problems of the technologies described above, the invention provides a kind of emulation veneer, be used for communication and control field equipment and Products Development, this emulation veneer comprises: common framework, interface section and use emulation module more; Wherein:
Common framework is used for realizing as common platform the public task of described emulation veneer;
The interface section respectively with common framework with how to be connected with emulation module, be used to realize that emulation veneer and master control borad and network management system carry out information interaction, and realize that emulation veneer and other service board carry out information interaction;
The emulation modules of using are connected with common framework more, are used for realizing under the control of described common framework the function of each service board of emulation.
Further, common framework comprises software frame and hardware frame, wherein:
Software frame comprises embedded OS, plate level support package and application layer public task scheduling processing framework;
Hardware frame is based on the universal control module that controller is a core, comprises controller, memory, peripheral interface device and programmable logic device; Hardware frame is used for realizing by software frame the public task of common framework, promptly implement hardware driving, with interface communication, scheduler task, configuration data and the every function of accessing database.
Further, the interface section comprises interface bus and drives communication interface, other service board signaling interface and the emulation veneer external interface that is connected with adaption section with interface respectively; Wherein:
Communication interface is used for carrying out information interaction between emulation veneer and master control borad or other service board;
Interface drives and adaption section is used to the information interaction between described emulation veneer and master control borad or other service board to provide Address Recognition and signal to drive function;
Other service board signaling interface is used for carrying out the transmission of service signal between emulation veneer and other service board;
Interface bus drives with described interface and is connected with adaption section, is used for each interface signal of coffret part;
Emulation veneer external interface is used to realize the information interaction of emulation veneer and control panel, comprising: to the indication of control panel output services state, receive the emulation command signal from control panel.
Further, how to comprise database and configuration data district with emulation module; Wherein:
Database provides configuration data for the emulation of the business function of variety classes service board, i.e. the attribute of service board, configuration, class of service and business datum; Or provide the storage medium of the simulated program of copying modular program and programmable logic device;
The configuration data district comprises emulation veneer configuration data district and by emulation veneer configuration data district; Wherein, common framework is according to the mode of operation of emulation veneer configuration data district decision emulation veneer, and according to the emulation that is started by the configuration data in emulation veneer configuration data district the business function of described service board.
Further, how also to comprise single board service functional simulation module with emulation module, it is realized a specific transactions single board service function simulating by software module and programmable logic device; Wherein:
Realize one or more function simulating of generic configuration and particular arrangement, analog quantity and digital quantity alarm, analog quantity and digital quantity performance, general maintenance and special maintenance, service logic and control flow by software module;
By the emulation of programmable logic device realization to the service board interface signal.
In order to solve the problems of the technologies described above, the invention provides a kind of emulation mode of emulation veneer, comprise step:
(a) the public part based on each service class veneer makes up common framework, and common framework is realized the public task of described emulation veneer as common platform;
(b) make up the emulation modules of using more;
(c) to how to carry out data configuration and to create and carry out veneer simulation process task with emulation module, under the control of common framework, realize emulation to each service board business function, and the information interaction between realization emulation veneer and master control veneer and the network management system, and the information interaction between emulation veneer and other service board.
Further, step (a) comprises the structure of software frame and hardware frame, wherein:
Software frame comprises the structure of embedded OS, plate level support package and application layer public task scheduling processing framework;
Hardware frame is the structure of the universal control module of core based on controller promptly, is used for realizing by software frame the public task of common framework, promptly implement hardware driving, with interface communication, task scheduling, configuration data and the every function of accessing database.
Further, step (b) comprises the structure of configuration data district and database; Wherein:
The structure in configuration data district comprises emulation veneer configuration data district and by the structure in emulation veneer configuration data district; Wherein, determine the mode of operation of described emulation veneer according to emulation veneer configuration data district, and according to the emulation that is started by the configuration data in emulation veneer configuration data district the business function of described service board;
To use in order to follow-up repetition artificial service veneer for being deposited in described database by the data of emulation veneer configuration successful.
Further, step (b) also comprises the structure of single board service functional simulation module, is used to realize the emulation to single business board; Wherein:
Single board service functional simulation module realizes one or more function simulating of generic configuration and particular arrangement, analog quantity and digital quantity alarm, analog quantity and digital quantity performance, general maintenance and special maintenance, service logic and control flow by software module;
Single board service functional simulation module is by the emulation of programmable logic device realization to single business board interface signal.
Further, the data in the configuration data district are classified by general interface maintenance command and are directly visited, or by veneer emulation maintenance command partial bytes are carried out dereference.
Further, the mode of operation of emulation veneer comprises the single business board of emulation, a plurality of business boards of emulation and workload generator; Wherein:
The single business board pattern of emulation is the function of emulation veneer single business board of emulation in a time, and title, type, address, attribute and the business datum by disposing described single business board also moved single board service functional simulation module and realized;
The a plurality of business board patterns of emulation are functions of a plurality of service boards of emulation veneer emulation simultaneously, realize by title, type, address, attribute and the business datum that disposes a plurality of service boards;
The workload generator pattern is that the emulation veneer only provides test to described network management system performance as the general message function that reports of load simulation service board, realizes by title, type, address, attribute and the business datum that disposes described service board.
Further, the mode of operation of emulation veneer can also realize by the mode of hardware dial-up selecting.
Further, step (c) veneer simulation process task comprises:
Communication interface is handled: handle the information in the formation of communication interface transceive data, be that network management system is by master control borad receiving and sending messages to the emulation veneer, finish from communication interface receiving information and putting into the reception formation, perhaps the data with transmit queue send to master control borad by communication interface;
Command process: read successively and receive queuing message and handle, as required processing result information is put in the transmit queue simultaneously and gone;
Single board service is handled: comprise the configuration relevant with business and safeguard processing, performance collection and processing, alarm and event handling and the veneer functional simulation.
Further, the inventive method also comprises step (d): the emulation veneer just selects to carry out the emulation of changing the different business veneer if receive the order of the modification configuration data that network management system issues; Otherwise the emulation veneer selects to keep the emulation of former service board.
In the research and development test process, can simulate the function of multiple business veneer simultaneously by emulation veneer of the present invention, as long as network management system develops earlier, just can debug accordingly, test each subsystem of each service board and service board, to find and to solve the problem that other parts of network management system or subsystem exist in advance, thereby accelerate the research and development of products progress, improve research and development of products efficient, and can reduce the deposit kind and the quantity of related service veneer to a certain extent, thereby reduce the cost in the research and development of products process.
Aspect the beforehand research of new product, can set up the correlation model of new product by emulation veneer of the present invention, form concept product rapidly, accelerate the progress of product beforehand research.
Embodiment
A kind of emulation veneer provided by the invention comprises: common framework, the interface section of using emulation module and being connected with these two parts respectively more.At first, go out common framework based on the public partial extraction of each service class veneer, its common platform as omnipotent veneer realizes hardware driving, with interface communication, task scheduling, configuration data and to the function of database access.Secondly, make up and use emulation module more, comprise the structure of database and configuration data and single board service functional simulation module.At last, by to how to be configured the functional simulation that just can realize the different business veneer, and assign to realize the information interaction between other service boards in master control veneer, network management system or the system by interface portion with emulation module.
Describe technique scheme of the present invention in detail below in conjunction with diagram and specific embodiment.
As shown in Figure 2, the emulation veneer of the present invention interface section 202 that comprises public software and hardware framework 201, use emulation module 203 more and be connected with the two respectively.
Wherein, common framework 201 comes out based on the public partial extraction of each service class veneer, and it is the common platform of emulation veneer, in order to realize hardware driving, with functions such as interface communication, task scheduling, configuration data and database access.
Common framework 201 comprises software frame and hardware frame, wherein:
Software frame mainly comprises embedded OS (OS, Operating System), plate level support package (BSP, Board Supporting Package) and application layer public task scheduling processing framework (comprising the database access operation).
Hardware frame mainly is based on the universal control module that CPU is a core, is made up of CPU, memory, peripheral interface device and programmable logic device etc.Hardware frame is realized the above-mentioned task of common framework by software frame.
Interface section 202 is used to realize that emulation veneer and master control veneer and network management system or other service board carry out information interaction, and is used to realize the information interaction of emulation veneer and control panel.It comprises the external interface of communication interface, interface driving and adaption section, other service board signaling interface and emulation veneer.
Wherein, communication interface is to realize the information interaction of emulation veneer and master control borad and network management system or other service board from application layer; Interface drives and adaption section provides functions such as Address Recognition and signal driving for the information interaction between emulation veneer and the master control borad; Other service board signaling interface is used to realize the transmission of carrying out service signal of emulation veneer and other service board; The external interface of emulation veneer then is used to realize the information interaction with control panel.
The emulation modules 203 of using also are connected with common framework more, realize the function of simulation different business veneer by software module (based on the functional simulation task of common software framework realization) and programmable logic device.
How to comprise three parts: single board service functional simulation module, database and configuration data district with emulation module 203.Wherein:
Single board service functional simulation module is used for the function of a certain specific transactions veneer of emulation.It is simulated this specific transactions veneer based on software task and finishes following function: the function of generic configuration and particular arrangement function, analog quantity and digital quantity alarm function, analog quantity and digital quantity performance simulation function, general maintenance and special maintenance function, other logic of business functions of veneer and control flow.In addition, utilize the achieve a butt joint simulation of mouthful signal of programmable logic device.This single board service functional simulation module can realize by the function of emulation veneer according to the data in configuration data district.
Database provides data to support for the business function emulation of variety classes business board, as: the special simulated program of the attribute of service board, configuration, class of service, service related data and programmable logic device.The database data power down is not lost, and can come importing in batches, derived data or single importing, derived data by database access command.
The configuration data district comprises emulation veneer configuration data district and by emulation veneer configuration data district two parts, this area data can be classified by general interface maintenance command and directly be visited, and also can carry out dereference to the partial bytes of data field by the special maintenance order.These data are not lost after the veneer power down, can go into database manipulation to the data after the correct configuration simultaneously, reuse as required in order to follow-up.The emulation veneer determines its mode of operation according to the former configuration data, starts emulation to the business function of specific veneer according to the latter's configuration data.The default data in configuration data district is the situation of service board of simulation and business datum thereof.
Omnipotent veneer shown in Figure 2 is configured, can realizes emulation the different business veneer.
The emulation mode flow process of emulation veneer of the present invention is shown in Fig. 2 a, and the step in this flow process is described below:
The emulation Board Power up is started working, and after the board pilot success, starts main task.Main task is successively finished following function: single plate hardware initial work, establishment public task, single board signals amount and message queue initialization, the initialization of veneer own and establishment special processing task.The step of these functional modules is described below:
Step 210: the initialization of emulation single plate hardware, emulation single plate hardware are finished and are powered on and booting operating system;
Step 220: creating the public task function, comprise house dog Processing tasks, timed task the time base of time correlation (in the emulation single board service Processing tasks process with) and idle (IDLE) task dispatching, is the important nonproductive task of the normal operation of system;
Step 230: emulation single board signals amount and message queue function of initializing, the definition of semaphore are that each task is not conflicted to resource access when moving for the assurance system, the terminal of information interaction between task when message queue is system's operation;
Step 240: the function of initializing of emulation veneer own, finish Hardware I/O initialization, interrupt vector initialization (installation of interrupt service routine), communication port initialization and read the data in configuration data district;
Read the data in configuration data district according to initialization, i.e. mode of operation and simulated the single board service configuration data, initialization simulated configuration, alarm, performance and the service data of veneer, the function corresponding of initialization simultaneously emulation module.
The mode of operation of emulation veneer is divided into following three kinds: simulation (being emulation) single business board, a plurality of business boards of simulation and workload generator.Wherein:
Simulate single business board: the emulation veneer is only simulated a specific service board job in the course of the work.As the specific service board of need simulations another one, then need to reconfigure operational data: i.e. the title of specific transactions veneer, type, attribute and other business datums.Under this mode of operation, the emulation veneer will move the business simulating functional module of this specific transactions veneer.
Simulate a plurality of business boards: the emulation veneer can be simulated the work of a plurality of specific transactions veneer in the course of the work simultaneously.Title, type, virtual address, attribute and the service related data of these specific transactions veneers of definition need be set by configuration data.Under this mode of operation, the emulation veneer does not start the business simulating functional module.
Workload generator: belong to another situation of simulating single business board.The emulation veneer in the course of the work, require it frequently to report performance and alarm data to give network management system fast, in enormous quantities according to configuration data by interface, robustness, reliability with Test Network guard system (master control borad that comprises system equipment), be the emulation veneer only emulation specific transactions plate general report the message function, it provides test to the network management system performance as load.Under this mode of operation, the emulation veneer does not start the business simulating functional module.
In addition, the mode of operation of the mode of operation of emulation veneer can also be selected by the mode of hardware dial-up.
Step 250: create veneer simulation process task function, the task of establishment comprises: communication port Processing tasks, command process task and single board service Processing tasks.Wherein:
The communication port Processing tasks is the information of handling in the formation of port transceive data, mainly be to handle network management system by master control veneer receiving and sending messages to the emulation veneer, finish from port receiving information and putting into the reception formation, perhaps the data with transmit queue send to master control veneer by port.
The command process task reads the reception queuing message successively and handles, and as required processing result information is put in the transmit queue simultaneously and is gone.In this task run, if judging processed order is to belong to the order of revising configuration data district data, after then correctly being provided with, the data loading that is set up, the veneer of emulation is simultaneously finished software reset's operation automatically, promptly finishes operations such as veneer initialization, task creation startup again.The back veneer that resets will be finished copying and other functions according to the data in configuration data district.
The function that the single board service Processing tasks is finished comprises: the configuration relevant with business and safeguard processing, performance collection and processing, alarm and event handling and the veneer functional simulation.
In special duty, the mode of operation that the initialization of single board service Processing tasks and running status are obtained when simulateding the initialization of veneer own is relevant.When particularly simulating a plurality of business board, this task will be finished different plates information on the throne, veneer configuration, performance processing, alarming processing and the maintenance of these virtual veneers and handle, and the response network management system is to the request of these information with reply.
In above-mentioned task initialization constructive process, also be provided with priority level, the task scheduling pattern that task is operated system call simultaneously.
Provide a specific embodiment of the present invention below and help understanding technique scheme of the present invention.
The theory structure that the emulation veneer is connected with system in one embodiment of the invention as shown in Figure 3, system comprise emulation veneer, equipment interface bus 307, with network management system+master control borad 308 and system in other business boards 309.Wherein, the emulation veneer comprises:
General-purpose control system support platform 301 is based on the universal control module that CPU is a core, mainly is made up of CPU, memory, peripheral interface device and programmable logic device etc.
Equipment interface 302, be used to realize of the fully simulation of emulation veneer from the internal system physical interface, comprise with the communication interface of master control borad, other control signal interfaces (emulation veneer to by the emulation of emulation veneer and master control borad interface) and with the signaling interface of other business boards.
Functional simulation module 303, i.e. single board service functional simulation module, the function that is used for simulating related service to a certain extent realizes, can realize by programmable logic device and auxiliary circuit thereof, or realize by software module.The former is primarily aimed at the emulation that the physical signalling requirement is arranged on the business, as optical power adjustment, wavelength adjustment and the adjustment of attenuator attenuation etc.; The latter then lays particular emphasis on the emulation to logic of business functions, as state transition graph.
Panel interface 304 is used to realize emulation veneer external interface function: to the indication of control panel output services state, receive other emulation command signals from control panel.
Interface drives with adaptive 305, is used for from physically realizing the two-way coupling of signal: the one, realize the coupling with system equipment interface 302, and the 2nd, realize coupling with panel interface 304.
Database 306 provides the storage medium of emulation veneer configuration data or copying modular program, uses when finishing the different business function for the emulation veneer, and board software can be configured and read and write access database.
Configuration data 310, the current configuration data information of storage emulation veneer.Obtaining of this configuration data can be configuration order and the configuration parameter that the emulation veneer issues by equipment interface 302; Also can be that the hardware configuration switch is selected the data that define.
In addition, the other parts in the system:
Equipment interface bus 307 is internal system interface buss, is used for carrying out communication and information interaction between emulation veneer and network management system+master control borad 308 and other service boards 309, and the management of 308 pairs of emulation veneers of network management system+master control borad.
Network management system+master control borad 308 is used for system's background monitoring and control, and other service boards 309 and the emulation veneer on foreground are monitored and operated, and can be on network management system display monitoring information.
Other service boards 309, other business boards in the system are finished system or subsystem function under the cooperation of emulation veneer.
Among Fig. 3, general-purpose control system support platform 301 is cores of system, under the control of operating system and application software, obtain current configuration data in the configuration data 310, thereby functional simulation module 303 is loaded the correlation function Simulation Application, perhaps start the software module task and finish the artificial service function.General-purpose control system support platform 301 and functional simulation module 303 by interface drive with adaptive 305 and equipment interface 302 the emulation veneer is connected on the equipment interface bus 307, respectively with network management system+master control borad 308 and system in other business board 309 interactive information (comprising that electrical interface signals is mutual).General-purpose control system support platform 301 and functional simulation module 303 drive and adaptive 305 and the relevant indication information of panel interface 304 outputs by interface, or from panel interface 304 reception external interface input informations.General-purpose control system support platform 301 is as required to database 306 conduct interviews (reading or write configuration data).
The working method of system shown in Figure 3 and flow process as shown in Figure 4, this flow process comprises the steps:
401: the emulation Board Power up;
402~406: with the step 210 of said method flow process of the present invention to step 250;
407: scheduling of emulation single-board task and operation;
After the initialization of emulation veneer was finished, operating system began to move each task of emulation veneer with the priority of defined task scheduling mode and task, and promptly the emulation veneer is in normal operating condition.
408: judge whether configuration data changes, in command process task scheduling and running, if confirm to receive the order of the modification emulation veneer configuration data that network management system issues, the emulation veneer is carried out and is resetted 409; Otherwise the emulation veneer is got back to 407 and is kept normal operating conditions;
409: after the emulation board resetting, get back to 402 and begin to carry out;
410: the power down of emulation veneer, stop using.
The emulation veneer sees also Fig. 5 to the execution of single board service Processing tasks in the step 406.
501: the operating system establishment also starts this single board service Processing tasks;
502: the mode of operation parameter of obtaining the emulation veneer;
Mode of operation has three kinds, promptly simulates single business board, a plurality of service boards of simulation and workload generator;
503: according to mode of operation parameter acquiring veneer configuration data, as veneer name, type, attribute and service related data;
504: be operated under the single business board mode of simulation;
Finish plate information on the throne report, with professional relevant configuration and maintenance, performance collection processing, alarm and functions such as event handling and business simulating.
505: be operated under a plurality of business board modes of simulation;
Finish a plurality of plates information on the throne report, with professional relevant configuration and functions such as maintenance, performance collection processing, alarm and event handling;
506: be operated under the workload generator mode;
Finish plate information on the throne and report, handle with professional relevant configuration and maintenance, emphasis is finished load data: generate performance data and alarm/event data in batches, and frequently fast these data are sent by equipment interface 304.
After the work of emulation veneer can according to mode of operation and business configuration data thereof realize simulateding the active of property of single plate and passively report, plate information on the throne reports and other are relevant with network management system interface function, for example: the function of the configuration of emulation veneer, performance processing, alarm, maintenance and related service logic realization.
Network management system by master control borad can be configured the emulation veneer, performance processing, alarm, attended operation and particular service feature operation.Can under the situation that lacks veneer, finish relevant checking work like this to network management system (comprising master control borad).Similarly, when the emulation veneer of configuration is some specific transactions veneer of subsystem testing, can cooperate the done subsystem authentication function with other service boards in the system equipment.
When mode of operation is a plurality of service board of simulation, from network management system, just really inserting the specific transactions veneer as certain address (as sub-frame X, groove position Y), and operation such as network management system can be configured these virtual veneers, performance processing, alarm and maintenance.
When mode of operation is workload generator, can be used for the performance of Test Network guard system (comprising master control borad) and the content of reliability aspect.
Mode of operation and by the selection of emulation board type is except can also selecting by the method for hardware configuration by the realization of software layout method.If started hardware configuration method, then its priority is higher than software layout method.
In a word, the present invention comes the simulated target veneer from the interface and the logic function of each veneer, can be implemented on the Physical board attribute and the function of one or more service boards of simulation carrying simultaneously, and make in this omnipotent veneer and the product systems other parts finish information interaction.The present invention solves and lacks veneer in the research and development of products process and influence research and development of products process progress, problem that efficiency of research and development is relevant with R﹠D costs.
Certainly; the present invention also can have other multiple enforcements; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can be according to the present invention; make various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.