WO2024040382A1 - Icd文件生成方法、装置、计算机设备和存储介质 - Google Patents
Icd文件生成方法、装置、计算机设备和存储介质 Download PDFInfo
- Publication number
- WO2024040382A1 WO2024040382A1 PCT/CN2022/113915 CN2022113915W WO2024040382A1 WO 2024040382 A1 WO2024040382 A1 WO 2024040382A1 CN 2022113915 W CN2022113915 W CN 2022113915W WO 2024040382 A1 WO2024040382 A1 WO 2024040382A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- model
- information
- target
- battery system
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 65
- 238000013499 data model Methods 0.000 claims abstract description 99
- 238000013507 mapping Methods 0.000 claims abstract description 65
- 238000004590 computer program Methods 0.000 claims abstract description 29
- 238000007726 management method Methods 0.000 description 40
- 238000010586 diagram Methods 0.000 description 11
- 238000004891 communication Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 5
- 239000002131 composite material Substances 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 238000004146 energy storage Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013506 data mapping Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 229910021389 graphene Inorganic materials 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
Definitions
- This application relates to the technical field of power system energy storage, and in particular to an ICD file generation method, device, computer equipment, storage medium and computer program product.
- the IEC61850 standard is the only global standard in the field of power system automation. It standardizes the engineering operation of smart substations through the implementation of standards. For example, it includes power grid power quality monitoring, line protection, information exchange between substations and between substations and dispatch centers, and status monitoring of power equipment. As the IEC61850 standard continues to be completed, it is gradually promoted to different applications, such as wind farms, distributed energy resources, and hydropower stations.
- BMS battery management systems
- this application provides a method for generating ICD files.
- the methods include:
- the target execution program is called to instantiate the output object and generate an ICD file of the battery system model.
- the target object to be instantiated is determined by traversing the pre-built data model; the target object is instantiated according to the set target execution program, and there is no need to manually select the targets one by one.
- the object is instantiated, which reduces the error rate and ensures the accuracy of the model ICD file.
- the output object is instantiated through the target execution program and the model ICD file is automatically generated, which avoids the coupling between the program and the ICD and improves the versatility of the program.
- each information table of the data model is traversed to determine the number of data members and output objects, including:
- the enabled target information in the first information table is traversed through the mapping relationship between the information tables of the data model, and the number of data members and the output object are obtained by traversing according to the enabled target information.
- traversing the second information table in the data model according to the enabled target information and determining the number of data members and output objects includes:
- the state table and the data table are traversed respectively to obtain the state to be instantiated in the state table and the number of data members of the data table as well as the data members to be instantiated. There is no need to manually determine the output states to be instantiated one by one. and instantiated data members improve processing efficiency.
- the calling of the target execution program to instantiate the output object and generate the ICD file of the battery system model includes:
- the output object includes status and data members
- the target execution program is called to instantiate the output object and generate an ICD file of the battery system model.
- the functions and engineering capabilities of the battery system model can be accurately described.
- calling the target execution program to instantiate the output object and generating the ICD file of the battery system model includes:
- the output object is instantiated to meet the business scenario requirements in the corresponding business scenario.
- calling the target execution program to instantiate the output object and generating the ICD file of the battery system model includes:
- calling the target execution program to instantiate the output object and generating the ICD file of the battery system model includes:
- the target executor Based on the mapped data link from each state or data member to the access point, the target executor is called, the address of the output object is written and the access point, data set name, logic associated with the output object is determined devices and logical nodes to generate the ICD file of the battery system model.
- the business scenario requirements in the corresponding business scenario are met.
- determining a corresponding number of target execution programs according to the number of data members includes:
- the corresponding number of target execution programs is determined according to the number of target execution programs.
- the target execution programs required for each type of data members are accurately determined to avoid being unable to execute all data Members are instantiated, causing the generated ICD file to be inaccurate.
- the method further includes:
- the constructed data model is updated according to the update business requirements carried by the update request.
- the constructed data model is updated according to the business update requirements to adapt to different application scenarios and improve the versatility of the data model.
- this application also provides an ICD file generating device.
- the device includes:
- a data traversal module is used to obtain a data model including multiple information tables corresponding to the hierarchical structure of the battery system model; there is a mapping relationship between the multiple information tables;
- a matching module configured to determine a corresponding number of target execution programs according to the number of data members
- a file generation module is used to call the target execution program to instantiate the output object and generate an ICD file of the battery system model.
- this application also provides a computer device.
- the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:
- the target execution program is called to instantiate the output object and generate an ICD file of the battery system model.
- this application also provides a computer-readable storage medium.
- the computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by the processor, the following steps are implemented:
- the target execution program is called to instantiate the output object and generate an ICD file of the battery system model.
- this application also provides a computer program product.
- the computer program product includes a computer program that implements the following steps when executed by a processor:
- the target execution program is called to instantiate the output object and generate an ICD file of the battery system model.
- Figure 1 is a schematic diagram of the application of ICD files in one embodiment
- Figure 2 is a schematic flow chart of an ICD file generation method in one embodiment
- Figure 3 is a schematic flowchart of a method for determining the number of output objects and data member data in one embodiment
- Figure 4 is a schematic flow chart of a method for constructing a data model in an embodiment
- Figure 5 is a schematic diagram of the hierarchical structure of the battery management system in one embodiment
- Figure 6 is a schematic flowchart of a method for constructing a preset data model in one embodiment
- Figure 7 is a schematic diagram of the mapping between the battery system model and the IEC61850 model in one embodiment
- Figure 8 is a schematic diagram of the steps of determining the constructed data model in one embodiment
- Figure 9 is a schematic flow chart of an ICD file generating method in another embodiment
- Figure 10 is a schematic diagram of an ICD file in an embodiment
- Figure 11 is a schematic framework diagram of an ICD file generation method in one embodiment
- Figure 12 is a structural block diagram of an ICD file generating device in one embodiment
- Figure 13 is an internal structure diagram of a computer device in one embodiment.
- an embodiment means that a particular feature, structure or characteristic described in connection with the embodiment can be included in at least one embodiment of the present application.
- the appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.
- multiple refers to more than two (including two).
- multiple groups refers to two or more groups (including two groups), and “multiple pieces” refers to It is more than two pieces (including two pieces).
- each device is an IED, and each IED file corresponds to an ICD file.
- the IEDs in the entire application scenario (for example, smart substation) are made into SCD files, and each ICD is connected and established through the SCD file. Communication relationship, exporting CID files and downloading them to each device are requirements for the application of BMS in power systems.
- ICD modeling is implemented through manual modeling based on IEC61850. Since the IEC61850 model is a set of systems, modeling It requires proficiency in the entire IEC61850 system documents and requires very high modeling capabilities of the staff. A large amount of data in the modeling process needs to be processed manually. There are problems such as heavy workload, error-prone, inconvenient verification, and difficulty in maintenance and upgrades. .
- the target execution program and the output object are determined, and the target execution program is called to instantiate the output object. ization to generate the ICD file of the battery system model.
- the target object to be instantiated is determined by traversing the target information tables in multiple information tables with mapping relationships; the target object is instantiated according to the set target execution program ization, there is no need to manually instantiate target objects one by one, which reduces the error rate and ensures the accuracy of the model ICD file.
- the output object is instantiated through the target execution program and the model ICD file is automatically generated, which avoids the coupling between the program and the ICD and improves the versatility of the program.
- the ICD file generation method provided by the embodiment of the present application is exemplified by applying this method to a terminal. It can be understood that this method can also be applied to a server, and can also be applied to a system including a terminal and a server, and through the terminal and the server interaction implementation.
- the application of the ICD file generated in this example is shown in Figure 1.
- the constructed data model includes multiple information tables corresponding to the hierarchical structure of the battery system model, and there are Mapping relationship; determine the corresponding number of target execution programs based on the number of data members; call the target execution program to instantiate the output object and generate the ICD file of the battery system model.
- each device is an IED
- each IED file corresponds to an ICD file.
- a method for generating an ICD file is provided.
- the application of this method to a terminal is used as an example to illustrate, including the following steps:
- Step 202 Obtain a data model including multiple information tables corresponding to the hierarchical structure of the battery system model; there is a mapping relationship between the multiple information tables.
- Step 204 Traverse each information table of the data model to determine the number of data members and output objects.
- the data model is pre-built, and the data model refers to the model corresponding to the battery management system. Based on the data model, the ICD file of the battery system model can be generated.
- the data model includes multiple information tables corresponding to the hierarchical structure of the battery system model, and there is a mapping relationship between the multiple information tables. For example, there is a mapping relationship between the port table and the access point table, there is a mapping relationship between logical devices and access points in the logical device table, and there is a mapping relationship between logical nodes and logical devices in the logical node table.
- the information table includes at least one of an access point table, a physical port table, a logical device table, a logical node table, a data set grouping table, a status table and a data table.
- the information table includes an access point table, a physical port table, a logical device table, a logical node table, a data set grouping table, a status table, and a data table.
- the data model includes different types of data sets.
- the types of data sets include alarm types, integer types, floating point types, etc.
- the output object can include the state to be output and the data members to be output.
- the state to be output and the data members to be output are determined based on the references in the information table in the data model.
- One reference corresponds to one state, or the corresponding A data member whose reference is a reference defined in IEC61850.
- the reference includes S1, M1, and G1.
- the constructed data model is obtained. Traverse each information table in the constructed data model, write the constructed data model and the data of the information table with mapping relationship into the memory. Get the data set in the information table and get the number of data members in the data set. Further, when determining the number of data members, if there are multiple data sets in the target information table and each data set has a different number of data members, the one with the largest number of data members will be used as the final number of data members.
- Step 206 Determine a corresponding number of target execution programs based on the number of data members.
- the target execution program can be understood as a template in the IEC 61850 template library.
- the data type of the data member is determined, and the corresponding template is obtained from the IEC 61850 template library according to the data type of the data member and the number of data members.
- Step 208 Call the target execution program to instantiate the output object and generate an ICD file of the battery system model.
- the target object to be instantiated is determined by traversing the pre-built data model; the target object is instantiated according to the set target execution program, without manual method one by one. Instantiate the target object, reducing the error rate and ensuring the accuracy of the model ICD file.
- the output object is instantiated through the target execution program and the model ICD file is automatically generated, which avoids the coupling between the program and the ICD and improves the versatility of the program.
- the objects to be instantiated are determined through manual input. A large number of strings need to be entered manually, which is error-prone and inefficient. Therefore, when determining the number of data members and output objects, determine the number of output objects and data members based on the relevant information table in the traversal data model with mapping relationships.
- the method for determining the number of output objects and data members includes the following steps:
- Step 302 Traverse the enabled target information in the first information table according to the mapping relationship between the information tables of the data model.
- the data model includes access point table, port table, logical device table, logical node table, data set grouping table, status table and data table related to the battery system model.
- the first information table includes an access point table, a port table, a logical device table, a logical node table and a data set grouping table.
- the first information table is traversed in sequence; by traversing the first information table, the enabled information in the first information table is obtained, including the following steps:
- Step 1 Traverse the access point table and check the enable flag of access point modeling. If it is enabled, read the name and reference of the enabled access point by row; if it is not enabled, an alarm will be prompted for this item. Alarm information;
- Step 2 Traverse the physical port table of the BMS device and check the enable flag of the physical port of the device line by line. If it is enabled, read the enabled physical port setting port ID and port name line by line; if it is not enabled, Yes, an alarm will be issued to prompt the alarm information;
- Step 3 Traverse the logical device table, check the enable flag of the logical device by row, if it is enabled, read the name and reference of the enabled logical device by row, and obtain the logical device and access point according to the corresponding column Mapping relationship; if not enabled, an alarm will be issued to prompt the alarm information;
- Step 4 Traverse the logical node table, check the enable flag of the logical node table by row, if it is enabled, read the reference and the prefix of the reference by row, and obtain the mapping of logical nodes and logical devices according to the columns of the table relationship; if it is not enabled, an alarm will be issued to prompt the alarm information;
- Step 5 Traverse the data set grouping table and check the enable flag of the data set grouping by row. If it has been enabled, read the group number (can be understood as the data set name) and the group reference of the data set by row. ; If not enabled, an alarm will be displayed to prompt the alarm information.
- Step 304 Traverse the second information table in the data model according to the enabled target information to determine the number of data members and output objects.
- the enabled target information includes the name of the access point and its reference, the enabled physical port setting port ID and its port name, the name of the enabled logical device and its reference, the name of the logical device and the access point
- the mapping relationship includes the reference of the enabled logical node and the prefix of the reference, the mapping relationship between the logical node and the logical device, the group number of the enabled data set group and the reference of the data set group, etc.
- the second information table includes a status table and a data table.
- the output object includes the output's status and data members.
- the method of determining the status of the output can be implemented in the following manner: traversing the first association information mapped to the enabled target information in the state table of the data model, and determining the output status according to the first association information.
- the first association information includes the reference of the state table, the group number, the logical device associated with the logical node, the access point, etc.
- the method of determining the data members and the number of data members can be implemented in the following manner: traversing the second association information mapped to the enabled target information in the data table in the data model, and determining the data members and the number of data members according to the second association information.
- the second association information refers to the reference of the data table, the group number, the logical device associated with the logical node, and the access point.
- the state table and data table are traversed according to the enabled target information, that is, the state table is traversed, and the reference, group number, and logical node association of the state table are checked row by row, and then the name of the state table is read row by row. , reference. Further, the time scale and quality of the state are judged based on actual business requirements, the states with time scale and quality are marked, and mapping relationships with data set groups and logical nodes are established. Check the status table row by row for incomplete references, group numbers, and logical node associations, and generate an alarm to prompt the alarm information.
- the state table and the data table are traversed respectively to obtain the state to be instantiated in the state table and the number of data members of the data table as well as the data members to be instantiated. There is no need to manually determine the output states to be instantiated one by one. and instantiated data members improve processing efficiency.
- the target execution program is called to instantiate the output object and generate the ICD file of the battery system model, including the following two methods:
- Method 1 Based on the mapped data link from each state or data member to the access point, call the target executor, write the address of the output object, and determine the access point, data set name, logical device, and logic associated with the output object node to generate the ICD file of the battery system model.
- Method 2 Based on the mapped data link from the access point to each state or data member, invoke the target executor, write the address of the output object, and determine the access point, data set name, logical device, and logic associated with the output object node to generate the ICD file of the battery system model.
- the ICD file of the battery system model is obtained, which can accurately describe the functions and engineering capabilities of the battery system model. , and meet the needs of corresponding business scenarios.
- the ICD in order to generate the ICD file of the battery system model, the ICD needs to be modeled and the ICD file is generated based on the established ICD model.
- ICD modeling is determined based on the mapping relationship between the hierarchical structure of the battery management system and the IEC61850 model.
- a method for constructing a data model is provided. Taking the method as applied to a terminal as an example, the method includes the following steps:
- Step 402 Based on the hierarchical structure of the battery management system, establish an information table associated with the access point and logical device to obtain a preset data model.
- the battery management system includes battery system, battery cluster, battery module and battery cell.
- the hierarchical structure of battery system, battery cluster, battery module and battery cell is shown in Figure 5.
- the battery system of BMS is composed of n battery clusters.
- each battery cluster is composed of m battery modules, and each battery module is composed of p battery cells.
- the information table includes access point table, physical port table, logical device table, logical node table, data set grouping table, status table and data table.
- the fields in the information table are predetermined.
- a preset data model is obtained. As shown in Figure 6, a method for building a preset data model is provided, including the following steps:
- Step 602 Determine the mapping relationship between the hierarchical structure of the battery system model of the battery management system and the target model.
- the target model can be an IEC61850 model, and the hierarchical structure of the IEC61850 model is IED, logical device, logical node, and logical object in order.
- the battery system model includes battery system, battery system body, battery cluster, battery cluster body, battery module, battery module body and battery cell, etc.
- ICD file it is necessary to determine the corresponding IED information according to the hierarchy of the battery management system, create access points and logical devices according to the hierarchy of IED information, and create logical nodes and data objects of the logical devices.
- the battery system model is mapped to the IEC61850 model, as shown in Figure 7.
- the battery system is mapped to IED, the battery system ontology is mapped to public logical device LD0, the battery cluster is mapped to logical device LD, and the battery cluster ontology and battery module are mapped to logical nodes.
- LN, the battery module body and the battery cell are mapped to data attributes DA.
- the battery system ontology is mapped to a public logical device LD0.
- LD0 contains four types of logical nodes: point zero node LLN0, logical device node LPHD, logical node GGIO, and measurement node MMXN.
- the predefined data set (dsBatSys) in LLN0 includes the battery system ontology information.
- the information in the predefined data set in LLN0 is all DO represented by the status information represented in the logical node GGIO and the measurement information represented by the MMXN node.
- the battery cluster is mapped to a logical device LD, including LLNO, LPHD and GGIO logical nodes.
- the battery cluster data set (dsBatClu) and multiple battery module data sets (dsBatMod) should be reserved in LLN0.
- the battery cluster data set includes all data objects DO representing remote signaling information, telemetry information, and remote control information in the battery cluster body information logical node batCluGGIO. ;
- Multiple battery module data sets (dsBatMod) include all DOs representing remote signaling information and telemetry information in the battery module information logical node batModGGIO.
- Step 604 Create an access point of the battery management system and a logical device that defines the battery system model according to the mapping relationship.
- the access point of the battery management system and the logical device that defines the battery system model are created according to the mapping relationship.
- Step 606 Establish an information table associated with the access point and logical device, and construct a preset data model.
- an information table associated with the access point and the logical device is established. There is a mapping relationship between the information tables, and the preset data is constructed based on the information table with the mapping relationship. Model.
- the preset fields of the access table include access point identification, whether it is enabled, access point type and reference.
- Access point types include station control layer type, bay layer type and process layer type.
- the preset fields of the physical port table include whether it is enabled, access point identification, and port identification.
- the default fields of the logical device table include the logical device name, reference, whether it is enabled, the associated access point ID and keywords.
- the default fields of the logical node table include the name of the logical node, whether it is enabled, reference, prefix and keyword.
- the preset fields of the dataset grouping table include dataset name, description, and control block name.
- the preset fields of the state table include state name, logical device name, logical node name, reference, data set name, composite member and time stamp, etc.
- the preset fields of the data table include data information name, logical device name, logical node name, reference, data set name, composite member and time stamp, etc.
- the key fields of the access point table include access point identification, whether it is enabled, access point type and reference; the key fields of the physical port table include whether it is enabled, access point identification, and port identification; the key fields of the logical device table include Logical device name, reference, whether it is enabled and its access point identification; the keys of the logical node table include the logical node name, whether it is enabled and reference; the key fields of the data set grouping table include the data set name, description and Control block name; the key fields of the state table include state name, logical device name, logical node name, reference and data set name; the key fields of the data table include data information name, logical device name, logical node name, reference Type and dataset name.
- the access point of the battery management system and the logical device defining the battery system model are created according to the mapping relationship between the battery system model and the target model in the battery management system; an information table associated with the access point and the logical device is established to construct a preset Data model simplifies the data model construction process.
- Step 404 Obtain the associated information of the logical device and the attribute information of the access point according to the business requirements of the battery management system.
- the attribute information of the access point includes the access point identification, the enabling information of the access point that needs to be modeled, the access point type and the reference corresponding to the access point type, etc.; the associated information of the logical device includes the physical port associated with the logical device.
- the port identification the enabling information of the physical port that needs to be enabled, the access point identification associated with the physical port, the logical device name, the reference of the logical device, the enabling information of the logical device that needs to be enabled, and the associated access point identification of the logical device ;
- the logical node name associated with the logical device, the access point to which the reference logical node belongs, the enabling information of the logical node that needs to be enabled, the data set name, description, and data set name corresponding to the logical device The control block; the status signal name of the battery management system, the logical device associated with the status signal name, the logical node associated with the status signal name, the reference corresponding to the status signal name, the associated data set name; and the battery management system
- the associated information of the logical devices in the battery management system and the attribute information of the access point are obtained.
- Step 406 Write the association information and attribute information into the preset data model to obtain the constructed data model.
- steps of writing association information and attribute information into the preset data model include the following:
- Step 802 Write the access point identifier, the enabling information of the access point to be modeled, the access point type, and the reference corresponding to the access point type into the access point table.
- Step 804 Write the port identifier in the association information, the enabling information that needs to enable the physical port, and the access point identifier associated with the port identifier into the physical port table.
- Step 806 Write the name of the logical device, the reference of the logical device, the enabling information of the logical device that needs to be enabled, and the associated access point identifier of the logical device in the associated information into the logical device table.
- Step 808 Write the logical node name associated with the logical device, the reference associated with the logical node, the access point to which the logical node belongs, and the enabling information of the logical node that needs to be enabled in the association information into the logical node table.
- Step 810 Write the data set name and description corresponding to the logical device and the control block corresponding to the data set name into the data set grouping table.
- Step 812 Write the status signal name of the battery management system, the logical device associated with the status signal name, the logical node associated with the status signal name, the reference corresponding to the status signal name, and the associated data set name into the status table.
- the status signal name of the battery management system includes the overall status signal of the battery management system and the status signal name of the battery cell. Further, the overall status signal of the battery management system and the status signal name of the battery cell in the correlation information are associated with the corresponding logical device, the corresponding logical node, the reference, and the corresponding data set name, keyword, and quality. and time stamps and other information are written into the data table. Among them, references of the same type can be distinguished by adding a serial number after the reference.
- Step 814 Write the data signal name of the battery management system, the logical device associated with the data signal name, the logical node associated with the data signal name, the reference corresponding to the data signal name, and the data set name associated with the data signal name into the data. surface.
- the data signal name includes the total data signal in the battery management system and the data signal name of the battery cell.
- the overall data signal of the battery management system in the associated information and the data signal name of the battery cell are associated with the corresponding logical device, associated with the corresponding logical node, reference, and associated with the corresponding data set name, keyword, quality and time stamps and other information are written into the data table.
- references of the same type can be distinguished by adding a serial number after the reference. It is understandable that there are no duplicate keywords in each information table.
- the attribute information of the determined access point and the associated information in the logical device, as well as the access point that needs to be enabled and the logical device and logical node that need to be enabled, are sequentially written into the preset data model. Complete the creation of IED information in each information table.
- an information table associated with the access point and the logical device is established. There is a mapping relationship between the information tables, and a preset data model is obtained. According to the business requirements of the battery management system, obtain the associated information of the logical device and the attribute information of the access point; write the associated information and attribute information into the preset data model to obtain the constructed data model.
- a data model you only need to construct multiple information tables with mapping relationships based on the hierarchical structure of the battery management system.
- data is written to multiple information tables with mapping relationships to obtain a well-constructed data model, which can meet different business needs, improve the development efficiency of the model, and enhance the maintainability of development. sex.
- a method for generating an ICD file is provided. This method is explained by applying it to a terminal as an example, including the following steps:
- Step 902 Based on the hierarchical structure of the battery management system, establish an information table associated with the access point and the logical device to obtain a preset data model.
- Step 904 Obtain the associated information of the logical device and the attribute information of the access point according to the business requirements of the battery management system.
- Step 906 Write the association information and attribute information into the preset data model to obtain the constructed data model.
- Step 908 Traverse each information table of the data model to determine the number of data members and output objects.
- Step 910 Determine a corresponding number of target execution programs based on the number of data members.
- the type of the data member needs to be determined. If there are different types of data members, the target execution programs of each type of data member need to be determined.
- determining the corresponding number of target execution programs according to the number of data members includes: classifying the data members according to their types to obtain the number of data members of each type; determining the maximum number of the types of data members. is the number of target execution programs; for each type of data member, determine the corresponding number of target execution programs based on the number of target execution programs.
- the types of data members include integer, float and double types. The maximum number of data members in different types of data sets is determined respectively. The maximum number of data members of each type is determined as the number of target execution programs. . Accurately determine the target execution programs required for various data members to avoid being unable to instantiate all data members, resulting in inaccurate generated ICD files.
- Step 912 Call the target execution program to instantiate the output object and generate an ICD file of the battery system model.
- FIG. 10 it is a schematic diagram of an ICD file in an embodiment.
- the ICD file includes a data set name, description, access point, logical device, logical node and number of data members.
- the data set name includes data Set 1, Data Set 2, Data Set 3, Data Set 4, Data Set 5, Data Set N, the access point is S1, and the logical device including LD0, BC1 and BC2 logical node is LLN0.
- the data set members corresponding to data set 2 include data set member 1, data set member 2, data set member 3, data set member 4, and data set member 5.
- Each data set member has a corresponding reference, description, and short address. For example, in a battery management system, the temperature of n cells in n clusters can be described.
- Step 914 When an update request is detected, the constructed data model is updated according to the update business requirements carried in the update request.
- the update is determined according to the needs of the battery management system business layer, and the update can be an update of the access point, logical device or logical node to be used in the data model.
- the following is the framework of the ICD file generation method in an application scenario, as shown in Figure 11. Specifically, by mapping the hierarchical relationship of the battery system in the battery management system with each logical level in the IEC61850 model, the modeling hierarchy of the battery system is obtained. ; Determine the access point of the battery management system according to the modeling hierarchy, and determine the logical devices and logical nodes of the battery management system. Multiple information tables with mapping relationships are established based on the determined access point, logical device, and logical node associated with the logical device.
- the fields of the access point table include the name of the access point, whether it is enabled, the type and reference of the access point; establish a physical port table; the fields of the physical port table include whether it is enabled, the access point ID, Port ID; establish a logical device table.
- the fields of the logical device table include logical device name, reference, whether enabled, access point and keyword; establish a logical node table.
- the fields of the logical node table include logical node name, reference, Whether it is enabled, the access point and keywords it belongs to; establish a data set grouping table, whose fields include data set name, description and control block name; build a state table, whose fields include state name, logical device, logic Node, reference, composite member, time scale and data set grouping; build a data table.
- the fields of the data table include data table name, logical device, logical node, reference type, composite member and data set grouping to obtain a preset data model .
- write the access point name in the access point table enable the access point corresponding to the access point name, and write the type and reference of the access point; in the physical port table, write the port ID, enable the port corresponding to the port ID, write the access point ID associated with the port ID; write the logical device name and reference in the logical device table, enable the logical device to be used, and associate the logical device The access point to which it belongs and the keyword corresponding to the execution program; write the name of the logical node, the reference of the logical node and the access point to which it belongs, the keyword corresponding to the execution program in the logical node table, and perform the operations on the logical node to be used.
- the data model of the battery management system is pre-constructed, the number of data members and the output object are determined by traversing the pre-constructed data model, and the output object is instantiated by executing the target execution program corresponding to the number of data members.
- the model instantiation content is obtained, and the ICD file of the battery system model is automatically generated based on the model instantiation content. There is no need to manually generate it, which reduces the error rate and ensures the accuracy of the model ICD file.
- the built data model is updated according to the update business requirements carried by the update request, adapting to different application scenarios and improving the versatility of the data model.
- embodiments of the present application also provide an ICD file generation device for implementing the above-mentioned ICD file generation method.
- the solution to the problem provided by this device is similar to the solution recorded in the above method. Therefore, the specific limitations in the one or more ICD file generation device embodiments provided below can be found in the above description of the ICD file generation method. Limitations will not be repeated here.
- an ICD file generation device including: a data traversal module 1202, a matching module 1204 and a file generation module 1206, wherein:
- the data traversal module 1202 is used to obtain a data model including multiple information tables corresponding to the hierarchical structure of the battery system model; there is a mapping relationship between the multiple information tables; traverse each information table of the data model to determine the number of data members and Output object.
- the matching module 1204 is used to determine a corresponding number of target execution programs according to the number of data members.
- the file generation module 1206 is used to call the target execution program to instantiate the output object and generate the ICD file of the battery system model.
- the target object to be instantiated when generating a model ICD file, is determined by traversing the pre-constructed data model; the target object is instantiated according to the set target execution program, without manual method one by one. Instantiate the target object, reducing the error rate and ensuring the accuracy of the model ICD file.
- the output object is instantiated through the target execution program and the model ICD file is automatically generated, which avoids the coupling between the program and the ICD and improves the versatility of the program.
- an ICD file generation device which in addition to the data traversal module 1202, the matching module 1204 and the file generation module 1206, also includes: a data link determination module and an update module, wherein:
- the data traversal module 1202 is also used to traverse the enabled target information in the first information table according to the mapping relationship between the information tables of the data model;
- the data traversal module 1202 is also used to traverse the first association information mapped to the enabled target information in the state table of the data model, and determine the output state according to the first association information;
- the data link determination module is used to determine the mapping data link of the output object; the output object includes status and data members.
- the file generation module 1206 is also used to call the target execution program to instantiate the output object based on the mapping data link, and generate the ICD file of the battery system model.
- the file generation module 1206 is also configured to call the target executor, write the address of the output object, and determine the access point and data set name associated with the output object based on the mapped data link from the access point to each state or data member. , logical devices and logical nodes, and generate the ICD file of the battery system model.
- the file generation module 1206 is also configured to call the target executor, write the address of the output object and determine the access point and data set name associated with the output object based on the mapped data link from each state or data member to the access point. , logical devices and logical nodes, and generate the ICD file of the battery system model.
- the update module is used to update the built data model according to the update business requirements carried by the update request when an update request is detected.
- Each module in the above-mentioned ICD file generating device can be implemented in whole or in part by software, hardware and combinations thereof.
- Each of the above modules may be embedded in or independent of the processor of the computer device in the form of hardware, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
- a computer device is provided.
- the computer device may be a terminal, and its internal structure diagram may be as shown in Figure 13.
- the computer device includes a processor, memory, communication interface, display screen and input device connected through a system bus.
- the processor of the computer device is used to provide computing and control capabilities.
- the memory of the computer device includes non-volatile storage media and internal memory.
- the non-volatile storage medium stores operating systems and computer programs. This internal memory provides an environment for the execution of operating systems and computer programs in non-volatile storage media.
- the communication interface of the computer device is used for wired or wireless communication with external terminals.
- the wireless mode can be implemented through WIFI, mobile cellular network, NFC (Near Field Communication) or other technologies.
- the computer program when executed by the processor, implements an ICD file generating method.
- the display screen of the computer device may be a liquid crystal display or an electronic ink display.
- the input device of the computer device may be a touch layer covered on the display screen, or may be a button, trackball or touch pad provided on the computer device shell. , it can also be an external keyboard, trackpad or mouse, etc.
- Figure 13 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
- Specific computer equipment can May include more or fewer parts than shown, or combine certain parts, or have a different arrangement of parts.
- a computer device including a memory and a processor.
- a computer program is stored in the memory.
- the processor executes the computer program, it implements the steps in the above method embodiments.
- a computer-readable storage medium on which a computer program is stored.
- the computer program is executed by a processor, the steps in the above method embodiments are implemented.
- a computer program product including a computer program that implements the steps in each of the above method embodiments when executed by a processor.
- information and data involved in this application are all information and data authorized by the user or fully authorized by all parties.
- the computer program can be stored in a non-volatile computer-readable storage.
- the computer program when executed, may include the processes of the above method embodiments.
- Any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory.
- Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetic variable memory (Magnetoresistive Random Access Memory (MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc.
- Volatile memory may include random access memory (Random Access Memory, RAM) or external cache memory, etc.
- RAM Random Access Memory
- RAM random access memory
- RAM Random Access Memory
- the databases involved in the various embodiments provided in this application may include at least one of a relational database and a non-relational database.
- Non-relational databases may include blockchain-based distributed databases, etc., but are not limited thereto.
- the processors involved in the various embodiments provided in this application may be general-purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to this.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本申请涉及一种ICD文件生成方法、装置、计算机设备、存储介质和计算机程序产品。所述方法包括:对构建好的数据模型的目标信息表进行遍历,确定数据成员数量和输出对象;数据模型包括电池系统模型的层次结构对应的多个信息表,多个信息表之间具有映射关系;根据数据成员数量确定对应数量的目标执行程序;调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。采用本方法能够确保了模型ICD文件的准确性。
Description
本申请涉及电力系统储能技术领域,特别是涉及一种ICD文件生成方法、装置、计算机设备、存储介质和计算机程序产品。
IEC61850标准是电力系统自动化领域唯一的全球通用标准。它通过标准的实现,实现了智能变电站的工程运作标准化。例如,包括电网电能质量监测、线路保护、变电站之间以及变电站和调度中心之间的信息交换和电力设备的状态监视等。随着IEC61850标准不断的完成,逐步被推广至在不同的应用中,例如,也逐步推广至风电场、分布式能源和水电站等应用中。
针对新型电力储能系统在电力系统中的应用不断推广,对电池管理系统(battery management system,BMS)融入IEC 61850体系有了急切的需求。BMS的模型ICD文件是通过人工方式生成的,导致ICD文件的生成效率低。
发明内容
基于此,有必要针对上述技术问题,提供一种能够解决ICD文件的准确性低的ICD文件生成方法、装置、计算机设备、计算机可读存储介质和计算机程序产品。
第一方面,本申请提供了一种ICD文件生成方法。所述方法包括:
获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;
对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;
根据所述数据成员数量确定对应数量的目标执行程序;
调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
上述实施例中,在生成模型ICD文件时,通过遍历预先构建好的数据模型,确定要实例化的目标对象;根据设置好的目标执行程序对目标对象进行实例化,不需要人工方式逐个对目标对象进行实例化,降低了错误率进而确保了模型ICD文件的准确性。通过目标执行程序对输出对象进行实例化,自动生成模型ICD文件,避免程序和ICD之间的耦合和提高了程序的通用性。
在其中一个实施例中,对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象,包括:
根据所述数据模型的各信息表之间的映射关系遍历第一信息表中已使能的目标信息;
根据所述已使能的目标信息对所述数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象。
上述实施例中,通过数据模型的各信息表之间的映射关系遍历第一信息表中已使能的目标信息,根据已使能的目标信息进行遍历得到数据成员数量和输出对象。基于数据映射确定要输出的状态和数据成员,可以准确、快速地确定要输出的状态和数据成员。
在其中一个实施例中,所述根据所述已使能的目标信息对所述数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象,包括:
遍历所述数据模型的状态表中与所述已使能的目标信息映射的第一关联信息,根据所述第一关联信息确定要输出的状态;
遍历所述数据模型中的数据表中与所述已使能的目标信息映射的第二关联信息,根据所述第二关联信息确定数据成员和数据成员数量。
上述实施例中,分别遍历状态表和数据表,得到状态表中要实例化的状态和数据表的数据成员数量以及要实例化的数据成员,不需要人工方式一一确定要实例化的输出状态和实例化的数据成员,提高了处理效率。
在其中一个实施例中,所述调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:
确定所述输出对象的映射数据链路;所述输出对象包括状态和数据成员;
基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例 化,生成所述电池系统模型的ICD文件。
上述实施例中,通过确定输出对象的映射数据链路,基于映射数据链路对输出对象进行实例化,得到电池系统模型的ICD文件,可以准确地描述电池系统模型的功能和工程能力。
在一个实施例中,所述基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:
基于从访问点映射到每个状态或数据成员的映射数据链路,调用所述目标执行程序,写入所述输出对象的地址以及确定与所述输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成所述电池系统模型的ICD文件。
上述实施例中,基于从访问点映射到每个状态或数据成员的映射数据链路,对输出对象进行实例化,满足对应业务场景下业务场景需求。
在一个实施例中,所述基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:
所述基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:
基于从每个状态或数据成员映射到访问点的映射数据链路,调用所述目标执行程序,写入所述输出对象的地址以及确定与所述输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成所述电池系统模型的ICD文件。
上述实施例中,基于从每个状态或数据成员映射到访问点的映射数据链路,满足对应业务场景下业务场景需求。
在其中一个实施例中,述根据所述数据成员数量确定对应数量的目标执行程序,包括:
根据所述数据成员的类型对所述数据成员进行分类,得到各类型的数据成员的数量;
将各类所述数据成员数量中的最大值确定为目标执行程序的数量;
分别为每类数据成员,根据目标执行程序的数量确定对应数量的目标执行程序。
上述实施例中,通过对数据成员进行分类,根据各类数据成员数量中的最 大值确定对应数量的目标执行程序,准确地确定各类数据成员所需的目标执行程序,避免不能对所有的数据成员进行实例化,导致生成的ICD文件不准确。
在其中一个实施例中,所述方法还包括:
当检测到更新请求时,根据所述更新请求携带的更新业务需求对所述构建好的数据模型进行更新。
上述实施例中,在业务需求更新时,根据业务更新需求对构建好的数据模型进行更新,适应不同的应用场景,提高了数据模型的通用性。
第二方面,本申请还提供了一种ICD文件生成装置。所述装置包括:
数据遍历模块,用于获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;
对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;
匹配模块,用于根据所述数据成员数量确定对应数量的目标执行程序;
文件生成模块,用于调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
第三方面,本申请还提供了一种计算机设备。所述计算机设备包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;
对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;
根据所述数据成员数量确定对应数量的目标执行程序;
调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
第四方面,本申请还提供了一种计算机可读存储介质。所述计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:
获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;
对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;
根据所述数据成员数量确定对应数量的目标执行程序;
调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
第五方面,本申请还提供了一种计算机程序产品。所述计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现以下步骤:
获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;
对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;
根据所述数据成员数量确定对应数量的目标执行程序;
调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1为一个实施例中ICD文件的应用示意图;
图2为一个实施例中ICD文件生成方法的流程示意图;
图3为一个实施例中确定输出对象和数据成员数据数量方法的流程示意图;
图4为一个实施例中数据模型的构建方法的流程示意图;
图5为一个实施例中电池管理系统的层次结构示意图;
图6为一个实施例中预设数据模型的构建方法的流程示意图;
图7为一个实施例中电池系统模型和IEC61850模型的映射示意图;
图8为一个实施例中确定构建好的数据模型的步骤示意图;
图9为另一个实施例中ICD文件生成方法的流程示意图;
图10为一个实施例中ICD文件的相关示意图;
图11为一个实施例中ICD文件生成方法的框架示意图;
图12为一个实施例中ICD文件生成装置的结构框图;
图13为一个实施例中计算机设备的内部结构图。
下面将结合附图对本申请技术方案的实施例进行详细的描述。以下实施例仅用于更加清楚地说明本申请的技术方案,因此只作为示例,而不能以此来限制本申请的保护范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同;本文中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请;本申请的说明书和权利要求书及上述附图说明中的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含。
在本申请实施例的描述中,技术术语“第一”“第二”等仅用于区别不同对象,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量、特定顺序或主次关系。在本申请实施例的描述中,“多个”的含义是两个以上,除非另有明确具体的限定。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
在本申请实施例的描述中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后 关联对象是一种“或”的关系。
在本申请实施例的描述中,术语“多个”指的是两个以上(包括两个),同理,“多组”指的是两组以上(包括两组),“多片”指的是两片以上(包括两片)。
在本申请实施例的描述中,技术术语“中心”“纵向”“横向”“长度”“宽度”“厚度”“上”“下”“前”“后”“左”“右”“竖直”“水平”“顶”“底”“内”“外”“顺时针”“逆时针”“轴向”“径向”“周向”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本申请实施例和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本申请实施例的限制。
在本申请实施例的描述中,除非另有明确的规定和限定,技术术语“安装”“相连”“连接”“固定”等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;也可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请实施例中的具体含义。
在IEC 61850体系中,每一个设备都是IED,每个IED文件对应一个ICD文件,在整个应用场景(例如,智能变电站)中的IED做成SCD文件,通过SCD文件将各个ICD建立连线和通信关系,导出CID文件下装到各个设备,这是对BMS在电力系统中的应用提出的要求。
针对新型电力储能系统在电力系统中的应用,当前对于BMS的ICD建模不能兼容所有的厂商,通过基于IEC61850的手工建模方式来实现ICD建模,由于IEC61850模型是一套体系,建模需要对整个IEC61850体系文件精通,对工作人员建模的能力要求很高,对于建模过程中的大量数据需要手工方式处理,存在工作量大,容易出错,校核不便,不易维护和升级等问题。
基于以上考虑,通过预先构建好具有映射关系的多个信息表,通过遍历具有映射关系的多个信息表中的目标信息表,确定目标执行程序和输出对象,调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。
通过预先构建好数据模型,在生成模型ICD文件时,通过遍历具有映射关系的多个信息表中的目标信息表,确定要实例化的目标对象;根据设置好的目标执行程序对目标对象进行实例化,不需要人工方式逐个对目标对象进行实例化,降低了错误率以及确保了模型ICD文件的准确性。通过目标执行程序对输出对象进行实例化,自动生成模型ICD文件,避免程序和ICD之间的耦合和提高了程序的通用性。
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。
本申请实施例提供的ICD文件生成方法,以该方法应用于终端进行举例说明,可以理解的是,该方法也可以应用于服务器,还可以应用于包括终端和服务器的系统,并通过终端和服务器的交互实现。
可选地,本实例生成的ICD文件的应用如图1所示。通过对构建好的数据模型的目标信息表进行遍历,确定数据成员数量和输出对象;构建好的的数据模型包括电池系统模型的层次结构对应的多个信息表,多个的信息表之间具有映射关系;根据的数据成员数量确定对应数量的目标执行程序;调用的目标执行程序对的输出对象进行实例化,生成的电池系统模型的ICD文件。在IEC61850体系中,每一个设备都是IED,每个IED文件对应一个ICD文件。将整个应用场景(例如,智能变电站)中的IED做成SCD文件,通过SCD文件将各个ICD建立连线和通信关系,导出CID文件下装到各个设备。其中,将IED做成SCD文件可以通过现有的方式实现,在此不做限定。
在一个实施例中,如图2所示,提供了一种ICD文件生成方法,以该方法应用于终端为例进行说明,包括以下步骤:
步骤202,获取包括电池系统模型的层次结构对应的多个信息表的数据模型;多个信息表之间具有映射关系。
步骤204,对数据模型的各信息表进行遍历,确定数据成员数量和输出对象。
其中,数据模型是预先构建好的,数据模型是指电池管理系统对应的模型。 基于数据模型可以生成电池系统模型的ICD文件。数据模型包括电池系统模型的层次结构对应的多个信息表,多个信息表之间具有映射关系。例如,端口表和访问点表存在映射关系,逻辑设备表中的逻辑设备和访问点存在映射关系,逻辑节点表中的逻辑节点和逻辑设备存在映射关系。信息表包括访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集分组表、状态表和数据表中至少一种。
本实施例中,以信息表包括访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集分组表、状态表和数据表进行说明。数据模型中包括有不同类型的数据集,数据集的类型包括报警类型、整型和浮点类型等。
输出对象可以包括要输出的状态和要输出的数据成员,要输出的状态和要输出的数据成员是根据数据模型中的信息表中的参引来确定的,一个参引对应一个状态,或者对应一个数据成员,参引为IEC61850中定义的参引,例如,参引包括S1、M1、G1。
具体地,当需要生成电池系统模型的ICD文件时,获取构建好的数据模型。对构建好的数据模型中的各信息表进行遍历,将构建好的数据模型,以及将具有映射关系的信息表的数据写入内存。获取信息表中数据集,得到数据集中的数据成员数量。进一步地,在确定数据成员数量时,若目标信息表中存在多个数据集,每个数据集的数据成员数量不同,以数据成员数量最多的作为最终的数据成员数量。
步骤206,根据数据成员数量确定对应数量的目标执行程序。
其中,目标执行程序可以理解为IEC 61850模板库中的模板。
具体地,确定数据成员的数据类型,根据数据成员的数据类型和数据成员数量从IEC 61850模板库中获取对应的模板。
步骤208,调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。
具体地,通过从IEC 61850模板库中获取对应数量的模板,调用从IEC 61850模板库中获取的模板对输出对象进行实例化处理,按照ICD文件的预设层次结构生成电池系统模型的ICD文件,完成ICD文件的创建。
上述ICD文件生成方法中,在生成模型ICD文件时,通过遍历预先构建好的数据模型,确定要实例化的目标对象;根据设置好的目标执行程序对目标对象进行实例化,不需要人工方式逐个对目标对象进行实例化,降低了错误率以及确保了模型ICD文件的准确性。通过目标执行程序对输出对象进行实例化,自动生成模型ICD文件,避免程序和ICD之间的耦合和提高了程序的通用性。
在生成电池系统模型的ICD文件,确定要实例化的对象通过人工输入方式来确定。需要人工输入大量的字符串,人工输入容易出错以及效率低。因此,在确定数据成员数量和输出对象,根据具有映射关系的遍历数据模型中的相关信息表,确定输出对象和数据成员数据数量。
在一个实施例中,确定输出对象和数据成员数据数量方法,如图3所示,包括以下步骤:
步骤302,根据数据模型的各信息表之间的映射关系遍历第一信息表中已使能的目标信息。
其中,数据模型中包括与电池系统模型相关的访问点表、端口表、逻辑设备表、逻辑节点表和数据集分组表和状态表和数据表。第一信息表包括访问点表、端口表、逻辑设备表、逻辑节点表和数据集分组表。
具体地,根据数据模型的各信息表之间的映射关系,依次遍历第一信息表;通过遍历第一信息表,得到第一信息表中的已使能信息,包括以下步骤:
第一步:遍历访问点表,检查访问点建模的使能标志,如果已经使能,按行读取已经使能访问点的名称及其参引;如果未使能,进行告警提示该条告警信息;
第二步:遍历BMS设备的物理端口表,按行检查设备物理端口的使能标志,如果已经使能,则按行读取已经使能的物理端口设置端口ID及其端口名称;如果未使能,进行告警提示该条告警信息;
第三步:遍历逻辑设备表,按行检查逻辑设备的使能标志,如果已经使能,按行读取已经使能逻辑设备的名称及其参引,根据对应的列获取逻辑设备和访问点的映射关系;如果未使能,进行告警提示该条告警信息;
第四步:遍历逻辑节点表,按行检查逻辑节点表的使能标志,如果已经使 能,按行读取的参引和参引的前缀,根据表的列获取逻辑节点和逻辑设备的映射关系;如果未使能,进行告警提示该条告警信息;
第五步:遍历数据集分组表,按行检查数据集分组的使能标志,如果已经使能,按行读取数据集的分组的组号(可以理解为数据集名称)和组的参引;如果未使能,进行告警提示该条告警信息。
步骤304,根据已使能的目标信息对数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象。
其中,已使能的目标信息包括访问点的名称及其参引、已经使能的物理端口设置端口ID及其端口名称、已经使能逻辑设备的名称及其参引,逻辑设备和访问点的映射关、已使能的逻辑节点的参引以及参引的前缀,逻辑节点和逻辑设备的映射关系、已使能的数据集的分组的组号和数据集分组的参引等。第二信息表包括状态表和数据表。输出对象包括输出的状态和数据成员。
进一步地,确定输出的状态的方式可以通过以下方式实现:遍历数据模型的状态表中与已使能的目标信息映射的第一关联信息,根据第一关联信息确定输出状态。其中,第一关联信息包括状态表的参引、分组号、逻辑节点关联的逻辑设备、访问点等。
确定数据成员和数据成员数量的方式可以通过以下方式实现:遍历数据模型中的数据表中与已使能的目标信息映射的第二关联信息,根据第二关联信息确定数据成员和数据成员数量。其中,第二关联信息是指数据表的参引、分组号、逻辑节点关联的逻辑设备、访问点。
具体地,根据已使能的目标信息对状态表和数据表进行遍历,即遍历状态表,按行检查状态表的参引、分组号、逻辑节点关联齐全,则按行读取状态表的名称、参引。进一步地,根据实际业务需求判断该状态的时标和品质,对存在时标和品质的状态进行标记,并建立和数据集分组、逻辑节点的映射关系。按行检查状态表的参引、分组号、逻辑节点关联不齐全,进行告警提示该条告警信息。遍历数据表,按行检查状态表的参引、数据集名称、逻辑节点关联齐全等数据,则按行读取数据表的名称、参引、关键字。进一步地,根据实际业务需求判断该数据的时标和品质,对存在时标和品质的状态进行标记,建立和 数据集分组、逻辑节点的映射关系。按行检查数据表的参引、数据集名称和逻辑节点之间未完全关联,进行告警提示该条告警信息。
上述实施例中,分别遍历状态表和数据表,得到状态表中要实例化的状态和数据表的数据成员数量以及要实例化的数据成员,不需要人工方式一一确定要实例化的输出状态和实例化的数据成员,提高了处理效率。
在一个实施例中,基于映射数据链路,调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件,包括以下两种方式:
方式一:基于从每个状态或数据成员映射到访问点的映射数据链路,调用目标执行程序,写入输出对象的地址以及确定与输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成电池系统模型的ICD文件。
方式二:基于从访问点映射到每个状态或数据成员的映射数据链路,调用目标执行程序,写入输出对象的地址以及确定与输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成电池系统模型的ICD文件。
上述实施例中,通过确定输出对象的映射数据链路,以及确定不同的映射数据链路对输出对象进行实例化,得到电池系统模型的ICD文件,可以准确地描述电池系统模型的功能和工程能力,以及满足相应业务场景的需求。
可以理解的是,为了生成电池系统模型的ICD文件,需要对ICD进行建模,基于建立好的ICD模型生成ICD文件。其中,ICD建模是基于电池管理系统的层次结构和IEC61850模型之间的映射关系来确定的。
在一个实施例中,如图4所示,提供了一种数据模型的构建方法,以该方法应用于终端为例进行说明,包括以下步骤:
步骤402,根据电池管理系统的层次结构,建立与访问点和逻辑设备关联的信息表,得到预设数据模型。
其中,电池管理系统包括电池系统、电池簇、电池模块和电池单体,电池系统、电池簇、电池模块和电池单体的层次结构如图5所示,BMS的电池系统由n个电池簇组成,每个电池簇由m个电池模块组成,每个电池模块由p个电池单体组成。
信息表中包括访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集 分组表、状态表和数据表。信息表中的字段是预先确定的,通过构建具有映射关系的多个信息表,得到预设数据模型。如图6所示,提供了一种预设数据模型的构建方法,包括以下步骤:
步骤602,确定电池管理系统的电池系统模型的层次结构和目标模型的映射关系。
其中,目标模型可以是IEC61850模型,IEC61850模型的层次结构依次是IED、逻辑设备、逻辑节点、逻辑对象。电池系统模型包括电池系统、电池系统本体、电池簇、电池簇本体、电池模块、电池模块本体和电池单体等。为了生成ICD文件,需要根据电池管理系统的层次结构确定对应的IED信息,按照IED信息的层次创建访问点和逻辑设备,创建逻辑设备的逻辑节点和数据对象。
将电池系统模型和IEC61850模型进行映射,如图7所示,电池系统映射为IED,电池系统本体映射为公共逻辑设备LD0,电池簇映射为逻辑设备LD,电池簇本体和电池模块映射为逻辑节点LN,电池模块本体和电池单体映射为数据属性DA。
例如,电池系统本体映射为公共逻辑设备LD0,LD0中包含点零节点LLN0、逻辑设备节点LPHD、逻辑节点GGIO和测量节点MMXN四类逻辑节点。LLN0中预定义数据集(dsBatSys)包括电池系统本体信息,LLN0中预定义数据集中的信息也就是逻辑节点GGIO中所表示状态信息和MMXN节点中所表示测量信息的所有DO。
电池簇映射为逻辑设备LD,包括有LLNO、LPHD和GGIO逻辑节点。LLN0中应预定电池簇数据集(dsBatClu)和多个电池模块数据集(dsBatMod),电池簇数据集包括电池簇本体信息逻辑节点batCluGGIO中表示遥信信息、遥测信息、遥控信息的所有数据对象DO;多个电池模块数据集(dsBatMod)包括电池模块信息逻辑节点batModGGIO中表示遥信信息、遥测信息的所有DO。
步骤604,根据映射关系创建电池管理系统的访问点和定义电池系统模型的逻辑设备。
具体地,根据映射关系创建电池管理系统的访问点和定义电池系统模型的逻辑设备。
步骤606,建立与访问点和逻辑设备关联的信息表,构建预设数据模型。
具体地,根据电池管理系统的访问点和定义电池系统模型的逻辑设备,建立与访问点和逻辑设备关联的信息表,信息表之间具有映射关系,根据具有映射关系的信息表构建预设数据模型。
进一步地,构建预设数据模型的方式包括:
根据访问表的预设字段建立访问点表;根据物理端口表的预设字段建立物理端口表;根据逻辑设备表的预设字段建立逻辑设备表;根据逻辑节点表的预设字段建立逻辑节点表;根据数据集分组表的预设字段建立数据集分组表;根据状态表的预设字段构建状态表;根据数据表的预设字段构建数据表;根据访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集分组表、状态表和数据表的关键字段,建立访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集分组表、状态表和数据表之间的映射关系,得到预设数据模型。
其中,访问表的预设字段包括访问点标识、是否使能、访问点类型和参引,访问点类型包括站控层类型、间隔层类型和过程层类型。物理端口表的预设字段包括是否使能、访问点标识、端口标识。逻辑设备表的预设字段包括逻辑设备名称、参引、是否使能、所属的访问点标识和关键字。逻辑节点表的预设字段包括逻辑节点名称、是否使能、参引、前缀和关键字。数据集分组表的预设字段包括数据集名称、描述和控制块名称。状态表的预设字段包括状态名称、逻辑设备名称、逻辑节点名称、参引、数据集名称、复合成员和时标等。数据表的预设字段包括数据信息名称、逻辑设备名称、逻辑节点名称、参引、数据集名称、复合成员和时标等。
访问点表的关键字段包括访问点标识、是否使能、访问点类型和参引;物理端口表的关键字段包括是否使能、访问点标识、端口标识;逻辑设备表的关键字段包括逻辑设备名称、参引、是否使能和所属的访问点标识;逻辑节点表的关键字包括逻辑节点名称、是否使能和参引;数据集分组表的关键字段包括数据集名称、描述和控制块名称;状态表的关键字段包括状态名称、逻辑设备名称、逻辑节点名称、参引和数据集名称;数据表的关键字段包括数据信息名称、逻辑设备名称、逻辑节点名称、参引类型和数据集名称。
上述实施例中,根据电池管理系统中电池系统模型和目标模型的映射关系创建电池管理系统的访问点和定义电池系统模型的逻辑设备;建立与访问点和逻辑设备关联的信息表,构建预设数据模型,简化了数据模型的构建流程。
步骤404,根据电池管理系统的业务需求,获取逻辑设备的关联信息和访问点的属性信息。
其中,访问点的属性信息包括访问点标识、需要建模的访问点的使能信息、访问点类型和与访问点类型对应的参引等;逻辑设备的关联信息包括与逻辑设备关联的物理端口的端口标识、需要使能物理端口的使能信息、与物理端口关联的访问点标识、逻辑设备名称、逻辑设备的参引、需要使能逻辑设备的使能信息、逻辑设备的关联访问点标识;与逻辑设备关联的逻辑节点名称、与逻辑节点关联的参引逻辑节点所属的访问点、需要使能的逻辑节点的使能信息、与逻辑设备对应的数据集名称、描述、数据集名称对应的控制块;电池管理系统的状态信号名称、与状态信号名称关联的逻辑设备、与状态信号名称关联的逻辑节点、与状态信号名称对应的参引、关联的数据集名称;及电池管理系统的数据信号名称、与数据信号名称关联的逻辑设备、与数据信号名称关联的逻辑节点、与数据信号名称对应的参引和数据信号名称关联的数据集名称。
具体地,根据电池管理系统的业务需求,获取电池管理系统中逻辑设备的关联信息和访问点的属性信息。
步骤406,将关联信息和属性信息写入预设数据模型中,得到构建好的数据模型。
进一步地,将关联信息和属性信息写入预设数据模型中的步骤,如图8所示,包括以下:
步骤802,将访问点标识、需要建模的访问点的使能信息、访问点类型和与访问点类型对应的参引写入访问点表。
其中,访问点标识和访问点名称存在对应关系。
步骤804,将关联信息中的端口标识、需要使能物理端口的使能信息、和与端口标识关联的访问点标识,写入物理端口表。
其中,端口标识和端口名称存在对应关系。
步骤806,将关联信息中的逻辑设备名称、逻辑设备的参引,需要使能逻辑设备的使能信息和逻辑设备的关联访问点标识写入逻辑设备表。
步骤808,将关联信息中与逻辑设备关联的逻辑节点名称、与逻辑节点关联的参引、逻辑节点所属的访问点和需要使能的逻辑节点的使能信息写入逻辑节点表。
步骤810,将与逻辑设备对应的数据集名称、描述和数据集名称对应的控制块,写入数据集分组表。
步骤812,将电池管理系统的状态信号名称、与状态信号名称关联的逻辑设备、与状态信号名称关联的逻辑节点、与状态信号名称对应的参引和关联的数据集名称写入状态表。
其中,电池管理系统的状态信号名称包括电池管理系统总的状态信号和电池单体的状态信号名称。进一步地,将关联信息中的电池管理系统总的状态信号和电池单体的状态信号名称、关联对应的逻辑设备,关联对应的逻辑节点,参引,关联对应的数据集名称、关键字、品质和时标等信息写入数据表。其中,同一类型的参引在可以通过在参引后增加序号进行区分。
步骤814,将电池管理系统的数据信号名称、与数据信号名称关联的逻辑设备、与数据信号名称关联的逻辑节点、与数据信号名称对应的参引和数据信号名称关联的数据集名称写入数据表。其中,数据信号名称包括电池管理系统中总的数据信号和电池单体的数据信号名称。
进一步地,将关联信息中的电池管理系统总的数据信号和电池单体的数据信号名称、关联对应的逻辑设备,关联对应的逻辑节点,参引,关联对应的数据集名称、关键字、品质和时标等信息写入数据表。其中,同一类型的参引在可以通过在参引后增加序号进行区分。可以理解的是,各个信息表中不存在重复的关键字。
上述确定的构建好的数据模型中,确定的访问点的属性信息和逻辑设备中的关联信息,以及需要使能的访问点和需要使能的逻辑设备和逻辑节点,依次写入预设数据模型的各个信息表中,完成IED信息的创建。
上述实施例中,基于电池管理系统的层次结构,建立与访问点和逻辑设备 关联的信息表,信息表之间具有映射关系,得到预设数据模型。根据电池管理系统的业务需求,获取逻辑设备的关联信息和访问点的属性信息;将关联信息和属性信息写入预设数据模型中,得到构建好的数据模型。在建立数据模型时,只需根据电池管理系统的层次结构,构建具有映射关系的多个信息表。在此基础上,基于业务层的需求,对具有映射关系的多个信息表进行数据写入,得到构建好的数据模型,可以满足不同业务需求,提高了模型的开发效率,增强开发的可维护性。
在另一个实施例中,如图9所示,提供了一种ICD文件生成方法,以该方法应用于终端为例进行说明,包括以下步骤:
步骤902,根据电池管理系统的层次结构,建立与访问点和逻辑设备关联的信息表,得到预设数据模型。
步骤904,根据电池管理系统的业务需求,获取逻辑设备的关联信息和访问点的属性信息。
步骤906,将关联信息和属性信息写入预设数据模型中,得到构建好的数据模型。
步骤908,对数据模型的各信息表进行遍历,确定数据成员数量和输出对象。
步骤910,根据数据成员数量确定对应数量的目标执行程序。
其中,在根据数据成员确定对应数量的目标执行程序时,需要确定数据成员的类型,若存在不同类型的数据成员,则需要确定各类型数据成员的目标执行程序。
在一个实施例中,根据数据成员数量确定对应数量的目标执行程序包括:根据数据成员的类型对数据成员进行分类,得到各类型的数据成员的数量;将各类数据成员数量中的最大值确定为目标执行程序的数量;分别为每类数据成员,根据目标执行程序的数量确定对应数量的目标执行程序。例如,数据成员的类型包括整型int、浮点型float和double类型,分别确定不同类型的数据集中数据成员数量的最大值,将各类数据成员数量中的最大值确定为目标执行程序的数量。准确地确定各类数据成员所需的目标执行程序,避免不能对所有的数 据成员进行实例化,导致生成的ICD文件不准确。
步骤912,调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。
在一个实施例中,如图10所示,为一个实施例中ICD文件的相关示意图,ICD文件包括数据集名称、描述、访问点、逻辑设备、逻辑节点和数据成员数量,数据集名称包括数据集1、数据集2、数据集3、数据集4、数据集5、数据集N,访问点为S1,逻辑设备包括LD0、BC1和BC2逻辑节点为LLN0。数据集2对应的数据集成员有数据集成员1、数据集成员2、数据集成员3、数据集成员4、数据集成员5,每个数据集成员存在对应的参引、描述和短地址。例如,在电池管理系统中,描述可以n簇n个单体的温度。
步骤914,当检测到更新请求时,根据更新请求携带的更新业务需求对构建好的数据模型进行更新。
其中,更新是根据电池管理系统业务层的需求确定的,更新可以是对数据模型中要使用的访问点、逻辑设备或逻辑节点进行更新。
以下为一个应用场景中ICD文件生成方法的框架,如图11所示,具体通过根据电池管理系统中电池系统的层级关系,与IEC61850模型中各逻辑层级进行映射,得到电池系统的建模层次结构;根据建模层次结构确定电池管理系统的访问点,确定电池管理系统逻辑设备以及逻辑节点。基于确定的访问点、逻辑设备以及逻辑设备关联的逻辑节点建立多个具有映射关系的信息表。
建立电池管理系统的访问点表,访问点表的字段包括访问点名称、是否使能、访问点的类型和参引;建立物理端口表;物理端口表的字段包括是否使能、访问点ID、端口ID;建立逻辑设备表,逻辑设备表的字段包括逻辑设备名称、参引、是否使能、所属访问点和关键字;建立逻辑节点表,逻辑节点表的字段包括逻辑节点名称、参引、是否使能、所属访问点和关键字;建立数据集分组表,数据集分组表的字段包括数据集名称、描述和控制块名称;构建状态表,状态表的字段包括状态名称、逻辑设备、逻辑节点、参引、复合成员、时标和数据集分组;构建数据表,数据表的字段包括数据表名称、逻辑设备、逻辑节点、参引类型、复合成员和数据集分组,得到预设数据模型。
根据电池管理系统的业务需求,在访问点表中写入访问点名称,对访问点名称对应的访问点进行使能,写入访问点的类型和参引;在物理端口表中,写入端口ID、对端口ID对应的端口进行使能,写入与端口ID关联的访问点ID;在逻辑设备表中写入逻辑设备名称,参引,对要用的逻辑设备进行使能,关联逻辑设备所属的访问点和与执行程序对应的关键字;在逻辑节点表中写入逻辑节点的名称,逻辑节点的参引和所属访问点,与执行程序对应的关键字,对要使用的逻辑节点进行使能;在数据集分组表中,写入数据集的名称,描述和控制块的名称,建立关键字;在状态表中写入电池管理系统的总状态信号、各电池单体的状态信号名称,关联对应的逻辑设备,关联对应的逻辑节点,参引,关联对应的数据集分组;在数据表中,写入电池管理系统的总数据信号、各电池单体的数据信号名称,关联对应的逻辑设备,关联对应的逻辑节点,参引,关联对应的数据集分组,得到构建好的数据模型。
遍历状态表和数据表,将根据访问点表、物理端口表、逻辑设备表、逻辑节点表、数据集分组表、状态表和数据表的信息写入内存。从状态表和数据表中确定数据集中数据成员数量最多的数据集,根据数据集中数据成员数量最多的数据集从IEC61850模板库中获取对应数量的模板,调用模板对要要输出的对象和数据成员进行实例化,生成电池系统模型的ICD文件。
上述ICD文件生成方法中,通过预先构建好电池管理系统的数据模型,通过遍历预先构建好的数据模型,确定数据成员数量和输出对象,通过执行数据成员数量对应的目标执行程序对输出对象进行实例化,得到模型实例化内容,根据模型实例化内容自动生成电池系统模型的ICD文件,不需要以人工方式生成,降低了错误率以及确保了模型ICD文件的准确性。当检测到更新请求时,根据更新请求携带的更新业务需求对构建好的数据模型进行更新,适应不同的应用场景,提高了数据模型的通用性。
应该理解的是,虽然如上的各实施例所涉及的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,如上的各实施例所涉及的流程图中的至少一部 分步骤可以包括多个步骤或者多个阶段,这些步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤中的步骤或者阶段的至少一部分轮流或者交替地执行。
基于同样的发明构思,本申请实施例还提供了一种用于实现上述所涉及的ICD文件生成方法的ICD文件生成装置。该装置所提供的解决问题的实现方案与上述方法中所记载的实现方案相似,故下面所提供的一个或多个ICD文件生成装置实施例中的具体限定可以参见上文中对于ICD文件生成方法的限定,在此不再赘述。
在一个实施例中,如图12所示,提供了一种ICD文件生成装置,包括:数据遍历模块1202、匹配模块1204和文件生成模块1206,其中:
数据遍历模块1202,用于获取包括电池系统模型的层次结构对应的多个信息表的数据模型;多个信息表之间具有映射关系;对数据模型的各信息表进行遍历,确定数据成员数量和输出对象。
匹配模块1204,用于根据数据成员数量确定对应数量的目标执行程序。
文件生成模块1206,用于调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。
上述ICD文件生成装置中,在生成模型ICD文件时,通过遍历预先构建好的数据模型,确定要实例化的目标对象;根据设置好的目标执行程序对目标对象进行实例化,不需要人工方式逐个对目标对象进行实例化,降低了错误率以及确保了模型ICD文件的准确性。通过目标执行程序对输出对象进行实例化,自动生成模型ICD文件,避免程序和ICD之间的耦合和提高了程序的通用性。
在另一个实施例中,提供了一种ICD文件生成装置,除包括数据遍历模块1202、匹配模块1204和文件生成模块1206之外,还包括:数据链路确定模块和更新模块,其中:
数据遍历模块1202还用于根据数据模型的各信息表之间的映射关系遍历第一信息表中已使能的目标信息;
根据已使能的目标信息对数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象。
数据遍历模块1202还用于遍历数据模型的状态表中与已使能的目标信息映射的第一关联信息,根据第一关联信息确定输出状态;
遍历数据模型中的数据表中与已使能的目标信息映射的第二关联信息,根据第二关联信息确定数据成员和数据成员数量。
数据链路确定模块,用于确定输出对象的映射数据链路;输出对象包括状态和数据成员。
文件生成模块1206,还用于基于映射数据链路,调用目标执行程序对输出对象进行实例化,生成电池系统模型的ICD文件。
文件生成模块1206,还用于基于从访问点映射到每个状态或数据成员的映射数据链路,调用目标执行程序,写入输出对象的地址以及确定与输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成电池系统模型的ICD文件。
文件生成模块1206,还用于基于从每个状态或数据成员映射到访问点的映射数据链路,调用目标执行程序,写入输出对象的地址以及确定与输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成电池系统模型的ICD文件。
更新模块,用于当检测到更新请求时,根据更新请求携带的更新业务需求对构建好的数据模型进行更新。
上述ICD文件生成装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。
在一个实施例中,提供了一种计算机设备,该计算机设备可以是终端,其内部结构图可以如图13所示。该计算机设备包括通过系统总线连接的处理器、存储器、通信接口、显示屏和输入装置。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。 该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的通信接口用于与外部的终端进行有线或无线方式的通信,无线方式可通过WIFI、移动蜂窝网络、NFC(近场通信)或其他技术实现。该计算机程序被处理器执行时以实现一种ICD文件生成方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。
本领域技术人员可以理解,图13中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,还提供了一种计算机设备,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
在一个实施例中,提供了一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现上述各方法实施例中的步骤。
需要说明的是,本申请所涉及和数据(包括但不限于用于分析的数据、存储的数据、展示的数据等),均为经用户授权或者经过各方充分授权的信息和数据。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、数据库或其它介质的任何引用,均可包括非易失性和易失性存储器中的至少一 种。非易失性存储器可包括只读存储器(Read-Only Memory,ROM)、磁带、软盘、闪存、光存储器、高密度嵌入式非易失性存储器、阻变存储器(ReRAM)、磁变存储器(Magnetoresistive Random Access Memory,MRAM)、铁电存储器(Ferroelectric Random Access Memory,FRAM)、相变存储器(Phase Change Memory,PCM)、石墨烯存储器等。易失性存储器可包括随机存取存储器(Random Access Memory,RAM)或外部高速缓冲存储器等。作为说明而非局限,RAM可以是多种形式,比如静态随机存取存储器(Static Random Access Memory,SRAM)或动态随机存取存储器(Dynamic Random Access Memory,DRAM)等。本申请所提供的各实施例中所涉及的数据库可包括关系型数据库和非关系型数据库中至少一种。非关系型数据库可包括基于区块链的分布式数据库等,不限于此。本申请所提供的各实施例中所涉及的处理器可为通用处理器、中央处理器、图形处理器、数字信号处理器、可编程逻辑器、基于量子计算的数据处理逻辑器等,不限于此。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。
Claims (12)
- 一种ICD文件生成方法,其特征在于,所述方法包括:获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象;根据所述数据成员数量确定对应数量的目标执行程序;调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
- 根据权利要求1所述的方法,其特征在于,对所述数据模型的各信息表进行遍历,确定数据成员数量和输出对象,包括:根据所述数据模型的各信息表之间的映射关系遍历第一信息表中已使能的目标信息;根据所述已使能的目标信息对所述数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象。
- 根据权利要求2所述的方法,其特征在于,所述根据所述已使能的目标信息对所述数据模型中的第二信息表进行遍历,确定数据成员数量和输出对象,包括:遍历所述数据模型的状态表中与所述已使能的目标信息映射的第一关联信息,根据所述第一关联信息确定输出的状态;遍历所述数据模型中的数据表中与所述已使能的目标信息映射的第二关联信息,根据所述第二关联信息确定数据成员和数据成员数量。
- 根据权利要求3所述的方法,其特征在于,所述调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:确定所述输出对象的映射数据链路;所述输出对象包括状态和数据成员;基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
- 根据权利要求4所述的方法,其特征在于,所述基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的 ICD文件,包括:基于从访问点映射到每个状态或数据成员的映射数据链路,调用所述目标执行程序,写入所述输出对象的地址以及确定与所述输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成所述电池系统模型的ICD文件。
- 根据权利要求4所述的方法,其特征在于,所述基于所述映射数据链路,调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件,包括:基于从每个状态或数据成员映射到访问点的映射数据链路,调用所述目标执行程序,写入所述输出对象的地址以及确定与所述输出对象关联的访问点、数据集名称、逻辑设备和逻辑节点,生成所述电池系统模型的ICD文件。
- 根据权利要求1或3所述的方法,其特征在于,所述根据所述数据成员数量确定对应数量的目标执行程序,包括:根据所述数据成员的类型对所述数据成员进行分类,得到各类型的数据成员的数量;将各类所述数据成员数量中的最大值确定为目标执行程序的数量;分别为每类数据成员,根据目标执行程序的数量确定对应数量的目标执行程序。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:当检测到更新请求时,根据所述更新请求携带的更新业务需求对所述数据模型进行更新。
- 一种ICD文件生成装置,其特征在于,所述装置包括:数据模型确定模块,用于获取包括电池系统模型的层次结构对应的多个信息表的数据模型;所述多个信息表之间具有映射关系;数据遍历模块,用于对所述数据模型的目标信息表进行遍历,确定数据成员数量和输出对象;匹配模块,用于根据所述数据成员数量确定对应数量的目标执行程序;文件生成模块,用于调用所述目标执行程序对所述输出对象进行实例化,生成所述电池系统模型的ICD文件。
- 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至8中任一项所述的方法的步骤。
- 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。
- 一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现权利要求1至8中任一项所述的方法的步骤。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/113915 WO2024040382A1 (zh) | 2022-08-22 | 2022-08-22 | Icd文件生成方法、装置、计算机设备和存储介质 |
CN202280094045.2A CN118922832A (zh) | 2022-08-22 | 2022-08-22 | Icd文件生成方法、装置、计算机设备和存储介质 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2022/113915 WO2024040382A1 (zh) | 2022-08-22 | 2022-08-22 | Icd文件生成方法、装置、计算机设备和存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2024040382A1 true WO2024040382A1 (zh) | 2024-02-29 |
Family
ID=90012092
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/113915 WO2024040382A1 (zh) | 2022-08-22 | 2022-08-22 | Icd文件生成方法、装置、计算机设备和存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN118922832A (zh) |
WO (1) | WO2024040382A1 (zh) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104037916A (zh) * | 2014-07-07 | 2014-09-10 | 太原理工大学 | 一种基于iec61850的电动车充电站监控系统 |
CN104156448A (zh) * | 2014-08-14 | 2014-11-19 | 广东易事特电源股份有限公司 | 基于iec61850客户端/服务器数据交换模型 |
US20180150528A1 (en) * | 2016-11-27 | 2018-05-31 | Amazon Technologies, Inc. | Generating data transformation workflows |
CN108108403A (zh) * | 2017-12-08 | 2018-06-01 | 国家电网公司 | 基于间隔层设备逻辑组态可视化平台系统及其构建方法 |
CN109388903A (zh) * | 2018-10-26 | 2019-02-26 | 贵州电网有限责任公司 | 基于iec61850标准的实时仿真平台建模仿真方法 |
CN113094355A (zh) * | 2021-04-09 | 2021-07-09 | 国网浙江省电力有限公司电力科学研究院 | 基于国产化通信协议的模型实例化方法、装置、设备及介质 |
CN114924737A (zh) * | 2022-03-18 | 2022-08-19 | 中国第一汽车股份有限公司 | 一种电池管理系统源代码集成测试方法、测试装置及电子设备 |
-
2022
- 2022-08-22 CN CN202280094045.2A patent/CN118922832A/zh active Pending
- 2022-08-22 WO PCT/CN2022/113915 patent/WO2024040382A1/zh active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104037916A (zh) * | 2014-07-07 | 2014-09-10 | 太原理工大学 | 一种基于iec61850的电动车充电站监控系统 |
CN104156448A (zh) * | 2014-08-14 | 2014-11-19 | 广东易事特电源股份有限公司 | 基于iec61850客户端/服务器数据交换模型 |
US20180150528A1 (en) * | 2016-11-27 | 2018-05-31 | Amazon Technologies, Inc. | Generating data transformation workflows |
CN108108403A (zh) * | 2017-12-08 | 2018-06-01 | 国家电网公司 | 基于间隔层设备逻辑组态可视化平台系统及其构建方法 |
CN109388903A (zh) * | 2018-10-26 | 2019-02-26 | 贵州电网有限责任公司 | 基于iec61850标准的实时仿真平台建模仿真方法 |
CN113094355A (zh) * | 2021-04-09 | 2021-07-09 | 国网浙江省电力有限公司电力科学研究院 | 基于国产化通信协议的模型实例化方法、装置、设备及介质 |
CN114924737A (zh) * | 2022-03-18 | 2022-08-19 | 中国第一汽车股份有限公司 | 一种电池管理系统源代码集成测试方法、测试装置及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN118922832A (zh) | 2024-11-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102855271B (zh) | 一种多版本电网模型的存储与可追溯管理方法 | |
CN102750406B (zh) | 一种基于模型集和差异模型的电网模型多版本管理方法 | |
US10467250B2 (en) | Data model design collaboration using semantically correct collaborative objects | |
WO2020048238A1 (zh) | 针对电能表软件的模块化设计方法 | |
CN105405070A (zh) | 一种分布式内存电网系统构建方法 | |
US20140229223A1 (en) | Integrated erp based planning | |
CN108280562A (zh) | 一种规范电力企业数据资源的方法 | |
CN109189947A (zh) | 一种基于关系数据库的移动数据知识图谱自动构建方法 | |
CN108182055A (zh) | 一种scd文件的信息对象化建模方法及系统 | |
WO2024040382A1 (zh) | Icd文件生成方法、装置、计算机设备和存储介质 | |
CN103294878A (zh) | 一种基于 dms 的多维电网模型统一建模方法 | |
CN115759574A (zh) | 物资的存储方法、装置、计算机设备和存储介质 | |
CN114816341A (zh) | 一种产品全生命周期模型构建方法及系统 | |
Cheng et al. | [Retracted] Efficient Management and Application of Human Resources Based on Genetic Ant Colony Algorithm | |
CN114896252A (zh) | 物联网设备的查询方法、装置、计算机设备及存储介质 | |
CN112001008A (zh) | 一种基于Revit软件的桥梁施工监测数据集成管理系统 | |
CN112115235A (zh) | 实体属性数据查询及配置方法、装置、服务器 | |
CN112163049B (zh) | 将业务对象映射为数据实体的方法及装置 | |
CN116932540B (zh) | 变电工程数据管理方法、装置、计算机设备和存储介质 | |
Bao et al. | Data switching method among heterogeneous power information system databases based on knowledge graph | |
US20240086495A1 (en) | Auto-Triage Failures In A/B Testing | |
Mao | Construction of Intelligent Vocational Management Information System with R Programming | |
Li | Construction of College Students' Course Management Information System Based on Data Center and Parallel Model | |
Li et al. | Practice and Key Technologies of Integration and Sharing of Water Resources and Data Resources Based on Cloud Computing | |
Chao et al. | Research on Network Resource Data Correlation Analysis Method Based on NoSQL Structure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22955933 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 202280094045.2 Country of ref document: CN |