A kind of intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS
Technical field
The present invention relates to a kind of intelligent power distribution terminal unified platform of distribution terminal design field, be specifically related to a kind of intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS (real-time system, Real-time operating system).
Background technology
Along with the development of intelligent grid, new challenge has been proposed the distribution terminal performance.At present, in power distribution automation, not only require the terminal can handle more, more complicated tasks, and the real-time of distribution terminal is required also to improve day by day.The function of distribution terminal is detected and is discerned to functional diversities and integrated development by single failure.
And current distribution terminal software modes that adopt single CPU, one process in design, no matter this structural design is aspect multitasking, still aspect real-time, all can not satisfy the requirement of following intelligent grid. moreIn addition, traditional distribution terminal is a kind of close-coupled method for designing in method for designing, and this method extendability is poor, and dirigibility is little, only is suitable for the function singleness application places.Along with the increase of termination function, soft, hardware designs becomes increasingly complex, and makes the terminal maintenance upgrade difficult day by day, even causes the engineering duplicate construction, causes the data waste.The development of the power distribution network that the incompatible intellectuality of conventional terminal method for designing, integrated degree are increasingly high.Press for a kind of modular design, support Terminal Design case soft, hardware interpolation/cutting.
Do following explanation in the face of 32 multi-core microprocessors, DSP/BIOS real time operating system, built-in Linux real time operating system, embedded real-time data base and fieldbus down:
1,32 multi-core microprocessors:
Multi-core microprocessor is integrated into a plurality of processor cores on the same chip, be divided into symmetric multiprocessor SMP and asymmetric processor A MP, but not AMP can be divided into isomery and isomorphism again.Heterogeneous multi-nucleus processor uses dissimilar processor operation various tasks, and the most typical collocation mode has MCU+DSP, DSP+FPGA, MCU+FPGA etc.Calculate microprocessor with monokaryon and compare, it has higher communication bandwidth and shorter communication delay.Therefore, aspect parallel, has stronger advantage at multi-core microprocessor aspect walking abreast.
2, DSP/BIOS real time operating system:
DSP/BIOS is that TI company is in particular its TMS320C6000TM; But TMS320C5000TM and TMS320C28xTM series DSP platform design the real-time multi-task operating system kernel of a size cutting of exploitation, are one of the ingredients of the CodeComposer StudioTM developing instrument of TI company.It mainly is made up of three parts: multithreading real-time kernel (preemptive type multithreading); The real-time analysis instrument; Chip is supported the storehouse.Utilize the real time operating system development sequence, can develop complicated DSP program easily and fast.The operation of operating system maintenance schedule multithreading only needs the digital signal algorithm of customization is got final product as a thread embedded system; Chip supports the storehouse to help the Manage Peripheral Device resource, and complicated peripheral hardware initialization of register can utilize direct graphical tool configuration; The real-time analysis instrument helps analytical algorithm real time execution situation.
3, built-in Linux real time operating system:
Built-in Linux is that the (SuSE) Linux OS with increased popularity carries out cutting and revises a kind of operating system that makes it on embedded computer system, to move.Compare with other operating system, linux system has following advantage.At first, there is not the black box technology in its open source; Secondly, the kernel of Linux is little, efficient is high, and Linux is customizable, its system kernel minimum 134KB that only has an appointment.The 3rd, Linux is free operating system (OS), on price, has competitive power.Linux is a cross-platform system, can support twenty or thirty kind CPU.And stable performance, cutting property is fine, exploitation and easy to use.
4, embedded real-time data base:
Embedded real-time data base be meant can be in embedded device a kind of Database Systems of independent operating; A large amount of in order to handle, ageing strong and the data of strict sequential order are arranged; It is a target with high reliability, high real-time and high information throughput; The correctness of its data not only depends on logical consequence, and depends on the time that logical consequence produces.Embedded real-time data base is one " memory database " in essence, is a memory buffer pond by application program management, and its effect in system is exactly one and supplies the common sharing data area of using of a plurality of real-time tasks.
5, fieldbus:
Fieldbus (Fieldbus) is a kind of industry data bus that develops rapidly in recent years, and it mainly solves digital communication and the information problem of transmission between these field control equipment and the advanced control system (ACS) between the field apparatus such as intelligent instrumentation, controller, topworks of industry spot.
Summary of the invention
Deficiency to prior art; The present invention provides a kind of intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS; This intelligent power distribution terminal platform is adopting on 32 multi-core microprocessors, field bus technique, DSP/BIOS and the flush type LINUX system technical foundation; Use multi-core CPU Data Interchange Technology, component technology and real-time data base technical design and go out; This intelligent power distribution terminal platform has loose contingency, flexible software design, and real-time is high, dirigibility is good, favorable expandability and the little advantage of volume.
The objective of the invention is to adopt following technical proposals to realize:
A kind of intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS is characterized in that said intelligent power distribution terminal platform adopts discrete plate card type structure;
Said intelligent power distribution terminal platform comprises DSP microprocessor module, ARM microprocessor module and fieldbus;
Said DSP microprocessor module is connected with backboard through fieldbus;
Said ARM microprocessor module is connected with backboard through fieldbus;
Said DSP microprocessor module adopts the DSP/BIOS real time operating system; Said ARM microprocessor module adopts the built-in Linux real time operating system.
Preferably, said DSP microprocessor module comprises dsp chip, DSP peripheral hardware, timer, interruption and internal memory; Said timer, interruption and internal memory are integrated on the DSP chip.
More preferably, said DSP peripheral hardware comprises isolating switch, remote signalling interface, telemetry interface, A/D sampling thief and reactive-load compensator;
Said remote signalling interface is connected with dsp chip through EBI with telemetry interface;
Said A/D sampling thief is connected with dsp chip respectively with reactive-load compensator.
Preferably, said ARM microprocessor module comprises ARM chip and physics Peripheral Interface;
Said physics Peripheral Interface is connected with the ARM chip;
Said ARM chip adopts AT91SAM9G20 chip or AT91SAM9G45 chip.
Preferably, said fieldbus comprises bus, bus peripheral hardware and EBI.
More preferably, said bus peripheral hardware comprises DM9000 controller, shared drive, LCD LCD, RS485 bus peripheral hardware and universal asynchronous reception/dispensing device UART;
Said LCD LCD, RS485 bus peripheral hardware and universal asynchronous reception/dispensing device UART are connected with said ARM chip respectively.
Preferably, said integrated circuit board comprises mainboard, power panel, data acquisition board, I/O plate, extend current sampling plate, communication board and reactive-load compensation plate;
Said mainboard, power panel, data acquisition board, I/O plate, extend current sampling plate, communication board and reactive-load compensation plate are connected with EBI respectively through backboard.
Preferably, said embedded real-time data base runs on the ARM microprocessor module, for said ARM microprocessor module provides data management service.
Said embedded real-time data base is a software, runs in the corresponding embedded device, promptly in the ARM microprocessor module, for the ARM microprocessor module provides data management service.
Preferably, said built-in Linux real time operating system is carried out exchanges data through interruption and shared drive and said DSP microprocessor module.
With the prior art ratio, the beneficial effect that the present invention reaches is:
1, the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention has loose contingency; The advantage of flexible software design: DSP microprocessor module and the internal structure of ARM microprocessor module and other intermodule do not have direct correlation arbitrarily, develop separate.As long as the software developer follows the unified interface functional standard, just can functional module be added the intelligent power distribution terminal.And, the inner structure of each assembly of forming whole application program when realizing little by little changing, the existence that it can continue.
2, the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention has the high advantage of real-time: adopt real-time data base to improve data processing speed.In the RAM of ARM microprocessor module, tradition is deposited in approximately raising one one magnitude of FLASH mode speed to this method with data storage.
3, the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention has the high advantage of stability: real-time task is separated with un-real time job, improves system stability.The task that real-time is had relatively high expectations is separated, operated among the CPU of DSP microprocessor module, promptly get rid of the interference of other task, guarantee the real time response speed of task.ARM mainly is responsible for task scheduling, historical data processing etc.
4, the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention has the strong advantage of extendability: when hardware system needs upgrading; Only need to change or add related hardware, and realization hardware Physical layer unified interface just can be accomplished the smooth upgrade of system software and hardware; When intelligent terminal need add new function, as long as realize protocol library, related then upward corresponding physical interface just could.
5, the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention has the little advantage of volume: adopt multi-core CPU, have only a chips (integrated isomery ARM+DSP), reduce the hardware volume.Integrated level is higher, and stability is higher.
Description of drawings
Fig. 1 is the structural framing figure of the intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention;
Fig. 2 is that integrated circuit board provided by the invention connects synoptic diagram.
Embodiment
Do further to specify below in conjunction with the accompanying drawing specific embodiments of the invention.
The intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention adopts discrete plate card type structure; The intelligent power distribution terminal platform comprises DSP microprocessor module, ARM microprocessor module and fieldbus; Said DSP microprocessor module is connected with fieldbus through backboard; Said ARM microprocessor module is connected with fieldbus through backboard; Said DSP microprocessor module adopts the DSP/BIOS real time operating system; Said ARM microprocessor module adopts the built-in Linux real time operating system.
The DSP microprocessor module comprises dsp chip, DSP peripheral hardware, timer, interruption and internal memory; Said timer, interruption and internal memory are integrated on the dsp chip.Said internal memory can only be visited by dsp chip.
The DSP peripheral hardware comprises isolating switch, remote signalling interface, telemetry interface, A/D sampling thief and reactive-load compensator; Said remote signalling interface is connected with dsp chip through EBI with telemetry interface; Said A/D sampling thief is connected with dsp chip respectively with reactive-load compensator.Dsp chip can adopt the chip of TMS320C6000 series.
The DSP microprocessor module has powerful data-handling capacity and very high travelling speed, and the DSP/BIOS real time operating system of its lift-launch provides the management to thread, interruption, timer, memory source and other peripheral hardware resource with modular mode to the user.The algorithm that customizes in the practical application is dispatched by the DSP/BIOS real time operating system as the scheduling queue of a thread insertion DSP/BIOS.The DSP/BIOS real time operating system is used to handle various to the demanding task of real-time, as: data acquisition, signal Processing and control in real time;
Said ARM microprocessor module comprises ARM chip and physics Peripheral Interface; Said physics Peripheral Interface is connected with the ARM chip; Said ARM chip adopts AT91SAM9G20 chip or AT91SAM9G45 chip.The built-in Linux real time operating system runs on the ARM microprocessor, is fit to handle the less demanding real-time task of real-time, as: communication, protocol analysis, data management etc.Embedded real-time data base runs in the built-in Linux real time operating system of ARM microprocessor module, for the ARM microprocessor module provides data, services.
Fieldbus comprises bus, bus peripheral hardware and EBI.The bus peripheral hardware comprises DM9000 controller, shared drive (shared drive refer in the computer system of multiprocessor, can by the high capacity internal memory of different CPU visit), LCD LCD, RS485 bus peripheral hardware and universal asynchronous reception/dispensing device UART; Said DM9000 controller is connected with bus with shared drive; Said LCD LCD, RS485 bus peripheral hardware and universal asynchronous reception/dispensing device UART are connected with said ARM chip respectively.Shared drive both can be visited by dsp chip, also can be visited by the ARM chip.
Integrated circuit board comprises mainboard, power panel, data acquisition board, I/O plate, extend current sampling plate, communication board and reactive-load compensation plate; Said mainboard, power panel, data acquisition board, I/O plate, extend current sampling plate, communication board and reactive-load compensation plate are connected with EBI respectively through backboard.
, comprise the steps: during in design based on the intelligent power distribution terminal unified platform of 32-bit microprocessor and RTOS
A, Hardware platform design: intelligent distribution transformer terminals microprocessor uses isomery ARM+DSP, and operating system adopts DSP/BIOS and embedded Linux system, and structure adopts discrete plate card type to design.
B, intelligent power distribution terminal platform circuit design: analyze integrated circuit board function and communication mode, carry out circuit design.During circuit design, be under the prerequisite that satisfies the integrated circuit board communicating requirement, as much as possible peripheral hardware resource in the multi-core CPU is drawn, conveniently the intelligent power distribution terminal applies is expanded in the future.
C, Task Distribution: DSP has powerful data-handling capacity and very high travelling speed, and the DSP/BIOS real time operating system of its lift-launch provides the management to thread, interruption, timer, memory source and other peripheral hardware resource with modular mode to the user.The algorithm that customizes in the practical application is dispatched by system as the scheduling queue of a thread insertion DSP/BIOS real time operating system.The DSP/BIOS real time operating system is used to handle the various tasks that real-time is had relatively high expectations, as: data acquisition, signal Processing and control in real time;
The built-in Linux real time operating system runs on the ARM microprocessor module, is fit to the real-time less demanding task of operation, as: communication, protocol analysis, data management etc.
D, peripheral hardware resources allocation: comprise DSP peripheral hardware and fieldbus peripheral hardware; According to step C result, the hardware resource at intelligent power distribution terminal is distributed.In multi-core microprocessor, major part is located to establish each nuclear and all is available, clashes in order to prevent use, must be to the peripheral hardware unified planning.If any the shared situation of peripheral hardware, must in software design, add synchronously and protection mechanism.
E, kernel carry cut, drive development: according to the result of step C and D, linux kernel is carried out cutting, removes useless core functions module, the kernel that obtains customizing.Do not have the peripheral hardware that drives in the step D kernel for having, also will write and drive the adding kernel.
F, the design of built-in Linux real time operating system: the modular design of The software adopted, application of dynamic storehouse Design Mode is put into independently process with agreement and human-computer interaction interface program, simultaneously unified encapsulation is carried out in the physical channel; With the real-time data base is the center, through interface function and human-computer interaction interface program, protocol process group, DSP data processing process and data maintenance process swap data; Use message and signaling mechanism to accomplish inter process synchronization; Exchanges data through interruption and share memory technology completion and DSP.
The intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention; Wherein the application development under the built-in Linux real time operating system adopts component technology; Functional abstract is become model, and unified physical layer data operation-interface is used the real time database management data; Employing dynamic load technology realizes program modularity, loose coupling design.
The hardware designs of the intelligent power distribution terminal unified platform is used fieldbus and integrated circuit board design, and the slot signaling interface meets the standard for Fieldbus definition.Realize the hardware flexible design, make things convenient for HardwareUpgring and maintenance.
Multi-core microprocessor, the i.e. ARM+DSP of isomery are used in unified platform terminal, intelligent power distribution terminal.ARM and DSP are pressed functional classification, run on different CPU respectively by its real-time requirement, as: the dsp operation real-time task.During software design, adopt modular design method, each functional module is through shared drive (between the CPU) or utilize embedded real-time data base swap data (between the linux system multi-process).
The intelligent power distribution terminal unified platform based on 32-bit microprocessor and RTOS provided by the invention; Employing realizes the modular design of intelligent power distribution terminal platform hardware and software based on 32 multi-core microprocessors, field bus technique, DSP/BIOS, the built-in Linux real-time oss embedded real-time data base technology of unifying.
Should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; Although the present invention has been carried out detailed explanation with reference to the foregoing description; Under the those of ordinary skill in field be to be understood that: still can specific embodiments of the invention make amendment or be equal to replacement; And do not break away from any modification of spirit and scope of the invention or be equal to replacement, it all should be encompassed in the middle of the claim scope of the present invention.