A kind of method for designing of intelligent substation integrated business platform service interface
Technical field
The present invention relates to the method for designing of a kind of interface, be specifically related to the method for designing of a kind of intelligent substation integrated business platform service interface.
Background technology
After IEC61850 promulgates, the all of system of transformer station and function will carry out Unify legislation with model, substation data is because possessing the requirement of panoramic information, for meeting larger range of application demand, it is necessary to reintegrate and unified plan according to object oriented designing thinking.And the basic data of operation of power networks always is the foundation stone of whole Operation of Electric Systems, accuracy and the real-time of its data acquisition directly affect electric power netting safe running.Along with going deep into of intelligent substation research, many new business demands outside tradition monitoring constantly produce, also have electric energy quality monitoring, power electronic equipment to control outside status monitoring, assist control etc., distributed energy accesses, the monitoring of power electronics reactive power compensator and the new business such as control, technology of Internet of things, proposes new challenge to the development of current intelligent substation.But in current intelligent substation, these business demands have been fused into a serious problem with existing monitoring system, are not as status monitoring self-organizing system the same as assist control, it is simply that cannot access at all.New Generation of Intelligent transformer station clearly eliminates the subsystems such as protection information management substation, status monitoring substation, auxiliary monitoring substation, how to support merging and being developed into a problem that cannot avoid of different majors.Even the senior application of intelligence of monitoring system itself, its degree of being practical also cannot be satisfactory.Simply a data access and the monitor supervision platform that the systems provider having its source in traditional that this problem produces provides, do not meet whole business demand, simultaneously as lack the platform of opening, application and platform are tied up extremely, system integrator cannot the suitable specialized function module of unrestricted choice, this all seriously constrains the development of intelligent substationization application, and hence setting up unified access interface is between different manufacturers, realizes a feasible program of cross-platform senior application between user and producer.
Summary of the invention
For the deficiencies in the prior art, it is an object of the invention to provide the method for designing of a kind of intelligent substation integrated business platform service interface, the method can provide multi-level software interface, provides data exchange mechanism, man-machine support, data support, public service function and system management function for application and development;There is good system integration ability, support application, the sharing of Back ground Information;The running environment fully meeting business demand and effective security protection system can be set up, abundant data resource is provided, support the operation of transformer station, maintenance and management, efficient system management and security management mechanism can be set up, it is achieved the information between system and types of applications is mutual and stable operation.
It is an object of the invention to adopt following technical proposals to realize:
The present invention provides the method for designing of a kind of intelligent substation integrated business platform service interface, and it thes improvement is that, described method comprises the steps:
(1) definition intelligent substation integrated business platform data type identification and data structure;
(2) intelligent substation integrated business platform service Interface design;
(3) application program processes the platform service data obtained.
Further, in described step (1), adopt enumeration type to intelligent substation application type (SAS_Application), basic data type SAS_FieldType, IEC61850 data object (SAS_ObjectType), electric pressure (SAS_VoltageType), primary equipment (SAS_EquipType), measurement (SAS_MeasType), alarm grade (SAS_AlarmLevel), measure quality (SAS_QualityType), dimension (SAS_DimensionType), event type (SAS_DimensionType) is identified.Platform service interface obtains the attribute of data by the mark of each data object.
Further, in described step (1), for the different demand of each application, definition data structure includes variant data structure, qualitative data structure, measurement data structure, log-on data structure and alarm data structure;By data structure definition, completing data subscription service, application program is registered, message forwarding services, the data acquisition of the platform service interface such as Event Service and alerting service and process.
Further, in described step (2), described integrated business platform service interface includes management service interface, messenger service interface, database service interface, file service interface, alerting service interface and Event Service interface.
Further, the function of described management service interface includes: application program is registered in platform by SAS_AppRegister interface, running status is sent to platform by SAS_AppReportState, if Application Status transmission time-out, platform then is undertaken terminating abnormality processing such as performing or restart by management program.
The function of described messenger service interface includes: application program sends message by calling interface function SAS_AppSendMessage to other application;Application program, after receiving the message body that other application send, is realized the process to message by message call back function SAS_OnMessage.
Further, the function of described database service interface include data subscription, cancel data subscription, obtain object type, obtain data type information, obtain object sub-type information, obtain data field information, obtain parent object, obtain subobject number, obtain subobject list, inquiry data number, inquiry data set, by the numerical value of ID reading object collection specific field, specify the historical data of object in the time period by the numerical value of title reading object collection specific field, the numerical value writing object set specific field and inquiry.
Further, described file service interface includes reading file interface and written document interface;Application program is by the file service interface SAS_GetFileList listed files obtained in platform storage under assigned catalogue;By reading file interface SAS_GetFile, the platform file of assigned catalogue is read;By written document interface SAS_PutFile, the platform file of assigned catalogue is read operation;
The function of described alerting service interface includes: the operation note alarm event of running status change, equipment monitor and control and operations staff is sent to platform by alerting service interface SAS_SendAlarm and is shown and processes by application program;By alarm data structure SAS_AlarmData, alarm type and warning information body are set;
The function of described Event Service interface includes: the application program event call-back function SAS_OnEvent by Event Service interface, it is achieved the process to event.
Further, in described step (3), application program first passes through management service interface and registers in integrated business platform, after succeeding in registration, enter Data Stream Processing major cycle, message call service interface, database service interface, file service interface, alerting service interface, Event Service interface obtain platform data and service support, it is achieved data subscription and process, file transmission, message sink and sending function.
Compared with immediate prior art, technical scheme provided by the invention has the beneficial effect that
The present invention provides the method for designing of a kind of intelligent substation integrated business platform service interface, using the teaching of the invention it is possible to provide multi-level software interface, provides the functions such as data exchange, data support, public service function and system administration for application and development, and major advantage has:
1) according to IEC61850 architectural framework and different business demand, define data type, particularly define Apply Names, primary equipment type, electric pressure, base data type, warning information mark, measuring amount type and measure the contents such as quality mark, specification flow of information, meets different business to demand data.
2) invention defines data structures such as being applied to alerting service interface, messenger service interface, database service interface, meet different business to the demand of message transmission, data acquisition between platform alarm, application process.
3) platform data object, data type can be obtained by database service interface, the information such as data field, dynamically configure according to interface parameters form, subscribe to the full station of definition, interval, device, measuring point data object in model.
4) unify access interface by platform and access third party's expanded application module, eliminate the shortcoming of inner coupling degree height, mixing up of structure between traditional platform system and senior application, support power system monitor, monitoring of equipment and all kinds of operational management and maintenance service, platform is made to have the feature of open, expansible, easy care, on-demand configuration, it is simple to the senior application function popularization and application of intelligent substation and secondary development.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for designing of a kind of intelligent substation integrated business platform service interface provided by the invention;
Fig. 2 is intelligent substation integrated business platform interface functional diagram provided by the invention;
Fig. 3 is intelligent substation integrated business platform interface schematic diagram provided by the invention.
Detailed description of the invention
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described in further detail.
The present invention provides the method for designing of a kind of intelligent substation integrated business platform service interface, and its flow chart is as it is shown in figure 1, comprise the steps:
(1) types of design data mark:
nullIEC61850 defines and comprises logical device (LogicalDevice,LD)、Logical node、Data object (DataObject,DO)、Data attribute (DataAttribute,DA) stratification object model,The present invention adopts enumeration type to intelligent substation application type (SAS_Application),Basic data type SAS_FieldType,IEC61850 data object (SAS_ObjectType),Electric pressure (SAS_VoltageType),Primary equipment (SAS_EquipType),Measurement (SAS_MeasType),Alarm grade (SAS_AlarmLevel),Measure quality (SAS_QualityType),Dimension (SAS_DimensionType),Event type (SAS_DimensionType) is identified.Platform service interface obtains the attribute of data by the mark of each data object.
(2) definition data structure:
Data structure definition includes variant data structure definition (SAS_Variant), qualitative data structure definition (SAS_Quality), measurement data structure definition (SAS_MeasData), log-on data structure definition (SAS_RegisterData), and alarm data structure definition (SAS_AlarmData).By data structure definition, completing data subscription service, application program is registered, message forwarding services, the data acquisition of the platform service interface such as Event Service and alerting service and process.
(3) design integration business platform service interface: as shown in Figures 2 and 3, intelligent substation integrated business platform interface includes the integrated business platform service Interface design such as management service interface, messenger service interface, database service interface, file service interface, alerting service interface, Event Service interface to the integrated business platform service Interface design of the present invention.
One, management service interface
Application program is by registration in SAS_AppRegister application management program, by the running status of SAS_AppReportState interface notification platform application program in running.
Two, messenger service interface
Service application can be passed through to send message interface SAS_AppSendMessage and send message to other application, after being respectively applied in loading interface storehouse, interface function SAS_AppSendMessage carries out the initial work such as registration of messaging bus, and sends message body.The process to message is realized by message call back function SAS_OnMessage.
Three, database service interface
In real time, the access of historical data carries out data subscription first by SAS_SubscribeData, cancel data subscription and adopt SAS_UnSubScribe, the process to data is realized by call back function SAS_OnSubscribe, application program can obtain object type by SAS_GetObjType, data type is inquired about by data type information query interface SAS_GetTypeInfo, data field information interface SAS_GetFieldInfo inquires about data field contents, as shown in table 1.The parameter of interface is transmitted by pIndex, and parameter can be the various data objects of dynamic allocation models definition.
1) subscribing to all data: parameter is incoming for plant stand object, platform is by all changes data notification to application;
2) subscribing to interval data: parameter is incoming for certain bay objects, platform is by delta data notice in interval to application;
3) subscribing to device data: parameter is incoming for certain device object, platform is by delta data notice in device to application;
4) subscribing to data measuring point: parameter is incoming measures object for certain, platform is only by the change notification of this measuring point to application;
Subscribing to data list: parameter can be one or more list of above-mentioned object, platform is only by the change notification of this measuring point to application.
Table 1 database service interface menu
Interface name |
Interface function |
SAS_SubscribeData |
Data subscription |
SAS_UnSubScribe |
Cancel data subscription |
SAS_GetObjType |
Obtain object type |
SAS_GetTypeInfo |
Obtain data type information |
SAS_GetChildTypes |
Obtain object sub-type information |
SAS_GetFieldInfo |
Obtain data field information |
SAS_GetParentObject |
Obtain parent object |
SAS_GetChildObjNum |
Obtain subobject number |
SAS_GetChildObjects |
Obtain subobject list |
SAS_QueryDataNum |
Inquiry data number |
SAS_QueryData |
Inquiry data set |
SAS_GetValueByID |
Numerical value by ID reading object collection specific field |
SAS_GetValueByName |
Numerical value by title reading object collection specific field |
SAS_SetValueByID |
Write the numerical value of object set specific field |
SAS_GetHisValueByID |
The historical data of object in the time period is specified in inquiry |
Four, file service interface
Application program is by the file access interface SAS_GetFileList listed files that can obtain in platform storage under assigned catalogue;By reading file interface SAS_GetFile, the platform file of assigned catalogue is read;By written document interface SAS_PutFile, the platform file of assigned catalogue is read operation.
Five, alerting service interface
Application program by alerting transmission interface SAS_SendAlarm running status being changed, equipment monitor and control, operations staff the alarm event such as operation note be sent to platform and be shown and process.By SAS_AlarmData structure described previously, the content such as alarm type, warning information body is set.
Six, Event Service interface
Application program passes through event call-back function SAS_OnEvent, it is achieved the process to event.
(4) application program first pass through management service interface register in integrated business platform, after succeeding in registration, enter Data Stream Processing major cycle, message call service interface, database service interface, file service interface, alerting service interface, Event Service interface obtain platform data and service support, it is achieved the functions such as data subscription and process, file transmission, message sink and transmission.
Integrated business platform uniform service interface provided by the invention includes registration class interface, data class interface, files classes interface, message class interface and other interfaces, meet difference in functionality application to platform alarm, message transmission, data acquisition, application management demand.
Finally should be noted that: above example is only in order to illustrate that technical scheme is not intended to limit; although the present invention being described in detail with reference to above-described embodiment; the specific embodiment of the present invention still can be modified or equivalent replacement by those of ordinary skill in the field; these are without departing from any amendment of spirit and scope of the invention or equivalent replace, within the claims of the present invention all awaited the reply in application.