CN111049815B - Micro-grid communication system, communication device and control method thereof - Google Patents

Micro-grid communication system, communication device and control method thereof Download PDF

Info

Publication number
CN111049815B
CN111049815B CN201911231704.9A CN201911231704A CN111049815B CN 111049815 B CN111049815 B CN 111049815B CN 201911231704 A CN201911231704 A CN 201911231704A CN 111049815 B CN111049815 B CN 111049815B
Authority
CN
China
Prior art keywords
module
message
microgrid
data
processing module
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
Application number
CN201911231704.9A
Other languages
Chinese (zh)
Other versions
CN111049815A (en
Inventor
刘志明
刘亚永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jinfeng Zero Carbon Energy Co ltd
Original Assignee
Beijing Etechwin Electric Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Etechwin Electric Co Ltd filed Critical Beijing Etechwin Electric Co Ltd
Priority to CN201911231704.9A priority Critical patent/CN111049815B/en
Publication of CN111049815A publication Critical patent/CN111049815A/en
Application granted granted Critical
Publication of CN111049815B publication Critical patent/CN111049815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The disclosure provides a microgrid communication system, a communication device and a control method thereof. The microgrid communication device comprises an optical module, a physical layer (PHY) chip, a processor and an equipment interface, wherein the processor comprises a first processing module, the first processing module comprises an interface module and an RX module, the first processing module utilizes the interface module to be connected with the equipment interface so as to perform data interaction with microgrid equipment through the equipment interface, the first processing module utilizes the RX module to be connected with the PHY chip so as to perform data interaction with the microgrid communication network based on the Ethernet through the optical module connected with the PHY chip, the first processing module further comprises a message classification decoding module used for classifying and identifying messages, and the message classification decoding module classifies the messages received by the microgrid communication network into TCP/IP messages and custom messages and then performs parallel processing on the custom messages.

Description

Micro-grid communication system, communication device and control method thereof
Technical Field
The present disclosure relates to the field of intelligent microgrid technology, and more particularly, to a microgrid communication system, a communication device and a control method thereof.
Background
The quick response of the microgrid device is a main sign of the intellectualization of the microgrid device, which puts higher requirements on real-time high-speed communication between the microgrid devices and between the microgrid device and a decision center, and it can be said that one of the key differences between the intelligent microgrid device and a common microgrid device lies in the real-time performance of communication.
In the prior art, as a digital Substation system based on the ethernet technology gradually matures, the intelligent electrical devices ieds (intelligent Electronic devices) of various manufacturers access to the Substation control layer ethernet of the Substation to realize information sharing, following the general Object Substation time (GOOSE) and Sampling Value (SV) communication protocol specified by the IEC61850 standard. The GOOSE message and the SV message are two kinds of messages of the process layer of the digital substation.
The GOOSE and SV messages cooperate to complete process layer message delivery based on their respective mechanisms. The GOOSE message is transmitted when the member data of the data set changes, and the reliability is improved by retransmitting the data gradually and lengthily until the maximum retransmission interval time; SV messages are transmitted in a rapid and continuous mode, and transmitted data need synchronous sampling. Under normal conditions, the SV message sampling value transmission data traffic is much larger than the GOOSE message transmission data traffic, and a plurality of application service data units ASDUs can be merged into one application protocol data unit for unified transmission.
In the prior art, the Length field of the GOOSE message sets the limit of the Length byte number of the message, and the Length byte number includes the Length of the ethernet PDU and the application protocol data unit APDU from the APPID. The length should be 8+ m, where m is the length of the APDU and m < 1492. Frames that do not correspond to this or frames of illegal length fields will be discarded. Therefore, the GOOSE message cannot transmit large-flow data based on the limitation of the own protocol, and the GOOSE and SV messages cooperate to complete the process layer message transmission.
If the IEC61850 standard in the digital substation system is simply and directly applied to the intelligent micro-grid, the on-site devices of the master station and the slave station of the micro-grid need to install two protocol analysis packets, namely GOOSE and SV messages, so that the cost of the intelligent micro-grid communication system is obviously increased.
Disclosure of Invention
Exemplary embodiments of the present disclosure provide a microgrid communication system, a communication apparatus, and a control method thereof, which solve at least the above technical problems and other technical problems not mentioned above, and provide the following advantageous effects.
An aspect of the present disclosure is to provide a microgrid communication apparatus. The micro-grid communication device can comprise an optical module, a physical layer (PHY) chip, a processor and a device interface, wherein the processor comprises a first processing module, the first processing module comprises an interface module and an RX module, the first processing module is connected with the device interface through the interface module to perform data interaction with micro-grid equipment through the device interface, the first processing module is connected with the PHY chip through the RX module to perform data interaction with an Ethernet-based micro-grid communication network through the optical module connected with the PHY chip, the first processing module further comprises a message classification decoding module for classifying and identifying messages, the message classification decoding module classifies the messages received from the micro-grid communication network into TCP/IP messages and custom messages, and then performs parallel processing on the custom messages, wherein, the TCP/IP message comprises non-real-time operation information of the micro-grid, and the user-defined message comprises real-time operation information of the micro-grid.
In the microgrid communication device, a message classification decoding module can decode a message while receiving the message, analyze and judge St and Sq in the self-defined message and calculate in parallel, obtain a calculation result while receiving the message, and determine whether to update data according to the calculation result, wherein St represents an event counter, and Sq represents a message counter.
In the microgrid communication device, the custom message may include: the system comprises a destination address, a source address, a message length, St, Sq and message data, wherein St represents an event counter, Sq represents a message counter, and the message data comprises a switching value, a state quantity and an analog quantity.
In the microgrid communication device, the custom message may further include a crc byte.
In the microgrid communication device, the first processing module may further include a TX module, and the processor may further include a second processing module, where the second processing module is respectively in communication connection with the interface module, the TX module, and the message classification decoding module to perform data interaction.
In the microgrid communication device, an RX module can receive an Ethernet frame from a microgrid communication network from an optical module through a PHY chip and analyze the received Ethernet frame, wherein if a destination address in the analyzed data is consistent with a source address of the microgrid communication device, the RX module sends the analyzed data to a message classification decoding module, and a second processing module receives the data from the message classification decoding module, performs data calculation and sends the calculated data to an interface module to be sent to a microgrid device through the device interface connected with the interface module; if the destination address in the parsed data is not consistent with the source address of the device, the RX module does not notify the second processing module.
In the micro-grid communication device, a TX module is connected with a PHY chip, and a second processing module forms data into Ethernet frames according to a custom message format and sends the formed Ethernet frames to the TX module so as to be sent to a micro-grid communication network through an optical module connected with the PHY chip.
In the microgrid communication device, a first processing module may receive operation data from a microgrid device from the device interface through an interface module, and send the received operation data to a second processing module, and the second processing module performs data calculation on the received operation data and performs framing on the calculated data.
Another aspect of the present disclosure is to provide a microgrid communication system. The microgrid communication system may comprise a microgrid master station and at least one local device, wherein the microgrid master station and the at least one local device each comprise a microgrid communication device as described above.
In the microgrid communication system, the microgrid master station and the at least one local device form a ring communication network or a star communication network.
Another aspect of the present disclosure is to provide a method of controlling a microgrid communication apparatus. The microgrid communication device may include an optical module, a physical layer (PHY) chip, a processor and a device interface, wherein the processor may include a first processing module, the first processing module may include an interface module, an RX module and a packet classification decoding module, and the control method may include the steps of: connecting, by a first processing module, with the device interface using an interface module to perform data interaction with a microgrid device via the device interface; connecting the first processing module with the PHY chip by using the RX module so as to perform data interaction with the Ethernet-based micro-grid communication network through the optical module connected with the PHY chip; and classifying the messages received from the micro-grid communication network into TCP/IP messages and custom messages by a message classification decoding module, and then performing parallel processing on the custom messages, wherein the TCP/IP messages comprise micro-grid non-real-time operation information, and the custom messages comprise micro-grid real-time operation information.
The control method may further include the steps of: the message classification decoding module decodes the message while receiving the message, analyzes and judges St and Sq in the self-defined message, calculates the result while receiving the message, and determines whether to update data according to the calculation result, wherein St represents an event counter and Sq represents a message counter.
In the control method, the self-defined packet may include: the system comprises a destination address, a source address, a message length, St, Sq and message data, wherein St represents an event counter, Sq represents a message counter, and the message data comprises a switching value, a state quantity and an analog quantity.
In the control method, the custom packet may further include a crc byte.
In the control method, the first processing module may further include a TX module, and the processor may further include a second processing module, where the second processing module is respectively in communication connection with the interface module, the TX module, and the packet classification decoding module to perform data interaction.
The control method may further include the steps of: receiving, by an RX module, an ethernet frame from a microgrid communication network from an optical module through a PHY chip, and parsing the received ethernet frame, wherein if a destination address in the parsed data is consistent with a source address of the microgrid communication device, the RX module sends the parsed data to a packet classification decoding module, the second processing module receives and performs data calculation from the packet classification decoding module, and sends the calculated data to an interface module to be sent to a microgrid device via the device interface connected to the interface module; and if the destination address in the analyzed data is inconsistent with the source address of the microgrid communication device, the RX module does not notify the second processing module.
In the control method, the TX module is connected to the PHY chip, and the control method may further include: and the second processing module composes the data into Ethernet frames according to the self-defined message format and sends the composed Ethernet frames to the TX module so as to be sent to the micro-grid communication network through the optical module connected with the PHY chip.
The control method may further include the steps of: receiving, by the first processing module, operating data from the microgrid device from the device interface through the interface module, and sending the received operating data to the second processing module; and performing data calculation on the received operation data and framing the calculated data by the second processing module.
Based on the method and the equipment, high-speed and real-time data interaction among the micro-grid equipment can be provided, and quick response to various working conditions between the micro-grid main station and the micro-grid equipment and between the micro-grid equipment and the micro-grid equipment is ensured.
Drawings
These and/or other aspects and advantages of the present disclosure will become apparent and more readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a block diagram of a microgrid communication apparatus according to an exemplary embodiment of the present disclosure;
fig. 2 is a schematic connection diagram of a microgrid communication apparatus according to an exemplary embodiment of the present disclosure;
fig. 3 is a block diagram of a microgrid communication system according to an exemplary embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a transmission process of a custom message format according to an example embodiment of the present disclosure;
fig. 5 is a flowchart of a method of controlling a microgrid communication apparatus according to an exemplary embodiment of the present disclosure.
Detailed Description
The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the disclosure as defined by the claims and their equivalents. Various specific details are included to aid understanding, but these are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
In the present disclosure, terms including ordinal numbers such as "first", "second", etc., may be used to describe various elements, but these elements should not be construed as being limited to only these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and vice-versa, without departing from the scope of the present disclosure.
Under a common condition, the process layer network of the intelligent substation is subjected to message processing by a two-layer Ethernet switch according to an MAC address, and is used for realizing GOOSE \ SV message transmission. The traditional process layer network has no three-layer switch function such as IP and the like and routing function, and can not transmit TCP/IP messages.
The embodiment of the disclosure provides a microgrid communication device, which integrates functions of a traditional intelligent substation process layer (a second layer) and a TCP/IP three layer, and encapsulates TCP/IP messages and custom messages into Ethernet frames in a mixed manner. The TCP/IP packet is used to transmit non-real-time information of normal network communication of the microgrid, for example, configuration information or status information, or connection with other devices may be established; the custom message is used to transmit information such as an effective value, a communication quantity, a switching quantity, and the like, for example, an effective value of voltage and current, power and frequency, communication data read by the microgrid communication device from an external device, collected switching state information, or a control instruction sent by the microgrid master station.
The self-defined message adopts a retransmission mechanism with gradually lengthened interval time, and does not need response confirmation.
At a receiving end of the microgrid communication device, firstly, message classification and identification are carried out, messages transmitted in a mixed mode are classified into TCP/IP messages and custom messages, then the custom messages are processed in parallel, for example, decoding is carried out while the messages are received, crc operation is carried out while the messages are received, and St bytes and Sq bytes are analyzed, judged and calculated in parallel while the messages are received. Thus, after the message is received, the message analysis is completed at the same time.
Hereinafter, according to various embodiments of the present disclosure, an apparatus and a method of the present disclosure will be described with reference to the accompanying drawings.
Fig. 1 is a block diagram of a microgrid communication apparatus according to an exemplary embodiment of the present disclosure.
Referring to fig. 1, the microgrid communication apparatus 100 may include an optical module 101, a physical layer PHY chip 102, a processor 103, and a device interface 104, and the optical module 101, the physical layer PHY chip 102, the processor 103, and the device interface 104 may be electrically connected on a printed circuit board PCB.
The microgrid communication apparatus 100 may be connected to a microgrid device via a device interface 104 and to an ethernet-based microgrid communication network via a light module 101.
Fig. 2 illustrates a connection diagram of a microgrid communication apparatus according to an exemplary embodiment of the present disclosure. As shown in fig. 2, the microgrid communication apparatus 100 may be connected with a reserved serial interface of the microgrid device 200 via a device interface 104 for data interaction, and may be connected to the microgrid communication network via an optical module 101 through an optical fiber or a network cable, and further connected with the microgrid master station 300 for transmission and reception of ethernet frames.
The processor 103 is a core part of the microgrid communication device 100, and the processor 103 may include a first processing module 1031 and a second processing module 1032. In the present disclosure, the processor 103 may be implemented by a ZYNQ chip, the first processing module 1031 may be a programmed logic PL module, and the second processing module 1032 may be a processing system PS module. The first processing module 1031 is mainly used for programmable logic processing and data forwarding, for example, the first processing module 1031 may be composed of a logic portion (such as a programmable logic unit) of an FPGA including a logic chip and a configurable logic block. The second processing module 1032 may be a dedicated and optimized silicon chip element on a chip, and has a fixed architecture and instructions, and can well implement functions of control and application programs, for example, the second processing module 1032 may be composed of circuits such as an application processing unit, an expansion peripheral interface, a memory interface, an interconnection interface, a clock generation circuit, and a cache memory. However, the above examples are merely exemplary, and the present disclosure is not limited thereto.
The first processing module 1031 may include an interface module 1033, a receiving RX module 1034, a transmitting TX module 1035, and a packet classification parsing module 1036, where in fig. 1, the interface module 1033 is connected to the device interface 104, so that the first processing module 1031 performs data interaction with the microgrid device via the device interface 104 by using the interface module 1033.
RX module 1034 and TX module 1035 are connected to PHY chip 102, respectively, and PHY chip 102 is connected to optical module 101, so that first processing module 1031 can utilize RX module 1034 to perform data interaction with the ethernet-based microgrid communication network via optical module 101, and first processing module 1031 can utilize TX module 1035 to transmit ethernet frames received from second processing module 1032 to PHY chip 102 to be transmitted to the microgrid communication network via optical module 101, thereby enabling communication between the microgrid master station and the microgrid device.
In the present disclosure, for data in real-time communication in the microgrid, the microgrid communication device 100 encapsulates the data into ethernet frames in a custom message format, so as to perform data interaction with the microgrid communication network based on the ethernet. For example, the custom packet may include a destination address, a source address, a packet length, St, Sq, and packet data, where St denotes an event counter, Sq denotes a packet counter, and the packet data includes a switching value, a state value, and an analog value. The switching value and the state value are parameters in the custom message, and the analog value is a parameter in the TCP/IP message. In addition, the custom message of the present disclosure may further include crc check bytes to perform data check. However, the structure of the above-mentioned custom message is only exemplary, and some fields therein may be reduced or new fields may be added according to actual needs, and the disclosure is not limited thereto. The process of transmitting ethernet frames for the custom message format of the present disclosure will be described in detail in describing the microgrid communication system.
Referring back to fig. 1, the second processing module 1032 can be communicatively coupled to the interface module 1033, the TX module 1035, and the packet classification decoding module 1036, respectively, for data interaction. Specifically, after the RX module 1034 receives an ethernet frame from the microgrid communication network from the optical module 101 through the PHY chip 102, the RX module 1034 parses the received ethernet frame, and if a destination address in the parsed data is consistent with a source address of the microgrid communication device 100, the RX module 1034 sends the parsed data to the packet classification decoding module 1036, and the packet classification decoding module 1036 classifies a packet received from the RX module 1034 into a TCP/IP packet and a custom packet, and then performs parallel processing on the custom packet. For example, the packet classifying and decoding module 1036 may distinguish a TCP/IP packet from a custom packet according to an ethernet frame type byte in the custom packet, and then the packet classifying and decoding module 1036 decodes the packet while receiving the packet, analyzes and determines St and Sq in the custom packet and performs parallel computation, obtains a computation result while receiving the packet, and determines whether to update data according to the result. Here, the TCP/IP message may include microgrid non-real-time operation information, such as configuration information or status information, or establish a connection with other devices, and the like. The custom message may include information about the real-time operation of the microgrid, such as effective values, communication traffic, switching traffic, and the like.
The packet classification decoding module 1036 transmits the decoded TCP/IP packet to a Linux kernel in the second processing module 1032 and performs data computation via the Linux kernel, while the packet classification decoding module 1036 transmits the decoded custom packet to a bare kernel in the second processing module 1032 and performs data computation via the bare kernel. After performing data calculations on the received data, the second processing module 1032 sends the calculated data to the interface module 1033 for transmission to the microgrid device via the device interface 104. If the destination address in the parsed data does not coincide with the source address of the microgrid communication device, the RX module 1034 does not notify the second processing module 1032.
By way of example, according to the data flow direction, ethernet frames from the microgrid master station and other microgrid devices pass through the optical module 101 and the PHY chip 102 and then enter the RX module 1034 in the first processing module 1031 (i.e., the receiving module of the ethernet network), the RX module 1034 parses the received ethernet frames, thereby determining whether the destination address of the received ethernet frame coincides with the source address of the microgrid communication device 100, if the destination address of the received ethernet frame is consistent with the source address of the microgrid communication device, the RX module 1034 sends the analyzed data to the message classification decoding module 1036, the message classification decoding module 1036 classifies the received message into a TCP/IP message and a custom message according to the type byte of the ethernet frame in the data, and then, the TCP/IP packet is sent to the Linux core in the second processing module 1032, and meanwhile, the custom packet is sent to the bare core in the second processing module 1032. The Linux core and the bare core in the second processing module 1032 perform data calculation on different types of messages, and send an operation instruction in the data to the interface module 1033 of the first processing module 1031, so as to send the operation instruction in the data to the microgrid device through the device interface connected to the interface module 1033. If the destination address of the received ethernet frame does not coincide with the source address of the microgrid controller local device 100, the RX module 1034 does not notify the second processing module 1032 of the ethernet frame, i.e., does not process the ethernet frame.
The first processing module 1031 receives the operation data from the microgrid device from the device interface 104 through the interface module 1033, and transmits the received operation data to the second processing module 1032, and the second processing module 1032 performs data calculation on the received operation data, and composes the calculated data into an ethernet frame in a custom message format, and then transmits the composed ethernet frame in the custom format to the TX module 1035.
As an example, according to the data flow direction, the operation data from the microgrid device passes through the interface module 1033 in the first processing module 1031, and then enters the Linux kernel of the second processing module 1032, the Linux kernel performs related numerical calculation on the received operation data, for example, calculates an effective value, a maximum value, and the like, then forms an ethernet frame for the calculated data according to a custom message format, the formed ethernet frame enters the TX module 1035 in the first processing module 1031, and the finally formed ethernet frame is sent to the microgrid master station and other microgrid devices through the PHY chips 102 and 101 optical modules.
Fig. 3 is a block diagram of a microgrid communication system according to an exemplary embodiment of the present disclosure.
Referring to fig. 3, a microgrid communication system 300 of the present disclosure includes at least one microgrid communication apparatus 301, an ethernet-based microgrid master station 302 and at least one microgrid device 303. The microgrid communication system 300 may connect a microgrid master station 302 with each of at least one microgrid communication device 301 and each of at least one microgrid apparatus 303, respectively, in a connection relationship as shown in fig. 3.
The at least one microgrid communication device 301 may have the same configuration as the microgrid communication device 100 described above. For example, the microgrid communication apparatus 301 may include a device interface, a processor (such as a ZYNQ chip), a physical layer PHY chip, and an optical module, and the device interface, the processor, the physical layer PHY chip, and the optical module have the same functions as the device interface 104, the processor 103, the physical layer PHY chip 102, and the optical module 101 described above.
Preferably, the microgrid communication system also includes a data storage and display system 304. Data storage and display system 304 may be implemented by, for example, a SCADA data storage and display system. The data storage and display system 304, coupled to the microgrid master station 302, may display and store various operational data of the microgrid, such as, for example, critical data including switch status information, operating status of microgrid devices, load conditions, etc., alarm information, work logs, etc. However, the present disclosure is not limited thereto.
The at least one microgrid apparatus 303 may comprise a distributed power supply, an energy storage device, an energy conversion device, and related loads, wherein the distributed power supply mainly comprises a wind turbine, a photovoltaic array, a diesel engine, and the like. The energy storage device comprises a battery and a super capacitor. The related loads include domestic electric equipment, industrial electric equipment and the like. However, the present disclosure is not limited thereto. The signal interfaces of the microgrid devices 303 may be in signal communication with a processor in the microgrid communication device 301, so as to enable communication between the microgrid master station 302 and the microgrid devices 303.
According to the embodiment of the disclosure, the microgrid master station 302 and the at least one microgrid communication device 301 may perform data interaction by using ethernet frames, for example, the microgrid master station 302 accesses an ethernet through a standard ethernet interface card and performs data interaction with the plurality of microgrid communication devices 301 through the ethernet, thereby forming an intelligent microgrid communication ring network to acquire working parameters of each microgrid device 303 and regulate and control the working state of each microgrid device 303.
The microgrid communication apparatus 301 is connected with the microgrid master station 302 via a light module for data interaction, so that a processor (for example, a ZYNQ chip) in the microgrid communication apparatus 301 controls the operating state of the microgrid device 303 under the control of the microgrid master station 302. For example, an RX module in a first processing module (e.g., a PL portion) of the processor may receive an ethernet frame from the optical module through the PHY chip and parse the received ethernet frame, and if a destination address in the parsed data is consistent with a source address of the microgrid communication device 301, the RX module sends the parsed data to a packet classification decoding module of the processor, and the packet classification decoding module classifies the received packet into a TCP/IP packet and a custom packet according to an ethernet frame type byte in the custom packet, and then sends the TCP/IP packet to a Linux kernel of a second processing module (e.g., a PS portion) of the processor, and sends the custom packet to a bare kernel of the second processing module. The second processing module performs parallel data calculation on the received data using different cores, and transmits the calculated data to the interface module to be transmitted to the microgrid device via a device interface connected to the interface module. If the destination address in the analyzed data is not consistent with the source address of the microgrid communication device 301, the RX module does not notify the second processing module and does not process the data. In addition, the second processing module may compose the data into ethernet frames according to a custom message format, and transmit the composed ethernet frames to the TX module to be transmitted to the microgrid master station and other microgrid devices via the optical module connected to the PHY chip.
In addition, the first processing module may receive operation data from the microgrid device 303 through the interface module from the device interface and send the received operation data to the second processing module, the second processing module performs data calculation on the received operation data and forms an ethernet frame with the calculated data according to a custom message format and sends the ethernet frame to the TX module, and the TX module sends the combined ethernet frame. Through the control ring network, data interaction among the micro-grid communication device, the micro-grid main station and the micro-grid equipment is realized.
The message sending process of the custom format of the present disclosure may be executed according to the sending rule of the custom message as shown in fig. 4. Fig. 4 illustrates a transmission process of a custom message format according to an exemplary embodiment of the present disclosure. Referring to fig. 4, T0 represents a heartbeat time, and under a normal condition, the microgrid device sends a current state every T0 time, where a message at this time is referred to as a heartbeat message. When a second processing module (such as a PS module) in a processor (e.g., a ZYNQ chip) of the microgrid communication device finds that a data value of any member data in a data set changes, the microgrid communication device may immediately transmit all data of the data set, then transmit a second frame and a third frame at an interval T1, transmit a fourth frame at an interval T2, transmit a fifth frame at an interval T3, and gradually increase transmission time intervals of subsequent messages until an interval of a last message returns to a heartbeat time. In fig. 4, T0 indicates retransmission under stable conditions (no event occurs for a long time), (T0) indicates that retransmission under stable conditions is likely to be shortened by an event, T1 indicates the shortest transmission time after the event occurs, and T2 and T3 indicate retransmission times until stable conditions are obtained.
As an example, according to engineering practice, T0 may be set to 5000ms, T1 may be set to 2ms, T2 may be set to 2 times T1, and T3 may be set to 2 times T2, so that the time intervals of 4 retransmissions of the shift packet are: the first retransmission interval is 2ms, the second retransmission interval is 2ms, the third retransmission interval is 4ms, and the fourth retransmission interval is 8 ms. After 4 retransmissions, the custom message is forced to recover to the heartbeat time in order to reduce the system load.
If the heartbeat time interval of the self-defined message is T0, the message allowed time to live (time all to live) is 2T0, and if the message is not received within the time exceeding 2T0, the message is judged to be lost; if the next frame of self-defined message is not received within the time of 2T0, communication interruption is judged, and after the communication interruption is judged, the micro-grid communication device sends out a self-defined message chain breakage alarm. Therefore, in the communication process, the intelligent detection of the on-off of the loop between the devices is realized through continuous self-checking, and the defect that the fault of the traditional cable loop cannot be automatically found is overcome.
Fig. 5 is a flowchart of a method of controlling a microgrid communication apparatus according to an exemplary embodiment of the present disclosure. Here, the configuration and the connection relationship of the microgrid communication apparatus of fig. 5 are the same as those of the microgrid communication apparatus 100 of fig. 1, and a detailed description thereof will not be given here.
Referring to fig. 5, in step 501, an interface module is utilized by a first processing module to interface with a device to perform data interaction with a microgrid device via the device interface.
In step S502, the first processing module is connected to the PHY chip by using the RX module, so as to perform data interaction with the ethernet-based microgrid communication network via the optical module connected to the PHY chip, so that the processor in the microgrid communication apparatus controls the operating state of the microgrid device under the control of the microgrid master station.
In the present disclosure, data interaction between the microgrid communication device and the microgrid master station may be performed using an ethernet frame in a custom message format. For example, the custom packet may include a destination address, a source address, a packet length, St, Sq, and packet data, where St denotes an event counter, Sq denotes a packet counter, and the packet data includes a switching value, a state value, and an analog value. Optionally, the custom packet may further include crc check bytes to check the data.
In step S503, the RX module receives the ethernet frame from the microgrid communication network through the PHY chip from the optical module, and parses the received ethernet frame, and in step S504, the RX module determines that the destination address in the parsed data matches the source address of the microgrid communication device.
If the destination address in the analyzed data is consistent with the source address of the microgrid communication device, step S505 is performed, the RX module sends the analyzed data to the message classification decoding module, the message classification decoding module classifies the received message into a TCP/IP message and a custom message, and sends the TCP/IP message and the custom message to the Linux kernel and the bare kernel of the second processing module, respectively.
In step S506, the Linux core and the bare core in the second processing module perform data calculation on the TCP/IP packet and the custom packet, respectively. The second processing module sends the calculated data to the interface module to be sent to the microgrid device through a device interface connected with the interface module, so that the working state of the microgrid device is controlled in real time under the control of the microgrid master station.
If the destination address in the analyzed data is not consistent with the source address of the microgrid communication device, the process proceeds to step S509, and the RX module does not notify the second processing module of the received ethernet frame.
The above steps are data stream transmission processes from the microgrid communication network to the microgrid device, and the data stream transmission processes from the microgrid device to the microgrid communication network will be described below.
In step S507, the first processing module receives the operation data from the microgrid device through the interface module from the device interface, and sends the received operation data to the second processing module, and the second processing module performs data calculation on the received operation data. It should be noted that, the receiving of the ethernet frame from the microgrid communication network and the receiving of the operation data from the microgrid device are performed independently, and the above step numbering does not limit the order of the control method, that is, the order of receiving the ethernet frame or the operation data is not limited to this, and may also be performed simultaneously.
In step S508, after the data is calculated, the second processing module composes the calculated data into an ethernet frame according to the custom message format and sends the composed ethernet frame to the TX module of the first processing module, so as to send the ethernet frame to the micro-grid communication network via the optical module connected to the PHY chip.
By adopting the microgrid communication device, the control method thereof and the communication system, namely the communication link of the Ethernet, the programmable characteristic of hardware based on the PL part in the ZYNQ module and the parallel execution characteristic of verilog HDL (hardware description language) programs, the flexibility of the intelligent microgrid communication system and the real-time property of data interaction are improved, meanwhile, the iterative update of products is facilitated, and the overall operation quality of the system is improved.
While the disclosure has been shown and described with reference to exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents.

Claims (14)

1. A micro-grid communication device is characterized by comprising an optical module, a physical layer (PHY) chip, a processor and a device interface, wherein the processor comprises a first processing module,
wherein the first processing module comprises an interface module and an RX module, the first processing module is connected with the equipment interface by using the interface module to perform data interaction with the microgrid equipment via the equipment interface,
the first processing module is connected with the PHY chip by using the RX module to perform data interaction with the Ethernet-based micro-grid communication network through the optical module connected with the PHY chip,
the first processing module also comprises a message classification decoding module used for classifying and identifying messages, the message classification decoding module classifies the messages received from the micro-grid communication network into TCP/IP messages and self-defined messages, and then processes the self-defined messages in parallel, wherein the self-defined messages comprise destination addresses, source addresses, message lengths, St, Sq and message data, St represents an event counter, Sq represents a message counter, and the message data comprises switching values, state quantities and analog quantities,
wherein the TCP/IP message comprises the non-real-time operation information of the micro-grid, the self-defined message comprises the real-time operation information of the micro-grid,
wherein the first processing module further comprises a TX module and the processor further comprises a second processing module, the TX module is connected with the PHY chip,
wherein the second processing module composes the data into Ethernet frames according to a custom message format and transmits the composed Ethernet frames to the TX module for transmission to the micro-grid communication network via the optical module connected with the PHY chip,
the first processing module is a programming logic PL part of a ZYNQ chip, and the second processing module is a processing system PS part of the ZYNQ chip.
2. The microgrid communication apparatus of claim 1,
the message classification decoding module decodes the message while receiving the message, analyzes and judges St and Sq in the self-defined message, calculates the result while receiving the message, and determines whether to update data according to the calculation result, wherein St represents an event counter and Sq represents a message counter.
3. The microgrid communication apparatus of claim 1, wherein the custom message further comprises a crc check byte.
4. The microgrid communication device of claim 1, wherein the second processing module is respectively in communication connection with the interface module, the TX module and the message classification and decoding module for data interaction.
5. The microgrid communication apparatus of claim 4, wherein the RX module receives Ethernet frames from the microgrid communication network from the optical module through the PHY chip and parses the received Ethernet frames,
if the destination address in the analyzed data is consistent with the source address of the microgrid communication device, the RX module sends the analyzed data to a message classification decoding module, and the second processing module receives the data from the message classification decoding module, performs data calculation and sends the calculated data to an interface module to be sent to the microgrid device through the device interface connected with the interface module; if the destination address in the parsed data is not consistent with the source address of the device, the RX module does not notify the second processing module.
6. The microgrid communication apparatus of claim 1, wherein a first processing module receives operational data from the microgrid device from the device interface via an interface module and transmits the received operational data to a second processing module, the second processing module performing data calculations on the received operational data and framing the calculated data.
7. A microgrid communication system, characterized in that the system comprises a microgrid master station and at least one local device, wherein,
the microgrid master station and the at least one local apparatus each comprising a microgrid communication apparatus as claimed in any one of claims 1 to 6.
8. The microgrid communication system of claim 7, wherein the microgrid master station and the at least one local device form a ring communication network or a star communication network.
9. A control method of a micro-grid communication device is characterized in that the micro-grid communication device comprises an optical module, a physical layer (PHY) chip, a processor and a device interface, wherein the processor comprises a first processing module, the first processing module comprises an interface module, an RX module and a message classification decoding module, and the control method comprises the following steps:
connecting, by a first processing module, with the device interface using an interface module to perform data interaction with a microgrid device via the device interface;
connecting the first processing module with the PHY chip by using the RX module so as to perform data interaction with the Ethernet-based micro-grid communication network through the optical module connected with the PHY chip;
classifying messages received from the micro-grid communication network into TCP/IP messages and self-defined messages by a message classification decoding module, and then processing the self-defined messages in parallel, wherein the self-defined messages comprise destination addresses, source addresses, message lengths, St, Sq and message data, St represents an event counter, Sq represents a message counter, the message data comprises switching values, state quantities and analog quantities,
wherein the TCP/IP message comprises the non-real-time operation information of the micro-grid, the self-defined message comprises the real-time operation information of the micro-grid,
wherein the first processing module further comprises a TX module and the processor further comprises a second processing module, wherein the TX module is connected to the PHY chip, and the control method further comprises:
composing, by the second processing module, the data into Ethernet frames in a custom message format and transmitting the composed Ethernet frames to the TX module for transmission to the microgrid communication network via an optical module connected to the PHY chip,
the first processing module is a programming logic PL part of a ZYNQ chip, and the second processing module is a processing system PS part of the ZYNQ chip.
10. The control method according to claim 9, characterized by further comprising:
the message classification decoding module decodes the message while receiving the message, analyzes and judges St and Sq in the self-defined message, calculates the result while receiving the message, and determines whether to update data according to the calculation result, wherein St represents an event counter and Sq represents a message counter.
11. The control method of claim 9, wherein the custom packet further comprises a crc check byte.
12. The control method of claim 9, wherein the second processing module is communicatively coupled to the interface module, the TX module, and the packet classification decoding module, respectively, for data interaction.
13. The control method according to claim 12, characterized by further comprising:
receiving, by the RX module from the optical module through the PHY chip, an ethernet frame from the microgrid communication network, and parsing the received ethernet frame,
if the destination address in the analyzed data is consistent with the source address of the microgrid communication device, the RX module sends the analyzed data to a message classification decoding module, the second processing module receives the data from the message classification decoding module and performs data calculation, and sends the calculated data to an interface module to be sent to the microgrid device through the device interface connected with the interface module; and if the destination address in the analyzed data is inconsistent with the source address of the microgrid communication device, the RX module does not notify the second processing module.
14. The control method according to claim 9, characterized by further comprising:
receiving, by the first processing module, operating data from the microgrid device from the device interface through the interface module, and sending the received operating data to the second processing module;
and performing data calculation on the received operation data and framing the calculated data by the second processing module.
CN201911231704.9A 2019-12-05 2019-12-05 Micro-grid communication system, communication device and control method thereof Active CN111049815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911231704.9A CN111049815B (en) 2019-12-05 2019-12-05 Micro-grid communication system, communication device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911231704.9A CN111049815B (en) 2019-12-05 2019-12-05 Micro-grid communication system, communication device and control method thereof

Publications (2)

Publication Number Publication Date
CN111049815A CN111049815A (en) 2020-04-21
CN111049815B true CN111049815B (en) 2022-03-01

Family

ID=70234647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911231704.9A Active CN111049815B (en) 2019-12-05 2019-12-05 Micro-grid communication system, communication device and control method thereof

Country Status (1)

Country Link
CN (1) CN111049815B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038383A (en) * 2014-04-14 2014-09-10 贵州电力试验研究院 Switch based process level network message analysis method
CN104184679A (en) * 2013-05-23 2014-12-03 广州思唯奇计算机科技有限公司 Method of scheduling message in intelligent substation and device
CN104283746A (en) * 2014-09-26 2015-01-14 中国南方电网有限责任公司电网技术研究中心 System and method for achieving digital substation three-in-one network through FPGA
CN106452684A (en) * 2016-12-08 2017-02-22 广州科腾信息技术有限公司 Self-checking method for IEC61850 report data transmission message
CN107643457A (en) * 2017-09-12 2018-01-30 上海电气分布式能源科技有限公司 A kind of method of testing and system for microgrid energy management system
CN207354327U (en) * 2017-03-28 2018-05-11 南京国电南自维美德自动化有限公司 A kind of IEC61850 protocol conversion devices based on exchange chip
CN110401726A (en) * 2018-04-24 2019-11-01 中兴通讯股份有限公司 Processing method, device and the equipment of address analysis protocol message, storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411790B (en) * 2016-09-29 2019-07-23 北京东土科技股份有限公司 Data transmission method based on intelligent substation Protection control system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184679A (en) * 2013-05-23 2014-12-03 广州思唯奇计算机科技有限公司 Method of scheduling message in intelligent substation and device
CN104038383A (en) * 2014-04-14 2014-09-10 贵州电力试验研究院 Switch based process level network message analysis method
CN104283746A (en) * 2014-09-26 2015-01-14 中国南方电网有限责任公司电网技术研究中心 System and method for achieving digital substation three-in-one network through FPGA
CN106452684A (en) * 2016-12-08 2017-02-22 广州科腾信息技术有限公司 Self-checking method for IEC61850 report data transmission message
CN207354327U (en) * 2017-03-28 2018-05-11 南京国电南自维美德自动化有限公司 A kind of IEC61850 protocol conversion devices based on exchange chip
CN107643457A (en) * 2017-09-12 2018-01-30 上海电气分布式能源科技有限公司 A kind of method of testing and system for microgrid energy management system
CN110401726A (en) * 2018-04-24 2019-11-01 中兴通讯股份有限公司 Processing method, device and the equipment of address analysis protocol message, storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Modbus/TCP Fuzzer for testing internetworked industrial systems;Artemios G. Voyiatzis;《2015 IEEE 20th Conference on Emerging Technologies & Factory Automation (ETFA)》;20151026;全文 *
面向智能变电站三网合一网络的PRP/HSR实现方案;周华良;《电力自动化设备》;20180930;全文 *

Also Published As

Publication number Publication date
CN111049815A (en) 2020-04-21

Similar Documents

Publication Publication Date Title
JP5249950B2 (en) Method and system for utility network outage detection
EP2557646A1 (en) Configuration of an IEC 61850 teleprotection IED for inter-substation communication
CN108462601B (en) Multi-protection-group switching method and device applied to optical transmission network and network element equipment
CN103209318B (en) A kind of web camera
CN105491017A (en) RS485 bus multi-device multi-protocol analysis method and RS485 bus multi-device multi-protocol analysis system
CN106953814B (en) Transformer substation process layer network switching chip system, message forwarding processing method thereof and time measurement marking method
CN107453849A (en) Power distribution communication network wire link and the mutually standby interlock method of Radio Link and system, vacant lot are mutually for integrated apparatus
CN106341183A (en) Method for monitoring optical module by netmanager software
CN112436601B (en) Information flow processing method of intelligent substation, computer equipment and storage medium
CN111030910A (en) Method and system for monitoring communication state of ring network node, measurement and control device and local module
CN109120063B (en) Plug-and-play sensor monitoring method, system and acquisition unit thereof
CN110430210A (en) A kind of protocol conversion apparatus and its method for converting protocol based on colony intelligence network
EP2811606B1 (en) System for a circuit breaker control
CN111049815B (en) Micro-grid communication system, communication device and control method thereof
CN106506306B (en) Method and device for transmitting data message
CN106933721B (en) Remote monitoring method for serial port of in-situ protection device
CN217363065U (en) Terminal antenna monitoring device is divided to 5G room
CN109922157A (en) A kind of data transmission system based on wireless backup
CN213094227U (en) Edge intelligent gateway for power supply safety management
CN102081383B (en) Device and method for secure network protocol for field control
KR101596945B1 (en) TCP/IP-based Wide Use Communication Module for Smart Nano-Grid and Method thereof
AU2020399592A1 (en) Energy transmission method, energy router and operation control apparatus therefor, and storage medium
CN204101263U (en) The equipment of a kind of optical switch device and detection intelligent electronic device
CN104078945A (en) Busbar differential protection optimization method and busbar differential protection system for intelligent transformer substation
CN104144079A (en) Monitoring method and device for communication power supply

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
TR01 Transfer of patent right

Effective date of registration: 20230417

Address after: Building 1, No. 8 Boxing 1st Road, Beijing Economic and Technological Development Zone, Daxing District, Beijing, 100176 (Yizhuang Cluster, High end Industrial Zone, Beijing Pilot Free Trade Zone)

Patentee after: Beijing Jinfeng Zero Carbon Energy Co.,Ltd.

Address before: 100176 No. 8 Boxing Road, Daxing District, Beijing Economic and Technological Development Zone

Patentee before: BEIJING ETECHWIN ELECTRIC Co.,Ltd.

TR01 Transfer of patent right