CN112653235A - Application system information synchronization method and system based on distribution network master station bus - Google Patents

Application system information synchronization method and system based on distribution network master station bus Download PDF

Info

Publication number
CN112653235A
CN112653235A CN202011437979.0A CN202011437979A CN112653235A CN 112653235 A CN112653235 A CN 112653235A CN 202011437979 A CN202011437979 A CN 202011437979A CN 112653235 A CN112653235 A CN 112653235A
Authority
CN
China
Prior art keywords
data
information
metadata
distribution network
xml message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011437979.0A
Other languages
Chinese (zh)
Inventor
王文歆
叶舟
高为举
路轶
苏义容
郑芹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Sichuan Electric Power Co Ltd
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Original Assignee
State Grid Sichuan Electric Power Co Ltd
Nari Technology Co Ltd
NARI Nanjing Control System Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by State Grid Sichuan Electric Power Co Ltd, Nari Technology Co Ltd, NARI Nanjing Control System Co Ltd filed Critical State Grid Sichuan Electric Power Co Ltd
Priority to CN202011437979.0A priority Critical patent/CN112653235A/en
Publication of CN112653235A publication Critical patent/CN112653235A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00016Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment using a wired telecommunication network or a data transmission bus
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S40/00Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
    • Y04S40/12Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment
    • Y04S40/124Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them characterised by data transport means between the monitoring, controlling or managing units and monitored, controlled or operated electrical equipment using wired telecommunication networks or data transmission busses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Power Engineering (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention aims to provide an application system information synchronization method and system based on a distribution network master station bus, wherein the system comprises a plurality of distribution network application systems or at least one distribution network application system and an electric GIS platform, and the distribution network application systems or the distribution network application systems and the electric GIS platform are connected and communicated through an information interaction bus; each distribution network application system and the electric GIS platform execute the application system information synchronization method, and the application information of other distribution network application systems or GIS platforms is synchronized to the local through the information interaction bus, or the local application information is synchronized to other distribution network application systems or electric GIS platforms through the information interaction bus. By using the method and the system, the interaction, synchronization and sharing of the power grid information data can be realized among multiple application systems and among the power distribution application system and the power GIS platform, and the real-time performance and the data reliability are improved.

Description

Application system information synchronization method and system based on distribution network master station bus
Technical Field
The invention relates to the technical field of intelligent power distribution and utilization information, in particular to an application system information synchronization method based on a distribution network master station bus.
Background
Because each subsystem among the power systems has no uniform data standard, and each subsystem is developed by different outsourcers, the used hardware equipment, the operating system, the database system and the database table have different numbers and types of fields. Therefore, power enterprises are easy to form a mesh structure which is difficult to manage and maintain, and finally, the data synchronization is complicated. Through the information interaction bus, each subsystem between the power systems can perform data transmission, information synchronization and integration and conversion of heterogeneous data. Due to the need to standardize customer information in the information industry, the data synchronization between subsystems in the past has the following disadvantages:
(1) when the attribute data types of the table fields in the heterogeneous database are inconsistent, data synchronization cannot be completed when a plurality of subsystems exchange data with each other;
(2) in the point-to-point exchange mode, if one system at two ends of the exchange data runs abnormally, or data synchronization cannot be completed due to network congestion, data inconsistency at two ends of an application system can be caused;
(3) the problem caused by the point-to-point exchange mode is that data synchronization between systems is easy to form a mesh mechanism, which is not beneficial to later system maintenance and system expansion.
Currently, the main data synchronization schemes are as follows:
(1) document transmission
Document transmission is generally used in scenarios such as sensitive data backup, basic data required for product online, and the like. Such as business data of transactions conducted by bank customers and basic configuration parameters of products on-line. The scheme is suitable for a manual operation mode, and has the characteristics of simple implementation steps, common use and the like. Meanwhile, the method has the defects of poor real-time performance, insufficient flexibility and the like.
(2) Data replication techniques
The data copying technology is to copy the same data source to different servers, so that different users can share the data within the permission range. The data replication technology can ensure that data of different nodes are automatically updated, so that the consistency of the data is ensured. The data replication technology improves the usability of the distributed database, but has the defects that: synchronous updating among heterogeneous distributed databases is not supported; ② synchronous updating among different table structures is not supported.
(3) WebService technology
At present, the scheme is used more in projects, and the use scene is mainly used for unidirectional data synchronization. The principle is that the WebService server externally issues a common interface program (data source), and a destination terminal needing to synchronize the data source calls a server terminal interface program to obtain data to complete a data synchronization process. Under the current IDE environment, the scheme is simple to realize, has high development speed, and has the characteristics of cross-language calling and the like. However, WebService has a limited data transmission amount, and therefore, transmission of data is prone to timeout, and the like.
(4) Soeket + JDBC technology
Socket is a module for providing a network communication function, and JDBC (Java databank Connection) is an interface program for accessing a DataBase standard. The combination scheme is used in some special environments. For example, all account information of the Oracle database on the Unix host needs to be returned through the network, the database account information is obtained through JDBC first, and then the account information is returned through the Socket mode. Compared with WebServie, the scheme improves the data transmission amount, but has the defects of high difficulty, high cost and the like in Socket development due to various uncertain factors of the network.
Disclosure of Invention
The invention aims to provide an application system information synchronization method and system based on a distribution network master station bus, which can realize interaction, synchronization and sharing of power grid information data among multiple application systems and improve instantaneity. The technical scheme adopted by the invention is as follows.
On one hand, the invention provides an application system information synchronization method based on a distribution network master station bus, which comprises the following steps:
responding to the change of the power grid data in the jurisdiction range, and determining changed data; converting the changed data into metadata according to a preset metadata model; the preset metadata model is set according to metadata specifications agreed in advance with other application systems and/or the power GIS platform; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
and/or, acquiring data synchronization request information sent by an external information interaction bus; according to the data synchronization request information, local data which are requested to be synchronized externally are selected and converted into metadata according to a preset metadata model; returning the converted metadata to a sender of data synchronization request information in an XML message form through an information interaction bus;
and/or, selecting data of a preset type in a local database at a set time interval, and converting the data into metadata according to a preset metadata model; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
monitoring and acquiring XML (extensive Makeup language) information which is sent by the outside through an information interaction bus and corresponds to application system information to be synchronized; analyzing the obtained XML message to obtain metadata of the information of the application system to be synchronized; converting the metadata obtained by analysis according to a preset metadata model to obtain information of the application system to be synchronized; and synchronizing the information of the application system to be synchronized to a local database.
The method can be executed by an application system end or an electric GIS platform which interacts data through an information interaction bus.
Metadata is structured information that describes, interprets, and locates an item of information resource so that it can be easily extracted and used. The metadata is used for extracting and summarizing the data of the application system, and the integration and synchronous interaction of the data resources are facilitated.
The format of the metadata is XML, so the specification of the metadata can be defined by an XSD file.
Optionally, the content specified by the metadata specification includes identifiers corresponding to various data types, languages, character sets, association information, update time, data set information, and Web Service interface definitions.
Optionally, the setting method of the metadata model includes:
determining a data type in a local jurisdiction;
selecting a metadata definition corresponding to the determined data type from a metadata specification;
and establishing a mapping relation between the local data type and the metadata definition.
The establishment of the local metadata model can remove the redundant metadata specification definition irrelevant to the local data type and improve the conversion efficiency during data conversion.
Optionally, the grid data in the jurisdiction range changes to: the method comprises the steps that data of a specified data type in an application system database are changed, wherein the specified data type comprises distribution network topological structure data;
the data which is requested to be synchronized and corresponds to the data synchronization request information comprises distribution network topological structure data, distribution network real-time section data or distribution network equipment historical data;
the data of the pre-designated type selected at the set time interval comprises real-time section data of the distribution network or historical data of the distribution network equipment. The distribution network real-time section data comprises equipment quasi-real-time remote measurement and remote traffic information data sent by a distribution automation system, and the distribution network equipment historical data comprises equipment voltage, current, active power and reactive power historical data.
Optionally, the sending the converted metadata to other application systems and/or the power GIS platform in an XML message form through an information interaction bus includes:
converting the converted metadata into an XML message;
packaging XML message data into a JMS message to obtain an XML message;
and establishing communication connection between the request and the JMS server, responding to the connection established between the request and the JMS server, and sending the XML message to a corresponding message queue or theme preset on the JMS server through an information interaction bus, so that other application systems or electric GIS platforms can acquire the XML message in the corresponding message queue or theme through the information interaction bus.
Optionally, the monitoring and acquiring the XML message corresponding to the information of the application system to be synchronized, which is sent by the external via the information interaction bus, includes: establishing communication connection with a JMS server, monitoring a pre-designated queue or a pre-subscribed theme on the JMS server, and acquiring a corresponding XML message in response to the XML message existing in the corresponding queue or theme;
the analyzing the obtained XML message to obtain the metadata of the application system information to be synchronized includes: and analyzing the XML message to obtain an XML message, and converting the XML message to obtain metadata of the information of the application system to be synchronized.
In the scheme, the JMS message service technology is utilized to realize the message middleware, the JMS message service technology can be simultaneously suitable for various service application systems of the power system, and the real-time performance and the reliability of information synchronization can be ensured.
In a second aspect, the invention provides an application system information synchronization system based on a distribution network master station bus, which comprises a plurality of distribution network application systems or at least one distribution network application system and an electric GIS platform, wherein the distribution network application systems or the distribution network application systems and the electric GIS platform are connected and communicated through an information interaction bus;
among a plurality of distribution network application systems, the distribution network application systems and the GIS platform agree in advance on unified metadata specifications; a metadata model is pre-established for each distribution network application system and the GIS platform according to the metadata specification;
each distribution network application system and each power GIS platform execute the application system information synchronization method of the first aspect, and synchronize application information of other distribution network application systems or GIS platforms to the local through an information interaction bus, or synchronize local application information to other distribution network application systems or power GIS platforms through the information interaction bus.
Advantageous effects
The application system information synchronization method based on the distribution network master station information interaction bus can realize information interaction and synchronization of data among a plurality of distribution network application systems and between the distribution network application systems and the GIS platform. In the information interaction process, based on the metadata specification agreed in advance among multiple application systems, metadata is used as a transmission object and is encapsulated in XML (extensive makeup language) information, a service system sends information to be synchronized, and when the information to be synchronized is synchronized to the local, data conversion is carried out according to a metadata model established in advance, so that metadata message information to be sent to a bus is determined, or actual data to be synchronized is obtained. The invention can realize data transmission and data synchronization among different service systems, is convenient for uniformly managing concentrated metadata information, ensures that data copies in different systems are consistent, and ensures real-time performance and reliability during data synchronization.
Drawings
FIG. 1 is a metadata management module framework.
Fig. 2 is an integration mode of the metadata management module in the bus.
FIG. 3 is a metadata XSD file fragment.
Fig. 4 is an overall architecture diagram of the data synchronization module.
Fig. 5 is system synchronization data JMS.
Fig. 6 is a JMS service component acceptance data.
Fig. 7 is a data synchronization module core processing flow.
Detailed Description
The following further description is made in conjunction with the accompanying drawings and the specific embodiments.
The technical conception of the invention is as follows: the metadata is structured information for describing, explaining and positioning a certain information resource, so that the information resource is easy to extract and use. If the metadata can be used for extracting and summarizing the application system data, the integration and synchronous interaction of the data resources are facilitated. Metadata is used as an expression form of data to be synchronized, and is encapsulated in XML messages to perform data synchronization among multiple systems, so that a uniform data interface is conveniently realized among the multiple systems, the program development difficulty is reduced, and the real-time performance of the data synchronization is improved.
Therefore, the information synchronization method of the application system based on the bus of the distribution network master station can be executed by an application system end or an electric GIS platform which exchanges data through an information exchange bus, and the method comprises the following steps:
responding to the change of the power grid data in the jurisdiction range, and determining changed data; converting the changed data into metadata according to a preset metadata model; the preset metadata model is set according to metadata specifications agreed in advance with other application systems and/or the power GIS platform; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
and/or, acquiring data synchronization request information sent by an external information interaction bus; according to the data synchronization request information, local data which are requested to be synchronized externally are selected and converted into metadata according to a preset metadata model; returning the converted metadata to a sender of data synchronization request information in an XML message form through an information interaction bus;
and/or, selecting data of a preset type in a local database at a set time interval, and converting the data into metadata according to a preset metadata model; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
monitoring and acquiring XML (extensive Makeup language) information which is sent by the outside through an information interaction bus and corresponds to application system information to be synchronized; analyzing the obtained XML message to obtain metadata of the information of the application system to be synchronized; converting the metadata obtained by analysis according to a preset metadata model to obtain information of the application system to be synchronized; and synchronizing the information of the application system to be synchronized to a local database.
The application system of the above application system information synchronization method may be: an application system information synchronization system based on a distribution network master station bus comprises a plurality of distribution network application systems or at least one distribution network application system and an electric GIS platform, wherein the distribution network application systems or the distribution network application systems and the electric GIS platform are connected and communicated through an information interaction bus;
among a plurality of distribution network application systems, the distribution network application systems and the GIS platform agree in advance on unified metadata specifications; a metadata model is pre-established for each distribution network application system and the GIS platform according to the metadata specification;
each distribution network application system and each power GIS platform execute the application system information synchronization method of the first aspect, and synchronize application information of other distribution network application systems or GIS platforms to the local through an information interaction bus, or synchronize local application information to other distribution network application systems or power GIS platforms through the information interaction bus.
When the method is implemented, a metadata specification which accords with the industrial characteristics and has universal adaptability can be formulated according to the condition of the existing data set.
At present, in the process of operating and managing the equipment assets in the power equipment asset information, the generated related information is distributed and stored by using departments or application systems as boundaries, and comprises a repair MIS (power transformation state maintenance system), an operation MIS (MIS system used for operating a work area), a line GIS (GIS system used for the work area), a scheduling MIS (MIS system used for power scheduling, wherein the key information of the MIS system is state information, operation fault information and work ticket information, and the key information of the GIS system is patrol information, work ticket information and the like.
In formulating the metadata specification, the metadata is in XML format and thus can be defined by an XSD file. In the present invention, the content specified by the metadata specification includes identifiers, languages, character sets, association information, update time, data set information, and Web Service interface definitions corresponding to various data, ID numbers of equipment production services, located areas, time ranges, value types (sampling values, statistical values), etc., and fig. 3 shows a metadata XSD file fragment.
Each business application system can extract metadata required by an enterprise, generate a uniform metadata model according to metadata specifications after data cleaning and conversion, and load the data into a local database in an XML (extensive makeup language) message format. The electric power GIS platform can centralize the metadata model of each business application system, and realize the conversion from the metadata to the distribution network data at the platform end. The configuration process of the metadata model may be performed by
The metadata model may be designed as a registrable or configurable schema. The configuration method of the metadata model can comprise the following steps:
determining a data type in a local jurisdiction;
selecting a metadata definition corresponding to the determined data type from a metadata specification;
and establishing a mapping relation between the local data type and the metadata definition.
The establishment of the local metadata model can remove the redundant metadata specification definition irrelevant to the local data type and improve the conversion efficiency during data conversion.
In addition, the user can also pre-configure a data preprocessing algorithm of the service application system, which is used for performing calculation analysis processing on the local data to obtain the data to be synchronized, or for performing analysis processing on the received metadata to be synchronized to obtain metadata of the locally required data, and then performing conversion between the metadata and the actual data by using a metadata model.
In the above method, the change of the power grid data in the jurisdiction range is as follows: the method comprises the steps that data of a specified data type in an application system database are changed, wherein the specified data type comprises distribution network topological structure data;
the data which is requested to be synchronized and corresponds to the data synchronization request information comprises distribution network topological structure data, distribution network real-time section data or distribution network equipment historical data;
the data of the pre-designated type selected at the set time interval comprises real-time section data of the distribution network or historical data of the distribution network equipment. The distribution network real-time section data comprises equipment quasi-real-time remote measurement and remote traffic information data sent by a distribution automation system, and the distribution network equipment historical data comprises equipment voltage, current, active power and reactive power historical data.
The data access pattern shown in fig. 1 can also be implemented using the method of the present invention. In fig. 1, each business application system is respectively designed with a metadata interaction interface and an entity data interaction interface, and the two interfaces respectively implement data acquisition through a metadata management module, a metadata query module, and an entity data query module. The data interaction interface of the metadata management module includes interfaces of a client and a server, and the data source of the service application system directly interacts through an information interaction bus system, wherein the metadata management module can realize interface information extraction and metadata conversion through an application component adapter, and as shown in fig. 2, an integration mode of the metadata management module in the bus is shown.
Referring to fig. 2, the present invention implements a message middleware using a JMS message service technology, which can be simultaneously applied to various service application systems of a power system, and the real-time performance and reliability of information synchronization can be guaranteed. In the method for synchronizing the information of the application system, the converted metadata is sent to other application systems and/or electric power GIS platforms in an XML message form through an information interaction bus, and the method comprises the following steps:
converting the converted metadata into an XML message;
packaging XML message data into a JMS message to obtain an XML message;
and establishing communication connection between the request and the JMS server, responding to the connection established between the request and the JMS server, and sending the XML message to a corresponding message queue or theme preset on the JMS server through an information interaction bus, so that other application systems or electric GIS platforms can acquire the XML message in the corresponding message queue or theme through the information interaction bus.
Monitoring and acquiring XML messages which are sent by the external through the information interaction bus and correspond to the information of the application system to be synchronized comprises the following steps: establishing communication connection with a JMS server, monitoring a pre-designated queue or a pre-subscribed theme on the JMS server, and acquiring a corresponding XML message in response to the XML message existing in the corresponding queue or theme;
analyzing the obtained XML message to obtain metadata of the application system information to be synchronized, wherein the metadata comprises the following steps: and analyzing the XML message to obtain an XML message, and converting the XML message to obtain metadata of the information of the application system to be synchronized.
The specific implementation principle of the JMS service is shown in fig. 4, and mainly relates to the following:
(1) data source
In this example, the data source refers to a database of each business application system, such as Oracle, SQLServer, Mysql, Sybase, DB2, and other database application systems.
(2) A data access resolution component: and providing the functions of reading data, packaging the data into XML messages, analyzing the XML messages and storing the XML messages in a storage. The module has the main functions of:
establishing mapping between database metadata and XML messages according to data updating request information submitted by an upper layer (other application systems and the like), and converting the updated database metadata into XML messages;
and analyzing and warehousing according to the XML message retrieved from the JMS service component.
(3) XML message service component
The assembly has five main functions:
packaging the XML data message transmitted by the data access analysis component into an XML message (packaging the XML message data into a JMS message refers to the message as the XML message).
Establishing connection with the JMS service assembly;
thirdly, sending the XML message to a corresponding message queue or theme on the JMS server;
receiving the message from the JMS server;
fifthly, the XML message is analyzed into an XML message and is transmitted to a data access analysis component of a lower layer.
(4) JMS service assembly
The component is an intermediary of the system and the system for message synchronization, and the message synchronization of the two subsystems can be smoothly carried out due to the asynchronism, the persistence and the reliability of the message transmission by the component. In practical application, an application interface carrying a JMS service component often cannot meet the requirement of message passing performance, and at this time, a solution of a JMS cluster component may be adopted to solve the problem.
The data source, the data access analysis component and the XML message service component can be realized in a business application system.
When in application, the process of implementing data synchronization between multiple service application systems may be: firstly, a data access analysis module reads data from a system A and assembles the data into an XML message, and the XML message is sent to a theme (Topic) or a message Queue (Queue) on a JMS service component through an XML message service component; secondly, the XML message service component of the system B end monitors a corresponding queue on the JMS service component or a Topic (Topic) on a subscription (Sub) JMS service component, once the message exists, the XML message service component transmits the message to a data access analysis component of the system B end, and then the message is analyzed and put in storage. And finally completing one data synchronization operation. If there are power service system a and power service system B, at this time, database data in system B is changed, and it is necessary to synchronize data to system a.
To illustrate the data synchronization between systems A, B, the process includes:
(1) system B synchronizes data to the JMS service component, the flow is as in fig. 5, including:
firstly, the database of the service system B is changed, and a database information interaction bus is triggered to call a data access analysis component to format the changed data into an XML message;
the XML message service component encapsulates the XML message uploaded by the data access analysis component into XML message, connects the JMS service component and sends the XML message to a queue on the JMS service component;
before sending XML message, need to judge whether to connect JMS service assembly, if connect, send XML message through sending XML message module directly, otherwise, need to carry on JMS service assembly connection, judge whether to connect again, if it is unable to connect to exceed three times, finish directly.
(2) System a accepts data from the JMS service component, as in fig. 6, including:
firstly, an XML message service component of a business system A monitors a queue or a theme on a JMS service component, and when a message arrives, the XML message service component receives the message and transmits an XML message to a lower-layer data access analysis component;
receiving the XML message by the data access analysis component, analyzing the XML message, and performing warehousing operation;
and thirdly, the system monitors the monitoring queue or the theme at regular time.
The data synchronization core processing flow is as shown in fig. 7, that is, encapsulating the XML message data into the JMS message includes:
1) judging whether the XML message needs to be processed by the information exchange platform according to the metadata specification, if so, turning to the step 2), otherwise, judging whether special processing and information integration are needed according to the metadata specification, if so, directly outputting the XML message after corresponding processing, and directly outputting the XML message without directly outputting the XML message;
2) judging whether standard data model association is carried out with the information exchange platform, if so, directly switching to an output module, otherwise, switching to the step 3);
3) judging whether the incoming XML message needs model conversion, if not, updating the standard data model, and directly switching to an output module, otherwise, switching to the step 4) to perform model conversion;
4) and converting the XML message structure into a standard structure of the bus platform, performing attribute conversion and data dictionary conversion on the upstream system and the bus platform, and updating a standard data model. Turning to the step 5);
5) judging whether the message needs to be subjected to model conversion with a downstream system, if so, turning to the step 6), otherwise, directly outputting the message to the downstream system;
6) and the bus platform and the downstream system perform attribute conversion, and the converted XML message is output to the downstream system after the conversion is finished.
The above-mentioned case requiring special treatment may be: if the identifiers are not matched, the information is returned and error information is sent out; the above-mentioned situations requiring information integration may be: the upper layer data source is too large, the metadata is segmented and encapsulated into a plurality of XML messages, and integration is needed.
The application system information synchronization method of the invention has the following characteristics:
platform-crossing property: because XML and JAVA languages are cross-platform, the model based on the two technologies also has the cross-platform characteristic;
asynchrony: the service system A does not need to know whether the service system B works normally, the service system A can send messages to the JMS service assembly, and after the service system B can run normally, the service system A can automatically receive the messages from the JMS service assembly, namely, data synchronization does not need to be carried out, and both sides of synchronous data are on line at the same time, namely, the data synchronization is asynchronous;
③ loose coupling: the message is sent without considering the communication conditions of the transmitting and receiving parties and how to process the received message, and only the XML message format which is agreed by the two parties needs to be transmitted;
reliability: the asynchronism of the JMS ensures the reliability of message transmission;
expandability: due to the high loose coupling and the universality of the components, the future access of a new business system is facilitated to participate in data exchange.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. An application system information synchronization method based on a distribution network master station bus is characterized by comprising the following steps:
responding to the change of the power grid data in the jurisdiction range, and determining changed data; converting the changed data into metadata according to a preset metadata model; the preset metadata model is set according to metadata specifications agreed in advance with other application systems and/or the power GIS platform; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
and/or, acquiring data synchronization request information sent by an external information interaction bus; according to the data synchronization request information, local data which are requested to be synchronized externally are selected and converted into metadata according to a preset metadata model; returning the converted metadata to a sender of data synchronization request information in an XML message form through an information interaction bus;
and/or, selecting data of a preset type in a local database at a set time interval, and converting the data into metadata according to a preset metadata model; the converted metadata is sent to other application systems and/or the electric GIS platform in an XML message form through an information interaction bus;
monitoring and acquiring XML (extensive Makeup language) information which is sent by the outside through an information interaction bus and corresponds to application system information to be synchronized; analyzing the obtained XML message to obtain metadata of the information of the application system to be synchronized; converting the metadata obtained by analysis according to a preset metadata model to obtain information of the application system to be synchronized; and synchronizing the information of the application system to be synchronized to a local database.
2. The method of claim 1, wherein the metadata specification specifies content including identifiers, languages, character sets, association information, update times, data set information, and Web Service interface definitions for each data type.
3. The method of claim 2, wherein the setting method of the metadata model comprises:
determining a data type in a local jurisdiction;
selecting a metadata definition corresponding to the determined data type from a metadata specification;
and establishing a mapping relation between the local data type and the metadata definition.
4. The method of claim 1, wherein the power grid data in the jurisdiction is changed to: the method comprises the steps that data of a specified data type in an application system database are changed, wherein the specified data type comprises distribution network topological structure data;
the data which is requested to be synchronized and corresponds to the data synchronization request information comprises distribution network topological structure data, distribution network real-time section data or distribution network equipment historical data;
the data of the pre-designated type selected at the set time interval comprises real-time section data of the distribution network or historical data of the distribution network equipment.
5. The method as claimed in claim 1, wherein the sending the converted metadata to other application systems and/or electric GIS platforms in XML message form via information interaction bus comprises:
converting the converted metadata into an XML message;
packaging XML message data into a JMS message to obtain an XML message;
and establishing communication connection between the request and the JMS server, responding to the connection established between the request and the JMS server, and sending the XML message to a corresponding message queue or theme preset on the JMS server through an information interaction bus, so that other application systems or electric GIS platforms can acquire the XML message in the corresponding message queue or theme through the information interaction bus.
6. The method as claimed in claim 1, wherein said monitoring and acquiring XML messages corresponding to information of the application system to be synchronized, which are sent from the outside via the information interaction bus, comprises: establishing communication connection with a JMS server, monitoring a pre-designated queue or a pre-subscribed theme on the JMS server, and acquiring a corresponding XML message in response to the XML message existing in the corresponding queue or theme;
the analyzing the obtained XML message to obtain the metadata of the application system information to be synchronized includes: and analyzing the XML message to obtain an XML message, and converting the XML message to obtain metadata of the information of the application system to be synchronized.
7. An application system information synchronization system based on a distribution network master station bus comprises a plurality of distribution network application systems or at least one distribution network application system and an electric GIS platform, wherein the distribution network application systems or the distribution network application systems and the electric GIS platform are connected and communicated through an information interaction bus; the method is characterized in that:
among a plurality of distribution network application systems, the distribution network application systems and the GIS platform agree in advance on unified metadata specifications; a metadata model is pre-established for each distribution network application system and the GIS platform according to the metadata specification;
each distribution network application system and each power GIS platform execute the application system information synchronization method of the first aspect, and synchronize application information of other distribution network application systems or GIS platforms to the local through an information interaction bus, or synchronize local application information to other distribution network application systems or power GIS platforms through the information interaction bus.
CN202011437979.0A 2020-12-10 2020-12-10 Application system information synchronization method and system based on distribution network master station bus Pending CN112653235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011437979.0A CN112653235A (en) 2020-12-10 2020-12-10 Application system information synchronization method and system based on distribution network master station bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011437979.0A CN112653235A (en) 2020-12-10 2020-12-10 Application system information synchronization method and system based on distribution network master station bus

Publications (1)

Publication Number Publication Date
CN112653235A true CN112653235A (en) 2021-04-13

Family

ID=75350846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011437979.0A Pending CN112653235A (en) 2020-12-10 2020-12-10 Application system information synchronization method and system based on distribution network master station bus

Country Status (1)

Country Link
CN (1) CN112653235A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376508A (en) * 2014-11-19 2015-02-25 国家电网公司 Automatic network distribution production first-aid repair message power grid system and method
CN105320113A (en) * 2015-10-19 2016-02-10 国家电网公司 Information interaction method between power grid space information service platform and power distribution automatic system
CN107577789A (en) * 2017-09-15 2018-01-12 云南电网有限责任公司 Province based on information interactive bus ground artwork interconnected method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376508A (en) * 2014-11-19 2015-02-25 国家电网公司 Automatic network distribution production first-aid repair message power grid system and method
CN105320113A (en) * 2015-10-19 2016-02-10 国家电网公司 Information interaction method between power grid space information service platform and power distribution automatic system
CN107577789A (en) * 2017-09-15 2018-01-12 云南电网有限责任公司 Province based on information interactive bus ground artwork interconnected method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
万军: ""基于JMS和XML的数据交换模型设计与实现"", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Similar Documents

Publication Publication Date Title
CN109413141B (en) Access method and system between main station and sub-station of power grid
CN102439818B (en) Method and device for auto-generating goose signal connection topology from substation level
CN106776780B (en) Data exchange and sharing method and system in cloud environment
CN108718345A (en) A kind of digitlization workshop industrial data Network Transmitting system
CN103078920B (en) A kind of message on-line testing system based on IEC61968 ESB
CN112925646A (en) Electric power data edge calculation system and calculation method
CN112100265A (en) Multi-source data processing method and device for big data architecture and block chain
JP2015007968A (en) Systems and methods for synchronizing geographic information system (gis) network models
CN114169579B (en) Nuclear Power Industry Internet Comprehensive Intelligent Platform System
CN104200331A (en) Power grid model joining method and system of power system
CN111913933A (en) Power grid historical data management method and system based on unified support platform
Wang et al. Design of IoT-based energy efficiency management system for building ceramics production line
CN112488502A (en) Standard water resource management integrated management and control platform
CN111262732A (en) MSP customer-oriented public cloud resource automatic inspection system
WO2021003843A1 (en) Method for hierarchical and distributed coordinated control of time sequence for integrated energy system in industrial complex
CN114281790A (en) Multi-type load resource aggregator access system and method
CN113407497B (en) One-key renaming method based on panoramic data of station-side monitoring system
CN112653235A (en) Application system information synchronization method and system based on distribution network master station bus
CN115237989A (en) Mine data acquisition system
CN112101894A (en) Coal dressing intelligent system
CN115374101A (en) Rail transit station level data management system
Huang et al. Research on key technologies of electricity trading platform of next generation
CN112328683A (en) Data transmission method, system and storage medium supporting database and library direct
CN111078801A (en) Bidirectional synchronous data system between double data sources
Luhai et al. Research on Operation and Maintenance Data Synchronization Method of Substation Monitoring System based on SCD Model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210413