CN114363424B - Communication protocol converter, communication protocol conversion method and distributed feeder system - Google Patents

Communication protocol converter, communication protocol conversion method and distributed feeder system Download PDF

Info

Publication number
CN114363424B
CN114363424B CN202210006463.3A CN202210006463A CN114363424B CN 114363424 B CN114363424 B CN 114363424B CN 202210006463 A CN202210006463 A CN 202210006463A CN 114363424 B CN114363424 B CN 114363424B
Authority
CN
China
Prior art keywords
message
serial port
goose
time
protocol
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
CN202210006463.3A
Other languages
Chinese (zh)
Other versions
CN114363424A (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.)
Guangdong Power Grid Co Ltd
Shantou Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Shantou Power Supply Bureau of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Shantou Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202210006463.3A priority Critical patent/CN114363424B/en
Publication of CN114363424A publication Critical patent/CN114363424A/en
Application granted granted Critical
Publication of CN114363424B publication Critical patent/CN114363424B/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/08Protocols for interworking; Protocol conversion
    • 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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Abstract

The embodiment of the invention discloses a communication protocol converter, a communication protocol conversion method and a distributed feeder system, wherein a serial port message transceiver module in the communication protocol converter receives a first serial port message reported by a feeder terminal from a serial port; the protocol conversion module converts the first serial port message into a second GOOSE message according to a serial port protocol and sends the second GOOSE message to the network switch through the Ethernet port, and converts the GOOSE message into a second serial port message according to the serial port protocol and sends the second serial port message to the feeder terminal through the serial port. According to the embodiment of the invention, the feeder terminals are prevented from directly communicating through the GOOSE protocol, after the feeder terminals of different manufacturers are accessed to the network through the communication protocol converter, the communication conversion is carried out through the unified serial port protocol, the correct transmission of information is ensured, the accuracy of the interoperation of the feeder terminals is improved, and after the serial port with high communication rate is adopted, the influence of the serial port communication on the whole communication rate is low.

Description

Communication protocol converter, communication protocol conversion method and distributed feeder system
Technical Field
The embodiment of the invention relates to the technical field of power distribution network communication, in particular to a communication protocol converter, a communication protocol conversion method and a distributed feeder system.
Background
In the technical field of power distribution, feeder terminals in a power grid are used for collecting switching data and controlling a switch, sending the switching data to other feeder terminals and receiving data collected by other feeder terminals.
In intelligent distributed feeder automation, the feeder terminals mostly adopt complete equipment, the feeder terminals integrate three remote functions such as voltage and current collection, fault detection, switch control and the like and communication functions among the feeder terminals, and the feeder terminals are different from different manufacturers, at present, the feeder terminals directly use a GOOSE (generic object oriented substation event, GOOSE- - -Generic Object Oriented Substation Event) protocol for communication, but because the intelligent distributed interoperation has very high requirements on the consistency of a communication model and realization logic, the direct adoption of GOOSE communication among the feeder terminals of different manufacturers is easy to cause interoperation errors or partial errors, the partial errors are more hidden and difficult to discover, and the large-scale joint debugging test is extremely difficult.
Disclosure of Invention
The embodiment of the invention provides a communication protocol converter, a communication protocol conversion method and a distributed feeder system, which are used for solving the problems that communication interoperability is difficult, errors are easy to occur and joint debugging test is difficult by directly using a GOOSE protocol between intelligent distributed feeder terminals in a power distribution network.
In a first aspect, an embodiment of the present invention provides a communication protocol converter, including a processor, a serial port and an ethernet port, where the serial port is connected to the processor and a feeder terminal, and the ethernet port is connected to the processor and a network switch, where the processor includes:
the serial port message receiving and transmitting module is used for receiving a first serial port message reported by the feeder terminal from the serial port, wherein the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol;
the GOOSE message receiving and transmitting module is used for receiving a first GOOSE message sent by the network switch from the Ethernet port;
the protocol conversion module is respectively connected with the serial port message receiving and transmitting module and the GOOSE message receiving and transmitting module, and is used for converting the first serial port message into a second GOOSE message according to the serial port protocol, transmitting the second GOOSE message to the network switch through the Ethernet port, converting the GOOSE message into a second serial port message according to the serial port protocol, and transmitting the second GOOSE message to the feeder terminal through the serial port;
The serial port protocol prescribes the format of a serial port message frame, fields contained in the message frame, keywords corresponding to each field and the length of the fields, wherein the fields comprise command words for expressing message abstracts and keywords for expressing data contents.
Optionally, the format of the serial port message frame includes a message header, a terminal address field, a frame length field, a command field, a data content and a check code, and the protocol conversion module includes:
the serial port message Wen Jiexi submodule is used for reading a terminal address, a command word and data content from the first serial port message according to the length of each field in the serial port protocol;
the GOOSE message conversion sub-module is used for generating a second GOOSE message containing terminal addresses, command words and data contents according to a GOOSE protocol;
the GOOSE message Wen Shoufa sub-module is configured to send the second GOOSE message to the network switch through the ethernet port, where the network switch is configured to send the second GOOSE message to other communication protocol converters.
Optionally, the format of the serial port message frame includes a message header, a terminal address field, a frame length field, a command field, a data content and a check code, and the protocol conversion module includes:
The GOOSE message analysis module sub-module is used for analyzing the first GOOSE message according to a GOOSE protocol to obtain the data content of the first GOOSE message;
the serial port message information determining module sub-module is used for determining the terminal address, the command word corresponding to the data content and the frame length of the feeder terminal connected with the serial port;
the serial port message conversion module sub-module is used for packaging the data content, the terminal address, the command word and the frame length of the first GOOSE message into a second serial port message according to the format of a serial port message frame of the serial port protocol;
and the serial port message sending module submodule is used for sending the second serial port message to the feeder terminal through the serial port.
Optionally, the processor further comprises:
the time setting event detection module is used for detecting whether a time setting event occurs, wherein the time setting event comprises time setting time;
the time-setting serial port message generation module is used for acquiring a time-setting command word according to the serial port protocol, converting the time-setting time into a time format appointed by the serial port protocol when a time-setting event is detected, generating a serial port time-setting message frame containing the time-setting command word and the time-setting time, transmitting the serial port time-setting message frame to the feeder line terminal through the serial port, and carrying out time setting when the feeder line terminal receives the time-setting serial port message;
And the GOOSE time-alignment message generation module is used for generating a GOOSE time-alignment message containing time alignment time and sending the GOOSE time-alignment message to the network switch when the time alignment event is detected, so that the GOOSE time-alignment message is sent to other communication protocol converters through the network switch.
Optionally, the processor further comprises:
the heartbeat message frame sending module is used for sending a first heartbeat message frame to the feeder terminal according to a preset period, and the feeder terminal returns a response message frame when receiving the first heartbeat message frame;
and the communication fault judging module is used for determining that communication is normal when the response message frame is received within a preset time period, sending a second heartbeat message frame to the feeder terminal when the response message frame is not received within the preset time period, determining that GOOSE communication is abnormal when the response message frame of the feeder terminal aiming at the second heartbeat message frame is not received within the preset time period, generating a GOOSE communication abnormal signal and sending the GOOSE communication abnormal signal to the network switch so as to be sent to an Ethernet through the network switch.
Optionally, the processor further comprises:
the response module is used for generating a response message to be sent to the feeder terminal after the second GOOSE message is sent to the network switch, the feeder terminal is used for determining that GOOSE communication is normal when the response message is received within a preset time period, determining that GOOSE communication is abnormal when the response message is not received within the preset time period, and generating a GOOSE communication abnormal message to be sent to the master station.
Optionally, the communication protocol converter further comprises a power circuit, a memory and a GOOSE communication abnormality indicator connected with the processor.
In a second aspect, an embodiment of the present invention provides a communication protocol conversion method, which is applied to the communication protocol converter in any one of the first aspects, including:
receiving a first serial port message reported by a feeder terminal from a serial port, wherein the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol;
receiving a first GOOSE message sent by the network switch from the Ethernet port;
converting the first serial port message into a second GOOSE message according to the serial port protocol, and sending the second GOOSE message to the network switch through the Ethernet port;
converting the GOOSE message into a second serial port message according to the serial port protocol, and sending the second serial port message to the feeder terminal through the serial port;
the serial port protocol prescribes the format of a serial port message frame, fields contained in the message frame, keywords corresponding to each field and the length of the fields, wherein the fields comprise command words for expressing message abstracts and keywords for expressing data contents.
Optionally, the converting the first serial port packet into a second GOOSE packet according to the serial port protocol, and sending the second GOOSE packet to the network switch through the ethernet port includes:
Reading a terminal address, a command word and data content from the first serial port message according to the length of each field in the serial port protocol;
generating a second GOOSE message containing the terminal address, the command word and the data content according to the GOOSE protocol;
and sending the second GOOSE message to the network switch through the Ethernet port, wherein the network switch is used for sending the second GOOSE message to other communication protocol converters.
In a third aspect, there is provided a distributed feeder system comprising a plurality of feeder terminals, a network switch and a communications protocol converter according to any one of the first aspects, each of the feeder terminals being connected to the network switch by one of the communications protocol converters, the communications protocol converter being configured to perform the communications protocol conversion method according to any one of the second aspects.
In the communication protocol converter of the embodiment of the invention, a processor is connected with a feeder terminal through a serial port and is connected with a network switch through an Ethernet port, a serial port message transceiver module is used for receiving a first serial port message reported by the feeder terminal from the serial port, the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol, a GOOSE message transceiver module is used for receiving a first GOOSE message sent by the network switch from the Ethernet port, and a protocol conversion module is used for converting the first serial port message into a second GOOSE message according to the serial port protocol and sending the second GOOSE message to the network switch through the Ethernet port and converting the GOOSE message into a second serial port message according to the serial port protocol and sending the second serial port message to the feeder terminal through the serial port; the communication protocol converter converts the serial port message sent by the feeder terminal into the GOOSE message and sends the GOOSE message to the network switch, and converts the GOOSE message received from the network switch into the serial port message and sends the serial port message to the feeder terminal.
Drawings
Fig. 1 is a schematic structural diagram of a communication protocol converter according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a communication protocol converter according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a communication protocol conversion method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a distributed feeder system according to a third embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic structural diagram of a communication protocol converter according to a first embodiment of the present invention, and as shown in fig. 1, the communication protocol converter 1 according to the embodiment of the present invention includes a processor 10, a serial port 20 and an ethernet port 30, where the serial port 20 is connected to the processor 10 and the feeder terminal 2, and the ethernet port 30 is connected to the processor 10 and the network switch 3, respectively.
The feeder terminal 2 may be a terminal having a data acquisition function and a switch control function, the feeder terminal 2 is generally connected with an automation switch to collect switching information of the automation switch, and send the switching information to other communication protocol converters through the communication protocol converter 1 to be forwarded to other feeder terminals through the other communication protocol converters, and receive the switching information of the automation switch collected by the other feeder terminals through the communication protocol converter 1, and generate a control instruction to control the automation switch connected with the feeder terminal 2 according to the collected switching information and the received switching information.
The network switch 3 may be a switch in an ethernet network, the communication protocol converter 1 may communicate with the network switch 3 through an ethernet port 30, and a plurality of network switches 3 may be connected through optical fibers.
In the embodiment of the present invention, a serial port protocol may be predefined, where the serial port protocol specifies a format of a serial port packet frame, a field included in the packet frame, a keyword corresponding to each field, a length of the field, and the like, where the field includes a command word for expressing a packet digest and a keyword for expressing data content to be transmitted, where the serial port may be an RS232 serial port, and an exemplary serial port may be a serial port with a high communication rate, and specifically, a serial port with a communication rate of 115200 or more baud rates is adopted.
As shown in fig. 1, the processor 10 includes a serial port message transceiver module 101, a protocol conversion module 102, and a GOOSE message transceiver module 103, where the protocol conversion module 102 is connected to the serial port message transceiver module 101 and the GOOSE message transceiver module 103, respectively, the serial port message transceiver module 101 is configured to receive a first serial port message reported by the feeder terminal 2 from the serial port 20, where the first serial port message is a message generated according to a preset serial port protocol when the feeder terminal 2 needs to send data to the communication protocol converter 1, the GOOSE message transceiver module 103 is configured to receive the first GOOSE message sent by the network switch 3 from the ethernet port 30, and the protocol conversion module 102 is configured to convert the first serial port message into a second GOOSE message according to the serial port protocol, send the second serial port message to the network switch 3 through the ethernet port 30, and convert the GOOSE message into the second serial port message according to the serial port protocol, and send the second serial port message to the feeder terminal 2 through the serial port 20.
The format of the serial port message frame is shown in the following table 1:
table 1:
synchronous word 1 Synchronous word 2 Terminal address Frame length Command word Data content Check code
In the serial port message frame format described above, seven fields including a synchronization word 1, a synchronization word 2, a terminal address, a frame length, a command word, a data content, and a check code are included, and of course, other numbers of fields may also be included, where:
synchronous word 1 and synchronous word 2 are used as message heads, synchronous word 1 and synchronous word 2 respectively occupy one byte, and for example, synchronous word 1 is fixed to be 0x25, and synchronous word 2 is fixed to be 0XF8;
the terminal address is the address of the feeder terminal and occupies two bytes;
the frame length is the length of the whole serial port message; two bytes;
the command word is used for expressing the abstract of the message, and occupies one byte, for example, the message abstract is expressed by the command word 0xA0 when the feeder terminal reports GOOSE deflection information, the message abstract is expressed by the command word 0xA1 when the feeder terminal reports current residual load current telemetry information, and the like.
The data content is the data to be transmitted by the serial port message, occupies N bytes and is determined according to the length of the data content.
In the feeder terminal 2, the feeder terminal 2 generates a first serial port packet according to a serial port packet frame format as specified by a serial port protocol and shown in table 1, and sends the first serial port packet to the processor 10, and the serial port packet transceiver module 101 of the processor 10 may receive the first serial port packet, which is described below as an example of the first serial port packet sent by the feeder terminal 2.
Taking the GOOSE shift information reported by the feeder terminal as an example, the first serial port packet may be as follows in table 2:
TABLE 2
0x25 0xF8 Terminal address 0x0A 0x00 0xA0 Position-changing remote signaling Check code
In table 2, a frame length key frame 0x0A indicates that the first serial port message occupies 10 bytes, a command word 0xA0 is a command word used in a message when a feeder terminal specified in a serial port protocol reports GOOSE shift information, data content is a key word of various shift remote signaling, and the key word occupies 2 bytes, and the significance of the shift remote signaling key word is as follows in table 3:
TABLE 3 Table 3
Figure BDA0003456991020000091
In an alternative embodiment of the present invention, the protocol conversion module 102 further includes a serial port packet Wen Jiexi sub-module, a GOOSE packet conversion sub-module, and a GOOSE packet Wen Shoufa sub-module, when the serial port packet transceiver module 101 receives the first serial port packet, the serial port packet Wen Jiexi sub-module reads a terminal address, a command word, and a data content from the first serial port packet according to lengths of respective fields in the serial port protocol, the GOOSE packet conversion sub-module generates a second GOOSE packet including the terminal address, the command word, and the data content according to the GOOSE protocol, and the GOOSE packet Wen Shoufa sub-module sends the second GOOSE packet to the network switch through the ethernet port, and the network switch sends the second GOOSE packet to the other communication protocol converter.
Taking the first serial port message shown in table 2 as an example, the serial port message Wen Jiexi submodule reads the message content of the byte position corresponding to each field from the first serial port message as the key word of each field according to the specification of the serial port protocol on the serial port message frame, and illustratively reads the 1 st byte and the 2 nd byte in the first serial port message as the message header, reads the 3 rd byte and the 4 th byte as the address of the feeder terminal, reads the 5 th byte and the 6 th byte to obtain the byte length of the first serial port message, reads the 7 th byte and the 8 th byte to obtain the command word, reads the 9 th byte to obtain the key word of the position change remote signaling as shown in table 3, namely, after the serial port message Wen Jiexi submodule analyzes the first serial port message, the terminal address of the feeder terminal, the message abstract of the first serial port (the feeder terminal reports the GOOSE position change information) and the key word of the position change signal (the key word of table 3) can be obtained.
After the GOOSE message conversion submodule analyzes the first serial port message to obtain the terminal address of the feeder terminal, the message abstract of the first serial port (the key word of table 3) and the key word of the dislocation remote signaling (the key word of table 3) by the feeder terminal, the GOOSE message conversion submodule generates a second GOOSE message containing the terminal address, the message abstract and the dislocation remote signaling information corresponding to the key word of the dislocation remote signaling according to the GOOSE protocol, and sends the second GOOSE message to the network switch 3 through the GOOSE message Wen Shoufa submodule so as to send the second GOOSE message to other communication protocol converters through the network switch 3.
The communication protocol converter can convert the serial port message sent by the feeder terminal into a GOOSE message and send the GOOSE message to other communication protocol converters, the format, the fields and the keywords of the fields of the serial port message can be predefined, the serial port message is simple in format, no redundant data exists, the data quantity is small, after the serial port with high communication rate is adopted, the serial port communication has low influence on the whole communication rate, the communication efficiency between the feeder terminal and the communication protocol converter is high, the time delay is low, and the response is timely.
In another alternative embodiment, the processor 10 further includes a response module, where the response module is configured to generate a response packet to send to the feeder terminal 2 after the GOOSE packet Wen Shoufa sub-module sends the second GOOSE packet to the network switch, where the feeder terminal 2 is configured to determine that the GOOSE communication is normal when the response packet is received within a preset duration, determine that the GOOSE communication is abnormal when the response packet is not received within the preset duration, and generate a GOOSE communication abnormality message to send to the master station.
Illustratively, the response messages are shown in table 4 below:
TABLE 4 Table 4
0x25 0xF8 Terminal address 0x09 0x00 0xA0 0x01 Check code
In the serial port protocol, a field 0x01 represents a response to a command word 0xA0, namely, represents that a communication protocol converter receives GOOSE shift information reported by a feeder terminal, converts the GOOSE shift information into a GOOSE message, sends the GOOSE message to a network switch, and then analyzes the GOOSE message according to the serial port protocol after the feeder terminal receives the response message to determine that GOOSE communication is normal, if the response message is not received, determines that the GOOSE communication is abnormal, and the feeder terminal reports a GOOSE communication abnormal message to a master station through a second network, wherein the second network is a parallel network with the network switch, such as a standby network, and the like, so that GOOSE communication abnormality detection is realized, and the GOOSE communication abnormal message is reported to the master station, so that the master station informs maintenance personnel of timely maintaining the GOOSE communication.
In another alternative embodiment, the communication protocol converter 1 further receives the first GOOSE packet sent by the network switch 3 through the GOOSE packet transceiver module 103, and the protocol conversion module 102 may include a GOOSE packet parsing module sub-module, a serial port packet information determining module sub-module, a serial port packet converting module sub-module, and a serial port packet sending module sub-module. The serial port message information determining module is used for determining a terminal address, a command word corresponding to the data content and a frame length of a feeder terminal connected with a serial port, the serial port message converting module is used for packaging the data content, the terminal address, the command word and the frame length of the first GOOSE message into a second serial port message according to a serial port message frame format of the serial port protocol, and the serial port message transmitting module is used for transmitting the second serial port message to the feeder terminal through the serial port, wherein the GOOSE protocol is an existing communication protocol and can refer to IEC61850-GOOSE communication protocols, and details are not described herein.
Taking as an example that the communication protocol converter 1 sends GOOSE information to the feeder terminal 2, a second serial port message is generated as follows in table 5:
TABLE 5
0x25 0xF8 Terminal address 0x0C 0x00 0xB0 GOOSE information Check code
In table 5, a frame length key frame 0x0C indicates that the second serial port packet occupies 10 bytes, a command word 0xB0 is a command word used in a packet when a communication protocol converter specified in a serial port protocol sends GOOSE information to a feeder terminal, the data content is a key word of various GOOSE information, the key word occupies 2 bytes, and the meaning of a part of key words of the GOOSE information is as follows in table 6:
TABLE 6
Figure BDA0003456991020000121
Figure BDA0003456991020000131
After the GOOSE message parsing module sub-module parses the first GOOSE message according to the GOOSE protocol to obtain the message content of the first GOOSE message, it may determine the message digest, the terminal address, the content of the GOOSE information, etc., and then find the command word to be matched with the message digest in the serial port protocol according to the message digest, as shown in table 5, the communication protocol converter sends the command word matched with the GOOSE information to the feeder terminal as 0xb0, and the keyword table 6 matched with the content of the GOOSE information, and then fills the command word and the keyword into each field of the serial port message according to the format of the serial port message to obtain a second serial port message, and sends the second serial port message to the feeder terminal.
The communication protocol converter can convert GOOSE messages sent by the network switch into serial port messages, the serial port messages are sent to the feeder terminal, the formats, the fields and the keywords of the fields of the serial port messages can be predefined, the serial port message format is simple, the serial port messages received by the feeder terminal have no redundant data, the data quantity is small, after serial ports with high communication rate are adopted, the influence of serial port communication on the whole communication rate is low, the communication efficiency between the feeder terminal and the communication protocol converter is high, the time delay is low, and the response is timely.
In an alternative embodiment, the processor 10 further includes a heartbeat message frame sending module and a communication fault judging module, where the heartbeat message frame sending module is configured to send a first heartbeat message frame to the feeder terminal according to a preset period, where the feeder terminal returns a response message frame when receiving the first heartbeat message frame, and the communication fault judging module is configured to determine that GOOSE communication is normal when receiving the response message frame in a preset time period, send a second heartbeat message frame to the feeder terminal when not receiving the response message frame in the preset time period, determine that GOOSE communication is abnormal if not receiving the response message frame of the feeder terminal for the second heartbeat message frame in the preset time period, and generate a GOOSE communication abnormality signal to send the signal to the network switch, so as to send the signal to the ethernet through the network switch.
The communication protocol converter sends heartbeat frames every 5 seconds when the communication protocol converter does not receive the first serial port message containing GOOSE deflection information, the feeder terminal returns acknowledgement message information normally, if the communication protocol converter does not receive the acknowledgement message information of the feeder terminal, the communication protocol converter retransmits the heartbeat frames again, if the feeder terminal does not return yet, the feeder terminal is considered to exit the distributed function or communication interruption, GOOSE communication abnormal signals are sent in the whole network, and therefore heartbeat connection can be saved between the feeder terminal and the communication protocol converter when the serial port message of the feeder terminal is reported, and abnormal interruption of communication between the feeder terminal and the communication protocol converter is avoided.
In another optional embodiment, the processor 10 further includes a time-tick event detection module, a time-tick serial port message generation module, and a GOOSE time-tick message generation module, where the time-tick event detection module is configured to detect whether a time-tick event occurs, and the time-tick event includes time-tick time; the time-setting serial port message generation module is used for acquiring a time-setting command word according to a serial port protocol when a time-setting event is detected, converting the time-setting time into a time format appointed by the serial port protocol, generating a serial port time-setting message frame containing the time-setting command word and the time-setting time, sending the serial port time-setting message frame to the feeder terminal through the serial port, and the feeder terminal carries out time setting when receiving the time-setting serial port message, and the GOOSE time-setting message generation module is used for generating a GOOSE time-setting message containing the time-setting time to be sent to the network switch when the time-setting event is detected so as to be sent to other communication protocol converters through the network switch.
In one example, the time setting event may be that the GPS module generates a time setting instruction, or receives a time setting message sent by another communication protocol converter from the network switch, and when the time setting event is detected, a serial port time setting message frame is generated, and in one example, the serial port time setting message frame is as shown in the following table 7:
TABLE 7
0x25 0xF8 Terminal address 0x12 0x00 0xB5 Time Check code
The frame length is 0x12, i.e. 18 bytes, 0xB5 represents time pairs, time is in the format of year, month, week, day, time, minute, second, millisecond, wherein year, month, week, day, time, minute, second, millisecond occupy 2, 1, 2 bytes respectively, i.e. 10 bytes.
After the serial port time-setting message frame is sent to the feeder terminal, the feeder terminal obtains time-setting time to time according to the serial port protocol to read the message content of the relevant byte from the message, and after time-setting is completed, the feeder terminal can generate a response message to be sent to the communication protocol converter, and the response message is shown in the following table 8:
TABLE 8
0x25 0xF8 Terminal address 0x09 0x00 0xB5 0x01 Check code
In table 8, field 0x01 represents a response to command word 0XB5 (time tick).
The communication protocol converter of the embodiment of the invention can generate the serial port time-synchronizing message frame and send the serial port time-synchronizing message frame to the feeder terminal, and generate the GOOSE time-synchronizing message and send the GOOSE time-synchronizing message to the network switch so as to synchronize other feeder terminals after the GOOSE time-synchronizing message is sent to other communication protocol converters through the network switch, thereby ensuring the time synchronization of the communication protocol converter and the feeder terminals in the power distribution network.
In another embodiment, the processor 10 further includes a topology information processing module, where the topology information processing module is configured to, when receiving a GOOSE packet containing topology information, parse the GOOSE packet containing topology information according to a GOOSE protocol to obtain topology information, and generate a serial port packet containing topology information according to an expression of the topology relation in the serial port protocol. The topology information may be a position and a logic relationship of a switch connected with a feeder terminal in the distribution network, for example, may express a topology relationship such as whether a switch is on a main line or a branch line, and whether the switch is a lower level switch or an upper level switch. The feeder terminal may carry topology information of the switch when reporting information, so that the GOOSE message includes topology information of the switch, after the communication protocol converter receives the GOOSE message including topology information, the communication protocol converter interprets the GOOSE message according to a GOOSE protocol to obtain topology information of the switch, and converts the topology information from an expression of a topology relationship defined in a serial port protocol to obtain a serial port message including topology information, and illustratively, a corresponding command word, a keyword of data content, etc. may be found in an expression of the serial port protocol to the topology relationship, where the topology relationship is: the switch 2 is the second switch on the main line, the command word may be 0xC0, and the data content is BIZ2, so as to indicate that the switch 2 is the second switch on the main line, and of course, other topological relation expressions may be defined in the serial port protocol, for example, for the current communication protocol converter, the topological relation may be indicated by which switch on the left or right of the current switch is the other switch, for example, BTL5, which indicates that the received information is the information of the fifth switch on the left of the current switch, and of course, other expressions may also be used, which are not limited herein.
In the communication protocol converter of the embodiment of the present invention, the processor 10 includes a topology information processing module, where the topology information processing module can process network topology information in a GOOSE packet, so as to convert the network topology information into a serial port packet capable of expressing and judging the topology relationship of other switches on a line related to a fault and an isolation fault, and after receiving the serial port packet, the feeder terminal analyzes the serial port packet according to a serial port protocol to obtain the topology relationship.
As shown in fig. 2, the communication protocol converter 1 of the embodiment of the present invention may further include a memory 40, a power circuit 50, a GOOSE communication anomaly indicator 60, and a GPS module, where the memory 40, the power circuit 50, the GOOSE communication anomaly indicator 60, and the GPS module 70 are all connected to the processor 10, the memory 40 may be used to store message data, the power circuit 50 is used to provide an operating power supply for the communication protocol converter 1, the GOOSE communication anomaly indicator 60 is used to indicate a communication state of GOOSE communication, and the GPS module 70 may be used to obtain a time-tick.
In the communication protocol converter of the embodiment of the invention, a processor is connected with a feeder terminal through a serial port and is connected with a network switch through an Ethernet port, a serial port message transceiver module is used for receiving a first serial port message reported by the feeder terminal from the serial port, the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol, a GOOSE message transceiver module is used for receiving a first GOOSE message sent by the network switch from the Ethernet port, and a protocol conversion module is used for converting the first serial port message into a second GOOSE message according to the serial port protocol and sending the second GOOSE message to the network switch through the Ethernet port and converting the GOOSE message into a second serial port message according to the serial port protocol and sending the second serial port message to the feeder terminal through the serial port; the communication protocol converter converts a serial port message sent by the feeder terminal into a GOOSE message and sends the GOOSE message to the network switch, and converts the GOOSE message received from the network switch into a serial port message and sends the serial port message to the feeder terminal.
Example two
Fig. 3 is a step flow chart of a communication protocol conversion method provided by a second embodiment of the present invention, where the communication protocol conversion method of the second embodiment of the present invention is applied to a communication protocol converter of the first embodiment, as shown in fig. 1, where the communication protocol converter includes a processor 10, a serial port 20 and an ethernet port 30, the serial port 20 is respectively connected with the processor 10 and a feeder terminal 2, and the ethernet port 30 is respectively connected with the processor 10 and a network switch 3, as shown in fig. 3, where the communication protocol conversion method of the embodiment of the present invention may include:
s301, receiving a first serial port message reported by a feeder terminal from a serial port, wherein the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol.
The serial port protocol prescribes the format of a serial port message frame, fields contained in the message frame, keywords corresponding to each field and the length of the fields, wherein the fields comprise command words for expressing message abstracts and fields for expressing data contents.
S302, receiving a first GOOSE message sent by a network switch from an Ethernet port.
S303, converting the first serial port message into a second GOOSE message according to the serial port protocol, and sending the second GOOSE message to the network switch through the Ethernet port.
Optionally, the terminal address, the command word and the data content may be read from the first serial port message according to the lengths of the fields in the serial port protocol, a second GOOSE message including the terminal address, the command word and the data content may be generated according to the GOOSE protocol, and the second GOOSE message may be sent to the network switch through the ethernet port, where the network switch is configured to send the second GOOSE message to the other communication protocol converter.
S304, converting the GOOSE message into a second serial port message according to the serial port protocol, and sending the second serial port message to the feeder terminal through the serial port.
Optionally, the first GOOSE message may be parsed according to a GOOSE protocol to obtain a data content of the first GOOSE message, a terminal address of a feeder terminal connected to the serial port, a command word corresponding to the data content, and a frame length are determined according to the serial port protocol, and according to a serial port message frame format of the serial port protocol, the data content, the terminal address, the command word, and the frame length of the first GOOSE message are packaged into a second serial port message, and the second serial port message is sent to the feeder terminal through the serial port.
In an alternative embodiment, the method further comprises: detecting whether a time setting event occurs or not, wherein the time setting event comprises time setting time, when the time setting event is detected, acquiring a time setting command word according to a serial port protocol, converting the time setting time into a time format appointed by the serial port protocol, generating a serial port time setting message frame containing the time setting command word and the time setting time, sending the serial port time setting message frame to a feeder terminal through a serial port, carrying out time setting when the feeder terminal receives the time setting serial port message, and generating a GOOSE time setting message containing the time setting time when the time setting event is detected, and sending the GOOSE time setting message to a network switch so as to be sent to other communication protocol converters through the network switch.
In an alternative embodiment, the method further comprises: sending a first heartbeat message frame to the feeder terminal according to a preset period, and returning a response message frame when the feeder terminal receives the first heartbeat message frame; when the response message frame is received within the preset time, the communication is determined to be normal, when the response message frame is not received within the preset time, the second heartbeat message frame is sent to the feeder terminal, and if the response message frame of the feeder terminal aiming at the second heartbeat message frame is not received within the preset time, the GOOSE communication abnormality is determined, and a GOOSE communication abnormality signal is generated and sent to the network switch to be sent to the Ethernet through the network switch.
In an alternative embodiment, the method further comprises: and generating a response message after the second GOOSE message is sent to the network switch, and sending the response message to the feeder terminal, wherein the feeder terminal is used for determining that GOOSE communication is normal when the response message is received within a preset time period, determining that GOOSE communication is abnormal when the response message is not received within the preset time period, generating a GOOSE communication abnormal message and sending the GOOSE communication abnormal message to the master station.
The communication protocol conversion method provided by the embodiment of the invention is applied to the communication protocol converter provided by the embodiment of the invention, so that the communication protocol conversion method has corresponding beneficial effects.
It should be noted that, for the method embodiment, since it is substantially similar to the embodiment of the communication protocol converter, the description is relatively simple, and the relevant points are only referred to the partial description of the embodiment of the communication protocol converter.
Example III
Fig. 4 is a distributed feeder system according to a third embodiment of the present invention, where the distributed feeder system includes a plurality of feeder terminals 2, a network switch 3, and a communication protocol converter 1 according to the first embodiment, each feeder terminal 2 is connected to the network switch 3 through one communication protocol converter 1, the feeder terminal 2 is connected to an automation switch 4, and the communication protocol converter 1 is configured to perform the communication protocol conversion method according to the second embodiment.
In the distributed feeder system of the embodiment of the invention, after the feeder terminals are connected with the communication protocol converter through the serial port, the feeder terminals are connected with the communication protocol converter through the GOOSE communication network, on one hand, the problem that interoperation errors are easy to occur in direct communication between the feeder terminals through the GOOSE communication protocol is avoided, the format, the fields, the keywords of the fields and the length of the fields of the serial port message can be defined through the serial port protocol, so that the serial port message is simplified, redundant data in the message is less, unified serial port protocol communication conversion is realized by the communication protocol converter for the feeder terminals of different manufacturers of data exchange quantity between the feeder terminals and the communication protocol converter, the accurate transmission of information is ensured, the accuracy of interoperation of the feeder terminals is improved, and on the other hand, in the distributed feeder system, the communication protocol converter simultaneously has the communication function, the communication function is separated from the feeder terminals, the function of the communication function and the difficulty of the joint debugging test can be respectively carried out, and the difficulty of the joint debugging test is reduced.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (8)

1. The utility model provides a communication protocol converter which characterized in that includes treater, serial ports and ethernet mouth, the serial ports respectively with treater and feeder terminal are connected, the ethernet mouth respectively with treater and network switch are connected, the treater includes:
the serial port message receiving and transmitting module is used for receiving a first serial port message reported by the feeder terminal from the serial port, wherein the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol;
the GOOSE message receiving and transmitting module is used for receiving a first GOOSE message sent by the network switch from the Ethernet port;
The protocol conversion module is respectively connected with the serial port message receiving and transmitting module and the GOOSE message receiving and transmitting module and is used for converting the first serial port message into a second GOOSE message according to the serial port protocol, transmitting the second GOOSE message to the network switch through the Ethernet port, converting the GOOSE message into a second serial port message according to the serial port protocol and transmitting the second serial port message to the feeder terminal through the serial port, wherein the serial port protocol prescribes the format of a serial port message frame, fields contained in the message frame, keywords corresponding to each field and the length of the fields, and the fields comprise command words for expressing message abstracts and keywords for expressing data contents;
the time setting event detection module is used for detecting whether a time setting event occurs, wherein the time setting event comprises time setting time;
the time-setting serial port message generation module is used for acquiring a time-setting command word according to the serial port protocol, converting the time-setting time into a time format appointed by the serial port protocol when a time-setting event is detected, generating a serial port time-setting message frame containing the time-setting command word and the time-setting time, transmitting the serial port time-setting message frame to the feeder line terminal through the serial port, and carrying out time setting when the feeder line terminal receives the time-setting serial port message;
The GOOSE time-alignment message generation module is used for generating a GOOSE time-alignment message containing time alignment time to be sent to the network switch when the time alignment event is detected, so as to be sent to other communication protocol converters through the network switch;
the heartbeat message frame sending module is used for sending a first heartbeat message frame to the feeder terminal according to a preset period, and the feeder terminal returns a response message frame when receiving the first heartbeat message frame;
and the communication fault judging module is used for determining that communication is normal when the response message frame is received within a preset time period, sending a second heartbeat message frame to the feeder terminal when the response message frame is not received within the preset time period, determining that GOOSE communication is abnormal when the response message frame of the feeder terminal aiming at the second heartbeat message frame is not received within the preset time period, generating a GOOSE communication abnormal signal and sending the GOOSE communication abnormal signal to the network switch so as to be sent to an Ethernet through the network switch.
2. The communication protocol converter according to claim 1, wherein the format of the serial port message frame includes a header, a terminal address field, a frame length field, a command field, a data content, and a check code, and the protocol conversion module includes:
The serial port message Wen Jiexi submodule is used for reading a terminal address, a command word and data content from the first serial port message according to the length of each field in the serial port protocol;
the GOOSE message conversion sub-module is used for generating a second GOOSE message containing terminal addresses, command words and data contents according to a GOOSE protocol;
the GOOSE message Wen Shoufa sub-module is configured to send the second GOOSE message to the network switch through the ethernet port, where the network switch is configured to send the second GOOSE message to other communication protocol converters.
3. The communication protocol converter according to claim 1, wherein the format of the serial port message frame includes a header, a terminal address field, a frame length field, a command field, a data content, and a check code, and the protocol conversion module includes:
the GOOSE message analysis module sub-module is used for analyzing the first GOOSE message according to a GOOSE protocol to obtain the data content of the first GOOSE message;
the serial port message information determining module sub-module is used for determining a terminal address of a feeder terminal connected with the serial port, a command word corresponding to data content and a frame length according to the serial port protocol;
The serial port message conversion module sub-module is used for packaging the data content, the terminal address, the command word and the frame length of the first GOOSE message into a second serial port message according to the format of a serial port message frame of the serial port protocol;
and the serial port message sending module submodule is used for sending the second serial port message to the feeder terminal through the serial port.
4. A communication protocol converter according to any one of claims 1 to 3 wherein the processor further comprises:
the response module is used for generating a response message to be sent to the feeder terminal after the second GOOSE message is sent to the network switch, the feeder terminal is used for determining that GOOSE communication is normal when the response message is received within a preset time period, determining that GOOSE communication is abnormal when the response message is not received within the preset time period, and generating a GOOSE communication abnormal message to be sent to the master station.
5. A communication protocol converter according to any one of claims 1 to 3 further comprising a power circuit, a memory, a GOOSE communication exception indicator, connected to the processor.
6. A communication protocol conversion method, characterized by being applied to a communication protocol converter according to any one of claims 1-5, comprising:
Receiving a first serial port message reported by a feeder terminal from a serial port, wherein the first serial port message is a message generated by the feeder terminal according to a preset serial port protocol;
receiving a first GOOSE message sent by a network switch from an Ethernet port;
converting the first serial port message into a second GOOSE message according to the serial port protocol, and sending the second GOOSE message to the network switch through the Ethernet port;
converting the GOOSE message into a second serial message according to the serial protocol, and sending the second serial message to the feeder terminal through the serial port, wherein the serial protocol prescribes the format of a serial message frame, fields contained in the message frame, keywords corresponding to each field and the length of the fields, and the fields comprise command words for expressing a message abstract and fields for expressing data content;
further comprises:
detecting whether a time setting event occurs, wherein the time setting event comprises time setting time;
when a time setting event is detected, a time setting command word is obtained according to a serial port protocol, time setting time is converted into a time format appointed by the serial port protocol, and a serial port time setting message frame containing the time setting command word and the time setting time is generated;
the method comprises the steps that a serial port time alignment message frame is sent to a feeder terminal through a serial port, and the feeder terminal performs time alignment when receiving a time alignment serial port message;
Generating a GOOSE time-to-time message containing time-to-time and sending the message to the network switch so as to be sent to other communication protocol converters through the network switch;
further comprises:
sending a first heartbeat message frame to the feeder terminal according to a preset period, and returning a response message frame when the feeder terminal receives the first heartbeat message frame;
when the response message frame is received within a preset duration, determining that communication is normal;
when the response message frame is not received within a preset time length, a second heartbeat message frame is sent to the feeder terminal;
if the response message frame of the feeder terminal for the second heartbeat message frame is not received within the preset time, determining that GOOSE communication is abnormal, generating a GOOSE communication abnormal signal, and sending the GOOSE communication abnormal signal to the network switch so as to be sent to an Ethernet through the network switch.
7. The method for converting a communication protocol according to claim 6, wherein converting the first serial port message into a second GOOSE message according to the serial port protocol and transmitting the second GOOSE message to the network switch through the ethernet port comprises:
reading a terminal address, a command word and data content from the first serial port message according to the length of each field in the serial port protocol;
Generating a second GOOSE message containing the terminal address, the command word and the data content according to the GOOSE protocol;
and sending the second GOOSE message to the network switch through the Ethernet port, wherein the network switch is used for sending the second GOOSE message to other communication protocol converters.
8. A distributed feeder system comprising a plurality of feeder terminals, a network switch and a communication protocol converter as claimed in any one of claims 1 to 5, each of the feeder terminals being connected to the network switch by means of one of the communication protocol converters, the communication protocol converter being configured to perform a communication protocol conversion method as claimed in any one of claims 6 to 7.
CN202210006463.3A 2022-01-05 2022-01-05 Communication protocol converter, communication protocol conversion method and distributed feeder system Active CN114363424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210006463.3A CN114363424B (en) 2022-01-05 2022-01-05 Communication protocol converter, communication protocol conversion method and distributed feeder system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210006463.3A CN114363424B (en) 2022-01-05 2022-01-05 Communication protocol converter, communication protocol conversion method and distributed feeder system

Publications (2)

Publication Number Publication Date
CN114363424A CN114363424A (en) 2022-04-15
CN114363424B true CN114363424B (en) 2023-06-30

Family

ID=81106495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210006463.3A Active CN114363424B (en) 2022-01-05 2022-01-05 Communication protocol converter, communication protocol conversion method and distributed feeder system

Country Status (1)

Country Link
CN (1) CN114363424B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377781A (en) * 2011-10-25 2012-03-14 四川电力职业技术学院 Intelligent transformer station process layer data acquisition, conversion and transmission device and control method thereof
CN104363102A (en) * 2014-10-31 2015-02-18 许继电气股份有限公司 Method for adjusting group transmission by aid of GOOSE multicast and RS-485 broadcast cooperation
CN205281479U (en) * 2015-12-11 2016-06-01 国网安徽省电力公司淮北供电公司 Intelligent substation's SCD file inspection device
CN110995588A (en) * 2019-12-25 2020-04-10 华南理工大学 Method suitable for converting GOOSE message into R-GOOSE message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102377781A (en) * 2011-10-25 2012-03-14 四川电力职业技术学院 Intelligent transformer station process layer data acquisition, conversion and transmission device and control method thereof
CN104363102A (en) * 2014-10-31 2015-02-18 许继电气股份有限公司 Method for adjusting group transmission by aid of GOOSE multicast and RS-485 broadcast cooperation
CN205281479U (en) * 2015-12-11 2016-06-01 国网安徽省电力公司淮北供电公司 Intelligent substation's SCD file inspection device
CN110995588A (en) * 2019-12-25 2020-04-10 华南理工大学 Method suitable for converting GOOSE message into R-GOOSE message

Also Published As

Publication number Publication date
CN114363424A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN109450704B (en) Plug-and-play intelligent distribution transformer terminal and distribution data communication system
CN103019141B (en) Control module, control method and electric power dynamic recording device and implementation method thereof
CN102324793B (en) Method and system for realizing a plurality of virtual power distribution terminals
CN103888320A (en) Switch device and method for measuring transmission delay through FPGA
CN104580245B (en) A kind of 104 packet parsing system of distribution terminal and its analytic method
CN104038383A (en) Switch based process level network message analysis method
CN104993596A (en) A distribution network automation remote terminal unit based on embedded multiple ARM processors
CN105006892A (en) Power distribution network intelligent feeder terminal based on embedded advanced RISC machines (ARM) and multiple communication protocols
CN112910766A (en) Edge computing intelligent gateway for field bus control system
CN111740879A (en) Data acquisition and data forwarding gateway implementation method
CN110971491A (en) Electric power system 101 and 104 communication protocol processing system and processing method thereof
CN114363424B (en) Communication protocol converter, communication protocol conversion method and distributed feeder system
CN101267425A (en) Inter-board interface communication protocol for dynamic environment distributed monitoring system
CN109120063B (en) Plug-and-play sensor monitoring method, system and acquisition unit thereof
CN211456802U (en) Distributed protection measurement and control device
CN202615137U (en) Time service unifying device of electrical power system
CN203519741U (en) Fault oscillograph
CN101267444B (en) For the means of communication between the control point in supervisory control system and Surveillance center
CN108345558B (en) RS485 centralized configuration unit supporting multiple protocols
CN211181050U (en) Comprehensive state intelligent collector for electric control cabinet
CN101771617B (en) Method and system for following point-to-point bandwidth, remote terminal equipment and home terminal equipment
CN112347157A (en) Terminal data transmission method and system based on Internet of things
Xu et al. Profibus automation technology and its application in DP slave development
CN202696289U (en) Low voltage power distribution monitoring system
CN107171440B (en) System for collecting electrical data of switch cabinet by intelligent transformer terminal and collecting method thereof

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