Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 is the schematic flow of the method that protective relaying device SV subscription function is realized based on FPGA of an embodiment
Figure;As shown in Figure 1, the method for realizing that protective relaying device SV subscribes to function based on FPGA in the present embodiment includes step:
The original CID file of digital relay protection device is converted to .ini file, from the .ini file by S11
It extracts SV and subscribes to relevant field information.
.ini file is the abbreviation of Initialization File, i.e. initialization files, is the system configuration of windows
Storage format used by file, every configuration of windows under the overall leadership, the every graphically managing generally provided with windows
Interface achieves that identical be configured with.
The original CID file of digital relay protection device, refers to Configured IED Description, i.e. work
The IED configuration description document instantiated in journey, for carrying out engineering configuration, the IED instantiated in described project to IED.File
The current address of IED is contained in model, may include transformer station model related with the IED, and is assigned engineering spy
Fixed title.Under normal conditions, in addition to covering more other information in the original CID file of digital relay protection device,
Including realizing that SV subscribes to the configuration information of function.
SV subscribes to the correlation model that function refers to the sampled value concentrated based on publish/subscribe mechanism, exchange sampled data
The mapping between ISO/IEC standard frame is arrived in object and service and these model objects and service.In digital transformer substation,
Process layer current/voltage sampled value is digital transformer substation difference current transformer substation automation via SV message Digital Transmission
The important technology feature of system.The subscription of SV message and analog quantity processing are the important technology composition portions of digital transformer substation application
Point.In one embodiment, the realization that SV subscribes to function can specifically be calculated by IEC61850-9-2 packet parsing, analog quantity low-pass filtering
Several functional module compositions such as method, sampled value Lagrange's interpolation synchronized algorithm.
SV subscription relevant field information is converted to corresponding bin configuration file, the bin configuration file energy by S12
Enough fpga chips by the digital relay protection device identify.
Bin configuration file is a kind of binary file, and for purposes depending on system or application, usual suffix is entitled "
.bin ", it is shown to be binary format.In one embodiment, the identifiable bin of FPGA is completed by the preset end PC software to configure
The conversion of .ini the file information to bin configuration file is realized in the conversion of file.Preferably, can also bist data verification to ensure
Convert the data integrity of front and back.
FPGA uses logical cell array LCA (Logic Cell Array) such a new concept, and inside includes can
Configure logic module CLB (Configurable Logic Block), output input module IOB (Input Output Block)
With three parts of interconnector (Interconnect).The logic of FPGA is that programming number is loaded by internally static storage cell
It is determined between the logic function and each module of logic unit or module according to value in a memory cell come what is realized, is stored
Connecting mode between I/O, and finally determine function achieved by FPGA.The Different Logic of FPGA can execute parallel,
Different task is handled simultaneously, so that realizing the SV Message processing in digital relay protection device more efficiently based on FPGA.Institute
With, when enabling a device to access more big data quantity ether network packet using fpga chip in digital relay protection device,
Break the mode that sequence executes, more processing tasks are completed within each clock cycle, acquisition surmounts DSP (at digital signal
Reason) data-handling capacity.
S13 downloads the bin configuration file to the FPGA core after the digital relay protection device powers on
Piece.
In one embodiment, SV in the .ini file is subscribed to relevant field information is 3 functional domains, is mentioned respectively
The configuration information of 3 functional domains is taken, including:Frame configuration domain and analog quantity channel configuration domain are subscribed in global configuration domain.It is corresponding
, the configuration informations of 3 functional domains is successively downloaded to fpga chip.
S14 parses the bin configuration file by the Command Line Parsing logic of the fpga chip, accomplished
Model information needed for SV subscribes to function, so that the fpga chip realizes that SV subscribes to function according to the model information.
After the model information needed for obtaining SV and subscribing to function, the fpga chip can be believed by loading the model
Breath realizes that SV subscribes to function, realizes that the collection value of the analog quantity channel to several access digital relay protection devices carries out pipe
Reason and numerical value distribution.Relevant field information is subscribed to according to the SV extracted due to the bin configuration file to be converted to, compared to
The original CID file of digital relay protection device, information overlay capacity are simplified, and downloading data amount and FPGA are saved
Storage resource in piece, and be also beneficial to simplify the process of logical analysis in FPGA piece, improve analyzing efficiency.
In one embodiment, matching for built-in piece of memory block (BLOCK RAM) storage downloading can be opened up in fpga chip in advance
File is set, and completes to verify.The bin configuration file is parsed in the Command Line Parsing logic by the fpga chip,
After model information needed for accomplished SV subscribes to function, model information needed for realizing SV subscription function is according to respective institute
It is the reserved block memory field of each functional domain (configuration BLOCK RAM) that the functional domain of category, which is stored respectively into the fpga chip, greatly
Width is saved fpga chip internal logic resource and is occupied.As shown in Fig. 2, the fpga chip may include 4 logic functional blocks, point
It is not:SV packet parsing module, analog quantity preprocessing module, analog quantity low-pass filtering module and interpolation synchronization module.FPGA
4 logic functional blocks of chip by from corresponding block memory field load SV subscribe to function needed for model information,
Realize that SV subscribes to function.
In one embodiment, can also in advance by SV subscribe to function corresponding to as unit of subscription analog quantity channel, described
Several addressable standard RAM of setting in fpga chip, and establish the standard RAM and the subscription analog quantity channel one by one
Corresponding relationship.
Fig. 3 is the data structure schematic diagram that protective relaying device SV subscription function is realized based on FPGA of an embodiment;Such as
Shown in Fig. 3, two dotted lines are divided into three parts:Left part is that analog quantity accesses datapath structure, and sampled value is single from merging
3 subscription analog quantity channels of member:FT3 access (i.e. the FT3 format samples that IEC60044-8 is defined access channel), AD acquisition connect
Enter (i.e. device locally sampling access channel) and/or SMV message access (i.e. the SMV format samples that IEC61850-9-2 is defined connect
Enter channel).Middle part is analog quantity buffer area (Analog Value) pipe for carrying out data management in FPGA piece according to configuration information
Reason;Right part is that FPGA realizes the sampled value distribution after SV subscription function.In one embodiment, also FPGA can be abstracted in advance
Analog quantity management configuration is planned to addressable standard RAM mode and carries out configuration packages as unit of subscribing to analog quantity channel,
Several addressable standard RAM are set in the fpga chip, and it is logical with the subscription analog quantity to establish the standard RAM
The one-to-one relationship in road is conducive to save programmable logic resource (CLB) in fpga chip.
In a preferred embodiment, it is 3 functional domains that SV is extracted from the .ini file and subscribes to relevant field information,
In, the configuration information that global configuration domain may include has:Search interpolation correction time coefficient, the filtering parameter of a depth, each piece of memory
The information such as (order and coefficient), operating mode, sampling period and the corresponding logical channel number of each piece of memory.The operating mode
Networking model, local device including local device access clock synchronization do not access networking model, ad hoc mode and the net of clock synchronization
Adopt ad hoc mode.Subscribing to the configuration information that frame configuration domain may include has:Subscribe to frame number, Destination MAC, APPID
(Application Identifier, application identifier), version number, SVID (Sampled Value Identifier, sampling
Value mark), frame data channel number initial address, frame data initial address, list asdu (Application Service Data
Unit, Application service data unit) in effectively analog channel number, delay parameter position in frame, total analog channel number in list asdu
And the information such as total analog channel number of asdu in frame.The configuration information that channel configuration domain may include has:It collects channel number, lead to
Road is enabled, buffer area identifies and buffer area is originally written into the information such as pointer.Specifically, the configuration information that each functional domain includes shows
Under such as:
(1) global configuration domain
[GlobeCfg];Global configuration
;Search a depth
SearchDepth=16
;RAM0 interpolation correction time coefficient
RAM0_IntpolationTimePara=1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000
;RAM1 interpolation correction time coefficient
RAM1_IntpolationTimePara=1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000
;RAM2 interpolation correction time coefficient
RAM2_IntpolationTimePara=1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,1000000,
1000000,1000000,1000000,1000000,1000000
;Filter order
FilterOrder=11
;Filter factor
FilterPara=14307450,221413901,358252592,541042614,678261 689,
729612390,678261689,541042614,358252592,221413901,14307450,0,0,0,0,0
;Operating mode:
;The networking model of 0- local device access clock synchronization
;1- local device does not access the networking model of clock synchronization
;2- ad hoc mode
;3- net adopts ad hoc mode
WorkMode=2
;Sampling period, unit ns
SamplePeriod=250000
;The area RAM0 logical channel number
RAM0_LogicChannelNum=64
;The area RAM1 logical channel number
RAM1_LogicChannelNum=64
;The area RAM2 logical channel number
RAM2_LogicChannelNum=64
(2) it subscribes to frame and configures domain
It subscribes to frame configuration and channel configures mixing, one is subscribed to the analog channel configuration that 64 tunnels are followed in frame configuration.
[SVIn]
;Subscribe to frame number=asdu number, Destination MAC, APPID, version number, SVID, frame data channel number initial address, frame
Data initial address, effective analog channel number in single ASDU, delay parameter position in frame, total analog channel number in single ASDU, frame
The interior total analog channel number of asdu
It is as follows using format sample:
Subscribe1=1,01-0c-cd-ef-01-01,0x4001,4-0-0-0-1, hello, 1,2,0,0,0,0.
(3) channel configures domain
It is as follows using format sample:
SVIn1_1=128,1,0,0
SVIn1_2=128,1,0,1
SVIn1_3=128,1,0,2
SVIn1_4=128,1,0,3.
The method for realizing protective relaying device SV subscription function based on FPGA of above-described embodiment, by CID model text
Part carries out lossless conversion, extracts SV therein by the exploitation end PC upper computer software and subscribes to relevant field, provides covering to FPGA
Configuration information needed for SV subscribes to function is downloaded, and model information needed for realizing SV subscription function based on FPGA is conducive to save
Resource in the piece of FPGA.On the other hand, by the abstract analog quantity management configuration of FPGA, as unit of subscribing to analog quantity channel,
It is planned to addressable standard RAM mode and carries out configuration packages, save programmable logic resource (CLB) in fpga chip.And
It also supports under digital relay protection device electrifying condition, online reconfiguration function, meets flexible the matching of total system operation
Set requirement.
It should be noted that for the various method embodiments described above, describing for simplicity, it is all expressed as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described, because according to
According to the present invention, certain steps can use other sequences or carry out simultaneously.In addition, also any group can be carried out to above-described embodiment
It closes, obtains other embodiments.
Based on realizing that protective relaying device SV subscribes to the identical think of of the method for function based on FPGA with above-described embodiment
Think, the present invention also provides realizing that protective relaying device SV subscribes to the device of function based on FPGA, which can be used for executing above-mentioned
The method that protective relaying device SV subscribes to function is realized based on FPGA.For ease of description, relay protection dress is realized based on FPGA
In the structural schematic diagram for setting the Installation practice that SV subscribes to function, part related to the embodiment of the present invention illustrate only, this
Field technical staff is appreciated that the restriction of schematic structure not structure twin installation, may include more more or fewer than illustrating
Component perhaps combines certain components or different component layouts.
Fig. 4 is the schematic of the device based on FPGA realization protective relaying device SV subscription function of one embodiment of the invention
Structure chart;As shown in figure 4, the device for subscribing to function based on FPGA realization protective relaying device SV of the present embodiment includes:Information
Extraction unit 310, file conversion unit 320, file download unit 330 and resolution unit 340, details are as follows for each unit:
The information extraction unit 310, for the original CID file of digital relay protection device to be converted to .ini text
Part extracts SV from the .ini file and subscribes to relevant field information;
The file conversion unit 320 configures text for SV subscription relevant field information to be converted to corresponding bin
Part, the bin configuration file can be identified by the fpga chip of the digital relay protection device;
The file download unit 330, for downloading the bin after the digital relay protection device powers on
Configuration file is to the fpga chip;And
The resolution unit 340, for the Command Line Parsing logic by the fpga chip to the bin configuration file into
Row parsing, model information needed for accomplished SV subscribes to function, so that the fpga chip is realized according to the model information
SV subscribes to function.
In one embodiment, the information extraction unit 310 may include:
Model Abstraction subelement is 3 functional domains for SV in the .ini file to be subscribed to relevant field information;
3 functional domains include:Frame configuration domain and analog quantity channel configuration domain are subscribed in global configuration domain.And information extraction is single
Member, for extracting the configuration information of 3 functional domains respectively.
In one embodiment, described to further include based on what FPGA realized protective relaying device SV subscription function:
Model information administrative unit, for model information needed for realizing SV subscription function according to respectively affiliated function
It is the reserved block memory field of each functional domain that domain, which is stored respectively into the fpga chip,.
In one embodiment, described to further include based on what FPGA realized protective relaying device SV subscription function:
Buffer area planning unit, for by SV subscribe to function corresponding to as unit of subscription analog quantity channel, described
Several addressable standard RAM of setting in fpga chip, and establish the standard RAM and the subscription analog quantity channel one by one
Corresponding relationship.
It should be noted that above-mentioned example realizes that protective relaying device SV subscribes to the implementation of the device of function based on FPGA
In mode, the contents such as information exchange, implementation procedure between each unit are same due to being based on preceding method embodiment of the present invention
Design, bring technical effect is identical as preceding method embodiment of the present invention, and particular content can be found in the method for the present invention implementation
Narration in example, details are not described herein again.
In addition, above-mentioned example realizes that protective relaying device SV is subscribed in the embodiment of the device of function based on FPGA,
The logical partitioning of each functional unit is merely illustrative of, and can according to need in practical application, such as matching for corresponding hardware
It sets the convenient of the realization of requirement or software to consider, above-mentioned function distribution be completed by different functional units, i.e., by the base
Realize that protective relaying device SV subscribes to the internal structure of device of function and is divided into different functional units in FPGA, with complete with
The all or part of function of upper description.Wherein each functional unit both can take the form of hardware realization, can also use soft
The form of part functional module is realized.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, it may refer to the associated description of other embodiments.
The embodiments described above only express several embodiments of the present invention, should not be understood as to the invention patent range
Limitation.It should be pointed out that for those of ordinary skill in the art, without departing from the inventive concept of the premise,
Various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Therefore, the scope of protection of the patent of the present invention
It should be determined by the appended claims.