CN104615649B - A kind of data mapping method and module based on MMS-EASE Lite - Google Patents
A kind of data mapping method and module based on MMS-EASE Lite Download PDFInfo
- Publication number
- CN104615649B CN104615649B CN201410830510.1A CN201410830510A CN104615649B CN 104615649 B CN104615649 B CN 104615649B CN 201410830510 A CN201410830510 A CN 201410830510A CN 104615649 B CN104615649 B CN 104615649B
- Authority
- CN
- China
- Prior art keywords
- data
- mms
- lite
- ease
- databases
- 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.)
- Active
Links
- 238000013506 data mapping Methods 0.000 title claims abstract description 50
- 238000000034 method Methods 0.000 title claims abstract description 19
- 238000013507 mapping Methods 0.000 claims abstract description 53
- 230000001360 synchronised effect Effects 0.000 claims description 26
- 230000000149 penetrating effect Effects 0.000 claims 1
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000012545 processing Methods 0.000 abstract description 2
- 238000013499 data model Methods 0.000 description 4
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000003044 adaptive effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000686 essence Substances 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000006698 induction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/84—Mapping; Conversion
- G06F16/86—Mapping to a database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The present invention is suitable for data processing, provides a kind of data mapping method based on MMS EASE Lite, includes the following steps:By in the configuration file of user mapping information typing IEC 61850, the user mapping information includes the mapping relations between MMS EASE Lite databases and application database, and the application database is an independent utility database;Initialization and the synchronization of reading and writing data are realized between MMS EASE Lite databases and the application database according to the mapping relations.The present invention can obtain the data mapping information between database, reduce the number of configuration file, flexibly and easily by directly configuring private data;Realize the synchronization initialized between database, application database can be realized adaptively, and later maintenance is reduced;Data between two databases synchronize, can also be mutual indepedent, and the realization of data mapping module keeps software hierarchical structure relatively sharp, improves the portability of code.
Description
Technical field
The invention belongs to data processing field more particularly to a kind of data mapping method based on MMS-EASE Lite and
Module.
Background technology
61850 standards of IEC are the universal standards of electric system, it defines hierarchical information, it is specified that passing through mapping
Abstract Common Service Interface (Abstract communication service interface, ACSI) arrives manufacture message specification
The method of (Manufacturing Message Specification, MMS).The MMS-EASE Lite of SISCO companies
(Embedded Applicatin Service Element) is a kit, it provides manufacture message for smart machine
The programming interface of specification (MMS).It needs to realize that a kind of data are reflected between the database and application database of MMS-EASE Lite
It penetrates, the file configuration method that can be usually provided by MMS-EASE Lite, realizes data mapping.
Realize that data mapping, existing method mainly have between the database and application database of MMS-EASE Lite:
1, data mapping is directly carried out in application code
According to the function type of smart machine, the data model and capacity for needing to realize are determined.In the code of application program
In, the method by configuring, direct coding do not realize data mapping.This method can easily realize MMS-EASE Lite
Database and application database between data map, but can not achieve flexible configuration.If necessary to change data model, then
It needs to modify to program, recompilates program, line program of going forward side by side upgrades, and product maintenance is cumbersome.
2, the file configuration method provided using MMS-EASE Lite is configured by the format of its identification
According to the function type of smart machine, the data model and capacity for needing to realize are determined.According to MMS-EASE Lite
The file configuration method of offer, may be implemented flexible configuration.But this configuration file is not belonging to the file defined in IEC61850,
It needs in addition individually to write.The format of this configuration file based on the data directory mode of MMS-EASE Lite databases,
Application database is difficult to.If necessary to change data model, the demand of modification program is also will produce, product maintenance is number
It is tired.
In short, above scheme is all cumbersome in product maintenance, it is not simple and convenient enough.
Invention content
Technical problem to be solved by the present invention lies in provide a kind of data mapping method based on MMS-EASE Lite and
Module, it is intended to which the data mapping solved between the database and application database of MMS-EASE Lite is dumb, product maintenance fiber crops
Tired problem.
The invention is realized in this way a kind of data mapping method based on MMS-EASE Lite, includes the following steps:
Step A1, by the configuration file of user mapping information typing IEC 61850, the user mapping information includes
Mapping relations between MMS-EASE Lite databases and application database;The application database is an independent application number
According to library;
Step A2, according to the mapping relations between the MMS-EASE Lite databases and the application database
Realize initialization and the synchronization of reading and writing data.
Further, further include following step between step A1 and step A2:
The user mapping information is parsed, the MMS-EASE Lite databases is obtained and applies data with described
Mapping relations and the obtained mapping relations are preserved between library, while initialization being provided, data are read and writes the interface of data.
Further, the initialization the specific steps are:
Step A201 initializes the MMS-EASE Lite databases according to initial value;
Step A202 calls the initialization interface, and data are applied with described according to the MMS-EASE Lite databases
Mapping relations between library, it is described by the initial value synchronized update of the MMS-EASE Lite databases to the application database
Application database is completed to initialize according to initial value.
Further, synchronized write data the specific steps are:
Data are written toward the MMS-EASE Lite databases in step A211;
Step A212 calls write data interface;
Step A213, according to the mapping relations of the MMS-EASE Lite databases and the application database by data
In synchronized update to the application database.
Further, it is synchronous read data the specific steps are:
Step A221 receives the request input by user that data are read from the MMS-EASE Lite databases;
Step A222 calls the reading data-interface, reads the latest data of the application database;
Step A223, according to the mapping relations of the MMS-EASE Lite databases and the application database by data
Synchronized update is to the MMS-EASE Lite databases.
The present invention also provides a kind of data mapping modules based on MMS-EASE Lite, which is characterized in that the data
Mapping block obtains reflecting between MMS-EASE Lite databases and application database for parsing user mapping information
Relationship is penetrated, and obtained mapping relations are preserved in memory, while initialization being provided, data are read and writes the interface of data, and
Initialization and the data reading between the MMS-EASE Lite databases and the application database are realized by the interface
The synchronization write.
Further, the user mapping information includes between MMS-EASE Lite databases and application database
Mapping relations;The application database is an independent application database.
Further, by the data mapping module realize initialization the specific steps are:
Step B201 initializes the MMS-EASE Lite databases according to initial value;
Step B202 calls the initialization interface of the data mapping module, according to the MMS-EASE Lite databases
The mapping relations between the application database, by the initial value synchronized update of the MMS-EASE Lite databases to described
Application database, the application database are completed to initialize according to initial value..
Further, by the data mapping module realize synchronized write data the specific steps are:
Data are written toward the MMS-EASE Lite databases in step B211;
Step B212, that calls the data mapping module writes data-interface;
Step B213, the data mapping module is according to the MMS-EASE Lite databases and the application database
Mapping relations will be in data synchronization updating to the application database.
Further, by the data mapping module realize it is synchronous read data the specific steps are:
Step B221 receives the request input by user that data are read from the MMS-EASE Lite databases;
Step B222 calls the reading data-interface of the data mapping module, reads the newest number of the application database
According to;
Step B223, the data mapping module is according to the MMS-EASE Lite databases and the application database
Mapping relations by data synchronization updating to the MMS-EASE Lite databases.
Compared with prior art, the present invention advantageous effect is:
1:This method can directly configure private data by the configuration file in IEC 61850, obtain MMS-EASE
Data mapping information between Lite databases and application database reduces the number of configuration file, more flexible convenience;
2:It is synchronous with MMS-EASE Lite data library initializations that application database may be implemented, application database can be real
It is now adaptive, reduce later maintenance;
3:The data that may be implemented between two databases synchronize, and can also realize mutual indepedent, the number between database
Keep software hierarchical structure relatively sharp according to the realization of mapping block, improves the portability of code.
Description of the drawings
Fig. 1 is a kind of flow chart of data mapping method based on MMS-EASE Lite provided in an embodiment of the present invention.
Fig. 2 is a kind of location drawing of data mapping module based on MMS-EASE Lite provided in an embodiment of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be 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.
The purpose of the present invention is exactly to solve in electric system, and same type of smart machine is needed in different regions
Seek problem that may also be different.Data mapping between the database and application database of MMS-EASE Lite can be abundant
Consider its flexibility, it is also made to be applied between different product more freely, it is simpler during product later stage upgrade maintenance
Folk prescription is just.
Smart machine in IEC 61850 is provided with configuration file, can be with there are one capabilities description file in configuration file
The typing that user mapping information is completed in this capabilities description file, reduces the introducing of non-standard configuration file.Induction and conclusion
The data type of product designs the structure of application database with reference to the data modeling part of IEC 61850, in MMS-EASE
A data mapping module is designed between Lite databases and application database, realizes the data directory between two databases,
Initialization between the two is completed, data is read, writes the operations such as data, realizes the adaptive of application database.
As shown in Figure 1, being a kind of stream of the data mapping method based on MMS-EASE Lite provided in an embodiment of the present invention
Cheng Tu:
S101, will be in the configuration file of user mapping information typing IEC 61850;
S102 parses the user mapping information, obtain MMS-EASE Lite databases and application database it
Between mapping relations and the obtained mapping relations are preserved, while initialization being provided, data are read and writes the interface of data;
S103, it is real between the MMS-EASE Lite databases and the application database according to the mapping relations
Now initialization and the synchronization of reading and writing data.
In step S101, user mapping information is pre-defined, include MMS-EASE Lite databases and apply number
According to the mapping relations between library.MMS-EASE Lite databases can be by containing the letter in the paths such as " domain ", " famous variable "
Breath realizes that the index of data, application database may then pass through the specific information realizations number such as " data type " and " internal serial number "
According to index.The ability description text of the configuration file of smart machine of the specific typing of user mapping information in IEC 61850
In part, the correspondence of the two is passed through into specific format typing in capabilities description file;
The application database is one independent using data, and data format and content are built with reference to 61850 data of IEC
Mould part is designed, closely related with practical application.
In step s 102, a data mapping module is designed, the position of data mapping module is as shown in Fig. 2, the data
Mapping block obtains the MMS-EASE Lite databases and the application for being parsed to the user mapping information
Mapping relations between database, and by the obtained mapping relations preserve in memory, while provide initialization, read data and
Write the interface of data, and by the interface realize the initialization between MMS-EASE Lite databases and application database with
And the synchronization of reading and writing data.
In step s 103, according to the mapping relations MMS-EASE Lite databases and the application database it
Between realize that initialization, synchronized write data and synchronous reading data, specific step are:
Initialization the specific steps are:
S201 initializes the MMS-EASE Lite databases according to initial value;
S202 calls the initialization interface, according to the MMS-EASE Lite databases and the application database it
Between mapping relations, by the initial value synchronized update of the MMS-EASE Lite databases to the application database.
In step s 201, the initial of MMS-EASE Lite databases is may included in the configuration file of IEC 61850
Value can use these initial values when initialization, and in actual application, initial value can be from system
Application program, the initial value from application program can also be equally used when being initialized.
In step S202, the initialization interface of the data mapping module is called, according to the MMS-EASE Lite numbers
According to mapping relations between library and the application database, extremely by the initial value synchronized update of the MMS-EASE Lite databases
The application database, the application database are completed to initialize according to initial value.
Synchronized write data the specific steps are:
Data are written toward the MMS-EASE Lite databases in S211;
S212 calls write data interface;
S212, it is with the mapping relations of the application database that data are synchronous according to the MMS-EASE Lite databases
It is updated in the application database.
In step S212, calling be data mapping module provide write data-interface.
It is synchronous read data the specific steps are:
S221 receives the request input by user that data are read from the MMS-EASE Lite databases;
S222 calls the reading data-interface, reads the latest data of the application database;
S223, it is with the mapping relations of the application database that data are synchronous according to the MMS-EASE Lite databases
It is updated to the MMS-EASE Lite databases.
In step S212, calling be data mapping module provide reading data-interface.
In actual application, application program can directly update application database, without updating MMS-EASE
Lite databases, synchronous reading data course provided by the invention can solve application database and MMS-EASE Lite databases
Between stationary problem, while also ensuring the independence between two databases.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (6)
1. a kind of data mapping method based on MMS-EASE Lite, which is characterized in that include the following steps:
Step A1, by the capabilities profile of the configuration file of user mapping information typing IEC 61850, the user maps
Packet contains the mapping relations between MMS-EASE Lite databases and application database;The application database is one only
Vertical application database;
The user mapping information is parsed, obtain the MMS-EASE Lite databases and the application database it
Between mapping relations and the obtained mapping relations are preserved, while initialization being provided, data are read and writes the interface of data;
Step A2 is realized according to the mapping relations between the MMS-EASE Lite databases and the application database
Initialization and the synchronization of reading and writing data;
The initialization the specific steps are:
Step A201 initializes the MMS-EASE Lite databases according to initial value;
Step A202 calls the initialization interface, according to the MMS-EASE Lite databases and the application database it
Between mapping relations, by the initial value synchronized update of the MMS-EASE Lite databases to the application database, the application
Database root is completed to initialize according to initial value;
Wherein, the initial value comes from the MMS-EASE Lite databases or comes from application program.
2. a kind of data mapping method based on MMS-EASE Lite as described in claim 1, which is characterized in that synchronous write
Data the specific steps are:
Data are written toward the MMS-EASE Lite databases in step A211;
Step A212 calls write data interface;
Step A213, it is with the mapping relations of the application database that data are synchronous according to the MMS-EASE Lite databases
It is updated in the application database.
3. a kind of data mapping method based on MMS-EASE Lite as described in claim 1, which is characterized in that synchronous to read
Data the specific steps are:
Step A221 receives the request input by user that data are read from the MMS-EASE Lite databases;
Step A222 calls the reading data-interface, reads the latest data of the application database;
Step A223, it is with the mapping relations of the application database that data are synchronous according to the MMS-EASE Lite databases
It is updated to the MMS-EASE Lite databases.
4. a kind of data mapping module based on MMS-EASE Lite, which is characterized in that the data mapping module be used for
Family map information is parsed, obtain mapping relations between MMS-EASE Lite databases and application database, and will be obtained
Mapping relations preserve in memory, while providing initialization, read data and writing the interface of data, and realize institute by the interface
State the initialization between MMS-EASE Lite databases and the application database and the synchronization of reading and writing data;The user
Map information includes the mapping relations between MMS-EASE Lite databases and application database;The application database is
One independent application database;
By the data mapping module realize initialization the specific steps are:
Step B201 initializes the MMS-EASE Lite databases according to initial value;
Step B202 calls the initialization interface of the data mapping module, according to the MMS-EASE Lite databases and institute
Mapping relations between application database are stated, by the initial value synchronized update of the MMS-EASE Lite databases to the application
Database, the application database are completed to initialize according to initial value;
Wherein, the initial value comes from the MMS-EASE Lite databases or comes from application program.
5. a kind of data mapping module based on MMS-EASE Lite as claimed in claim 4, which is characterized in that pass through institute
State data mapping module realize synchronized write data the specific steps are:
Data are written toward the MMS-EASE Lite databases in step B211;
Step B212, that calls the data mapping module writes data-interface;
Step B213, the data mapping module are reflected according to the MMS-EASE Lite databases and the application database
Penetrating relationship will be in data synchronization updating to the application database.
6. a kind of data mapping module based on MMS-EASE Lite as claimed in claim 4, which is characterized in that pass through institute
State data mapping module realize it is synchronous read data the specific steps are:
Step B221 receives the request input by user that data are read from the MMS-EASE Lite databases;
Step B222 calls the reading data-interface of the data mapping module, reads the latest data of the application database;
Step B223, the data mapping module are reflected according to the MMS-EASE Lite databases and the application database
Relationship is penetrated by data synchronization updating to the MMS-EASE Lite databases.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410830510.1A CN104615649B (en) | 2014-12-26 | 2014-12-26 | A kind of data mapping method and module based on MMS-EASE Lite |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410830510.1A CN104615649B (en) | 2014-12-26 | 2014-12-26 | A kind of data mapping method and module based on MMS-EASE Lite |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104615649A CN104615649A (en) | 2015-05-13 |
CN104615649B true CN104615649B (en) | 2018-08-10 |
Family
ID=53150093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410830510.1A Active CN104615649B (en) | 2014-12-26 | 2014-12-26 | A kind of data mapping method and module based on MMS-EASE Lite |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104615649B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1687930A (en) * | 2005-05-25 | 2005-10-26 | 北京四方继保自动化股份有限公司 | Method of implementing IEC 61850 information indirect access real-time database |
CN102156717A (en) * | 2011-03-25 | 2011-08-17 | 中国有色矿业集团有限公司 | Method and device for mapping entity object into database |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8892601B2 (en) * | 2011-10-25 | 2014-11-18 | Microsoft Corporation | Creating web applications using cloud-based friction-free databases without requiring web hosting knowledge |
-
2014
- 2014-12-26 CN CN201410830510.1A patent/CN104615649B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1687930A (en) * | 2005-05-25 | 2005-10-26 | 北京四方继保自动化股份有限公司 | Method of implementing IEC 61850 information indirect access real-time database |
CN102156717A (en) * | 2011-03-25 | 2011-08-17 | 中国有色矿业集团有限公司 | Method and device for mapping entity object into database |
Also Published As
Publication number | Publication date |
---|---|
CN104615649A (en) | 2015-05-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109324813A (en) | Electronic control system writes with a brush dipped in Chinese ink method, apparatus and computer media | |
EP2857965B1 (en) | Method and device for generating firmware over-the-air upgrade package | |
CN105900104B (en) | Applet migration in safety element | |
CN105204873B (en) | A kind of terminal and application interface display methods | |
CN103281311B (en) | A kind of Internet of Things protocol analysis method using Protobuf to describe | |
CN104850027B (en) | A kind of CAN data-interfaces modeling automatic generation method and system | |
CN103593456B (en) | Worksheet self-defining method for designing and device | |
CN108228155A (en) | EasyApp Mobile Developments platform and development approach | |
CN103488478A (en) | Device management framework based on android platform | |
CN109597628A (en) | The method and cloud handset server of cloud mobile phone application copy | |
CN104238881A (en) | Terminal information display method and device and terminal | |
CN104158858A (en) | Method and system for accessing distributed cluster file system | |
CN106101169A (en) | A kind of terminal and data reporting method | |
CN102541923B (en) | Database read-write separating method and device | |
CN103138932B (en) | The collocation method of a kind of Mifare card sector key and system | |
CN106250571A (en) | The method and system that a kind of ETL data process | |
CN106411841A (en) | Dynamic screen replication and real-time display rendering based on media-application characteristics | |
CN103731536A (en) | Method for sharing cloud end family communication list | |
CN104298695B (en) | Data caching method and device and server | |
WO2008008321A3 (en) | Smart card terminal side data and management framework | |
CN104123155A (en) | Business system page layer development platform and method based on WEB | |
CN105912723B (en) | A kind of storage method of custom field | |
CN104615649B (en) | A kind of data mapping method and module based on MMS-EASE Lite | |
CN101938470B (en) | Client terminal software updating system and method | |
CN107621946A (en) | A kind of software development methodology, apparatus and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |