CN115134417B - IEC 61850-based data conversion method and device for primary equipment of power system - Google Patents
IEC 61850-based data conversion method and device for primary equipment of power system Download PDFInfo
- Publication number
- CN115134417B CN115134417B CN202210548191.XA CN202210548191A CN115134417B CN 115134417 B CN115134417 B CN 115134417B CN 202210548191 A CN202210548191 A CN 202210548191A CN 115134417 B CN115134417 B CN 115134417B
- Authority
- CN
- China
- Prior art keywords
- data
- opc
- mms
- mapping
- identified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J13/00—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
- H02J13/00006—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J13/00—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
- H02J13/00006—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
- H02J13/00028—Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment involving the use of Internet protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02E—REDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
- Y02E60/00—Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/16—Electric power substations
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Communication Control (AREA)
Abstract
本发明公开了一种基于IEC61850的电力系统一次设备的数据转换方法及装置,实时采集电力系统一次设备的采样数据;将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;将所述OPC UA数据映射为MMS数据,以此基于OPC UA Over TSN的技术将SV数据转换为IEC61850能够识别的MMS数据,且不破坏原始IEC61850的传输架构,为SV数据的采集与传输提供了保证,并提高了MMS数据的执行效率,从而提高SV数据的传输实时性与可靠性。
The invention discloses a data conversion method and device for primary equipment of the power system based on IEC61850, which collects sampling data of primary equipment of the power system in real time; and maps the sampling data from the OPC UA standard that complies with the application layer to the data link layer that complies with it. The TSN standard is used to obtain OPC UA data; the OPC UA data is mapped to MMS data, and the SV data is converted into MMS data that can be recognized by IEC61850 based on the OPC UA Over TSN technology without destroying the original IEC61850 transmission architecture. It provides guarantee for the collection and transmission of SV data and improves the execution efficiency of MMS data, thus improving the real-time and reliability of SV data transmission.
Description
技术领域Technical field
本发明涉及数据转换技术领域,尤其涉及一种基于IEC61850的电力系统一次设备的数据转换方法和装置。The present invention relates to the technical field of data conversion, and in particular to a data conversion method and device for primary equipment of a power system based on IEC61850.
背景技术Background technique
随着工业互联网技术的进步,越来越多的智能化仪器仪表被应用到电力系统的生产运行过程,进一步促进了电力系统一次设备与智能仪器仪表的融合,使得电力系统与智能仪器仪表之间的信息交互的频率逐渐升高,同样导致了上层系统对来自不同生产厂商的智能化终端设备的语义理解提出更高的要求。OPCUA(OLE for Process Control UnifiedArchitecture,用于过程控制的对象连接与嵌入)作为应用层的标准,它通过一个通用的API,为数据提供一个标准的数据传输接口,保证了横向设备间的数据互认以及纵向系统间的数据互通,打破了传统的自动化金字塔传输模式,实现了由现场层、控制层、管理层到云端的数据互连、互通以及语义的互操作。With the advancement of industrial Internet technology, more and more intelligent instruments and meters are being applied to the production and operation process of the power system, further promoting the integration of primary equipment and intelligent instruments and meters in the power system, making the connection between the power system and intelligent instruments and meters The frequency of information interaction is gradually increasing, which also leads to the upper-layer system to put forward higher requirements for the semantic understanding of intelligent terminal devices from different manufacturers. OPCUA (OLE for Process Control Unified Architecture, used for object connection and embedding of process control) is a standard for the application layer. It provides a standard data transmission interface for data through a common API, ensuring mutual recognition of data between horizontal devices. As well as data interoperability between vertical systems, it breaks the traditional automation pyramid transmission model and realizes data interconnection, interoperability and semantic interoperability from the field layer, control layer, management layer to the cloud.
同时,考虑到OPCUA本身对时间并不敏感,为了保证数据流传输的确定性,需要在数据链路层引入时间敏感网络(Time Sensitive Network,TSN),TSN包含了一个IEEE802.1协议簇,可以为数据的传输提供确定性的时隙和时延,包含时钟同步、资源预留和确定性调度等,保证了电力系统内部控制指令的实时性和确定性。At the same time, considering that OPCUA itself is not time-sensitive, in order to ensure the certainty of data stream transmission, a Time Sensitive Network (TSN) needs to be introduced at the data link layer. TSN includes an IEEE802.1 protocol cluster, which can Provide deterministic time slots and delays for data transmission, including clock synchronization, resource reservation and deterministic scheduling, etc., ensuring the real-time and deterministic nature of internal control instructions in the power system.
目前,电力系统间的通信是基于IEC61850标准,并提供了三层两网的架构,但是在引入OPC UA Over TSN的智能传感终端后,并没有考虑隔离层所接收到的数据无法转换为能被站控层识别的MMS数据的问题。At present, communication between power systems is based on the IEC61850 standard and provides a three-layer, two-network architecture. However, after the introduction of OPC UA Over TSN smart sensing terminals, it was not considered that the data received by the isolation layer cannot be converted into energy. Problem with MMS data recognized by the station control layer.
发明内容Contents of the invention
本发明所要解决的技术问题是:提供一种基于IEC61850的电力系统一次设备的数据转换方法和装置,能够提高采样数据的传输实时性与可靠性。The technical problem to be solved by the present invention is to provide a data conversion method and device for primary equipment of a power system based on IEC61850, which can improve the real-time and reliability of the transmission of sampled data.
为了解决上述技术问题,本发明采用的一种技术方案为:In order to solve the above technical problems, a technical solution adopted by the present invention is:
一种基于IEC61850的电力系统一次设备的数据转换方法,包括步骤:A data conversion method for primary equipment in power systems based on IEC61850, including the steps:
采集电力系统一次设备的采样数据;Collect sampling data from primary equipment in the power system;
将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;Map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data;
将所述OPC UA数据映射为MMS数据。The OPC UA data is mapped to MMS data.
为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above technical problems, another technical solution adopted by the present invention is:
一种基于IEC61850的电力系统一次设备的数据转换装置,包括:A data conversion device for power system primary equipment based on IEC61850, including:
数据采集模块,用于采集电力系统一次设备的采样数据;Data acquisition module, used to collect sampling data of primary equipment in the power system;
第一映射模块,用于将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;The first mapping module is used to map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data;
第二映射模块,用于将所述OPC UA数据映射为MMS数据。The second mapping module is used to map the OPC UA data into MMS data.
进一步地,所述第一映射模块进一步用于:Further, the first mapping module is further used to:
根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;Encapsulate the sampled data according to the OPC UA standard of the application layer to obtain encapsulated sampled data;
根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据。The encapsulated sampling data is encapsulated according to the TSN standard of the data link layer to obtain OPC UA data.
进一步地,所述第二映射模块进一步用于:Further, the second mapping module is further used to:
对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据;Perform protocol identification on the OPC UA data to obtain the identified OPC UA data;
对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;Perform integrity verification on the identified OPC UA data to obtain the first verification result;
判断所述第一校验结果是否为数据完整,若是,则对所述识别后的OPC UA数据进行协议转换,得到MMS数据。Determine whether the first verification result is data complete, and if so, perform protocol conversion on the identified OPC UA data to obtain MMS data.
进一步地,所述第二映射模块进一步用于对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据包括:Further, the second mapping module is further used to perform protocol identification on the OPC UA data. The identified OPC UA data includes:
对所述OPC UA数据进行完整性校验,得到第二校验结果;Perform integrity verification on the OPC UA data to obtain a second verification result;
判断所述第二校验结果是否为数据完整,若是,则对所述OPC UA数据进行协议检测,得到检测结果;Determine whether the second verification result is data complete, and if so, perform protocol detection on the OPC UA data to obtain a detection result;
判断所述检测结果是否为检测通过,若是,则将所述OPC UA数据存储至缓存队列,并对所述OPC UA数据进行解码,得到识别后的OPC UA数据。Determine whether the detection result is that the detection has passed. If so, store the OPC UA data in a cache queue and decode the OPC UA data to obtain the identified OPC UA data.
进一步地,所述第二映射模块进一步用于对所述识别后的OPC UA数据进行协议转换,得到MMS数据包括:Further, the second mapping module is further used to perform protocol conversion on the identified OPC UA data, and the obtained MMS data includes:
将所述识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据;The identified OPC UA data is encapsulated according to the MMS data format to obtain MMS data;
对所述MMS数据进行完整性校验,得到第三校验结果;Perform integrity verification on the MMS data to obtain a third verification result;
判断所述第三校验结果是否为数据完整,若是,则缓存所述MMS数据。Determine whether the third verification result is data complete, and if so, cache the MMS data.
本发明的有益效果在于:将采集到的电力系统一次设备的采样数据(SimpleValue,SV)从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据,将OPC UA数据映射为MMS数据,以此基于OPC UA Over TSN的技术将SV数据转换为IEC61850能够识别的MMS数据,且不破坏原始IEC61850的传输架构,为SV数据的采集与传输提供了保证,并提高了MMS数据的执行效率,从而提高SV数据的传输实时性与可靠性。The beneficial effect of the present invention is to map the collected sampling data (SimpleValue, SV) of the primary equipment of the power system from the OPC UA standard in compliance with the application layer to the TSN standard in compliance with the data link layer, obtain OPC UA data, and convert the OPC UA The data is mapped to MMS data. This technology based on OPC UA Over TSN converts SV data into MMS data that can be recognized by IEC61850 without destroying the original IEC61850 transmission architecture. It provides guarantee for the collection and transmission of SV data and improves the efficiency of SV data collection and transmission. MMS data execution efficiency, thereby improving the real-time and reliability of SV data transmission.
附图说明Description of the drawings
图1为本发明实施例的一种基于IEC61850的电力系统一次设备的数据转换方法的步骤流程图;Figure 1 is a step flow chart of a data conversion method for primary equipment in a power system based on IEC61850 according to an embodiment of the present invention;
图2为本发明实施例的一种基于IEC61850的电力系统一次设备的数据转换装置的结构示意图;Figure 2 is a schematic structural diagram of a data conversion device for power system primary equipment based on IEC61850 according to an embodiment of the present invention;
图3为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的电力系统结构示意图;Figure 3 is a schematic structural diagram of the power system in the data conversion method for primary equipment of the power system based on IEC61850 according to the embodiment of the present invention;
图4为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的OPCUA地址空间示意图;Figure 4 is a schematic diagram of the OPCUA address space in the data conversion method for power system primary equipment based on IEC61850 according to the embodiment of the present invention;
图5为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的SV数据封装示意图;Figure 5 is a schematic diagram of SV data encapsulation in the data conversion method for power system primary equipment based on IEC61850 according to an embodiment of the present invention;
图6为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的OPCUA Over TSN的映射示意图;Figure 6 is a schematic diagram of OPCUA Over TSN mapping in the data conversion method for power system primary equipment based on IEC61850 according to an embodiment of the present invention;
图7为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的OPCUA数据到MMS数据转换示意图;Figure 7 is a schematic diagram of OPCUA data to MMS data conversion in the data conversion method for power system primary equipment based on IEC61850 according to the embodiment of the present invention;
图8为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的数据转换模块示意图;Figure 8 is a schematic diagram of the data conversion module in the data conversion method for primary equipment of a power system based on IEC61850 according to an embodiment of the present invention;
图9为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的协议识别单元示意图;Figure 9 is a schematic diagram of the protocol identification unit in the data conversion method for power system primary equipment based on IEC61850 according to an embodiment of the present invention;
图10为本发明实施例基于IEC61850的电力系统一次设备的数据转换方法中的协议转换单元示意图。FIG. 10 is a schematic diagram of a protocol conversion unit in the data conversion method for primary equipment of a power system based on IEC61850 according to an embodiment of the present invention.
具体实施方式Detailed ways
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to describe the technical content, achieved objectives and effects of the present invention in detail, the following description will be made in conjunction with the embodiments and the accompanying drawings.
请参照图1,本发明实施例提供了一种基于IEC61850的电力系统一次设备的数据转换方法,包括步骤:Referring to Figure 1, an embodiment of the present invention provides a data conversion method for primary equipment in a power system based on IEC61850, including the steps:
采集电力系统一次设备的采样数据;Collect sampling data from primary equipment in the power system;
将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;Map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data;
将所述OPC UA数据映射为MMS数据。The OPC UA data is mapped to MMS data.
从上述描述可知,本发明的有益效果在于:将采集到的电力系统一次设备的采样数据(Simple Value,SV)从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据,将OPC UA数据映射为MMS数据,以此基于OPC UA Over TSN的技术将SV数据转换为IEC61850能够识别的MMS数据,且不破坏原始IEC61850的传输架构,为SV数据的采集与传输提供了保证,并提高了MMS数据的执行效率,从而提高SV数据的传输实时性与可靠性。As can be seen from the above description, the beneficial effect of the present invention is to map the collected sampling data (Simple Value, SV) of the primary equipment of the power system from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer, and obtain the OPC UA data, maps OPC UA data to MMS data, and uses OPC UA Over TSN technology to convert SV data into MMS data that can be recognized by IEC61850 without destroying the original IEC61850 transmission architecture, providing information for the collection and transmission of SV data. This guarantees and improves the execution efficiency of MMS data, thus improving the real-time and reliability of SV data transmission.
进一步地,所述将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据包括:Further, mapping the sampled data from the OPC UA standard conforming to the application layer to the TSN standard conforming to the data link layer to obtain the OPC UA data includes:
根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;Encapsulate the sampled data according to the OPC UA standard of the application layer to obtain encapsulated sampled data;
根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据。The encapsulated sampling data is encapsulated according to the TSN standard of the data link layer to obtain OPC UA data.
由上述描述可知,根据应用层的OPC UA标准对SV数据进行封装,根据数据链路层的TSN标准对封装后的SV数据再次封装,得到OPC UA数据,数据链路层TSN标准包含了IEEE802.1协议簇,能够为SV数据提供时钟同步、资源预留与确定性调度,以此有效实现了SV数据到OPC UA数据的转换,便于后续将其转换成MMS数据。As can be seen from the above description, the SV data is encapsulated according to the OPC UA standard of the application layer, and the encapsulated SV data is re-encapsulated according to the TSN standard of the data link layer to obtain OPC UA data. The data link layer TSN standard includes IEEE802. 1 protocol cluster, which can provide clock synchronization, resource reservation and deterministic scheduling for SV data, thereby effectively realizing the conversion of SV data to OPC UA data and facilitating subsequent conversion into MMS data.
进一步地,所述将所述OPC UA数据映射为MMS数据包括:Further, mapping the OPC UA data to MMS data includes:
对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据;Perform protocol identification on the OPC UA data to obtain the identified OPC UA data;
对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;Perform integrity verification on the identified OPC UA data to obtain the first verification result;
判断所述第一校验结果是否为数据完整,若是,则对所述识别后的OPC UA数据进行协议转换,得到MMS数据。Determine whether the first verification result is data complete, and if so, perform protocol conversion on the identified OPC UA data to obtain MMS data.
由上述描述可知,OPC UA数据到MMS数据的映射需要经过协议识别、数据校验和协议转换,以此实现了数据转换,提升了IEC61850标准应用于电站中的数据传输实时性,且能够保证数据交互的可靠性,有效地避免了数据交互过程中因拥塞或协议不互认导致的数据丢弃或重传。As can be seen from the above description, the mapping of OPC UA data to MMS data requires protocol identification, data verification and protocol conversion. This achieves data conversion, improves the real-time performance of data transmission in power plants using the IEC61850 standard, and ensures data The reliability of interaction effectively avoids data discarding or retransmission caused by congestion or protocol non-recognition during the data interaction process.
进一步地,所述对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据包括:Further, performing protocol identification on the OPC UA data, and obtaining the identified OPC UA data includes:
对所述OPC UA数据进行完整性校验,得到第二校验结果;Perform integrity verification on the OPC UA data to obtain a second verification result;
判断所述第二校验结果是否为数据完整,若是,则对所述OPC UA数据进行协议检测,得到检测结果;Determine whether the second verification result is data complete, and if so, perform protocol detection on the OPC UA data to obtain a detection result;
判断所述检测结果是否为检测通过,若是,则将所述OPC UA数据存储至缓存队列,并对所述OPC UA数据进行解码,得到识别后的OPC UA数据。Determine whether the detection result is that the detection has passed. If so, store the OPC UA data in a cache queue and decode the OPC UA data to obtain the identified OPC UA data.
由上述描述可知,在对OPC UA数据进行协议识别的过程中,需要经过数据校验、协议检测和数据解码,以此保证了数据的可靠性。It can be seen from the above description that in the process of protocol identification of OPC UA data, data verification, protocol detection and data decoding are required to ensure the reliability of the data.
进一步地,所述对所述识别后的OPC UA数据进行协议转换,得到MMS数据包括:Further, performing protocol conversion on the identified OPC UA data to obtain MMS data includes:
将所述识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据;The identified OPC UA data is encapsulated according to the MMS data format to obtain MMS data;
对所述MMS数据进行完整性校验,得到第三校验结果;Perform integrity verification on the MMS data to obtain a third verification result;
判断所述第三校验结果是否为数据完整,若是,则缓存所述MMS数据。Determine whether the third verification result is data complete, and if so, cache the MMS data.
由上述描述可知,将识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据,对MMS数据进行完整性校验,当校验结果为数据完整,则缓存MMS数据,实现了可靠、有效地数据转换,以便于站控层的智能监测终端能够对MMS数据进行分析和处理,从而提高SV数据的传输实时性与可靠性。As can be seen from the above description, the identified OPC UA data is encapsulated according to the MMS data format to obtain the MMS data, and the integrity of the MMS data is verified. When the verification result is that the data is complete, the MMS data is cached, achieving reliable and effective Ground data conversion allows the intelligent monitoring terminal at the station control layer to analyze and process MMS data, thereby improving the real-time and reliability of SV data transmission.
请参照图2,一种基于IEC61850的电力系统一次设备的数据转换装置,包括:Please refer to Figure 2, a data conversion device for power system primary equipment based on IEC61850, including:
数据采集模块,用于采集电力系统一次设备的采样数据;Data acquisition module, used to collect sampling data of primary equipment in the power system;
第一映射模块,用于将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;The first mapping module is used to map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data;
第二映射模块,用于将所述OPC UA数据映射为MMS数据。The second mapping module is used to map the OPC UA data into MMS data.
从上述描述可知,本发明的有益效果在于:将采集到的电力系统一次设备的采样数据(Simple Value,SV)从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据,将OPC UA数据映射为MMS数据,以此基于OPC UA Over TSN的技术将SV数据转换为IEC61850能够识别的MMS数据,且不破坏原始IEC61850的传输架构,为SV数据的采集与传输提供了保证,并提高了MMS数据的执行效率,从而提高SV数据的传输实时性与可靠性。As can be seen from the above description, the beneficial effect of the present invention is to map the collected sampling data (Simple Value, SV) of the primary equipment of the power system from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer, and obtain the OPC UA data, maps OPC UA data to MMS data, and uses OPC UA Over TSN technology to convert SV data into MMS data that can be recognized by IEC61850 without destroying the original IEC61850 transmission architecture, providing information for the collection and transmission of SV data. This guarantees and improves the execution efficiency of MMS data, thus improving the real-time and reliability of SV data transmission.
进一步地,所述第一映射模块进一步用于:Further, the first mapping module is further used to:
根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;Encapsulate the sampled data according to the OPC UA standard of the application layer to obtain encapsulated sampled data;
根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据。The encapsulated sampling data is encapsulated according to the TSN standard of the data link layer to obtain OPC UA data.
由上述描述可知,根据应用层的OPC UA标准对SV数据进行封装,根据数据链路层的TSN标准对封装后的SV数据再次封装,得到OPC UA数据,数据链路层TSN标准包含了IEEE802.1协议簇,能够为SV数据提供时钟同步、资源预留与确定性调度,以此有效实现了SV数据到OPC UA数据的转换,便于后续将其转换成MMS数据。As can be seen from the above description, the SV data is encapsulated according to the OPC UA standard of the application layer, and the encapsulated SV data is re-encapsulated according to the TSN standard of the data link layer to obtain OPC UA data. The data link layer TSN standard includes IEEE802. 1 protocol cluster, which can provide clock synchronization, resource reservation and deterministic scheduling for SV data, thereby effectively realizing the conversion of SV data to OPC UA data and facilitating subsequent conversion into MMS data.
进一步地,所述第二映射模块进一步用于:Further, the second mapping module is further used to:
对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据;Perform protocol identification on the OPC UA data to obtain the identified OPC UA data;
对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;Perform integrity verification on the identified OPC UA data to obtain the first verification result;
判断所述第一校验结果是否为数据完整,若是,则对所述识别后的OPC UA数据进行协议转换,得到MMS数据。Determine whether the first verification result is data complete, and if so, perform protocol conversion on the identified OPC UA data to obtain MMS data.
由上述描述可知,OPC UA数据到MMS数据的映射需要经过协议识别、数据校验和协议转换,以此实现了数据转换,提升了IEC61850标准应用于电站中的数据传输实时性,且能够保证数据交互的可靠性,有效地避免了数据交互过程中因拥塞或协议不互认导致的数据丢弃或重传。As can be seen from the above description, the mapping of OPC UA data to MMS data requires protocol identification, data verification and protocol conversion. This achieves data conversion, improves the real-time performance of data transmission in power plants using the IEC61850 standard, and ensures data The reliability of interaction effectively avoids data discarding or retransmission caused by congestion or protocol non-recognition during the data interaction process.
进一步地,所述第二映射模块进一步用于对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据包括:Further, the second mapping module is further used to perform protocol identification on the OPC UA data. The identified OPC UA data includes:
对所述OPC UA数据进行完整性校验,得到第二校验结果;Perform integrity verification on the OPC UA data to obtain a second verification result;
判断所述第二校验结果是否为数据完整,若是,则对所述OPC UA数据进行协议检测,得到检测结果;Determine whether the second verification result is data complete, and if so, perform protocol detection on the OPC UA data to obtain a detection result;
判断所述检测结果是否为检测通过,若是,则将所述OPC UA数据存储至缓存队列,并对所述OPC UA数据进行解码,得到识别后的OPC UA数据。Determine whether the detection result is that the detection has passed. If so, store the OPC UA data in a cache queue and decode the OPC UA data to obtain the identified OPC UA data.
由上述描述可知,在对OPC UA数据进行协议识别的过程中,需要经过数据校验、协议检测和数据解码,以此保证了数据的可靠性。It can be seen from the above description that in the process of protocol identification of OPC UA data, data verification, protocol detection and data decoding are required to ensure the reliability of the data.
进一步地,所述第二映射模块进一步用于对所述识别后的OPC UA数据进行协议转换,得到MMS数据包括:Further, the second mapping module is further used to perform protocol conversion on the identified OPC UA data, and the obtained MMS data includes:
将所述识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据;The identified OPC UA data is encapsulated according to the MMS data format to obtain MMS data;
对所述MMS数据进行完整性校验,得到第三校验结果;Perform integrity verification on the MMS data to obtain a third verification result;
判断所述第三校验结果是否为数据完整,若是,则缓存所述MMS数据。Determine whether the third verification result is data complete, and if so, cache the MMS data.
由上述描述可知,将识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据,对MMS数据进行完整性校验,当校验结果为数据完整,则缓存MMS数据,实现了可靠、有效地数据转换,以便于站控层的智能监测终端能够对MMS数据进行分析和处理,从而提高SV数据的传输实时性与可靠性。As can be seen from the above description, the identified OPC UA data is encapsulated according to the MMS data format to obtain the MMS data, and the integrity of the MMS data is verified. When the verification result is that the data is complete, the MMS data is cached, achieving reliable and effective Ground data conversion allows the intelligent monitoring terminal at the station control layer to analyze and process MMS data, thereby improving the real-time and reliability of SV data transmission.
本发明上述基于IEC61850的电力系统一次设备的数据转换方法及装置能够适用于电力系统一次设备中,以下通过具体实施方式进行说明:The above-mentioned data conversion method and device for power system primary equipment based on IEC61850 of the present invention can be applied to power system primary equipment. The specific implementation will be described below:
实施例一Embodiment 1
请参照图1、图3-图10,如图3所示,IEC61850为一个三层两网的通信架构,包含过程层、隔离层和站控层,两层间由通信网通信,过程层由电力系统一次设备组成,为实际运行的电力系统;隔离层由基于OPC UA标准的传感器和互感器组成,用于完成数据的采集和控制指令的下发;站控层由监控主机构成,用于完成对电力系统的实时监控;其中,隔离层和过程层之间包含有大量量测信息合并单元和用于完成指令下发的智能终端;站控层和隔离层之间包含监测装置;在实际运行过程中,电力系统一次设备将电流、电压和频率等采样数据经合并单元处到达隔离层,站控层通过监测隔离层的数据信息经由隔离层下达控制指令,最终由智能终端执行对电力系统一次设备的操作;Please refer to Figure 1, Figure 3 to Figure 10. As shown in Figure 3, IEC61850 is a three-layer, two-network communication architecture, including the process layer, isolation layer and station control layer. The two layers are communicated by the communication network, and the process layer is The power system is composed of primary equipment, which is the actual operating power system; the isolation layer is composed of sensors and transformers based on the OPC UA standard, which is used to complete data collection and issue control instructions; the station control layer is composed of a monitoring host for Complete real-time monitoring of the power system; among them, a large number of measurement information merging units and intelligent terminals used to complete command issuance are included between the isolation layer and the process layer; a monitoring device is included between the station control layer and the isolation layer; in actual During operation, the primary equipment of the power system sends sampling data such as current, voltage and frequency to the isolation layer through the merging unit. The station control layer monitors the data information of the isolation layer and issues control instructions through the isolation layer. Finally, the intelligent terminal executes the control of the power system. An operation of the equipment;
本实施例的一种基于IEC61850的电力系统一次设备的数据转换方法,包括步骤:A data conversion method for primary equipment in a power system based on IEC61850 in this embodiment includes the steps:
S1、采集电力系统一次设备的采样数据;S1. Collect sampling data of primary equipment in the power system;
具体的,使用搭载OPC UA标准的智能传感器实时采集过程层上的电力系统一次设备的采样数据(Simple Value,SV),该SV数据包括设备属性、设备标参、电压、电流、保护动作等信息,根据SV数据经由合并单元处在隔离层构建OPC UA地址空间,生成电力一次设备的信息模型,如图4所示,表征了配置在电力系统一次设备侧的OPC UA传感器实时采集的电压、电流和频率等信息;由于OPC UA是位于应用层的标准,IEC61850中的SV数据位于数据链路层,所以需要将OPC UA数据进行重新封装,如图4所示,以发电机为例,包含有设备属性,如:电压、电流、频率等,这些均是由OPC UA传感器所采集的动态SV数据;此外,也包含有设备功能,如:开始、停止、制动等静态SV数据;Specifically, smart sensors equipped with the OPC UA standard are used to collect the sampling data (Simple Value, SV) of the power system primary equipment at the process layer in real time. The SV data includes equipment attributes, equipment standard parameters, voltage, current, protection actions and other information. , based on the SV data, the OPC UA address space is constructed at the isolation layer through the merging unit, and the information model of the power primary equipment is generated. As shown in Figure 4, it represents the voltage and current collected in real time by the OPC UA sensor configured on the primary equipment side of the power system. and frequency and other information; since OPC UA is a standard located at the application layer, and the SV data in IEC61850 is located at the data link layer, the OPC UA data needs to be re-encapsulated, as shown in Figure 4, taking the generator as an example, including Device attributes, such as voltage, current, frequency, etc., are dynamic SV data collected by OPC UA sensors; in addition, device functions also include static SV data such as start, stop, braking, etc.
S2、将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据,如图5和图6所示;S2. Map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data, as shown in Figures 5 and 6;
其中,所述映射包括直接映射和间接映射,所述直接映射为数据从应用层不经过传输层和网络层而直接映射至数据链路层,所述间接映射为数据从应用层经传输层和网络层再映射至数据链路层,本实施例中,所述映射为直接映射;Wherein, the mapping includes direct mapping and indirect mapping. The direct mapping is that the data is mapped directly from the application layer to the data link layer without passing through the transport layer and the network layer. The indirect mapping is that the data is mapped from the application layer through the transport layer and the network layer. The network layer is then mapped to the data link layer. In this embodiment, the mapping is direct mapping;
具体的,将所述采样数据从符合应用层的OPC UA标准直接映射至符合数据链路层的TSN标准,得到OPC UA数据,如图6所示,为了保证隔离层到站控层之间数据传输的实时性,在数据链路层引入了TSN技术,具体包括:Specifically, the sampled data is directly mapped from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data. As shown in Figure 6, in order to ensure that the data between the isolation layer and the station control layer For real-time transmission, TSN technology is introduced at the data link layer, including:
S21、根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;S21. Encapsulate the sampling data according to the OPC UA standard of the application layer to obtain the encapsulated sampling data;
具体的,在SV数据的首尾添加应用层的OPC UA标准的头部尾部,得到封装后的SV数据;Specifically, the header and tail of the OPC UA standard of the application layer are added to the beginning and end of the SV data to obtain the encapsulated SV data;
S22、根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据;S22. Encapsulate the encapsulated sampling data according to the TSN standard of the data link layer to obtain OPC UA data;
具体的,在封装后的SV数据的首尾添加数据链路层的TSN标准的头部尾部,得到OPC UA数据,并将OPC UA数据传输至数据转换模块;Specifically, add the header and tail of the TSN standard of the data link layer to the beginning and end of the encapsulated SV data to obtain OPC UA data, and transmit the OPC UA data to the data conversion module;
其中,所述传输包括与所述直接映射对应的有线传输以及与所述间接映射对应的无线传输,所述有线传输适用于直接映射方式中的TCP/IP模式,所述无线传输适用于间接映射方式中的UDP/IP模式,本实施例中,所述传输为有线传输;Wherein, the transmission includes wired transmission corresponding to the direct mapping and wireless transmission corresponding to the indirect mapping. The wired transmission is suitable for the TCP/IP mode in the direct mapping mode, and the wireless transmission is suitable for the indirect mapping. In the UDP/IP mode, in this embodiment, the transmission is wired transmission;
S3、将所述OPC UA数据映射为MMS数据,如图7和图8所示:S3. Map the OPC UA data to MMS data, as shown in Figure 7 and Figure 8:
S3由所述数据转换模块执行;所述OPCUA数据映射为MMS数据为5层映射,二者均在ISO/OSI的应用层,保证了对原IEC61850的数据兼容性;S3 is executed by the data conversion module; the OPCUA data mapping to MMS data is a 5-layer mapping, both of which are in the application layer of ISO/OSI, ensuring data compatibility with the original IEC61850;
其中,所述OPC UA数据由应用层、传输层、网络层、数据链路层和物理层组成;所述MMS数据由应用层、传输层、网络层、数据链路层和物理层组成,如图7所示,首先,位于应用层的OPC UA数据经过传输层后在原OPC UA数据头部进行TCP封装,并经由网络层IP封装、数据链路层TSN封装,最终到达物理层;其次,数据经过数据转换模块转换为能被IEC61850识别的MMS数据;最终,依次经由物理层、数据链路层、网络层、传输层达到应用层,MMS数据将被识别和解析,具体包括:Wherein, the OPC UA data consists of application layer, transport layer, network layer, data link layer and physical layer; the MMS data consists of application layer, transport layer, network layer, data link layer and physical layer, such as As shown in Figure 7, first, the OPC UA data located at the application layer passes through the transport layer and is TCP encapsulated in the original OPC UA data header, and then passes through the network layer IP encapsulation and data link layer TSN encapsulation, and finally reaches the physical layer; secondly, the data The data conversion module converts it into MMS data that can be recognized by IEC61850; finally, it reaches the application layer through the physical layer, data link layer, network layer, and transport layer. The MMS data will be identified and parsed, including:
S31、对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据,具体包括:S31. Perform protocol identification on the OPC UA data, and obtain the identified OPC UA data, which specifically includes:
S311、对所述OPC UA数据进行完整性校验,得到第二校验结果;S311. Perform integrity verification on the OPC UA data to obtain the second verification result;
具体的,采用CRC校验方式对所述OPC UA数据进行完整性校验,得到第二校验结果,具体包括:Specifically, the CRC verification method is used to perform integrity verification on the OPC UA data to obtain the second verification result, which specifically includes:
S3111、使用CRC多项式确定所述OPC UA数据的补充校验位;S3111. Use CRC polynomial to determine the supplementary check bit of the OPC UA data;
S3112、将所述OPC UA数据与所述CRC多项式进行求余运算得到CRC校验序列,并将所述CRC校验序列填充至所述补充校验位,得到填充后的OPC UA数据;S3112. Perform a remainder operation on the OPC UA data and the CRC polynomial to obtain a CRC check sequence, and fill the CRC check sequence into the supplementary check bits to obtain the filled OPC UA data;
S3113、判断所述补充校验位是否为0,若是,则确定第二校验结果为数据完整,若否,则确定第二校验结果为数据不完整;S3113. Determine whether the supplementary check bit is 0. If so, determine that the second check result is that the data is complete. If not, determine that the second check result is that the data is incomplete;
S312、判断所述第二校验结果是否为数据完整,若是,则执行S3121;若否,则执行S3122;S312. Determine whether the second verification result is complete data. If yes, execute S3121; if not, execute S3122;
S3121、对所述OPC UA数据进行协议检测,得到检测结果;S3121. Perform protocol detection on the OPC UA data and obtain detection results;
具体的,判断所述OPC UA数据是否为OPC UA数据,若是,则确定检测结果为检测通过,若否,则确定检测结果为检测不通过;Specifically, determine whether the OPC UA data is OPC UA data. If so, determine that the detection result is that the detection passed; if not, determine that the detection result is that the detection failed;
S3122、将数据不完整的所述OPC UA数据丢弃,并从OPC UA地址空间重新获取OPCUA数据后返回执行S311;S3122. Discard the OPC UA data with incomplete data, re-obtain the OPC UA data from the OPC UA address space and return to execute S311;
S313、判断所述检测结果是否为检测通过,若是,则执行S3131;若否,则执行S3132;S313. Determine whether the detection result is that the detection has passed. If yes, execute S3131; if not, execute S3132;
S3131、将所述OPC UA数据存储至缓存队列,并对所述OPC UA数据进行解码,得到识别后的OPC UA数据,解码能够解析出OPC UA数据所传递的数据信息;S3131. Store the OPC UA data in the cache queue, and decode the OPC UA data to obtain the identified OPC UA data. The decoding can parse out the data information transmitted by the OPC UA data;
S3132、过滤检测不通过的所述OPC UA数据,并保持监测状态,等待新数据到达;S3132. Filter the OPC UA data that fails the detection, and maintain the monitoring state, waiting for the arrival of new data;
S32、对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;S32. Perform integrity verification on the identified OPC UA data to obtain the first verification result;
具体的,判断所述识别后的OPC UA数据是否完整,若是,则确定第一校验结果为数据完整,若否,则确定第一校验结果为数据不完整;Specifically, determine whether the identified OPC UA data is complete; if so, determine that the first verification result is that the data is complete; if not, determine that the first verification result is that the data is incomplete;
S33、判断所述第一校验结果是否为数据完整,若是,则执行S331;若否,则执行S332;S33. Determine whether the first verification result is complete data. If yes, execute S331; if not, execute S332;
S331、对所述识别后的OPC UA数据进行协议转换,得到MMS数据,具体包括:S331. Perform protocol conversion on the identified OPC UA data to obtain MMS data, which specifically includes:
S3311、将所述识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据;S3311. Encapsulate the identified OPC UA data according to the MMS data format to obtain MMS data;
S3312、对所述MMS数据进行完整性校验,得到第三校验结果;S3312. Perform integrity verification on the MMS data to obtain the third verification result;
具体的,判断所述MMS数据的数据信息与所述识别后的OPC UA数据的数据信息是否一致,若是,则确定第三校验结果为数据完整,若否,则确定第三校验结果为数据不完整;Specifically, it is determined whether the data information of the MMS data is consistent with the data information of the identified OPC UA data. If so, it is determined that the third verification result is that the data is complete. If not, it is determined that the third verification result is incomplete data;
S3313、判断所述第三校验结果是否为数据完整,若是,则缓存所述MMS数据;若否,则返回执行S311;S3313. Determine whether the third verification result is that the data is complete. If so, cache the MMS data; if not, return to S311;
S332、返回执行S311;S332. Return to execution S311;
如图8所示,数据转换模块包括协议识别单元、数据校验单元和协议转换单元,S31实现协议识别,S32实现数据校验,S331实现协议转换;如图9所示,协议识别单元包括数据校验、协议检测和数据解码,S311实现协议识别单元的数据校验,S3121实现协议识别单元的协议检测,S3131实现协议识别单元的数据解码;如图10所示,协议转换单元包括数据编码、数据校验和协议转换,S3311实现了协议转换单元的数据编码,S3312实现了协议转换单元的数据校验,S3313实现了协议转换单元的协议转换;As shown in Figure 8, the data conversion module includes a protocol identification unit, a data verification unit and a protocol conversion unit. S31 implements protocol identification, S32 implements data verification, and S331 implements protocol conversion. As shown in Figure 9, the protocol identification unit includes data Verification, protocol detection and data decoding, S311 implements data verification of the protocol identification unit, S3121 implements protocol detection of the protocol identification unit, and S3131 implements data decoding of the protocol identification unit; as shown in Figure 10, the protocol conversion unit includes data encoding, Data verification and protocol conversion, S3311 implements the data encoding of the protocol conversion unit, S3312 implements the data verification of the protocol conversion unit, and S3313 implements the protocol conversion of the protocol conversion unit;
当得到MMS数据后,即可在站控层被监控主机解析,以便于控制指令的精准下达,控制指令经过隔离层到达过程层,用于电力系统一次设备的运行调整,采用OPC UA OverTSN技术可以为隔离层和站控层之间的交互提供更好的实时性和准确性。After the MMS data is obtained, it can be parsed by the monitoring host at the station control layer to facilitate the accurate issuance of control instructions. The control instructions reach the process layer through the isolation layer and are used to adjust the operation of primary equipment in the power system. OPC UA OverTSN technology can be used Provide better real-time performance and accuracy for the interaction between the isolation layer and the station control layer.
实施例二Embodiment 2
请参照图2,本实施例的一种基于IEC61850的电力系统一次设备的数据转换装置,包括:Please refer to Figure 2. In this embodiment, a data conversion device for power system primary equipment based on IEC61850 includes:
数据采集模块,用于采集电力系统一次设备的采样数据;Data acquisition module, used to collect sampling data of primary equipment in the power system;
第一映射模块,用于将所述采样数据从符合应用层的OPC UA标准映射至符合数据链路层的TSN标准,得到OPC UA数据;The first mapping module is used to map the sampled data from the OPC UA standard that complies with the application layer to the TSN standard that complies with the data link layer to obtain OPC UA data;
第二映射模块,用于将所述OPC UA数据映射为MMS数据;The second mapping module is used to map the OPC UA data into MMS data;
在一种可选的实施方式中,所述第一映射模块进一步用于:In an optional implementation, the first mapping module is further used to:
根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;Encapsulate the sampled data according to the OPC UA standard of the application layer to obtain encapsulated sampled data;
根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据;Encapsulate the encapsulated sampled data according to the TSN standard of the data link layer to obtain OPC UA data;
在一种可选的实施方式中,所述第二映射模块进一步用于:In an optional implementation, the second mapping module is further used to:
对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据;Perform protocol identification on the OPC UA data to obtain the identified OPC UA data;
对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;Perform integrity verification on the identified OPC UA data to obtain the first verification result;
判断所述第一校验结果是否为数据完整,若是,则对所述识别后的OPC UA数据进行协议转换,得到MMS数据;Determine whether the first verification result is data complete, and if so, perform protocol conversion on the identified OPC UA data to obtain MMS data;
在一种可选的实施方式中,所述第二映射模块进一步用于对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据包括:In an optional implementation, the second mapping module is further used to perform protocol identification on the OPC UA data. The identified OPC UA data includes:
对所述OPC UA数据进行完整性校验,得到第二校验结果;Perform integrity verification on the OPC UA data to obtain a second verification result;
判断所述第二校验结果是否为数据完整,若是,则对所述OPC UA数据进行协议检测,得到检测结果;Determine whether the second verification result is data complete, and if so, perform protocol detection on the OPC UA data to obtain a detection result;
判断所述检测结果是否为检测通过,若是,则将所述OPC UA数据存储至缓存队列,并对所述OPC UA数据进行解码,得到识别后的OPC UA数据;Determine whether the detection result is a passed detection, and if so, store the OPC UA data in a cache queue, and decode the OPC UA data to obtain the identified OPC UA data;
在一种可选的实施方式中,所述第二映射模块进一步用于对所述识别后的OPC UA数据进行协议转换,得到MMS数据包括:In an optional implementation, the second mapping module is further configured to perform protocol conversion on the identified OPC UA data, and the obtained MMS data includes:
将所述识别后的OPC UA数据按照MMS数据格式进行封装,得到MMS数据;The identified OPC UA data is encapsulated according to the MMS data format to obtain MMS data;
对所述MMS数据进行完整性校验,得到第三校验结果;Perform integrity verification on the MMS data to obtain a third verification result;
判断所述第三校验结果是否为数据完整,若是,则缓存所述MMS数据。Determine whether the third verification result is data complete, and if so, cache the MMS data.
综上所述,本发明提供的一种基于IEC61850的电力系统一次设备的数据转换方法及装置,采集电力系统一次设备的采样数据;根据应用层的OPC UA标准对所述采样数据进行封装,得到封装后的采样数据;根据数据链路层的TSN标准对所述封装后的采样数据进行封装,得到OPC UA数据,能够为SV数据提供时钟同步、资源预留与确定性调度,以此有效实现了SV数据到OPC UA数据的转换;对所述OPC UA数据进行协议识别,得到识别后的OPC UA数据;对所述识别后的OPC UA数据进行完整性校验,得到第一校验结果;当第一校验结果为数据完整时,对所述识别后的OPC UA数据进行协议转换,得到MMS数据,以此基于OPC UAOver TSN的技术将SV数据转换为IEC61850能够识别的MMS数据,且不破坏原始IEC61850的传输架构,为SV数据的采集与传输提供了保证,并提高了MMS数据的执行效率,从而提高SV数据的传输实时性与可靠性。In summary, the present invention provides a data conversion method and device for primary equipment of a power system based on IEC61850, which collects sampling data of primary equipment of a power system; the sampling data is encapsulated according to the OPC UA standard of the application layer to obtain Encapsulated sampling data; encapsulate the encapsulated sampling data according to the TSN standard of the data link layer to obtain OPC UA data, which can provide clock synchronization, resource reservation and deterministic scheduling for SV data, thereby effectively achieving Convert SV data to OPC UA data; perform protocol identification on the OPC UA data to obtain the identified OPC UA data; perform integrity verification on the identified OPC UA data to obtain the first verification result; When the first verification result is that the data is complete, protocol conversion is performed on the identified OPC UA data to obtain MMS data, and the SV data is converted into MMS data that can be recognized by IEC61850 based on OPC UAOver TSN technology, and no Destroying the transmission architecture of the original IEC61850 provides guarantee for the collection and transmission of SV data, and improves the execution efficiency of MMS data, thus improving the real-time and reliability of SV data transmission.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。本发明实施例中的方案可以采用各种计算机语言实现,例如,面向对象的程序设计语言Java和直译式脚本语言JavaScript等。Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The solutions in the embodiments of the present invention can be implemented using various computer languages, such as the object-oriented programming language Java and the literal scripting language JavaScript.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in one process or multiple processes of the flowchart and/or one block or multiple blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are apparent. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the invention. In this way, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies, the present invention is also intended to include these modifications and variations.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210548191.XA CN115134417B (en) | 2022-05-18 | 2022-05-18 | IEC 61850-based data conversion method and device for primary equipment of power system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210548191.XA CN115134417B (en) | 2022-05-18 | 2022-05-18 | IEC 61850-based data conversion method and device for primary equipment of power system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115134417A CN115134417A (en) | 2022-09-30 |
CN115134417B true CN115134417B (en) | 2023-11-17 |
Family
ID=83376722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210548191.XA Active CN115134417B (en) | 2022-05-18 | 2022-05-18 | IEC 61850-based data conversion method and device for primary equipment of power system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115134417B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101478549B1 (en) * | 2013-08-30 | 2015-01-02 | 한국전력공사 | Apparatus and method for data transformation of between substation and scada |
CN111193632A (en) * | 2018-11-14 | 2020-05-22 | 比亚迪股份有限公司 | Data acquisition and monitoring control system |
CN111831700A (en) * | 2019-04-16 | 2020-10-27 | Abb瑞士股份有限公司 | System and method for interoperable communication of automation system components |
CN112166429A (en) * | 2018-06-11 | 2021-01-01 | Abb瑞士股份有限公司 | System and method with reduced complexity in integration of exposed information models with applications |
CN112822276A (en) * | 2021-01-09 | 2021-05-18 | 中国电力科学研究院有限公司 | Substation control layer communication method and system for transformer substation, electronic equipment and storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10862756B2 (en) * | 2018-03-22 | 2020-12-08 | Citrix Systems, Inc. | Systems and methods for inventory discovery in a network |
-
2022
- 2022-05-18 CN CN202210548191.XA patent/CN115134417B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101478549B1 (en) * | 2013-08-30 | 2015-01-02 | 한국전력공사 | Apparatus and method for data transformation of between substation and scada |
CN112166429A (en) * | 2018-06-11 | 2021-01-01 | Abb瑞士股份有限公司 | System and method with reduced complexity in integration of exposed information models with applications |
CN111193632A (en) * | 2018-11-14 | 2020-05-22 | 比亚迪股份有限公司 | Data acquisition and monitoring control system |
CN111831700A (en) * | 2019-04-16 | 2020-10-27 | Abb瑞士股份有限公司 | System and method for interoperable communication of automation system components |
CN112822276A (en) * | 2021-01-09 | 2021-05-18 | 中国电力科学研究院有限公司 | Substation control layer communication method and system for transformer substation, electronic equipment and storage medium |
Non-Patent Citations (3)
Title |
---|
基于设备网络服务框架的微网监控构架与自适应服务方法;胥芳;杨永科;谭大鹏;艾青林;胡克用;;电力系统自动化(19);全文 * |
智能电网调度控制技术国际标准体系研究;辛耀中;;电网技术(01);全文 * |
边缘网关节点中的OPC UA-TSN融合技术研究;万浩;《中国优秀硕士学位论文全文数据库 信息科技辑》;第24-32页 * |
Also Published As
Publication number | Publication date |
---|---|
CN115134417A (en) | 2022-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102984757B (en) | Gateway data processing method and gateway data processing device for Internet of Things | |
CN108965484A (en) | A kind of transmission method of internet of things data, system and terminal | |
CN103532668A (en) | Method for ensuring integrity and correctness of TCP (transmission control protocol) communication data | |
CN111294235B (en) | Data processing method, device, gateway and readable storage medium | |
CN110650192B (en) | A new energy monitoring system based on Beidou short message communication | |
CN108848025A (en) | Gateway, internet of things equipment and system, register method and information processing method | |
CN114362885A (en) | Internet of things data transmission method, device, equipment and medium | |
CN112153079A (en) | A reference gateway device and method for industrial Internet gateway testing | |
CN110290208A (en) | Home Security Communication Platform and Method Based on Remote Internet of Things | |
CN113993000A (en) | Transmission method, operation system and transmission equipment for field monitoring data | |
CN115134417B (en) | IEC 61850-based data conversion method and device for primary equipment of power system | |
CN114786255B (en) | Positioning method, device and equipment of electric power internet of things terminal and readable storage medium | |
CN108429729B (en) | Data Communication Isolation System and Isolation Method in Industrial Big Data Acquisition Environment | |
CN114979296A (en) | Internet of things communication method, related terminal and storage medium | |
CN113660286A (en) | Communication protocol fusion method combined with Kalman filtering data fusion and related equipment | |
CN109067922A (en) | A kind of data transmission method and device | |
CN118714202A (en) | A method, system, device and storage medium for communication protocol data conversion | |
CN118714203A (en) | Protocol conversion method based on universal protocol conversion collector of Internet of Things data | |
CN118612161A (en) | Transmission method and microprocessor for odor data collected by bionic electronic nose | |
CN114125032B (en) | Edge protocol data processing method and system | |
CN102916977B (en) | Method and device for processing TCP (Transmission Control Protocol) request | |
CN209057232U (en) | Semantics-based IoT Smart Gateway | |
CN114679501A (en) | Cloud gateway implementation method and device for MODBUS-MQTT protocol | |
CN115150436A (en) | System and method for realizing serial communication between Internet of things sensing module and MCU | |
CN107528888B (en) | A kind of substation intelligent electronic equipment and its data sending and receiving method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |