Electric power stability control system heterogeneous control terminal access method and device
By supporting the analysis of communication interfaces and mapping tables of multiple protocol types, access and data processing of multiple heterogeneous control terminals is realized, which solves the problem that the existing technology cannot support multiple terminal access, and improves the control of the power system Substation program reliability.
Patent Information
- Application Number
- CN202411380721.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Existing access devices or methods cannot achieve access to multiple heterogeneous control terminals, and can only support a single physical connection method or a single protocol transmission, which cannot meet the security and stable control needs of the power system for multiple control resources.
Using communication interfaces that support various heterogeneous control terminal protocol types, the mapping table parses and encapsulates data packets to achieve unified processing and transmission of multiple terminal data, and supports access to ring network, HDLC, SV/GOOSE and TCP/IP protocols. and send.
It realizes unified access and data processing of multiple heterogeneous control terminals, improves the reliability of control substation programs, and avoids the need to modify programs due to changes in the number of terminals and access methods.
Smart Images

Figure CN119276914A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to terminal access technology, and in particular to a method and device for accessing heterogeneous control terminals of an electric power stabilization and control system. Background Art
[0002] As the power system has higher and higher demands for safety and stability, the existing safety and stability control resources can hardly meet the needs of safe and stable operation of the power system. It is urgent to incorporate interruptible loads, distributed power sources, distributed energy storage, electric vehicles, smart homes and other control resources into the power safety and stability control system (hereinafter referred to as the power stability control system) to participate in the safe and stable control of the power grid. As a result, there are more and more ways for control resources to access the power stability control system through control terminals, which are mainly divided into: 4G, 5G, optical fiber direct connection, optical fiber ring network and other physical connection methods. The communication protocols mainly include TCP / IP protocol, SV / GOOSE protocol, stable control optical fiber ring network protocol, stable control 2M communication HDLC protocol, etc., while the existing access devices or methods cannot realize the access of multiple heterogeneous control terminals, and can only realize a single physical connection method or a single protocol transmission. Summary of the invention
[0003] In view of the problems existing in the prior art, the object of the present invention is to provide a method and device for accessing heterogeneous control terminals of an electric power stabilization control system, which can realize access of multiple different types of control terminals.
[0004] In order to achieve the above-mentioned object of the invention, the present invention provides the following technical solutions:
[0005] A method for accessing a heterogeneous control terminal of an electric power stabilization control system, comprising:
[0006] A communication interface supporting the protocol types of various heterogeneous control terminals is adopted, and the communication interface receives a first type of data packet sent by various heterogeneous control terminals;
[0007] According to the first mapping table, the protocol type of the communication interface receiving each first type of data packet is obtained as the protocol type corresponding to the first type of data packet, wherein the first mapping table is used to indicate the mapping rules between the terminal serial number, the unique address identifier, the interface number of the communication interface, and the protocol type of each accessible heterogeneous control terminal;
[0008] According to the protocol type of each first-type data packet, a source address is parsed from each received first-type data packet as a unique address identifier corresponding to the first-type data packet; if the source address does not exist in the first-type data packet, an interface number of the communication interface that receives the first-type data packet is used as the unique address identifier corresponding to the first-type data packet;
[0009] According to the first mapping table, obtaining the terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier;
[0010] According to the second mapping table, obtaining the position interval of the application layer data corresponding to each terminal serial number in the sent data packet, wherein the second mapping table is used to indicate the mapping rule between the terminal serial number of the accessible heterogeneous control terminal and the position interval occupied by its application layer data in the sent data packet;
[0011] Parsing application layer data from each received first type data packet, and placing the application layer data of all first type data packets in corresponding position intervals to form an uplink data packet;
[0012] The uploading data packet is sent to the control substation device of the power stabilization control system.
[0013] Furthermore, the method further comprises:
[0014] Receiving a second type of data packet sent by a control substation device of a power stabilization and control system to a heterogeneous control terminal;
[0015] According to the third mapping table, obtaining the terminal sequence number of the heterogeneous control terminal to which the data in each position interval of the second type data packet needs to be sent, wherein the third mapping table is used to indicate the mapping rule between the data in each position interval in the second type data packet and the terminal sequence number of the heterogeneous control terminal to which the data needs to be sent;
[0016] According to the first mapping table, obtaining a unique address identifier, a protocol type, and an interface number of a communication interface corresponding to each terminal serial number;
[0017] Extracting data at each interval position from the second type of data packet, and encapsulating it into a downlink data packet according to the corresponding protocol type;
[0018] Each sent data packet is sent to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
[0019] Furthermore, the heterogeneous control terminal includes a ring network terminal, a HDLC terminal, a SV / GOOSE terminal and a TCP / IP terminal.
[0020] Further, the adopting of a communication interface supporting the protocol types of various heterogeneous control terminals to receive a first type of data packet sent by various heterogeneous control terminals specifically includes:
[0021] Adopting a stable control ring network interface to receive a first type of data packet sent by a ring network terminal;
[0022] Using a 2M interface to receive a first type of data packet sent by an HDLC terminal;
[0023] Using an Ethernet interface to receive a first type of data packet sent by a SV / GOOSE terminal;
[0024] A wireless network interface is used to receive a first type of data packet sent by a TCP / IP terminal.
[0025] Further, the method of parsing a source address from each received first type data packet according to the protocol type of each first type data packet as a unique address identifier corresponding to the first type data packet, and if the source address does not exist in the first type data packet, using the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet, specifically includes:
[0026] Parsing each received first-type data packet according to the protocol type of each first-type data packet to obtain a source address in the first-type data packet;
[0027] If the source address is a ring network terminal identity, the ring network terminal identity is used as the unique address identifier;
[0028] If the source address does not exist, the interface number of the communication interface that receives the first type of data packet is used as the unique address identifier;
[0029] If the source address is a SV / GOOSE terminal identity, the SV / GOOSE terminal identity is used as the unique address identifier;
[0030] If the source address is a TCP / IP address, the TCP / IP address is used as a unique address identifier.
[0031] Further, extracting the data at each interval position from the second type data packet and encapsulating it into a downlink data packet according to the corresponding protocol type specifically includes:
[0032] Extracting data at each interval position from the second type of data packet;
[0033] If the protocol type of the data in the position interval is the stable control ring network protocol, the data in the current position interval is encapsulated as a sent data packet of the stable control ring network protocol;
[0034] If the protocol type of the data in the location interval is the HDLC protocol, the data in the current location interval is encapsulated as a downlink data packet of the HDLC protocol;
[0035] If the protocol type of the data in the location interval is SV / GOOSE protocol, the data in the current location interval is encapsulated as a sent data packet of SV / GOOSE protocol;
[0036] If the protocol type of the data in the location interval is the TCP / IP protocol, the data in the current location interval is encapsulated as a sent data packet of the TCP / IP protocol.
[0037] Further, sending each sent data packet to the address where the corresponding unique address identifier is located through the communication interface of the corresponding interface number specifically includes:
[0038] If the protocol type of the data packet sent is a stable control ring network protocol, the data packet is sent to the ring network terminal whose ring network terminal identity is a unique address identifier through the stable control ring network interface;
[0039] If the protocol type of the data packet to be sent is the HDLC protocol, the data packet will be sent to the 2M interface whose interface number is the unique address identifier;
[0040] If the protocol type to which the data packet is sent is the SV / GOOSE protocol, the data packet is sent to the SV / GOOSE terminal whose SV / GOOSE terminal identity is the unique address identifier through the Ethernet interface;
[0041] If the protocol type to which the data packet is sent is TCP / IP protocol, the data packet is sent to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface.
[0042] Furthermore, the uploaded data packet is sent to the control substation device of the power stabilization and control system through the control substation interface, and the second type of data packet is received through the control substation interface.
[0043] A heterogeneous control terminal access device for a power stabilization control system, comprising:
[0044] A plurality of communication interfaces supporting various heterogeneous control terminal protocol types, used for receiving first type data packets sent by various heterogeneous control terminals;
[0045] A first mapping table is used to indicate a mapping rule between a terminal serial number, a unique address identifier, an interface number of a communication interface, and a protocol type of each accessible heterogeneous control terminal;
[0046] A second mapping table, used to indicate a mapping rule between terminal serial numbers of accessible heterogeneous control terminals and the position intervals occupied by their application layer data in an uplinked data packet;
[0047] A protocol type acquisition module, used to acquire, according to the first mapping table, the protocol type of the communication interface receiving each first type data packet as the protocol type corresponding to the first type data packet;
[0048] A unique address identifier acquisition module, used to parse a source address from each received first type data packet according to the protocol type of each first type data packet as a unique address identifier corresponding to the first type data packet, and if the source address does not exist in the first type data packet, use the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet;
[0049] A second mapping table, used to indicate a mapping rule between terminal serial numbers of accessible heterogeneous control terminals and the position intervals occupied by their application layer data in an uplinked data packet;
[0050] A first terminal serial number extraction module, used for obtaining the terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier according to the first mapping table;
[0051] A data location extraction module, used to obtain the location interval of the application layer data corresponding to each terminal sequence number in the transmitted data packet according to the second mapping table;
[0052] The uploading data packet generating module is used to parse the application layer data from each received first type data packet, and put the application layer data of all the first type data packets in the corresponding position interval to form an uploading data packet;
[0053] The uploading module is used to upload the uploading data packet to the control substation device of the power stabilization and control system.
[0054] Furthermore, the device also includes:
[0055] A second type data packet receiving module, used for receiving a second type data packet sent by the power stabilization control system control substation device to the heterogeneous control terminal;
[0056] A third mapping table, used to indicate a mapping rule between data in each position interval in the second type data packet and a terminal serial number of a heterogeneous control terminal to which the data needs to be sent;
[0057] A second terminal serial number extraction module, used for obtaining, according to a third mapping table, a terminal serial number of a heterogeneous control terminal to which data in each position interval of a second type of data packet needs to be sent;
[0058] An address type extraction module, used to obtain the unique address identifier, protocol type and interface number of the communication interface corresponding to each terminal serial number according to the first mapping table;
[0059] A sending data packet generation module is used to extract the data at each interval position from the second type of data packet and encapsulate it into a sending data packet according to the corresponding protocol type;
[0060] The sending module is used to send each sending data packet to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
[0061] Furthermore, the heterogeneous control terminal includes a ring network terminal, a HDLC terminal, a SV / GOOSE terminal and a TCP / IP terminal.
[0062] Furthermore, the communication interface specifically includes:
[0063] The stable control ring network interface is used to receive the first type of data packet sent by the ring network terminal;
[0064] 2M interface, used for receiving the first type of data packets sent by the HDLC terminal;
[0065] Ethernet interface, used for receiving the first type of data packets sent by the SV / GOOSE terminal;
[0066] The wireless network interface is used to receive a first type of data packet sent by a TCP / IP terminal.
[0067] Furthermore, the unique address identification acquisition module specifically includes:
[0068] A source address acquisition unit, configured to parse each received first type data packet according to the protocol type of each first type data packet, and acquire a source address in the first type data packet;
[0069] A first address identifier acquisition unit, configured to use the ring network terminal identity identifier as a unique address identifier if the source address is a ring network terminal identity identifier;
[0070] A second address identifier acquisition unit, configured to use the interface number of the communication interface that receives the first type of data packet as a unique address identifier if the source address does not exist;
[0071] A third address identifier obtaining unit, configured to use the SV / GOOSE terminal identity identifier as a unique address identifier if the source address is the SV / GOOSE terminal identity identifier;
[0072] The fourth address identifier obtaining unit is used to use the TCP / IP address as the unique address identifier if the source address is a TCP / IP address.
[0073] Furthermore, the module for generating data packets for sending specifically includes:
[0074] A data extraction unit, used to extract data at each interval position from the second type of data packet;
[0075] A first data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the stable control ring network protocol when the protocol type to which the data in the location interval belongs is the stable control ring network protocol;
[0076] The second data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the HDLC protocol when the protocol type to which the data in the location interval belongs is the HDLC protocol;
[0077] A third data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the SV / GOOSE protocol when the protocol type to which the data in the location interval belongs is the SV / GOOSE protocol;
[0078] The fourth data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the TCP / IP protocol when the protocol type to which the data in the location interval belongs is the TCP / IP protocol.
[0079] Furthermore, the sending module specifically includes:
[0080] The first sending unit is used for sending the sent data packet to the ring network terminal whose ring network terminal identity is a unique address identifier through the stable control ring network interface when the protocol type to which the sent data packet belongs is a stable control ring network protocol;
[0081] The second sending unit is used to send the sent data packet to the 2M interface whose interface number is the unique address identifier when the protocol type to which the sent data packet belongs is the HDLC protocol;
[0082] The third issuing unit is used for sending the issued data packet to the SV / GOOSE terminal whose SV / GOOSE terminal identity is a unique address identifier through an Ethernet interface when the protocol type to which the issued data packet belongs is the SV / GOOSE protocol;
[0083] The fourth sending unit is used to send the sending data packet to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface when the protocol type to which the sending data packet belongs is the TCP / IP protocol.
[0084] Furthermore, the sending module and the second type data packet receiving module are both control substation interfaces.
[0085] Compared with the prior art, the present invention has the following beneficial effects: the present invention proposes an access device and method for heterogeneous control terminals of an electric power stabilization control system, which sends the data uploaded by the heterogeneous control terminals to the control substation device according to a unified protocol; receives and parses the commands and other data of the control substation device, and sends them to the designated control terminal. The control substation device does not need to care about the specific access method and access protocol of the heterogeneous control terminal, and realizes the unification of the control substation device program under different access methods of the control terminal, avoids the need to modify the control substation device program due to changes in the number of control terminals and the access method, and improves the reliability of the control substation device program. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] Figure 1 It is a schematic diagram of some steps of the method for accessing heterogeneous control terminals of a power stabilization control system provided by the present invention;
[0087] Figure 2 It is a schematic diagram of some steps of an example of a method for accessing a heterogeneous control terminal of a power stabilization control system provided by the present invention;
[0088] Figure 3 It is a connection relationship diagram of the method for accessing heterogeneous control terminals of the power stabilization control system provided by the present invention;
[0089] Figure 4 It is a schematic diagram of another part of the steps of the method for accessing heterogeneous control terminals of a power stabilization control system provided by the present invention;
[0090] Figure 5 It is a schematic diagram of another part of the steps of an example of the method for accessing heterogeneous control terminals of a power stabilization control system provided by the present invention. DETAILED DESCRIPTION
[0091] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0092] Embodiment 1
[0093] The embodiment of the present invention provides a method for accessing heterogeneous control terminals of a power stabilization control system, such as Figure 1 , 2 As shown, the following steps are included:
[0094] S101. Using a communication interface that supports various heterogeneous control terminal protocol types, receiving a first type of data packet sent by various heterogeneous control terminals.
[0095] The heterogeneous control terminals may be a variety of control terminals supporting different protocol types, for example, Figure 3As shown, it can be a control terminal (ring network terminal) supporting the stable control ring network protocol, a control terminal (HDLC terminal) supporting the HDLC protocol of stable control 2M communication, a control terminal (SV / GOOSE terminal) supporting the SV / GOOSE protocol, and a control terminal (TCP / IP terminal) supporting the TCP / IP protocol of wireless access. Different types of heterogeneous control terminals use different types of communication interfaces to receive the first type of data packets, for example, a stable control ring network interface (such as an optical fiber stable control ring network interface) is used to receive the first type of data packets sent by the ring network terminal; a 2M interface (such as an optical fiber 2M interface) is used to receive the first type of data packets sent by the HDLC terminal; an Ethernet interface (such as an optical fiber Ethernet interface) is used to receive the first type of data packets sent by the SV / GOOSE terminal; and a wireless network interface (such as a 4G / 5G interface) is used to receive the first type of data packets sent by the TCP / IP terminal.
[0096] The first type of data packet may specifically be a data packet including information such as the control terminal's cuttable quantity, actual cuttable quantity, input, exception, etc. It may also be a data packet of other information, and any data packet uploaded by a heterogeneous control terminal is within the scope of the present invention.
[0097] S102: According to the first mapping table, obtain a protocol type of the communication interface that receives each first type data packet as a protocol type corresponding to the first type data packet.
[0098] The first mapping table is used to indicate the mapping rules between the terminal serial number, unique address identifier, interface number of the communication interface, and protocol type of each accessible heterogeneous control terminal. The first mapping table can be stored through a configuration file, and the configuration file can store information such as the total number of accessible heterogeneous control terminals, the total number of each type of heterogeneous control terminals, and the data frame length of each heterogeneous control terminal in addition to the content in the first mapping table.
[0099] For example, Figure 3As shown in Table 1, it is assumed that there are 8 control terminals connected, the control terminals with terminal numbers 1-3 are ring network terminals, the control terminals 4 and 5 are HDLC terminals, the control terminals with terminal numbers 6 and 7 are SV / GOOSE terminals, and the control terminal with terminal number 8 is a TCP / IP terminal. CNI represents the interface number of the stable control ring network interface, 2M-1 represents the interface number of the first pair of optical fiber 2M interfaces, 2M-2 represents the interface number of the second pair of optical fiber 2M interfaces, ENI represents the interface number of the Ethernet interface, and WNI represents the interface number of the wireless network interface. The first type of data packets of the ring network terminals with terminal serial numbers 1-3 are all received through CNI, and the corresponding protocol type of CNI is the stable control ring network protocol. Therefore, the protocol type of all the first type of data packets received through CNI is the stable control ring network protocol; the first type of data packets of the HDLC terminal with terminal serial number 4 are all received through 2M-1, and the corresponding protocol type of 2M-1 is the HDLC protocol. Therefore, the protocol type of all the first type of data packets received through 2M-1 is the HDLC protocol; the first type of data packets of the HDLC terminal with terminal serial number 5 are all received through 2M-2, and the corresponding protocol type of 2M-2 is the HDLC protocol , then the protocol type of all first-type data packets received through 2M-2 is the HDLC protocol; the first-type data packets of the SV / GOOSE terminals with terminal numbers 6 and 7 are all received through ENI, and the protocol type corresponding to ENI is the SV / GOOSE protocol, then the protocol type of all first-type data packets received through ENI is the SV / GOOSE protocol; the first-type data packets of the TCP / IP terminal with terminal number 8 are all received through WNI, and the protocol type of WNI is the TCP / IP protocol, then the protocol type of all first-type data packets received through WNI is the TCP / IP protocol.
[0100] Table 1 First mapping table
[0101] Terminal serial number Unique address identifier Communication interface number Protocol Type 1 0x11 CNI Stable ring network protocol 2 0x12 CNI Stable ring network protocol 3 0x13 CNI Stable ring network protocol 4 2M-1 2M-1 HDLC Protocol 5 2M-2 2M-2 HDLC Protocol 6 SV_ID:0X21,GOOSE_ID:0x31 ENI SV / GOOSE Protocol 7 SV_ID:0X22,GOOSE_ID:0x32 ENI SV / GOOSE Protocol 8 IP:192.168.0.100,port:6000 WNJ TCP / IP
[0102] S103. According to the protocol type of each first type data packet, parse the source address from each received first type data packet as the unique address identifier corresponding to the first type data packet; if the source address does not exist in the first type data packet, use the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet.
[0103] Most protocol type packets will include a source address, which is the address of the heterogeneous control terminal that sent the packet. For example, a ring network terminal can access the communication interface through a fiber optic ring network. The first type of packet sent by the ring network terminal will include the ring network_ID that represents the identity of the ring network terminal. It is the unique identifier of the control terminal under the ring network. HDLC terminals are usually connected to the access device through a direct fiber optic connection, and there is no source address in the first type of packet sent. SV / GOOSE terminals can be connected to the access device in two ways: direct fiber optic connection or several control terminals are connected to the communication interface through a switch via one optical fiber. This type of control terminal uses the SV protocol to send information such as the control terminal's cuttable quantity and actual cuttable quantity, and uses the GOOSE protocol to send information such as input displacement and abnormality. etc., receives the load shedding command with the GOOSE protocol and shears off the corresponding load. The first type of data packet sent by the SV / GOOSE terminal includes SV_ID and GOOSE_ID representing the identity of the SV / GOOSE terminal. Therefore, SV_ID, GOOSE_ID, etc. can be used as the source address of this type of control terminal. The TCP / IP terminal is connected to the access device via wireless 4G or 5G, and the communication protocol is TCP or UDP. The first type of TCP / UDP data packet sent includes the IP address, port number, etc. Therefore, the IP address, port number, etc. can be set as the source address of this type of control terminal.
[0104] In the specific implementation, firstly, according to the protocol type of each first type data packet, each received first type data packet is parsed to obtain the source address in the first type data packet; if the source address is the ring network terminal identity, that is, the ring network terminal_ID, the ring network terminal_ID is used as the unique address identifier; if the source address does not exist, the interface number of the received first type data packet is used as the unique address identifier; if the source address is the SV / GOOSE terminal identity identifier, the SV / GOOSE terminal identity identifier is used as the unique address identifier; if the source address is a TCP / IP address, the TCP / IP address is used as the unique address identifier. For example, as shown in Table 1, the ring network_ID of the control terminal with terminal number 1 is 0x11, and its unique address identifier is ring network_ID, that is, 0x11; the HDLC terminal with terminal number 4 is connected to 2M-1, and the HDLC terminal with terminal number 5 is connected to 2M-2, then 2M-1 is used as the unique address identifier of the control terminal with terminal number 4, and 2M-2 is used as the unique address identifier of the HDLC terminal with terminal number 5; the control terminal with terminal number 8 has IP=192.168.0.100, port=6000, then its unique address identifier is IP: 192.168.0.100, port: 6000, and the same applies to others.
[0105] S104. Obtain, according to the first mapping table, a terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier.
[0106] When the first type of data packet is obtained, it is not known which control terminal specifically sent it, and the only way is to search the first mapping table through the unique address identifier to obtain the serial number of the control terminal that sent the data packet.
[0107] For example, as shown in Table 1, according to the unique address identifier 0x11, the control terminal serial number that sends the data packet can be found to be 1; according to the unique address identifier 2M-1, the control terminal serial number that sends the data packet can be found to be 4; according to the unique address identifier IP=192.168.0.100, port=6000, the control terminal serial number that sends the data packet can be found to be 8, and the same applies to the others.
[0108] S105. According to the second mapping table, obtain the position interval of the application layer data corresponding to each terminal sequence number in the transmitted data packet.
[0109] The second mapping table is used to indicate the mapping rules between the terminal serial numbers of the accessible heterogeneous control terminals and the position intervals occupied by their application layer data in the sent data packets. For example, the second mapping table is shown in Table 2. The application layer data of each control terminal occupies M bytes, and the data mainly includes information such as the available amount, actual amount, input, and abnormality of all control terminals.
[0110] Table 2 Second mapping table
[0111]
[0112] The first mapping table and the second mapping table may be combined into one table or divided into two tables. The contents of the first mapping table and the second mapping table may be stored in one configuration file or stored in different configuration files.
[0113] S106: parse application layer data from each received first type data packet, and put the application layer data of all first type data packets in corresponding position intervals to form an uplink data packet.
[0114] For example, the second mapping table shown in Table 2 arranges and combines the application layer data of the control terminal numbers 1-8 in order from front to back to form an uplink data packet, wherein if the application layer data length of a control terminal does not reach the specified byte length M, it is filled with preset content (such as 0 or 1) to the specified byte length M.
[0115] S107, sending the uploading data packet to the control substation device of the power stabilization and control system.
[0116] The uploaded data packet is sent to the control substation device of the power stabilization and control system through the control substation interface.
[0117] The above are the steps for data access and upload. In addition, Figure 4 , 5 As shown, the method of the present invention may also include the following steps of data access and sending:
[0118] S108. Receive a second type of data packet sent by the power stabilization and control system control substation device to the heterogeneous control terminal.
[0119] Among them, the second type of data packet is a data packet that integrates data sent to all control terminals, which can specifically be load capacity commands, full cut commands and other information sent to each control terminal, or other commands or data, all within the protection scope of the present invention.
[0120] Specifically, the second type of data packet sent by the control substation device of the power stabilization control system may be received through the control substation interface.
[0121] S108. According to the third mapping table, obtain the terminal serial number of the heterogeneous control terminal to which the data in each position interval of the second type data packet needs to be sent.
[0122] During specific implementation, every N bytes in the second type data packet can be set as a position interval, and the command data of each control terminal occupies N bytes in the second type data packet.
[0123] Among them, the third mapping table is used to indicate the mapping rules between the data in each position interval in the second type data packet and the terminal serial number of the heterogeneous control terminal to which the data needs to be sent, as shown in Table 3.
[0124] Table 3 The third mapping table
[0125]
[0126] S110. According to the first mapping table, obtain a unique address identifier, a protocol type, and an interface number of a communication interface corresponding to each terminal serial number.
[0127] S111. Extract data at each interval position from the second type data packet, and encapsulate it into a downlink data packet according to the corresponding protocol type.
[0128] In the specific implementation, the data at each interval position is first extracted from the second type of data packet; if the protocol type of the data at the position interval is the stable control ring network protocol, the data at the current position interval is encapsulated as a sent data packet of the stable control ring network protocol; if the protocol type of the data at the position interval is the HDLC protocol, the data at the current position interval is encapsulated as a sent data packet of the HDLC protocol; if the protocol type of the data at the position interval is the SV / GOOSE protocol, the data at the current position interval is encapsulated as a sent data packet of the SV / GOOSE protocol; if the protocol type of the data at the position interval is the TCP / IP protocol, the data at the current position interval is encapsulated as a sent data packet of the TCP / IP protocol.
[0129] S112: Send each sent data packet to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
[0130] During specific implementation, if the protocol type of the data packet to be sent is the stable control ring network protocol, the data packet will be sent to the ring network terminal whose identity identifier is the unique address identifier through the stable control ring network interface; if the protocol type of the data packet to be sent is the HDLC protocol, the data packet will be sent to the 2M interface whose interface number is the unique address identifier; if the protocol type of the data packet to be sent is the SV / GOOSE protocol, the data packet will be sent to the SV / GOOSE terminal whose identity identifier is the unique address identifier through the Ethernet interface; if the protocol type of the data packet to be sent is the TCP / IP protocol, the data packet will be sent to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface.
[0131] Embodiment 2
[0132] The embodiment of the present invention provides an access device for heterogeneous control terminals of an electric power stabilization control system. The device can be implemented in a software + hardware manner, and the device includes:
[0133] A plurality of communication interfaces supporting various heterogeneous control terminal protocol types, used for receiving first type data packets sent by various heterogeneous control terminals;
[0134] A first mapping table is used to indicate a mapping rule between a terminal serial number, a unique address identifier, an interface number of a communication interface, and a protocol type of each accessible heterogeneous control terminal;
[0135] A second mapping table, used to indicate a mapping rule between terminal serial numbers of accessible heterogeneous control terminals and the position intervals occupied by their application layer data in an uplinked data packet;
[0136] A protocol type acquisition module, used to acquire, according to the first mapping table, the protocol type of the communication interface receiving each first type data packet as the protocol type corresponding to the first type data packet;
[0137] A unique address identifier acquisition module, used to parse a source address from each received first type data packet according to the protocol type of each first type data packet as a unique address identifier corresponding to the first type data packet, and if the source address does not exist in the first type data packet, use the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet;
[0138] A first terminal serial number extraction module, used for obtaining the terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier according to the first mapping table;
[0139] A data location extraction module, used to obtain the location interval of the application layer data corresponding to each terminal sequence number in the transmitted data packet according to the second mapping table;
[0140] The uploading data packet generating module is used to parse the application layer data from each received first type data packet, and put the application layer data of all the first type data packets in the corresponding position interval to form an uploading data packet;
[0141] The uploading module is used to upload the uploading data packet to the control substation device of the power stabilization and control system.
[0142] In a specific implementation, the device further includes:
[0143] A second type data packet receiving module, used for receiving a second type data packet sent by the power stabilization control system control substation device to the heterogeneous control terminal;
[0144] A third mapping table, used to indicate a mapping rule between data in each position interval in the second type data packet and a terminal serial number of a heterogeneous control terminal to which the data needs to be sent;
[0145] A second terminal serial number extraction module, used for obtaining, according to a third mapping table, a terminal serial number of a heterogeneous control terminal to which data in each position interval of a second type of data packet needs to be sent;
[0146] An address type extraction module, used to obtain the unique address identifier, protocol type and interface number of the communication interface corresponding to each terminal serial number according to the first mapping table;
[0147] A sending data packet generation module is used to extract the data at each interval position from the second type of data packet and encapsulate it into a sending data packet according to the corresponding protocol type;
[0148] The sending module is used to send each sending data packet to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
[0149] The heterogeneous control terminals include ring network terminals, HDLC terminals, SV / GOOSE terminals and TCP / IP terminals.
[0150] The communication interface specifically includes:
[0151] The stable control ring network interface is used to receive the first type of data packet sent by the ring network terminal;
[0152] 2M interface, used for receiving the first type of data packets sent by the HDLC terminal;
[0153] Ethernet interface, used for receiving the first type of data packets sent by the SV / GOOSE terminal;
[0154] The wireless network interface is used to receive a first type of data packet sent by a TCP / IP terminal.
[0155] The unique address identification acquisition module specifically includes:
[0156] A source address acquisition unit, configured to parse each received first type data packet according to the protocol type of each first type data packet, and acquire a source address in the first type data packet;
[0157] A first address identifier acquisition unit, configured to use the ring network terminal identity identifier as a unique address identifier if the source address is a ring network terminal identity identifier;
[0158] A second address identifier acquisition unit, configured to use the interface number of the communication interface that receives the first type of data packet as a unique address identifier if the source address does not exist;
[0159] A third address identifier obtaining unit, configured to use the SV / GOOSE terminal identity identifier as a unique address identifier if the source address is the SV / GOOSE terminal identity identifier;
[0160] The fourth address identifier obtaining unit is used to use the TCP / IP address as the unique address identifier if the source address is a TCP / IP address.
[0161] The module for generating data packets to be sent down specifically includes:
[0162] A data extraction unit, used to extract data at each interval position from the second type of data packet;
[0163] A first data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the stable control ring network protocol when the protocol type to which the data in the location interval belongs is the stable control ring network protocol;
[0164] The second data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the HDLC protocol when the protocol type to which the data in the location interval belongs is the HDLC protocol;
[0165] A third data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the SV / GOOSE protocol when the protocol type to which the data in the location interval belongs is the SV / GOOSE protocol;
[0166] The fourth data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the TCP / IP protocol when the protocol type to which the data in the location interval belongs is the TCP / IP protocol.
[0167] The sending module specifically includes:
[0168] The first sending unit is used for sending the sent data packet to the ring network terminal whose ring network terminal identity is a unique address identifier through the stable control ring network interface when the protocol type to which the sent data packet belongs is a stable control ring network protocol;
[0169] The second sending unit is used to send the sent data packet to the 2M interface whose interface number is the unique address identifier when the protocol type to which the sent data packet belongs is the HDLC protocol;
[0170] The third issuing unit is used for sending the issued data packet to the SV / GOOSE terminal whose SV / GOOSE terminal identity is a unique address identifier through an Ethernet interface when the protocol type to which the issued data packet belongs is the SV / GOOSE protocol;
[0171] The fourth sending unit is used to send the sending data packet to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface when the protocol type to which the sending data packet belongs is the TCP / IP protocol.
[0172] The sending module and the second type data packet receiving module may both be control substation interfaces.
[0173] The device provided in the embodiment of the present invention can be used to execute the method provided in the first embodiment of the present invention, and has the corresponding functions and beneficial effects of executing the method.
[0174] It is worth noting that in the embodiment of the above-mentioned device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0175] The embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, or of course, it can be implemented only by hardware, as long as the function or effect can be achieved.
[0176] It should be understood that the above embodiments and descriptions only describe the principles, main features and advantages of the present invention. Without departing from the spirit and scope of the present invention, the present invention may be subject to various changes and improvements, and these changes and improvements all fall within the scope of protection of the present invention.
Claims
1. A method for accessing heterogeneous control terminals in a power stabilization control system, characterized in that: include: Using a communication interface that supports the protocol types of various heterogeneous control terminals, receiving a first type of data packet sent by various heterogeneous control terminals; According to the first mapping table, the protocol type of the communication interface receiving each first type of data packet is obtained as the protocol type corresponding to the first type of data packet, wherein the first mapping table is used to indicate the mapping rules between the terminal serial number, the unique address identifier, the interface number of the communication interface, and the protocol type of each accessible heterogeneous control terminal; According to the protocol type of each first-type data packet, a source address is parsed from each received first-type data packet as a unique address identifier corresponding to the first-type data packet; if the source address does not exist in the first-type data packet, an interface number of the communication interface that receives the first-type data packet is used as the unique address identifier corresponding to the first-type data packet; According to the first mapping table, obtaining a terminal serial number of a heterogeneous control terminal corresponding to each unique address identifier; According to the second mapping table, obtaining the position interval of the application layer data corresponding to each terminal serial number in the sent data packet, wherein the second mapping table is used to indicate the mapping rule between the terminal serial number of the accessible heterogeneous control terminal and the position interval occupied by its application layer data in the sent data packet; Parsing application layer data from each received first type data packet, and placing the application layer data of all first type data packets in corresponding position intervals to form an uplink data packet; The uploading data packet is sent to the control substation device of the power stabilization control system.
2. The method for accessing heterogeneous control terminals of a power stabilization control system according to claim 1, characterized in that: The method further comprises: Receiving a second type of data packet sent by a control substation device of a power stabilization and control system to a heterogeneous control terminal; According to the third mapping table, obtaining the terminal sequence number of the heterogeneous control terminal to which the data in each position interval of the second type data packet needs to be sent, wherein the third mapping table is used to indicate the mapping rule between the data in each position interval in the second type data packet and the terminal sequence number of the heterogeneous control terminal to which the data needs to be sent; According to the first mapping table, obtaining a unique address identifier, a protocol type, and an interface number of a communication interface corresponding to each terminal serial number; Extracting data at each interval position from the second type of data packet, and encapsulating it into a downlink data packet according to the corresponding protocol type; Each sent data packet is sent to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
3. The method for accessing heterogeneous control terminals of a power stabilization control system according to claim 2, characterized in that: The heterogeneous control terminals include ring network terminals, HDLC terminals, SV / GOOSE terminals and TCP / IP terminals.
4. The method for accessing heterogeneous control terminals of a power stabilization and control system according to claim 3 is characterized in that: The adopting of a communication interface supporting the protocol types of various heterogeneous control terminals to receive a first type of data packet sent by various heterogeneous control terminals specifically includes: Adopting a stable control ring network interface to receive a first type of data packet sent by a ring network terminal; Using a 2M interface to receive a first type of data packet sent by an HDLC terminal; Using an Ethernet interface to receive a first type of data packet sent by a SV / GOOSE terminal; A wireless network interface is used to receive a first type of data packet sent by a TCP / IP terminal.
5. The method for accessing heterogeneous control terminals of a power stabilization and control system according to claim 3, characterized in that: The method further comprises: parsing a source address from each received first type data packet according to the protocol type of each first type data packet as a unique address identifier corresponding to the first type data packet; if the source address does not exist in the first type data packet, using the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet. Parsing each received first-type data packet according to the protocol type of each first-type data packet to obtain a source address in the first-type data packet; If the source address is a ring network terminal identity, the ring network terminal identity is used as the unique address identifier; If the source address does not exist, the interface number of the communication interface that receives the first type of data packet is used as the unique address identifier; If the source address is a SV / GOOSE terminal identity, the SV / GOOSE terminal identity is used as the unique address identifier; If the source address is a TCP / IP address, the TCP / IP address is used as a unique address identifier.
6. The method for accessing a heterogeneous control terminal of a power stabilization control system according to claim 3, characterized in that: The step of extracting data at each interval position from the second type data packet and encapsulating the data packet into a downlink data packet according to the corresponding protocol type specifically includes: Extracting data at each interval position from the second type of data packet; If the protocol type of the data in the position interval is the stable control ring network protocol, the data in the current position interval is encapsulated as a sent data packet of the stable control ring network protocol; If the protocol type of the data in the location interval is the HDLC protocol, the data in the current location interval is encapsulated as a downlink data packet of the HDLC protocol; If the protocol type of the data in the location interval is SV / GOOSE protocol, the data in the current location interval is encapsulated as a sent data packet of SV / GOOSE protocol; If the protocol type of the data in the location interval is the TCP / IP protocol, the data in the current location interval is encapsulated as a sent data packet of the TCP / IP protocol.
7. The method for accessing a heterogeneous control terminal of a power stabilization control system according to claim 3, characterized in that: The step of sending each sent data packet to the address of the corresponding unique address identifier through the communication interface of the corresponding interface number specifically includes: If the protocol type of the data packet sent is a stable control ring network protocol, the data packet is sent to the ring network terminal whose ring network terminal identity is a unique address identifier through the stable control ring network interface; If the protocol type of the data packet to be sent is the HDLC protocol, the data packet will be sent to the 2M interface whose interface number is the unique address identifier; If the protocol type to which the data packet is sent is the SV / GOOSE protocol, the data packet is sent to the SV / GOOSE terminal whose SV / GOOSE terminal identity is the unique address identifier through the Ethernet interface; If the protocol type to which the data packet is sent is TCP / IP protocol, the data packet is sent to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface.
8. The method for accessing a heterogeneous control terminal of a power stabilization control system according to claim 2, characterized in that: The uplink data packet is sent to the control substation device of the power stabilization and control system through the control substation interface, and the second type of data packet is received through the control substation interface.
9. A heterogeneous control terminal access device for a power stabilization control system, characterized in that: include: A plurality of communication interfaces supporting various heterogeneous control terminal protocol types, used for receiving first type data packets sent by various heterogeneous control terminals; A first mapping table is used to indicate a mapping rule between a terminal serial number, a unique address identifier, an interface number of a communication interface, and a protocol type of each accessible heterogeneous control terminal; A second mapping table, used to indicate a mapping rule between terminal serial numbers of accessible heterogeneous control terminals and the position intervals occupied by their application layer data in an uplinked data packet; A protocol type acquisition module, used to acquire, according to the first mapping table, the protocol type of the communication interface receiving each first type data packet as the protocol type corresponding to the first type data packet; A unique address identifier acquisition module, used to parse a source address from each received first type data packet according to the protocol type of each first type data packet as a unique address identifier corresponding to the first type data packet, and if the source address does not exist in the first type data packet, use the interface number of the communication interface that receives the first type data packet as the unique address identifier corresponding to the first type data packet; A first terminal serial number extraction module, used for obtaining the terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier according to the first mapping table; A data location extraction module, used to obtain the location interval of the application layer data corresponding to each terminal sequence number in the transmitted data packet according to the second mapping table; The uploading data packet generating module is used to parse the application layer data from each received first type data packet, and put the application layer data of all the first type data packets in the corresponding position interval to form an uploading data packet; The uploading module is used to upload the uploading data packet to the control substation device of the power stabilization and control system.
10. The heterogeneous control terminal access device for the power stabilization control system according to claim 8, characterized in that: The device also includes: A second type data packet receiving module, used for receiving a second type data packet sent by the power stabilization control system control substation device to the heterogeneous control terminal; A third mapping table, used to indicate a mapping rule between data in each position interval in the second type data packet and a terminal serial number of a heterogeneous control terminal to which the data needs to be sent; A second terminal serial number extraction module, used for obtaining, according to a third mapping table, a terminal serial number of a heterogeneous control terminal to which data in each position interval of a second type of data packet needs to be sent; An address type extraction module, used to obtain the unique address identifier, protocol type and interface number of the communication interface corresponding to each terminal serial number according to the first mapping table; A sending data packet generation module is used to extract the data at each interval position from the second type of data packet and encapsulate it into a sending data packet according to the corresponding protocol type; The sending module is used to send each sending data packet to the address where the corresponding unique address identifier is located through the communication interface with the corresponding interface number.
11. The heterogeneous control terminal access device for the power stabilization control system according to claim 10, characterized in that: The heterogeneous control terminals include ring network terminals, HDLC terminals, SV / GOOSE terminals and TCP / IP terminals.
12. The heterogeneous control terminal access device for the power stabilization control system according to claim 11, characterized in that: The communication interface specifically includes: The stable control ring network interface is used to receive the first type of data packet sent by the ring network terminal; 2M interface, used for receiving the first type of data packets sent by the HDLC terminal; Ethernet interface, used for receiving the first type of data packets sent by the SV / GOOSE terminal; The wireless network interface is used to receive a first type of data packet sent by a TCP / IP terminal.
13. The heterogeneous control terminal access device for the power stabilization control system according to claim 11, characterized in that: The unique address identification acquisition module specifically includes: A source address acquisition unit, configured to parse each received first type data packet according to the protocol type of each first type data packet, and acquire a source address in the first type data packet; A first address identifier acquisition unit, configured to use the ring network terminal identity identifier as a unique address identifier if the source address is a ring network terminal identity identifier; A second address identifier acquisition unit, configured to use the interface number of the communication interface that receives the first type of data packet as a unique address identifier if the source address does not exist; A third address identifier obtaining unit, configured to use the SV / GOOSE terminal identity identifier as a unique address identifier if the source address is the SV / GOOSE terminal identity identifier; The fourth address identifier obtaining unit is used to use the TCP / IP address as the unique address identifier if the source address is a TCP / IP address.
14. The access device for heterogeneous control terminals of a power stabilization and control system according to claim 11, characterized in that: The module for generating data packets for sending specifically includes: A data extraction unit, used to extract data at each interval position from the second type of data packet; A first data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the stable control ring network protocol when the protocol type to which the data in the location interval belongs is the stable control ring network protocol; The second data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the HDLC protocol when the protocol type to which the data in the location interval belongs is the HDLC protocol; A third data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the SV / GOOSE protocol when the protocol type to which the data in the location interval belongs is the SV / GOOSE protocol; The fourth data encapsulation unit is used to encapsulate the data in the current location interval into a sent data packet of the TCP / IP protocol when the protocol type to which the data in the location interval belongs is the TCP / IP protocol.
15. The access device for heterogeneous control terminals of a power stabilization and control system according to claim 11, characterized in that: The sending module specifically includes: The first sending unit is used to send the sent data packet to the ring network terminal whose ring network terminal identity is a unique address identifier through the stable control ring network interface when the protocol type to which the sent data packet belongs is a stable control ring network protocol; The second sending unit is used to send the sent data packet to the 2M interface whose interface number is the unique address identifier when the protocol type to which the sent data packet belongs is the HDLC protocol; The third issuing unit is used for sending the issued data packet to the SV / GOOSE terminal whose SV / GOOSE terminal identity is a unique address identifier through an Ethernet interface when the protocol type to which the issued data packet belongs is the SV / GOOSE protocol; The fourth sending unit is used to send the sending data packet to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface when the protocol type to which the sending data packet belongs is the TCP / IP protocol.
16. The access device for heterogeneous control terminals of a power stabilization and control system according to claim 10, characterized in that: The sending module and the second type data packet receiving module are both control substation interfaces.
Citation Information
Patent Citations
Data transmission method and device between service terminal and service master station
CN110798862A
Multi-protocol communication method, smart home gateway and multi-protocol communication system
CN112087441A
Internet of Things generic terminal security authentication system, method and device and Internet of Things communication terminal
CN115459919A
Universal easy-to-expand air traffic control monitoring data coding method and system
CN117579708A
Database security via data flow processing
US20110219035A1