Resource ID modeling method and system based on CIM
By adding information about CIM modeling type inheritance relationship, geographical location and power system resource type to the ID of CIM resource object, and using segmented encoding, the problem of insufficient unique identification of CIM resource object ID is solved, and data transmission and storage efficiency is improved.
Patent Information
- Application Number
- CN202411552267.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-01
- Publication Date
- 2025-02-25
AI Technical Summary
In the prior art, the ID of the CIM resource object only has a unique identification function and cannot contain more information without increasing the information length, such as the CIM modeling type inheritance relationship, geographical location and power system resource type, resulting in low data transmission efficiency and storage efficiency.
By adding information about CIM modeling type inheritance relationship, geographical location and power system resource type (PSR TYPE) to the object ID, and using segmented encoding method, this information is encoded into the ID to ensure that the information length is not increased.
Without increasing the information length, data transmission and storage efficiency are improved and the information system supports power grid services.
Smart Images

Figure CN119513066A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of data processing of power grid models and graphics, and in particular relates to a resource ID modeling method based on CIM. Background Art
[0002] In the field of data exchange of distribution automation systems, some CIM-based data exchange has been achieved. In the operation of power industry information systems, power systems exchange data between systems, especially real-time data exchange, and the most exchanged data is object ID. However, in general applications, the ID of CIM resource objects only serves as a unique identifier.
[0003] For example, in the relevant literature published in 2012: Research on Practical Data Integration Technology of Distribution Automation System, it was specifically disclosed that: In order to achieve effective data integration of distribution network automation system, a solution combining technology and management was proposed. In terms of technology, based on the dispatching integrated data platform, based on the IEC61970 / IEC61968CIM standard and SVG graphic specification, a standard data model, interface and reasonable data interaction mechanism were established; in terms of management, the distribution network electronic handover workflow was improved, and the graphic model data interaction specification and GIS system data entry specification were formulated. Through the implementation of this solution, the standardized data integration of the distribution network automation system and multiple application systems was realized.
[0004] For example, in the relevant literature published in 2014: Information interaction of distribution automation system based on CIM, it is specifically disclosed that: the distribution network contains functional components of multiple different systems, and the data between the components is heterogeneous. The implementation of distribution automation requires the integration of information from other systems in the distribution network. The IEC 61970 / 61968 standard provides a unified common information model (CIM) and component interface specification (CIS). The model splicing and real-time data interaction of distribution network automation are studied and applied in actual projects. The results show that CIM and CIS lay a solid foundation for solving the interaction of heterogeneous data and building a standard and open distribution network integration system architecture, providing good support for the further construction of a "plug and play" smart distribution network.
[0005] In the related literature published in 2014: Distribution network model change management based on CIM / E, it is specifically disclosed that: the modeling of distribution automation system is highly dependent on external systems, has multiple information sources, various forms, and requires process management, which brings about problems such as poor standardization, integrity, and timeliness of information interaction. Therefore, a distribution network model change management solution based on CIM / E (Efficient Model Description Specification Language) is proposed. The characteristics of CIM / E as a model and pattern data description language, as well as the feasibility and advantages of its application in distribution network model management are analyzed; the specific application of CIM / E in model import, export, model extraction, change analysis, incremental investment and withdrawal, and version management technology is discussed; and a distribution network model change management method with change orders as the smallest unit is proposed. The actual use cases of related software products are introduced. The distribution network model management based on CIM / E and change orders can partially solve the problems of accuracy and timeliness of distribution network information integration, and can meet the requirements of atomicity and integrity of model management.
[0006] In the relevant technologies of the above-mentioned documents, whether it is the exchange of static models or real-time data integration, there is no discussion on the integration of more information on ID. Adding any information requires adding additional field descriptions, which results in adding a lot of additional information during data transmission, wasting too much bandwidth and reducing the real-time performance of the system. There is a large room for optimization in the process of information storage and transmission. Summary of the invention
[0007] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a CIM-based resource ID modeling method and system to solve the problem that the ID of a CIM resource object only serves as a unique identification. Without increasing the length of the information, the CIM modeling type inheritance relationship, geographical location, and power system resource type (PSR TYPE) are added to the object ID based on the characteristics of the power system.
[0008] To achieve the above objectives, one or more embodiments of the present invention provide the following technical solutions:
[0009] A first aspect of the present invention provides a resource ID modeling method based on CIM.
[0010] A resource ID modeling method based on CIM includes the following steps:
[0011] Determine the modeling resource object;
[0012] Acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object;
[0013] Define the type of modeling resource object ID;
[0014] In the modeling resource object ID, the modeling resource object is encoded based on the acquired various information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
[0015] As an optional technical solution:
[0016] The inheritance relationship of the modeling resource object in CIM is used to describe the specific CIM type of the modeling resource object and its parent class;
[0017] The geographical location of the modeling resource object is used to describe the administrative division to which the modeling resource object belongs.
[0018] As an optional technical solution, in the modeling resource object ID, based on the obtained multiple information of the modeling resource object, the modeling resource object is encoded to achieve ID modeling of the modeling resource object, specifically including:
[0019] Encode the modeling resource object ID in segments and determine the length of each segment of the encoding type;
[0020] The encoding type includes a symbol bit field, an inheritance relationship bit field, a PSR type bit field, a geographic location bit field, and an ordinal bit field:
[0021] The symbol bit segment is used to represent the symbol of the entire ID;
[0022] The inheritance relationship field is used to describe the specific CIM type and parent class of the object represented by this ID;
[0023] The PSR type field is used to describe the PSR type mapping of the object represented by this ID in other systems;
[0024] The geographic location segment is used to describe the administrative division to which the object represented by the ID belongs;
[0025] The ordinal field is used to uniquely identify the object represented by this ID.
[0026] As an optional technical solution, when encoding the inheritance relationship bit segment:
[0027] Determine the binary code corresponding to each CIM type, use the high bits first, and fill the unused low bits with zeros;
[0028] The CIM types include Identified Object, Power System Resource, Equipment, Conducting Equipment, Switch, Protected Switch and breaker.
[0029] As an optional technical solution, when encoding the ordinal bit segments, the ordinal bit segments are generated in sequence.
[0030] As an optional technical solution, the modeling resource object is encoded based on a binary encoding method.
[0031] As an optional technical solution, the type of the modeling resource object ID is a 64-bit integer type.
[0032] A second aspect of the present invention provides a resource ID modeling system based on CIM.
[0033] A resource ID modeling system based on CIM, comprising:
[0034] The object determination module is configured to: determine a modeling resource object;
[0035] The information acquisition module is configured to: acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in the CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object;
[0036] The type definition module is configured to: define the type of the modeling resource object ID;
[0037] The encoding modeling module is configured to: encode the modeling resource object in the modeling resource object ID based on the obtained multiple information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
[0038] A third aspect of the present invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the steps in the CIM-based resource ID modeling method as described in the first aspect of the present invention.
[0039] The fourth aspect of the present invention provides an electronic device, including a memory, a processor, and a program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in the CIM-based resource ID modeling method as described in the first aspect of the present invention are implemented.
[0040] One or more of the above technical solutions have the following beneficial effects:
[0041] The present invention provides a resource ID modeling method and system based on CIM, which solves the problem that the ID of a CIM resource object only has a unique identification function. Without additionally increasing the length of information, the present invention adds its CIM modeling type inheritance relationship, geographical location, and power system resource type (PSR TYPE) to the object ID based on the characteristics of the power system.
[0042] The power grid equipment ID is frequently used in all system and interface interactions. The present invention adds a CIM type identifier and its inheritance relationship, a geographic range identifier, and a PSR type identifier to the ID without increasing the length of the information, thereby greatly increasing the data transmission efficiency and storage efficiency of the information system.
[0043] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0045] Figure 1 This is a flow chart of the method of the first embodiment.
[0046] Figure 2 A schematic diagram of the distribution of each bit segment in the resource object ID modeled for the first embodiment. DETAILED DESCRIPTION
[0047] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0048] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0049] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0050] Embodiment 1
[0051] During the operation of the power industry information system, the power system exchanges data between systems, especially real-time data exchange, and the most exchanged is the object ID. However, in general applications, only ID information is not enough, resulting in a lot of additional information being added during data transmission, wasting too much bandwidth and reducing the real-time performance of the system.
[0052] This embodiment solves the problem of low transmission efficiency of CIM resource objects and insufficient support for existing power grid services. A CIM-based resource ID modeling method is implemented to improve the support for power grid services.
[0053] This embodiment discloses a resource ID modeling method based on CIM.
[0054] like Figure 1 As shown, a resource ID modeling method based on CIM includes the following steps:
[0055] Determine the modeling resource object;
[0056] Acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object;
[0057] Define the type of modeling resource object ID;
[0058] In the modeling resource object ID, the modeling resource object is encoded based on the acquired various information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
[0059] It can be understood that the meanings of the following technical terms mentioned in this embodiment are:
[0060] ID: It is used to uniquely identify various types of objects in the CIM model when they are actually modeled in the database. It is generally used as the primary key and the foreign key when establishing associations between different objects.
[0061] PSR: Power system resource type, PSR TYPE. Power system resource types can include:
[0062]
[0063]
[0064]
[0065]
[0066]
[0067] CIM: A unified common information model provided by the IEC 61970 / 61968 standard.
[0068] In some embodiments:
[0069] The inheritance relationship of the modeling resource object in CIM is used to describe the specific CIM type of the modeling resource object and its parent class;
[0070] The geographical location of the modeling resource object is used to describe the administrative division to which the modeling resource object belongs.
[0071] In some embodiments, in the modeling resource object ID, the modeling resource object is encoded based on the obtained multiple information of the modeling resource object to achieve ID modeling of the modeling resource object, specifically including:
[0072] Encode the modeling resource object ID in segments and determine the length of each segment of the encoding type;
[0073] The encoding type includes a symbol bit field, an inheritance relationship bit field, a PSR type bit field, a geographic location bit field, and an ordinal bit field:
[0074] The symbol bit segment is used to represent the symbol of the entire ID;
[0075] The inheritance relationship field is used to describe the specific CIM type and parent class of the object represented by this ID;
[0076] The PSR type field is used to describe the PSR type mapping of the object represented by this ID in other systems;
[0077] The geographic location segment is used to describe the administrative division to which the object represented by the ID belongs;
[0078] The ordinal field is used to uniquely identify the object represented by this ID.
[0079] In some embodiments, when encoding the inheritance relationship bit field:
[0080] Determine the binary code corresponding to each CIM type, use the high bits first, and fill the unused low bits with zeros;
[0081] The CIM types include Identified Object, Power System Resource, Equipment, Conducting Equipment, Switch, Protected Switch and breaker.
[0082] It can be understood that the above mentioned:
[0083] Identified Object: Identifiable object;
[0084] Power System Resource: Power system resources;
[0085] Equipment: equipment;
[0086] Conducting Equipment: Conducting Equipment;
[0087] Switch: switch;
[0088] Protected Switch: A switch with protection function;
[0089] breaker: circuit breaker.
[0090] In some embodiments, when encoding the ordinal bit segments, the ordinal bit segments are generated in sequence.
[0091] In some embodiments, the modeling resource object is encoded based on a binary encoding method.
[0092] In some embodiments, the modeling resource object ID is a 64-bit integer type.
[0093] The technical solution of this embodiment is further explained below in conjunction with the accompanying drawings:
[0094] One of the purposes of this embodiment is to provide a new resource ID modeling method based on CIM.
[0095] like Figure 1 As shown, the method includes:
[0096] 1. Define the resource object ID as a 64-bit integer type.
[0097] 2. Encode the 64 binary bits of the integer in segments, namely the symbol bit segment, inheritance relationship bit segment, PSR type bit segment, geographic location bit segment, and ordinal bit segment.
[0098] 3. The length of the sign bit segment is 1, indicating the sign of the entire ID.
[0099] 4. The inheritance relationship field length is 14, describing the specific CIM type and parent class of the object represented by this ID.
[0100] 5. The length of the PSR type field is 5, which describes the PSR type mapping of the object represented by this ID in other systems.
[0101] 6. The length of the geographic location bit segment is 13, which describes the administrative division to which the object represented by this ID belongs, accurate to the county level.
[0102] 7. The length of the ordinal bit segment is 31. If the ordinal bit segment is the same as in step 4, the ordinal bit segment is generated in sequence for unique identification.
[0103] As a specific example:
[0104] This embodiment describes an ID model structure of a pole-mounted circuit breaker. In this example, it demonstrates how to apply a pole-mounted circuit breaker ID to the ID model provided by this embodiment. The method includes:
[0105] Step S10: Allocate a 64-bit integer.
[0106] Step S20: Encode the 64 binary bits of the integer in segments, including the sign bit segment, inheritance relationship bit segment, PSR type bit segment, geographic location bit segment, and ordinal bit segment.
[0107] Step S30: The length of the sign bit segment is 1 and the value is set to 0.
[0108] Step S40: Perform type coding according to the CIM inheritance relationship to generate a 14-bit circuit breaker inheritance relationship bit segment binary code, which is 01010010111000 in this example.
[0109] Preferably, according to the encoding rules, the CIM type inheritance relationship can be obtained as shown in the following table:
[0110] CIM Type Binary encoding IdentifiedObject 0 PowerSystemResource 0101 Equipment 01010 ConductingEquipment 010100 Switch 01010010 ProtectedSwitch 0101001011 breaker 010100101110
[0111] This encoding rule uses the high bits first and fills the unused low bits with zeros.
[0112] Step S50: Generate a PSR type bit segment with a length of 5 and a binary code of 01010, corresponding to the type code of other system pole-mounted circuit breakers.
[0113] Step S60: Generate a geographic location segment with a length of 13, a binary code of 1000110011110, and a corresponding decimal code of 4510 for the city of Jinan.
[0114] Step S60: Generate an ordinal bit field length of 31 for the pole-mounted circuit breaker type. The binary code in this example is 00000000000000000000110101100101.
[0115] Step S70: Arrange the binary codes generated in steps S20-S60 from high to low, and obtain the pole-mounted circuit breaker code in this example: 001010010111000010101000110011110000000000000000000000110101100101, which is converted into a decimal ID of 2986072159958338917.
[0116] Since the power grid equipment ID is used very frequently in all system and interface interactions, the technology in this embodiment adds a CIM type identifier and its inheritance relationship, a geographic range identifier, and a PSR type identifier to the ID without increasing the length of the information, thereby greatly improving the data transmission efficiency and storage efficiency of the information system.
[0117] Embodiment 2
[0118] This embodiment discloses a resource ID modeling system based on CIM.
[0119] A resource ID modeling system based on CIM, comprising:
[0120] The object determination module is configured to: determine a modeling resource object;
[0121] The information acquisition module is configured to: acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in the CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object;
[0122] The type definition module is configured to: define the type of the modeling resource object ID;
[0123] The encoding modeling module is configured to: encode the modeling resource object in the modeling resource object ID based on the obtained multiple information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
[0124] Embodiment 3
[0125] The purpose of this embodiment is to provide a computer-readable storage medium.
[0126] A computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps in the CIM-based resource ID modeling method as described in Embodiment 1 of the present disclosure.
[0127] Embodiment 4
[0128] The purpose of this embodiment is to provide an electronic device.
[0129] An electronic device includes a memory, a processor, and a program stored in the memory and executable on the processor. When the processor executes the program, the steps in the CIM-based resource ID modeling method as described in Example 1 of the present disclosure are implemented.
[0130] The steps involved in the apparatuses of the above embodiments 2, 3 and 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0131] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0132] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A resource ID modeling method based on CIM, characterized in that: The following steps are involved: Determine the modeling resource object; Acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object; Define the type of modeling resource object ID; In the modeling resource object ID, the modeling resource object is encoded based on the acquired various information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
2. The CIM-based resource ID modeling method according to claim 1, characterized in that: The inheritance relationship of the modeling resource object in CIM is used to describe the specific CIM type of the modeling resource object and its parent class; The geographical location of the modeling resource object is used to describe the administrative division to which the modeling resource object belongs.
3. The CIM-based resource ID modeling method according to claim 1, characterized in that: In the modeling resource object ID, based on the obtained various information of the modeling resource object, the modeling resource object is encoded to achieve ID modeling of the modeling resource object, specifically including: Encode the modeling resource object ID in segments and determine the length of each segment of the encoding type; The encoding type includes a symbol bit field, an inheritance relationship bit field, a PSR type bit field, a geographic location bit field, and an ordinal bit field: The symbol bit segment is used to represent the symbol of the entire ID; The inheritance relationship field is used to describe the specific CIM type and parent class of the object represented by this ID; The PSR type field is used to describe the PSR type mapping of the object represented by this ID in other systems; The geographic location segment is used to describe the administrative division to which the object represented by the ID belongs; The ordinal field is used to uniquely identify the object represented by this ID.
4. The CIM-based resource ID modeling method according to claim 3, characterized in that: When encoding the inheritance relationship bit field: Determine the binary code corresponding to each CIM type, use the high bits first, and fill the unused low bits with zeros; The CIM types include Identified Object, Power System Resource, Equipment, Conducting Equipment, Switch, Protected Switch and breaker.
5. The CIM-based resource ID modeling method according to claim 3, characterized in that: When encoding the ordinal bit segments, the ordinal bit segments are generated in sequence.
6. The CIM-based resource ID modeling method according to claim 1, characterized in that: Encode the modeling resource object based on binary encoding.
7. The CIM-based resource ID modeling method according to claim 1, characterized in that: The type of the modeling resource object ID is a 64-bit integer type.
8. A resource ID modeling system based on CIM, characterized in that: include: The object determination module is configured to: determine a modeling resource object; The information acquisition module is configured to: acquire various information of the modeling resource object, wherein the various information includes inheritance relationship of the modeling resource object in the CIM, PSR type mapping in other CIM systems, and geographic location of the modeling resource object; The type definition module is configured to: define the type of the modeling resource object ID; The encoding modeling module is configured to: encode the modeling resource object in the modeling resource object ID based on the obtained multiple information of the modeling resource object, so as to realize ID modeling of the modeling resource object.
9. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps in the CIM-based resource ID modeling method as described in any one of claims 1 to 7 are implemented.
10. An electronic device comprising a memory, a processor, and a program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the CIM-based resource ID modeling method as described in any one of claims 1 to 7 are implemented.