Ammeter data management method and system based on IEC-61850
By adopting IEC-61850-based meter data management methods and systems in smart power meters, the compatibility problem between equipment of different manufacturers is solved, efficient communication interaction between smart meters and management systems is achieved, and the intelligence and efficiency of the power grid is improved.
Patent Information
- Application Number
- CN202510226388.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-27
- Publication Date
- 2025-06-17
AI Technical Summary
In the deployment scenario of smart substations, existing smart energy meters have compatibility problems between equipment of different manufacturers, which limits the overall efficiency of the substation.
Using the IEC-61850-based meter data management method and system, the data based on the IEC-61850 communication protocol is received and sent through the Ethernet transceiver module to improve the interoperability and compatibility of the meter.
It realizes efficient communication interaction between smart meter and management system, improves the intelligence and efficiency of the power grid basic setting network, and provides technical support for building a more intelligent and efficient power system.
Smart Images

Figure CN120165725A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of power automation, and particularly to a method and system for managing electric meter data based on IEC-61850. Background Art
[0002] The IEC-61850 international standard is a globally applicable standard in the field of power line system automation formulated by the International Electrotechnical Commission (IEC). It defines a complete set of communication protocol systems and models, enabling communication between devices of different manufacturers.
[0003] Currently, the smart electric meters on the market mainly adopt traditional communication protocols such as DL / T 645 and Modbus. Although these protocols can meet the data transmission requirements to a certain extent, there are still deficiencies in terms of interoperability and standardization. Especially in the deployment scenario of smart substations, the compatibility problem between devices produced by different manufacturers becomes increasingly prominent, restricting the overall efficiency of the substation. Summary of the Invention
[0004] The present invention aims to at least solve one of the technical problems in the above technologies to some extent. For this reason, an object of the present invention is to propose a method for managing electric meter data based on IEC-61850, which can improve the interoperability of electric meter data and provide technical support for building a more intelligent and efficient power system.
[0005] A second object of the present invention is to propose a system for managing electric meter data based on IEC-61850, which can improve the interoperability of electric meter data and provide technical support for building a more intelligent and efficient power system.
[0006] To achieve the above object, a first aspect embodiment of the present invention proposes a method for managing electric meter data based on IEC-61850, including:
[0007] An Ethernet transceiver module receives a request instruction sent by a management system based on the IEC-61850 communication protocol;
[0008] The Ethernet transceiver module parses the request instruction, extracts the data packet therein, and sends it to the electric meter;
[0009] The electric meter parses the data packet according to the IEC-61850 communication protocol to determine a service instruction;
[0010] The electric meter processes the service instruction, obtains corresponding service data, and encapsulates the service data into a processing result according to the IEC-61850 communication protocol and then forwards it to the Ethernet transceiver module;
[0011] The Ethernet transceiver module assembles the processing result based on the TCP / IP communication protocol and feeds it back to the management system.
[0012] According to the method for managing electric meter data based on IEC-61850 according to an embodiment of the present invention, an electric meter can receive and send data based on the IEC-61850 communication protocol through an externally connected Ethernet transceiver module; the electric meter can parse and process data requests based on the IEC-61850 communication protocol inside, and encapsulate the corresponding obtained service data according to the IEC-61850 communication protocol and then feed it back to the management system through the Ethernet transceiver module. By improving the interoperability and compatibility of the electric meter, communication interaction can be realized between the smart electric meter and the management system based on the IEC-61850 communication protocol; furthermore, the smart electric meter can be connected to the power grid infrastructure network based on the IEC-61850 communication protocol, which can provide technical support for building a more intelligent and efficient power system.
[0013] In addition, for a method for managing electric meter data based on IEC-61850 proposed according to the above embodiment of the present invention, the following additional technical features may also be included:
[0014] Optionally, the Ethernet transceiver module parses the request instruction, extracts the data packet therein and sends it to the electric meter, including:
[0015] The Ethernet transceiver module parses the request instruction, obtains the destination MAC address, destination IP address, destination TCP port number and message parameters;
[0016] The Ethernet transceiver module respectively determines whether the destination MAC address, the destination IP address and the TCP port number match its own MAC address, its own IP address and its own TCP port number;
[0017] If all match, the data packet in the message parameters is extracted and sent to the electric meter;
[0018] If one does not match, the request instruction is not processed.
[0019] Optionally, the electric meter parses the data packet according to the IEC-61850 communication protocol to determine the service instruction, including:
[0020] The electric meter layer-by-layer parses the data packet through the IEC-61850 protocol stack to obtain the frame payload data of the application layer;
[0021] The IEC-61850 protocol stack obtains the MMS service and object from the frame payload data of the application layer;
[0022] The IEC-61850 protocol stack analyzes the MMS services and objects according to the SCSM mapping rules to obtain service instructions including actual services and objects.
[0023] Optionally, the electric meter analyzes the data packet layer by layer through the IEC-61850 protocol stack to obtain the frame payload data of the application layer, including:
[0024] The IEC-61850 protocol stack determines the frame type based on the frame header of the data packet, and uses the parsing service function corresponding to the determined frame type to parse the frame payload data of the data packet to obtain the upper-layer data packet;
[0025] Determine the frame type based on the frame header of the upper-layer data packet, and use the parsing service function corresponding to the determined frame type to parse the frame payload data of the upper-layer data packet to obtain the upper-upper-layer data packet;
[0026] Parse layer by layer upward until the application layer data packet is obtained, and obtain the frame payload data of the application layer.
[0027] Optionally, the electric meter processes the service instructions, obtains the corresponding service data, and encapsulates the service data into a processing result according to the IEC-61850 communication protocol and forwards it to the Ethernet transceiver module, including:
[0028] The IEC-61850 protocol stack outputs the service instructions to the metering unit;
[0029] The metering unit returns the corresponding service data to the IEC-61850 protocol stack according to the service instructions;
[0030] The IEC-61850 protocol stack converts the service data into service data in MMS format according to the SCSM mapping rules, and frames the service data in MMS format according to the IEC-61850 communication protocol to obtain a processing result;
[0031] The IEC-61850 protocol stack forwards the processing result to the Ethernet transceiver module.
[0032] Optionally, it further includes:
[0033] Construct an electric energy meter data model according to the IEC-61850 communication protocol and store it in the IEC-61850 protocol stack and the management system of the electric meter respectively;
[0034] The electric energy meter data model includes a relational binary tree, where each node in the relational binary tree corresponds to an IEC-61850 data object, including node information parameters, a left child node pointer, a right child node pointer, and an SCSM numerical mapping mechanism; among them, the node information parameters include a node name and a data type; the data type includes a logical device, a logical node, a data object, and a data attribute;
[0035] The data type of the main node in the relational binary tree is a logical device. The data type of the next-level right child node pointed to by the right child node pointer of each node is the same as the data type of this node. The next-level left child node pointed to by the left child node pointer of each node is the sub-IEC-61850 data object that should exist under the data type defined for this node in the IEC-61850 communication protocol;
[0036] The IEC-61850 protocol stack and the management system perform data conversion according to the electric energy meter data model.
[0037] Optionally, for the node in the electric energy meter data model with a data type of logical device, its SCSM numerical mapping mechanism includes the specific electric energy meter device and the MMS representation of its corresponding IEC-61850 communication protocol; for the node with a data type of logical node, its SCSM numerical mapping mechanism includes the set of electric energy data items and the MMS representation of its corresponding IEC-61850 communication protocol; for the node with a data type of data object, its SCSM numerical mapping mechanism includes the specific data item and the MMS representation of its corresponding IEC-61850 communication protocol; for the node with a data type of data attribute, its SCSM numerical mapping mechanism includes the attribute of the specific data item and the MMS representation of its corresponding IEC-61850 communication protocol; among them, the attribute of the specific data item includes a numerical type and a numerical dimension.
[0038] To achieve the above object, the second aspect embodiment of the present invention proposes an electric meter data management system based on IEC-61850, including a management system and an electric meter; the electric meter is externally connected to an Ethernet transceiver module; the electric meter is connected to the management system based on the IEC-61850 communication protocol through the Ethernet transceiver module;
[0039] The Ethernet transceiver module is configured to be able to execute the steps performed by the Ethernet transceiver module in the above-mentioned electric meter data management method based on IEC-61850;
[0040] The electric meter is configured to be able to execute the steps performed by the electric meter in the above-mentioned electric meter data management method based on IEC-61850.
[0041] In addition, a power meter data management system based on IEC-61850 according to the above embodiments of the present invention may further have the following additional technical features:
[0042] Optionally, the Ethernet transceiver module is a TCP module.
[0043] Optionally, the power meter includes an IEC-61850 protocol stack and a metering unit; the IEC-61850 protocol stack is respectively connected to the Ethernet transceiver module and the metering unit;
[0044] The IEC-61850 protocol stack is configured to be able to implement the steps performed by the IEC-61850 protocol stack in the above-mentioned power meter data management method based on IEC-61850;
[0045] The metering unit is configured to be able to implement the steps performed by the metering unit in the above-mentioned power meter data management method based on IEC-61850.
[0046] According to the power meter data management system based on IEC-61850 of the embodiment of the present invention, the power meter can receive and send data based on the IEC-61850 communication protocol through an external Ethernet transceiver module; the power meter can parse and process data requests based on the IEC-61850 communication protocol inside, and encapsulate the corresponding obtained service data according to the IEC-61850 communication protocol and then feedback it to the management system through the Ethernet transceiver module. By improving the interoperability and compatibility of the power meter, it is realized that the smart power meter and the management system can communicate and interact based on the IEC-61850 communication protocol; furthermore, it is realized that the smart power meter can be connected to the power grid infrastructure network based on the IEC-61850 communication protocol, which can provide technical support for building a more intelligent and efficient power system. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is a schematic architecture diagram of a power meter data management system based on IEC-61850 according to an embodiment of the present invention;
[0048] Figure 2 It is a schematic flowchart of a power meter data management method based on IEC-61850 according to an embodiment of the present invention;
[0049] Figure 3 It is a schematic diagram of the hierarchical structure of the data packet received by the power meter in the embodiment of the present invention;
[0050] Figure 4 It is a schematic flowchart of a power meter data management method based on IEC-61850 provided by another embodiment of the present invention;
[0051] Figure 5 This is a schematic diagram of the relational binary tree structure of the electric energy meter data model in the embodiments of the present invention. Detailed implementation manners
[0052] The embodiments of the present invention will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention, and should not be construed as limiting the present invention.
[0053] The electric meter receives and sends data based on the IEC-61850 communication protocol through an externally connected Ethernet transceiver module; the electric meter can parse and process data requests based on the IEC-61850 communication protocol, and encapsulate the corresponding obtained service data according to the IEC-61850 communication protocol and then feedback it to the management system.
[0054] To better understand the above technical solutions, the exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.
[0055] To better understand the above technical solutions, the above technical solutions will be described in detail below in combination with the accompanying drawings of the specification and specific implementation manners.
[0056] Glossary:
[0057] SCADA management system. The SCADA system is a data acquisition and monitoring system, which is a widely used monitoring system in intelligent substations. In the present invention, it refers to the requester or client that communicates with the electric meter system. The SACDA system will initiate a communication request through the IEC-61850 protocol to establish communication with the electric meter.
[0058] T-Profile partial data. T-Profile is a term specifically referred to in the IEC-61850 protocol, used to refer to one of the lower four layers in the OSI seven-layer model, namely the transport layer, physical layer, data link layer, and physical layer. That is, the transport layer, physical layer, data link layer, and physical layer can all be collectively referred to as T-Profile, which is a category division. T-Profile partial data is the communication data of the above layers.
[0059] OSI, that is, the OSI reference model, defines a seven-layer architecture for network interconnection from bottom to top: physical layer, data link layer, network layer, transport layer, session layer, presentation layer, and application layer;
[0060] Frame payload data, that is, PDU data, refers to the basic unit for data transfer in each layer of the OSI hierarchical network, which contains information from the upper layer and information appended by the entity of the current layer. In the present invention, it can be simply understood as the actual data content to be transmitted in each layer.
[0061] The SCSM mapping rule, that is, the specific communication service mapping rule, is used for the mapping of objects and services to MMS (Manufacturing Message Specification), or the mapping from MMS to IEC-61850 services and objects, to allow data exchange through the entire local area network or point-to-point between power equipment. In the present invention, when reading SCADA data, it is mapped from MMS to IEC-61850 objects and services, and when sending data to SCADA, it is mapped from IEC-61850 data to MMS.
[0062] Figure 1 It is a schematic diagram of the architecture of an electric meter data management system based on IEC-61850 according to an embodiment of the present invention; Figure 2 It is a schematic flowchart of an electric meter data management method based on IEC-61850 according to an embodiment of the present invention.
[0063] An embodiment of the present invention provides an electric meter data management method based on IEC-61850, and the schematic diagram of the architecture of the corresponding electric meter data management system is as Figure 1 shown, including a management system and electric meters; the number of the electric meters is multiple (such as Figure 1 the electric meter 1 to the electric meter N shown), and each electric meter is correspondingly configured with an Ethernet transceiver module (such as Figure 1 shown, the electric meter 1 corresponds to the Ethernet transceiver module a, the electric meter 2 corresponds to the Ethernet transceiver module b... the electric meter N corresponds to the Ethernet transceiver module n); each electric meter is connected to the management system based on the IEC-61850 communication protocol through the corresponding Ethernet transceiver module.
[0064] Among them, the Ethernet transceiver module can be a physical hardware interface externally installed independently on the electric meter, or a physical hardware interface or virtual function module built into the electric meter. The Ethernet transceiver module can receive and send data transmitted based on the IEC-61850 communication protocol. Optionally, the Ethernet transceiver module can be a TCP module, or an embedded network card embedded in the electric meter PCB board, an integrated network communication chip, or a simple PHY chip plus a physical interface. Here, the external TCP module is selected as the Ethernet transceiver module. From the perspective of developers: 1. It can accelerate the overall development progress. The function of the TCP module is relatively independent and does not involve the functions of the electric meter. Therefore, its development work can be handed over to other developers. These developers can complete the development of the TCP module without understanding the electric meter product itself. They only need to agree on the same electrical interface and appearance, clarify the requirements, and finally it can be used for the electric meter. Thus, the development of the electric meter and the module can be carried out simultaneously, accelerating the development progress; 2. It can improve the diversity of product functions. Since the external TCP module is not an inseparable physical entity embedded in the hardware circuit board of the electric meter product, it can be replaced with other function modules without changing the hardware of the electric meter product, making the overall function selection of the electric meter product more flexible to adapt to different user groups. 3. It is convenient for product maintenance and upgrade. The external pluggable module has more advantages in product update and iteration compared with the fixed module. Whether it is the upgrade of the electric meter or the module, it does not involve the other party, thus reducing the impact of upgrade and maintenance on the whole. From the perspective of users: They can choose whether to use the TCP module provided by developers, or a third-party module, or not use it according to their own usage scenarios, improving the selection diversity and reducing costs.
[0065] The management system is a system platform that plays a management role in the power grid infrastructure network based on the IEC-61850 communication protocol, such as management systems like SCADA management systems, power grid operation management platforms, and intelligent electric meter reading platforms, or it can also be a user management platform, such as a client. Preferably, it is a SCADA management system. As a data acquisition and detection control system, it is mainly based on a computer-based distributed control system and a power automation monitoring system, and can realize the monitoring and control of power basic equipment, and has functions such as data acquisition, equipment control, measurement, parameter adjustment, and various signal alarms. The electric meter specifically refers to an intelligent electric meter, which, in addition to having the basic power consumption measurement function of a traditional electric energy meter, also has intelligent functions such as two-way data communication function.
[0066] Such as Figure 2 As shown, a method for managing electric meter data based on IEC-61850 provided in this embodiment at least includes the following steps S1 to S6.
[0067] In step S1, the management system issues a request instruction based on the IEC-61850 communication protocol; the request instruction can be a collection instruction for specific power data corresponding to a certain electric meter (i.e., the target electric meter).
[0068] In step S2, the Ethernet transceiver module receives the request instruction issued by the management system.
[0069] In step S3, the Ethernet transceiver module parses the request instruction, extracts the data packet therein, and then sends it to the electric meter.
[0070] It can be seen that the Ethernet transceiver module can receive a request instruction issued based on the IEC-61850 communication protocol, parse it, and obtain the data packet in the request instruction. Here, the parsing includes but is not limited to: identity authentication (determining whether the communication object is correct, that is, clarifying whether the electric meter connected to the Ethernet transceiver module is the target communication object of the request instruction) and partial data of the T-Profile in the request instruction (i.e., the protocol operation below the OSI transport layer).
[0071] In some specific embodiments, step S3 specifically includes:
[0072] S31: The Ethernet transceiver module parses the request instruction to obtain data such as the destination MAC address, source MAC address, destination IP address, source IP address, destination TCP port number, source TCP port number, and message parameters.
[0073] It can be understood that the management system will pre-add the source IP address, source MAC address, source TCP port number, and the MAC address and IP address of the Ethernet transceiver module connected to the target electric meter, that is, the target MAC address, target IP address, and destination TCP port number, to the data packet header of the request instruction. After receiving the data, the Ethernet transceiver module compares its own information according to the "destination" information (i.e., the destination MAC address, the destination IP address, and the destination TCP port number) to verify whether it is the correct data recipient; when sending data, it determines where to send the data according to the "source" information (i.e., the source MAC address, source IP address, and source TCP port number), that is, clarifies the data recipient.
[0074] As a preferred example, the process of the Ethernet transceiver module parsing the request instruction specifically includes: 1. Parsing the data link layer to obtain the MAC address; 2. Parsing the network layer to obtain the IP address; 3. Parsing the transport layer to obtain the TCP port number.
[0075] S32: The Ethernet transceiver module respectively determines whether its own MAC address matches the destination MAC address, whether its own IP address matches the destination IP address, and whether its own TCP port number matches the destination port number.
[0076] If all match, the identity authentication is passed, the communication object is determined to be correct, the data packet in the message parameters is extracted, and sent to the electric meter. It can be understood that after the identity authentication, the Ethernet transceiver module will establish a communication connection relationship with the management system based on the source IP address, source MAC address, and source TCP port number obtained during parsing. The Ethernet transceiver module will feedback data to the management system based on the established communication connection.
[0077] If one of them does not match, the identity authentication fails, the communication object is incorrect, and the request instruction is not processed. The data packet of the request instruction can be discarded.
[0078] It can be seen that the Ethernet transceiver module realizes the identity authentication of the communication object based on the matching of the MAC address (identifying the physical address of the device at the data link layer), IP address (identifying the logical address of the device at the network layer), and TCP port number (identifying the communication identifier of the device at the transport layer), ensuring the correctness of the communication data transmission.
[0079] In step S4, the electric meter analyzes the data packet according to the IEC-61850 communication protocol to determine the service instruction.
[0080] The load data packet extracted from the request instruction has been encapsulated according to the requirements of the IEC-61850 communication protocol in order to be able to use the IEC-61850 communication protocol for transmission first. Therefore, after receiving the data packet, the electric meter will perform decapsulation according to the IEC-61850 communication protocol to obtain the service instruction. The service instruction refers to the service instruction that can be directly processed by the metering unit in the electric meter, such as Read, Write, GetNameList, and their corresponding processing objects (such as voltage, current, etc.).
[0081] In some specific embodiments, step S4 specifically includes:
[0082] S41: The electric meter layer-by-layer analyzes the data packet through the IEC-61850 protocol stack to obtain the frame payload data of the application layer;
[0083] It can be understood that the data packet received by the electric meter is encapsulated and contains transport layer, session layer Session, presentation layer, and application layer data. Its specific hierarchical structure is as Figure 3 shown, where TPKT and COTP belong to the transport layer protocol and contain different information respectively; Session is the session layer, Presentation is the presentation layer, and ACSE and MMS data belong to the application layer. In order to obtain the effective frame payload data of the application layer, that is, MMS PDU data, the data packet needs to be layer-by-layer analyzed.
[0084] The IEC-61850 protocol stack mentioned above is a virtual function module, which is specifically responsible for parsing, framing and forwarding the data stream of the A-Profile part, connecting and disconnecting clients, negotiating connection parameters, etc. in the electric meter. On the embedded RTOS system, the IEC-61850 protocol stack can be made into an application thread (or task).
[0085] S42: The IEC-61850 protocol stack obtains the MMS service and object from the frame payload data of the application layer;
[0086] S43: The IEC-61850 protocol stack parses the MMS service and object according to the SCSM mapping rule to obtain the service instructions including the actual service and object.
[0087] In order to meet the IEC-61850 communication protocol, before adding the service instructions to the frame payload data of the application layer for transmission, the management system converts the actual service and object in the service instructions into the MMS service and object according to the SCSM mapping rule specified in IEC-61850-8-1, that is, mapping from IEC-61850 data and services to MMS. Therefore, after parsing the MMS service and object, it is necessary to convert to the actual service and object according to the SCSM mapping rule to obtain the actual service instructions that can be executed by the electric meter.
[0088] In step S5, the electric meter processes the service instructions, obtains the corresponding service data, and encapsulates the service data into a processing result according to the IEC-61850 communication protocol and then forwards it to the Ethernet transceiver module.
[0089] It can be understood that after the electric meter obtains and executes the service instructions issued by the management system, it needs to feedback the execution result. In this embodiment, since the communication connection between the electric meter and the management system is based on the IEC-61850 communication protocol, the data fed back by the electric meter to the management system also needs to meet the requirements of the IEC-61850 communication protocol, that is, it is encapsulated according to the IEC-61850 communication protocol and then sent to the management system through the Ethernet transceiver module.
[0090] In some specific embodiments, step S5 specifically includes:
[0091] S51: The IEC-61850 protocol stack outputs the service instructions to the metering unit;
[0092] S52: The metering unit returns the corresponding service data to the IEC-61850 protocol stack according to the service instructions;
[0093] The service instructions mainly correspond to two basic services of the electric meter, one is the data access service and the other is the control service. Among them, the data access service includes:
[0094] Reading service: Reading the measured values and other status information in the electricity meter;
[0095] Writing service: Modifying certain settings, such as electricity meter parameter configuration;
[0096] Reporting service: Sending data reports regularly or triggered by events.
[0097] Among them, the control service includes:
[0098] Direct operation service: Remotely controlling the operation of the electricity meter, such as switch operation.
[0099] Enhanced security operation service: Providing a more secure operation mechanism, including confirmation, cancellation, etc.
[0100] The service data mentioned above is the data obtained correspondingly after the electricity meter executes the service instruction. For example, if the service instruction is to read a certain measured value, the corresponding service data is the measured value read; if the service instruction is to write a certain parameter, the corresponding service data is the successful / failed writing of a certain parameter.
[0101] S53: The IEC-61850 protocol stack converts the service data into service data in MMS format according to the SCSM mapping rule, and frames the service data in MMS format according to the IEC-61850 communication protocol to obtain the processing result;
[0102] It can be understood that in order to enable the service data to be sent to the management system based on IEC-61850, it is necessary to ensure that the service data meets the requirements of the IEC-61850 communication protocol. Here, the service data is mapped to MMS through the IEC-61850 protocol stack according to the SCSM mapping rule to ensure that the service data can be accurately and completely transmitted to the management system using the IEC-61850 network.
[0103] S54: The IEC-61850 protocol stack forwards the processing result to the Ethernet transceiver module.
[0104] In step S6, the Ethernet transceiver module assembles the processing result based on the TCP / IP communication protocol and feeds it back to the management system.
[0105] Here, after receiving the processing result, the Ethernet transceiver module only needs to frame it according to the requirements of its own communication protocol and then send it into the Ethernet for transmission to the management system.
[0106] It can be understood that the IEC-61850 communication protocol stipulates that the assembled data needs to supplement the necessary parameters of the transport layer, network layer, data link layer, and physical layer through the TCP / IP communication protocol and send them to the transmission medium. In the present invention, the Ethernet transceiver module is specifically responsible for executing the above-mentioned requirements of the IEC-61850 communication protocol.
[0107] As can be seen from the above, in this embodiment, by improving the interoperability and compatibility of the electricity meter, the electricity meter is connected to the power grid infrastructure network based on the IEC-61850 communication protocol; the electricity meter and the management system can communicate with each other based on the IEC-61850 communication protocol, providing technical support for building a more intelligent and efficient power system.
[0108] Figure 4 It is a schematic flow chart of a method for managing electricity meter data based on IEC-61850 provided by another embodiment of the present invention; Figure 5 It is a schematic diagram of the relationship binary tree structure of the electricity meter data model in the embodiment of the present invention.
[0109] Another embodiment of the present invention is further expanded based on the previous embodiment. Specifically, taking the Ethernet transceiver module as the TCP module and the management system as the SCADA system as an example, a detailed description is carried out.
[0110] Combined with Figure 4 Understand that the method for managing electricity meter data based on IEC-61850 provided in this embodiment includes:
[0111] The TCP module and the electricity meter start initialization simultaneously;
[0112] The TCP module receives the request instruction sent by the SCADA system;
[0113] The TCP module parses the request instruction to obtain the destination / source MAC address, destination / source IP address, destination TCP port number / source TCP port number, and message parameters therein;
[0114] The TCP module determines whether its own MAC address matches the destination MAC address, its own IP address matches the destination IP address, and its own TCP port number matches the destination TCP port number. If all match, the identity authentication is passed, and a communication connection relationship is established with the SCADA system based on the source MAC address, source IP address, and source TCP port number through sending an ACK response and three-way handshake and four-way handshake of the transport layer; if any one does not match, the request instruction is discarded;
[0115] After the TCP module passes the identity authentication, the PDU data, that is, the payload data packet, is extracted from behind the TCP header of the message parameters and sent to the electricity meter;
[0116] After the electricity meter receives the load data packet, it parses the data packet according to the IEC-61850 communication protocol to determine the service instruction.
[0117] In this embodiment, the specific process of the electricity meter parsing the load data packet to determine the service instruction includes:
[0118] (1) The electricity meter layer-by-layer parses the received load data packet through the IEC-61850 protocol stack to obtain the frame load data of the application layer.
[0119] The load data packet is Figure 3 a hierarchical structure, where the data of each layer can be divided into "frame header" + "frame load data". Among them, the frame header contains fixed-format content for verifying the frame legality and distinguishing frame types, such as handshake frames, data frames, etc. The service type is distinguished by the frame type to select the correct service; the frame load data is the complete data frame of the upper layer.
[0120] Therefore, the IEC-61850 protocol stack first determines the frame type according to the frame header of the received load data packet, and then uses the parsing service function corresponding to the determined frame type to parse the frame load data of the load data packet to obtain the upper-layer data packet; then, determines the frame type according to the frame header of the upper-layer data packet, and uses the parsing service function corresponding to the determined frame type to parse the frame load data of the upper-layer data packet to obtain the upper-upper-layer data packet; and so on, layer-by-layer upward parsing until the application layer data packet is parsed to obtain the frame load data of the application layer.
[0121] In some specific embodiments, the above layer-by-layer parsing can be implemented by establishing a general linked list data model. The structure of the linked list data model is: STRUCT = {this layer's data frame, frame header parameters, pointer to the upper layer's data variable}, and several parsing service functions PARSE FUNCTION are defined for each layer. During the parsing process, the corresponding parsing service function is selected according to the frame type. Among them, the pointer to the upper layer's data variable points to the starting data of the upper layer's data frame.
[0122] The process of obtaining the application layer frame load data through the above linked list data model layer-by-layer parsing is as follows:
[0123] 1. Pass the "frame load data" of this layer into the "pointer to the upper layer's data variable" as the "this layer's data frame" of the upper layer;
[0124] 2. Input the "pointer to the upper-layer data variable" into the "upper-layer parsing service function" (which can be understood as inputting the upper-layer data frame into the upper-layer parsing service function). The "upper-layer parsing service function" parses the "current-layer data frame" to obtain the upper-layer data frame, that is, the "frame header parameters" + "frame payload data" of the upper layer.
[0125] 3. Distinguish the frame type according to the "frame header parameters" obtained in the previous step, select the parsing service function corresponding to the frame type as the "upper-layer parsing service function", and return to step 1; loop through steps 1 - 3 until all layers are parsed, that is, parse and obtain the frame payload data of the application layer.
[0126] (2) The IEC-61850 protocol stack obtains the MMS services and objects from the frame payload data of the application layer.
[0127] (3) The IEC-61850 protocol stack parses the MMS services and objects according to the SCSM mapping rules to obtain service instructions including actual IEC-61850 services and objects.
[0128] In some specific embodiments, the process of the IEC-61850 protocol stack mapping the MMS services and objects to IEC-61850 services and objects according to the SCSM mapping rules to obtain actual IEC-61850 services and objects includes:
[0129] First, construct an electricity meter data model according to the IEC-61850 communication protocol and store it in the IEC-61850 protocol stack of the electricity meter and the management system respectively. The IEC-61850 protocol stack of the electricity meter and the management system will perform data conversion following the SCSM mapping rules through the electricity meter data model.
[0130] It can be understood that the electricity meter has multiple data items such as voltage, current, and electric energy. In this embodiment, these data items are modeled according to the logical nodes and common data classes defined by IEC-61850 to obtain the above-mentioned electricity meter data model.
[0131] Specifically, the electricity meter data model includes a relational binary tree. Each tree node in the relational binary tree represents an IEC-61850 data object, and each tree node contains node information parameters, left child node pointer, right child node pointer, SCSM numerical mapping mechanism, service permissions, etc.
[0132] Among them, the node information parameter indicates the index information of this node, such as the node name and data type; the node name and data type correspond to the IEC-61850 protocol data model and are used to index the tree nodes. Among them, the data type includes, according to the definition, logical device (Logical Device), logical node (Logical Node), data object (DataObject), data attribute (Data Attribute), etc.
[0133] The left child node pointer points to the next-level data type node specified by the data type of this node in the IEC-61850 protocol, representing the sub-data of this data, which is represented by the left child node in the relational binary tree. It can be understood that IEC-61850-7-4 defines the next-level data nodes that should exist under each data type. For example, there is a top-down data type hierarchy relationship of LD1→LN11→DO111→DA1111. In the relational binary tree of this embodiment, the data type hierarchy relationship defined by the IEC-61850 protocol is pointed to through the left child node pointer and uniformly represented in the left child node. For example Figure 5 as shown, the above-exemplified data type hierarchy relationship is represented in the relational binary tree as follows: the left child node of the logical device LD1 node is the logical node LN11 node; the left child node of the logical node LN11 node is the data object DO111 node; the left child node of the data object DO111 node is the data attribute DA1111 node.
[0134] The right child node pointer points to the node of the same data type specified by the data type of this node in the IEC-61850 protocol, representing the data objects of the same data type, which is represented by the right child node in the relational binary tree. In the relational binary tree of this embodiment, the nodes of the same data type defined by the IEC-61850 protocol are pointed to through the right child node pointer and uniformly represented in the right child node. For example Figure 5 as shown, the right child node of the logical device LD1 node is the logical device LD2; the right child node of the logical device LD2 node is the logical device LD3; the right child node of the logical node LN11 node is the logical node LN12 node….
[0135] That is to say, for the relational binary tree of this embodiment, the data type of its main node is a logical device. The data type of the next-level right child node pointed to by the right child node pointer of each node is the same as that of this node. The next-level left child node pointed to by the left child node pointer of each node is the sub-IEC-61850 data object that should be available under the data type defined for this node in the IEC-61850 communication protocol. For example, the left child node of the logical node LN needs to include the data object DO node that should be available under the type of this logical node defined in IEC-61850-7-4. Similarly, the left child node of the data object DO node also needs to include the corresponding CDC data attribute DA node, and so on.
[0136] The SCSM numerical mapping mechanism, that is, the SCSM numerical mapping mechanism of the IEC-61850 data object represented by the corresponding tree node, records the specific internal data items of the watt-hour meter under the IEC-61850 service and object, as well as the data representation under the corresponding MMS.
[0137] In this embodiment, for the node with the data type of logical device in the watt-hour meter data model, its SCSM numerical mapping mechanism includes the specific watt-hour meter device and its MMS representation corresponding to the IEC-61850 communication protocol; for the node with the data type of logical node, its SCSM numerical mapping mechanism includes the set of electric energy data items and its MMS representation corresponding to the IEC-61850 communication protocol; for the node with the data type of data object, its SCSM numerical mapping mechanism includes the specific data item and its MMS representation corresponding to the IEC-61850 communication protocol; for the node with the data type of data attribute, its SCSM numerical mapping mechanism includes the attribute of the specific data item and its MMS representation corresponding to the IEC-61850 communication protocol; among them, the attribute of the specific data item includes the numerical type and the numerical dimension.
[0138] The service permission indicates which services are supported by this tree node. The service permission of the tree node is divided according to the definition in IEC-61850-7-2 and takes the intersection with the services actually supported by the electric meter.
[0139] Then, the IEC-61850 protocol stack and the management system perform data mapping conversion according to the above-mentioned watt-hour meter data model to obtain the required data representation.
[0140] As a specific example, the process of the IEC-61850 protocol stack mapping and converting an MMS service and object to an IEC-61850 service and object according to the above-mentioned watt-hour meter data model includes:
[0141] 1. The SCADA system issues an instruction, and through the above parsing steps, the specific MMS service is obtained: the "Read" service and the specific objects: "LD2", "LN21$ST$DO211$DA2111". Among them, the service "Read" indicates that it is necessary to read the possible data values of the object. "LD2" indicates that the object to be read is first the logical device LD2 of the electric meter device.
[0142] "LN21$ST$DO211$DA2111" indicates that the logical node "LN21", the logical object "DO211", and the logical attribute "DA2111" are read. Among them, "ST" is an inherent parameter included in the logical attribute and needs to be represented at a specific position described in the above object according to the MMS protocol.
[0143] 2. The electric meter first processes the object. Starting from the root node "LD1" of the binary tree of the data model, it compares and judges that the logical device of the target object is not "LD1" but belongs to the same data type. Then, it uses the right pointer index of the "LD1" node to find the next logical device, and repeats this process to the right pointer until the same logical device is found or not found. If not found, it means that the electric meter does not support it and a communication failure occurs. 3. If the target logical device is found, it starts to find the object of the next layer of the data model, which is "LN21" in this example, and sequentially searches and compares the object names of each layer of the data model until the final logical attribute "DA2111" is found. 4. After finding the logical attribute, it judges whether the service supported by the logical attribute includes the service "Read". If not, it returns a service instruction that the SCADA system does not support. If it supports, it obtains the original data inside the electric meter through the numerical mapping mechanism and packages it into the data structure specified by the IEC-61850 protocol, and finally maps it into an MMS object and response through SCSM and sends it back to the SCADA system.
[0144] As a measurement and metering device, the electric meter has a large number of different parameters and measurement data inside. These data are defined as different data types such as logical attributes and logical objects according to the IEC-61850 protocol stack. The above process of indexing logical attributes reflects the characteristics of the relational binary tree model, greatly improving the search efficiency. No matter what data type of object the SCADA wants to search for, it can find the data faster through the relationship index of the left and right pointers than the unordered comparison, reducing computing resources and making the communication more efficient.
[0145] In this embodiment, the IEC-61850 protocol stack of the electric meter will send the service instruction determined by parsing the data packet (such as reading a certain electric energy value in the electric meter) to the metering unit of the electric meter for execution.
[0146] The metering unit of the electricity meter executes the service instruction and returns the corresponding service data (such as the read power data, power quality analysis data, etc.) to the IEC-61850 protocol stack;
[0147] The IEC-61850 protocol stack of the electricity meter performs data mapping on the received service data according to the above-mentioned electricity meter data model, converts it to MMS, represents it with the load data frame of the application layer, and then sends it to the TCP module;
[0148] The TCP module frames the received load data frame of the application layer according to the TCP transmission protocol, obtains the transmission data packet, and then transmits it to the SCADA system through the IEC-61850 network.
[0149] Please refer to Figure 1 Based on any of the above embodiments, the embodiment of the present invention further provides an electricity meter data management system based on IEC-61850, as Figure 1 shown, including a management system and an electricity meter; an electricity meter is externally connected to an Ethernet transceiver module; the electricity meter is connected to the management system based on the IEC-61850 communication protocol through the Ethernet transceiver module.
[0150] In this embodiment, the Ethernet transceiver module is configured to be able to execute the steps performed by the Ethernet transceiver module in a method for managing electricity meter data based on IEC-61850 described in any of the above embodiments;
[0151] The electricity meter is configured to be able to execute the steps performed by the electricity meter in a method for managing electricity meter data based on IEC-61850 described in any of the above embodiments. Here, the specific step content will not be repeated, and for details, please refer to the description of the above embodiments.
[0152] In some specific embodiments, the Ethernet transceiver module selects a TCP module, and can also be an embedded network card embedded in the electricity meter PCB board, an integrated network communication chip, or a simple PHY chip plus a physical interface.
[0153] In still some other specific embodiments, the electricity meter specifically includes an IEC-61850 protocol stack and a metering unit.
[0154] Among them, the IEC-61850 protocol stack is respectively connected to the Ethernet transceiver module and the metering unit, and can be implemented in the form of an application thread.
[0155] The IEC-61850 protocol stack is configured to be able to execute the steps performed by the IEC-61850 protocol stack in a method for managing electricity meter data based on IEC-61850 described in any of the above embodiments;
[0156] The metering unit is configured to be capable of implementing the steps performed by the metering unit in any one of the above embodiments of the electric meter data management method based on IEC-61850.
[0157] In a preferred specific embodiment, the TCP module is an independent external hardware module, which serves as the physical interface for sending and receiving IEC-61850 communication data, can process part of the T-Profile data, complete the TCP protocol parsing and the protocol work below the OSI transport layer, and is specifically responsible for:
[0158] (1) Receiving data packets with a specified IP address and TCP port;
[0159] (2) Parsing parameters such as the source IP address and port number, sending ACK responses, performing the three-way handshake and four-way handshake of the transport layer, etc.;
[0160] (3) Transmitting the PDU data after the TCP header data to the electric energy meter;
[0161] (4) After receiving the application layer PDU data sent by the electric energy meter, assembling necessary underlying protocol header parameters (such as the source IP, source MAC address, etc.), and then sending them to the Ethernet.
[0162] Here, the purpose of the external TCP module is to isolate complex network data streams, screen specific data packets (such as data packets sent by the SCADA system through IEC-61850), and prevent redundant data streams from interfering with the normal operation of the electric energy meter. Optionally, the TCP module can exchange data with the electric meter through the TTL level using the UART protocol, with low requirements for hardware and software design, and is suitable for embedded electric energy meter software and hardware platforms with relatively tight resources, having the characteristics of being easy to implement and having a low cost.
[0163] The IEC-61850 protocol stack, as one of the new functions of the electric meter of the present invention, is responsible for processing the parsing, framing and forwarding of part of the A-Profile data stream, client connection and disconnection, negotiation of connection parameters, etc. Optionally, the IEC-61850 protocol stack can be made into an application thread (or task) on an embedded RTOS system.
[0164] Here, the process of the IEC-61850 protocol stack completing a C / S service process includes:
[0165] After receiving the data stream sent by the TCP module, it will be parsed to obtain the actual IEC-61850 services and objects, and then corresponding service instruction identifiers will be output to the metering unit accordingly, such as Read, Write, GetNameList, and corresponding processing objects such as voltage and current; the metering unit returns the original power data or relevant parameter items corresponding to the service instruction and the operation result to the IEC-61850 protocol stack; the IEC-61850 protocol stack then performs data mapping conversion on these data according to the SCSM mapping rules based on the operation result, and finally forwards them to the TCP external module to complete a C / S service communication.
[0166] Here, in the electric energy meter data model constructed by the IEC-61850 protocol stack, the nodes with the data type of logical attributes in the relational binary tree have a numerical mapping mechanism, representing the specific internal data items of the electric energy meter, the data dimension of the internal electrical parameter data items of the electric energy meter, and the data structure is independent of the structure defined by the communication protocol stack. Different protocol stacks need different mapping mechanisms to access data to achieve flexible response. In this preferred specific embodiment, a numerical mapping mechanism exclusive to the IEC-61850 protocol stack is established according to the basic CDC and data types defined by IEC-61850:
[0167] (1) The mapping relationship between the electric energy meter data items and the IEC-61850 protocol logical nodes and data objects. For example, voltage is usually represented by the PhVphs and V data objects under the MMXU logical node;
[0168] (2) The mapping relationship of numerical types. For the int64 data in the electric energy meter, if it represents an integer quantity (such as cumulative electricity), it can be mapped to INT64 or INT128 defined by IEC-61580;
[0169] (3) The mapping relationship of dimension (unit). It is usually specified through the attributes of the data object in the protocol, such as the Units attribute, or the default attribute. For example, PhVphs.mag.f can be used to represent the amplitude of the phase voltage, and its unit is defaulted to volt (V). The specific unit can be specified in the SCL file or the unit information can be marked with additional attributes.
[0170] In this preferred specific embodiment, when the IEC-61850 protocol stack accesses the register data, or when the electric energy meter actively sends data to the IEC-61850 protocol stack (timed), the above numerical mapping mechanism will be used to obtain the exact value that conforms to the IEC-61850 protocol specification, so that the data can be accurately transmitted in the IEC-61850 network, thereby ensuring the real-time and accuracy of the data update of the electric meter metering unit.
[0171] The metering unit described above, as one of the original functions of the electric meter of the present invention, the processing unit processes power parameter metering, recording, and service response transactions.
[0172] In this preferred specific embodiment, the electric meter is a smart electric meter. To ensure that the smart electric meter can meet the conventional IEC-61850 service requirements, it is required to support at least the following basic services:
[0173] (1) Data access service:
[0174] Read service: Allows the client to read the measured values and other status information in the electric energy meter.
[0175] Write service: Allows the client to modify certain settings, such as the configuration of the electric energy meter parameters.
[0176] Report service: Sends data reports to the client regularly or in an event-triggered manner.
[0177] (2) Control service:
[0178] Direct operation service: Allows remote control of the operation of the electric energy meter, such as switch operation.
[0179] Enhanced security operation service: Provides a more secure operation mechanism, including confirmation, cancellation, etc.
[0180] The service requirements obtained by parsing the IEC-61850 protocol stack of the electric meter will point to the internal service model of the metering unit of the electric meter. The metering unit will judge whether the service permissions of the corresponding tree nodes in the relationship binary tree of the data object support the service. If it supports, the service will be responded to; if not, it will be rejected.
[0181] The above basic services of the electric meter ensure that the electric energy meter can effectively interact with other devices in the substation automation system using the IEC-61850 network and perform basic functions such as data acquisition, monitoring, and control.
[0182] The electric meter data management system based on IEC-61850 provided in this embodiment can implement the IEC-61850 communication protocol function on the smart electric meter software system, enabling the electric meter to be connected to the grid infrastructure network based on the IEC-61850 communication protocol, accepting the request instructions based on the IEC-61850 communication protocol sent by the SCADA system, and sending the collected power data and power quality analysis data back to the SCADA system through this protocol. Thereby improving the interoperability and compatibility of the electric meter, enabling communication and interaction between the smart electric meter and the management system based on the IEC-61850 communication protocol, and providing technical support for building a more intelligent and efficient power system.
[0183] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a system, or a computer program product. Therefore, the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memory, CD-ROM, optical memory, etc.) that contain computer-usable program code.
[0184] The present invention is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the present invention. It should be understood that each flow and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of flows and / or blocks in the flowchart and / or block diagram can also be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0185] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0186] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.
[0187] It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in the claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention can be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim listing several devices, several of these devices can be embodied by the same item of hardware. The use of the words first, second, and third, etc. does not denote any order. These words can be interpreted as names.
[0188] Although the preferred embodiments of the present invention have been described, additional changes and modifications can be made by those skilled in the art once they learn of the basic inventive concept. Therefore, the appended claims are intended to be construed to cover the preferred embodiments as well as all changes and modifications falling within the scope of the present invention.
[0189] 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 present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these modifications and variations.
[0190] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality of" means two or more unless otherwise specifically defined.
[0191] In the present invention, unless otherwise clearly defined and limited, the terms "mounted", "connected", "coupled", "fixed", etc. shall be construed broadly. For example, it may be a fixed connection, a detachable connection, or an integral one; it may be a mechanical connection or an electrical connection; it may be a direct connection or an indirect connection through an intermediate medium, and it may be the internal communication of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0192] In the present invention, unless otherwise clearly specified and defined, a first feature being "on" or "under" a second feature may mean that the first and second features are in direct contact, or the first and second features are in indirect contact via an intermediate medium. Further, a first feature being "above", "over" and "on top of" a second feature may mean that the first feature is directly above or obliquely above the second feature, or simply means that the horizontal height of the first feature is higher than that of the second feature. A first feature being "under", "below" and "beneath" a second feature may mean that the first feature is directly below or obliquely below the second feature, or simply means that the horizontal height of the first feature is less than that of the second feature.
[0193] In the description of the present specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In the present specification, the schematic representations of the above terms should not be understood as necessarily referring to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, without contradiction, those skilled in the art may combine and combine the different embodiments or examples described in the present specification and the features of the different embodiments or examples.
[0194] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for managing electric meter data based on IEC-61850, characterized in that: include: The Ethernet transceiver module receives the request instruction sent by the management system based on the IEC-61850 communication protocol; The Ethernet transceiver module parses the request instruction, extracts the data packet therein and sends it to the electric meter; The electric meter parses the data packet according to the IEC-61850 communication protocol to determine the service instruction; The electric meter processes the service instruction, obtains corresponding service data, and encapsulates the service data into processing results according to the IEC-61850 communication protocol and then forwards them to the Ethernet transceiver module; The Ethernet transceiver module assembles the processing results based on the TCP / IP communication protocol and feeds them back to the management system.
2. The electric meter data management method based on IEC-61850 as claimed in claim 1, characterized in that: The Ethernet transceiver module parses the request instruction, extracts the data packet therein and sends it to the electric meter, including: The Ethernet transceiver module parses the request instruction to obtain the destination MAC address, destination IP address, destination TCP port number and message parameters; The Ethernet transceiver module determines whether the destination MAC address, the destination IP address and the destination TCP port number match its own MAC address, its own IP address and its own TCP port number respectively; If they all match, extract the data packet in the message parameters and send it to the electric meter; If one of them does not match, the request instruction is not processed.
3. The electric meter data management method based on IEC-61850 as claimed in claim 1, characterized in that: The electric meter parses the data packet according to the IEC-61850 communication protocol to determine the service instruction, including: The electric meter parses the data packet layer by layer through the IEC-61850 protocol stack to obtain frame load data of the application layer; The IEC-61850 protocol stack obtains the MMS services and objects from the frame payload data of the application layer; The IEC-61850 protocol stack parses the MMS services and objects according to the SCSM mapping rules, and obtains service instructions including actual services and objects.
4. The electric meter data management method based on IEC-61850 as claimed in claim 3, characterized in that: The electric meter parses the data packet layer by layer through the IEC-61850 protocol stack to obtain frame load data of the application layer, including: The IEC-61850 protocol stack determines the frame type according to the frame header of the data packet, and uses the parsing service function corresponding to the determined frame type to parse the frame payload data of the data packet to obtain the upper layer data packet; Determine the frame type according to the frame header of the upper layer data packet, and parse the frame payload data of the upper layer data packet using the parsing service function corresponding to the determined frame type to obtain the upper layer data packet; Parse upward layer by layer until the application layer data packet is obtained, and the frame payload data of the application layer is obtained.
5. The electric meter data management method based on IEC-61850 as claimed in claim 3, characterized in that: The electric meter processes the service instruction, obtains corresponding service data, and encapsulates the service data into a processing result according to the IEC-61850 communication protocol and then forwards it to the Ethernet transceiver module, including: The IEC-61850 protocol stack outputs the service instruction to the metering unit; The metering unit returns corresponding service data to the IEC-61850 protocol stack according to the service instruction; The IEC-61850 protocol stack converts the service data into service data in MMS format according to the SCSM mapping rule, and frames the service data in MMS format according to the IEC-61850 communication protocol to obtain a processing result; The IEC-61850 protocol stack forwards the processing result to the Ethernet transceiver module.
6. The electric meter data management method based on IEC-61850 as claimed in claim 3 or 5, characterized in that: Also includes: Construct an electric energy meter data model based on the IEC-61850 communication protocol and store it in the IEC-61850 protocol stack of the electric energy meter and the management system respectively; The electric energy meter data model includes a relational binary tree, each node in the relational binary tree corresponds to an IEC-61850 data object, including node information parameters, a left child node pointer, a right child node pointer and an SCSM value mapping mechanism; wherein the node information parameters include a node name and a data type; the data type includes a logical device, a logical node, a data object and a data attribute; The data type of the main node in the relational binary tree is a logical device, the data type of the next level right child node pointed to by the right child node pointer of each node is the same as the data type of the node, and the next level left child node pointed to by the left child node pointer of each node is the child IEC-61850 data object that should exist under the data type of the node defined in the IEC-61850 communication protocol; The IEC-61850 protocol stack and the management system perform data conversion according to the electric energy meter data model.
7. The electric meter data management method based on IEC-61850 as claimed in claim 6, characterized in that: For nodes whose data type in the electric energy meter data model is a logical device, its SCSM numerical mapping mechanism includes the MMS representation of the specific electric energy meter device and its corresponding IEC-61850 communication protocol; for nodes whose data type is a logical node, its SCSM numerical mapping mechanism includes a set of electric energy data items and its corresponding MMS representation of the IEC-61850 communication protocol; for nodes whose data type is a data object, its SCSM numerical mapping mechanism includes specific data items and their corresponding MMS representation of the IEC-61850 communication protocol; for nodes whose data type is a data attribute, its SCSM numerical mapping mechanism includes the attributes of the specific data items and their corresponding MMS representation of the IEC-61850 communication protocol; wherein the attributes of the specific data items include the numerical type and the numerical dimension.
8. An electric meter data management system based on IEC-61850, characterized in that: It includes a management system and an electric meter; the electric meter is externally connected to an Ethernet transceiver module; the electric meter is connected to the management system through the Ethernet transceiver module based on the IEC-61850 communication protocol; The Ethernet transceiver module is configured to be able to perform the steps performed by the Ethernet transceiver module in the IEC-61850-based electricity meter data management method as described in any one of claims 1 to 7 above; The electric meter is configured to be able to execute the steps performed by the electric meter in the electric meter data management method based on IEC-61850 as described in any one of claims 1 to 7.
9. The electric meter data management system based on IEC-61850 as claimed in claim 8, characterized in that: The Ethernet transceiver module is a TCP module.
10. The electric meter data management system based on IEC-61850 as claimed in claim 8, characterized in that: The electric meter comprises an IEC-61850 protocol stack and a metering unit; the IEC-61850 protocol stack is connected to the Ethernet transceiver module and the metering unit respectively; The IEC-61850 protocol stack is configured to implement the steps performed by the IEC-61850 protocol stack in the IEC-61850-based electric meter data management method according to any one of claims 3 to 7 above; The metering unit is configured to be able to implement the steps performed by the metering unit in the IEC-61850-based electric meter data management method as described in any one of claims 5 to 7 above.