A heterogeneous control terminal access method and device for a power stability control system

By supporting communication interfaces and mapping table parsing for heterogeneous control terminals, unified access and data processing for multiple terminals in the power stability control system are realized, solving the problem of single access method for control terminals in the existing technology and improving the reliability of control substation devices.

CN119276914BActive Publication Date: 2025-12-09STATE GRID ELECTRIC POWER RES INST +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411380721.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-12-09
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

The existing power stability control system cannot effectively realize the access of various heterogeneous control terminals, resulting in a single access method for control resources, which cannot meet the safety and stability requirements of the power system.

Method used

It adopts a communication interface that supports various heterogeneous control terminal protocol types, and realizes unified transmission and processing of data from different types of terminals, including ring network, HDLC, SV/GOOSE and TCP/IP terminals, by parsing and encapsulating data packets through mapping tables.

Benefits of technology

It enables unified access to various heterogeneous control terminals, improves the program reliability of the control substation device, and avoids the need to modify the control substation device program due to changes in the number of terminals and access methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119276914B_ABST
    Figure CN119276914B_ABST
Patent Text Reader

Abstract

The application discloses a power stability control system heterogeneous control terminal access method and device, the method comprises the following steps: receiving the first type data packet sent by each heterogeneous control terminal by using a communication interface; obtaining the protocol type of each first type data packet according to a first mapping table; parsing the source address from each first type data packet, if the source address does not exist in the first type data packet, obtaining the interface number of the received first type data packet, taking the source address or the interface number as the unique address identifier of the corresponding first type data packet; obtaining the terminal serial number corresponding to each unique address identifier according to the first mapping table, obtaining the position interval corresponding to each terminal serial number according to a second mapping table, parsing the application layer data from each received first type data packet, and combining the application layer data of all first type data packets in the corresponding position interval to form an upper data packet, and uploading the upper data packet to a power stability control system control substation device. The application can realize the access of multiple heterogeneous control terminals.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to terminal access technology, in particular to a power stability control system heterogeneous control terminal access method and device. BACKGROUND

[0002] With the increasing demand for safety and stability of the power system, the existing safety and stability control resources are difficult to meet the demand of safe and stable operation of the power system, and it is urgent to integrate interruptible load, distributed power supply, distributed energy storage, electric vehicles, smart home and other control resources into the power safety and stability control system (hereinafter referred to as power stability control system) to participate in the safety and stability control of the power grid, resulting in more and more control resources accessing the power stability control system through control terminals, mainly including: 4G, 5G, optical fiber direct connection, optical fiber ring network and other physical connection methods, and the communication protocols mainly include TCP / IP protocol, SV / GOOSE protocol, stability control optical fiber ring network protocol, and stability control 2M communication HDLC protocol. However, the existing access device or method cannot realize the access of multiple heterogeneous control terminals, and can only realize single physical connection method or single protocol transmission. SUMMARY

[0003] In view of the problems existing in the prior art, the purpose of the present application is to provide a power stability control system heterogeneous control terminal access method and device which can realize the access of multiple different types of control terminals.

[0004] In order to achieve the above-mentioned purpose of the application, the present application provides the following technical scheme:

[0005] A power stability control system heterogeneous control terminal access method, comprising:

[0006] A communication interface supporting the protocol types of each heterogeneous control terminal is adopted, and the communication interface receives a first type data packet sent by each heterogeneous control terminal;

[0007] According to a first mapping table, the protocol type of the communication interface receiving each first type data packet is obtained as the protocol type of the corresponding first type data packet, wherein the first mapping table is used to indicate the mapping rule between the terminal serial number, unique address identifier, interface number of the communication interface and protocol type of each accessible heterogeneous control terminal;

[0008] According to the protocol type of each first type data packet, the source address is parsed from each received first type data packet as the unique address identifier of the corresponding first type data packet, and if the source address does not exist in the first type data packet, the interface number of the communication interface receiving the first type data packet is taken as the unique address identifier of the corresponding first type data packet;

[0009] According to the first mapping table, the terminal serial number of the corresponding heterogeneous control terminal of each unique address identifier is obtained.

[0010] According to the second mapping table, the position interval of the application layer data corresponding to each terminal serial number in the uploading data packet is obtained, 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 the application layer data of the terminal in the uploading data packet;

[0011] The application layer data in each received first type data packet is parsed, and the application layer data of all the first type data packets is placed in the corresponding position interval to form an uploading data packet;

[0012] The uploading data packet is uploaded to the power stability control system control substation device.

[0013] Further, the method further comprises:

[0014] The second type data packet issued by the power stability control system control substation device to the heterogeneous control terminal is received;

[0015] According to the third mapping table, the terminal serial number of the heterogeneous control terminal to which the data on each position interval in the second type data packet needs to be sent is obtained, wherein the third mapping table is used to indicate the mapping rule between the data on 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;

[0016] According to the first mapping table, the unique address identifier, the protocol type and the interface number of the communication interface corresponding to each terminal serial number are obtained;

[0017] The data on each interval position in the second type data packet is extracted, and a downlink data packet is encapsulated according to the corresponding protocol type;

[0018] Each downlink data packet is downlinked to the address corresponding to the unique address identifier through the communication interface corresponding to the interface number.

[0019] Further, the heterogeneous control terminal comprises a ring network terminal, an HDLC terminal, an SV / GOOSE terminal and a TCP / IP terminal.

[0020] Further, the communication interface supporting the protocol types of the various heterogeneous control terminals is used to receive the first type data packets sent by the various heterogeneous control terminals, specifically comprising:

[0021] The first type data packet sent by the ring network terminal is received by using a stability control ring network interface;

[0022] The first type data packet sent by the HDLC terminal is received by using a 2M interface;

[0023] The first type data packet sent by the SV / GOOSE terminal is received by using an Ethernet interface;

[0024] The wireless network interface receives the first type of data packet sent by the TCP / IP terminal.

[0025] Further, the source address of each first type of data packet is parsed as the unique address identifier of the corresponding first type of data packet according to the protocol type of each first type of data packet, and if the source address does not exist in the first type of data packet, the interface number of the communication interface receiving the first type of data packet is taken as the unique address identifier of the corresponding first type of data packet, specifically including:

[0026] According to the protocol type of each first type of data packet, each received first type of data packet is parsed to obtain the source address in the first type of data packet;

[0027] If the source address is a ring network terminal identity, the ring network terminal identity is taken as the unique address identifier;

[0028] If the source address does not exist, the interface number of the communication interface receiving the first type of data packet is taken as the unique address identifier;

[0029] If the source address is an SV / GOOSE terminal identity, the SV / GOOSE terminal identity is taken as the unique address identifier;

[0030] If the source address is a TCP / IP address, the TCP / IP address is taken as the unique address identifier.

[0031] Further, the data at each interval position is extracted from the second type of data packet, and is encapsulated into a downlink data packet according to the corresponding protocol type, specifically including:

[0032] The data at each interval position is extracted from the second type of data packet;

[0033] If the protocol type of the data at the position interval is a stable control ring network protocol, the data at the current position interval is encapsulated into a downlink data packet of the stable control ring network protocol;

[0034] If the protocol type of the data at the position interval is an HDLC protocol, the data at the current position interval is encapsulated into a downlink data packet of the HDLC protocol;

[0035] If the protocol type of the data at the position interval is an SV / GOOSE protocol, the data at the current position interval is encapsulated into a downlink data packet of the SV / GOOSE protocol;

[0036] If the protocol type of the data at the position interval is a TCP / IP protocol, the data at the current position interval is encapsulated into a downlink data packet of the TCP / IP protocol.

[0037] Further, the sending each of the issued data packets to the address corresponding to the unique address identifier through the communication interface corresponding to the interface number, specifically comprises:

[0038] If the protocol type to which the issued data packet belongs is the stable control ring network protocol, the issued data packet is sent to the ring network terminal whose identity is the unique address identifier through the stable control ring network interface;

[0039] If the protocol type to which the issued data packet belongs is the HDLC protocol, the issued data packet is sent to the 2M interface whose interface number is the unique address identifier;

[0040] If the protocol type to which the issued data packet belongs is the SV / GOOSE protocol, the issued data packet is sent to the SV / GOOSE terminal whose identity is the unique address identifier through the Ethernet interface;

[0041] If the protocol type to which the issued data packet belongs is the TCP / IP protocol, the issued data packet is sent to the TCP / IP terminal whose TCP / IP address is the unique address identifier through the wireless network interface.

[0042] Further, the sent data packet is sent to the power stable control system control substation device through the control substation interface, and the second type data packet is received through the control substation interface.

[0043] A power stable control system heterogeneous control terminal access device, comprising:

[0044] A plurality of communication interfaces supporting protocol types of various heterogeneous control terminals, used for receiving first type data packets sent by various heterogeneous control terminals;

[0045] A first mapping table, used for indicating mapping rules between terminal serial numbers, unique address identifiers, interface numbers of communication interfaces, and protocol types of each accessible heterogeneous control terminal;

[0046] A second mapping table, used for indicating mapping rules between terminal serial numbers of accessible heterogeneous control terminals and position intervals occupied by application layer data of the accessible heterogeneous control terminals in the sent data packet;

[0047] A protocol type acquisition module, used for acquiring, according to the first mapping table, a protocol type of a communication interface receiving each first type data packet as a protocol type of the corresponding first type data packet;

[0048] The unique address identifier obtaining module is configured to parse a source address from each received first-type data packet as a unique address identifier of the corresponding first-type data packet according to a protocol type of each first-type data packet, and if the source address does not exist in the first-type data packet, an interface number of a communication interface receiving the first-type data packet is taken as the unique address identifier of the corresponding first-type data packet.

[0049] The second mapping table is configured to indicate a mapping rule between terminal serial numbers of accessible heterogeneous control terminals and position intervals occupied by application layer data of the heterogeneous control terminals in the uploading data packet.

[0050] The first terminal serial number extraction module is configured to obtain a terminal serial number of a heterogeneous control terminal corresponding to each unique address identifier according to the first mapping table.

[0051] The data position extraction module is configured to obtain a position interval of application layer data corresponding to each terminal serial number in the uploading data packet according to the second mapping table.

[0052] The uploading data packet generation module is configured to parse application layer data from each received first-type data packet, and combine the application layer data of all first-type data packets in corresponding position intervals to form an uploading data packet.

[0053] The uploading module is configured to upload the uploading data packet to the power stability control system control substation device.

[0054] Further, the device further comprises:

[0055] The second-type data packet receiving module is configured to receive a second-type data packet issued by the power stability control system control substation device to the heterogeneous control terminal.

[0056] The third mapping table is configured 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] The second terminal serial number extraction module is configured to obtain a terminal serial number of a heterogeneous control terminal to which data in each position interval in the second-type data packet needs to be sent according to the third mapping table.

[0058] The address type extraction module is configured to obtain a unique address identifier, a protocol type and an interface number of a communication interface corresponding to each terminal serial number according to the first mapping table.

[0059] The issued data packet generation module is configured to extract data in each interval position from the second-type data packet, and encapsulate the data into an issued data packet according to a corresponding protocol type.

[0060] The issuing module is configured to issue each of the issued data packets to a corresponding address via a communication interface corresponding to an interface number.

[0061] Further, the heterogeneous control terminal comprises a ring network terminal, an HDLC terminal, an SV / GOOSE terminal and a TCP / IP terminal.

[0062] Further, the communication interface specifically comprises:

[0063] The stable control ring network interface is configured to receive the first type data packets sent by the ring network terminal.

[0064] The 2M interface is configured to receive the first type data packets sent by the HDLC terminal.

[0065] The Ethernet interface is configured to receive the first type data packets sent by the SV / GOOSE terminal.

[0066] The wireless network interface is configured to receive the first type data packets sent by the TCP / IP terminal.

[0067] Further, the unique address identifier obtaining module specifically comprises:

[0068] The source address obtaining unit is configured to parse each of the received first type data packets according to a protocol type of each of the first type data packets, and obtain a source address in the first type data packet.

[0069] The first address identifier obtaining unit is configured to, if the source address is a ring network terminal identity, take the ring network terminal identity as the unique address identifier.

[0070] The second address identifier obtaining unit is configured to, if the source address does not exist, take an interface number of the communication interface receiving the first type data packet as the unique address identifier.

[0071] The third address identifier obtaining unit is configured to, if the source address is an SV / GOOSE terminal identity, take the SV / GOOSE terminal identity as the unique address identifier.

[0072] The fourth address identifier obtaining unit is configured to, if the source address is a TCP / IP address, take the TCP / IP address as the unique address identifier.

[0073] Further, the issued data packet generating module specifically comprises:

[0074] The data extracting unit is configured to extract data at each of the interval positions from the second type data packet.

[0075] The first data encapsulation unit is configured to encapsulate the data on the current location interval into a downlink data packet of the stable control ring network protocol when the protocol type of the data on the location interval is the stable control ring network protocol.

[0076] The second data encapsulation unit is configured to encapsulate the data on the current location interval into a downlink data packet of the HDLC protocol when the protocol type of the data on the location interval is the HDLC protocol.

[0077] The third data encapsulation unit is configured to encapsulate the data on the current location interval into a downlink data packet of the SV / GOOSE protocol when the protocol type of the data on the location interval is the SV / GOOSE protocol.

[0078] The fourth data encapsulation unit is configured to encapsulate the data on the current location interval into a downlink data packet of the TCP / IP protocol when the protocol type of the data on the location interval is the TCP / IP protocol.

[0079] Further, the downlink module specifically comprises:

[0080] The first downlink unit is configured to send the downlink data packet to a ring network terminal with a unique address identification via a stable control ring network interface when the protocol type of the downlink data packet is the stable control ring network protocol.

[0081] The second downlink unit is configured to send the downlink data packet to a 2M interface with a unique address identification via an interface number when the protocol type of the downlink data packet is the HDLC protocol.

[0082] The third downlink unit is configured to send the downlink data packet to a SV / GOOSE terminal with a unique address identification via an Ethernet interface when the protocol type of the downlink data packet is the SV / GOOSE protocol.

[0083] The fourth downlink unit is configured to send the downlink data packet to a TCP / IP terminal with a unique address identification via a wireless network interface when the protocol type of the downlink data packet is the TCP / IP protocol.

[0084] Further, the uplink module and the second type data packet receiving module are both control substation interfaces.

[0085] Compared with the prior art, the present application has the beneficial effects that: the present application proposes an access device and method of heterogeneous control terminals of a power stability control system, data uploaded by the heterogeneous control terminals is sent to a control substation device according to a unified protocol; and the command and other data of the control substation device are received and analyzed, and then issued to the designated control terminal. The control substation device does not need to care about the specific access mode and access protocol of the heterogeneous control terminal, realizes the unity of the control substation device program under different access modes of the control terminal, avoids modifying the program of the control substation device due to the change of the number and access mode of the control terminal, and improves the reliability of the program of the control substation device. BRIEF DESCRIPTION OF DRAWINGS

[0086] Figure 1 is a schematic diagram of part of the steps of the power stability control system heterogeneous control terminal access method provided by the present application;

[0087] Figure 2 is a schematic diagram of part of the steps of an example of the power stability control system heterogeneous control terminal access method provided by the present application;

[0088] Figure 3 is a schematic diagram of the connection relationship of the power stability control system heterogeneous control terminal access method provided by the present application;

[0089] Figure 4 is a schematic diagram of another part of the steps of the power stability control system heterogeneous control terminal access method provided by the present application;

[0090] Figure 5 is a schematic diagram of another part of the steps of an example of the power stability control system heterogeneous control terminal access method provided by the present application. DETAILED DESCRIPTION

[0091] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.

[0092] Embodiment One

[0093] The embodiment of the present application provides a power stability control system heterogeneous control terminal access method, as shown in Figure 1 , 2 , including the following steps:

[0094] S101, using a communication interface supporting protocol types of various heterogeneous control terminals, receiving first type data packets sent by various heterogeneous control terminals.

[0095] Among them, the heterogeneous control terminal can be a plurality of control terminals supporting different protocol types, for example, as shown in Figure 3As shown, the control terminal can be a control terminal supporting the stable control ring network protocol (ring network terminal), a control terminal supporting the HDLC protocol of the stable control 2M communication (HDLC terminal), a control terminal supporting the SV / GOOSE protocol (SV / GOOSE terminal), and a control terminal supporting the TCP / IP protocol of wireless access (TCP / IP terminal). Different types of heterogeneous control terminals receive the first type of data packet by using different types of communication interfaces, for example, the ring network terminal transmits the first type of data packet by using a stable control ring network interface (such as an optical fiber stable control ring network interface); the HDLC terminal transmits the first type of data packet by using a 2M interface (such as an optical fiber 2M interface); the SV / GOOSE terminal transmits the first type of data packet by using an Ethernet interface (such as an optical fiber Ethernet interface); and the TCP / IP terminal transmits the first type of data packet by using a wireless network interface (such as a 4G / 5G interface).

[0096] The first type of data packet can specifically be a data packet including the available capacity, the actual capacity, the incoming, the exception, and the like of the control terminal. It can also be a data packet of other information, as long as the data packet uploaded by the heterogeneous control terminal is within the scope of the application.

[0097] S102, according to the first mapping table, obtaining the protocol type of the communication interface receiving each first type of data packet as the protocol type corresponding to the first type of data packet.

[0098] The first mapping table is used to indicate the mapping rule 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. The first mapping table can be stored by a configuration file. In addition to the content in the first mapping table, the configuration file can also store the total number of accessible heterogeneous control terminals, the total number of each type of heterogeneous control terminal, the data frame length of each heterogeneous control terminal, and the like.

[0099] For example, as shown in FIG. 2, the first mapping table includes 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. Figure 3As shown in Table 1, it is assumed that there are 8 control terminals, the control terminals with terminal numbers 1-3 are ring network terminals, the control terminals with terminal numbers 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 interface, 2M-2 represents the interface number of the second pair of optical fiber 2M interface, ENI represents the interface number of the Ethernet interface, and WNI represents the interface number of the wireless network interface. The first type data packets of the ring network terminals with terminal numbers 1-3 are all received through CNI, CNI corresponds to the stable control ring network protocol, and thus the protocol types of all the first type data packets received through CNI are the stable control ring network protocol; the first type data packets of the HDLC terminal with terminal number 4 are all received through 2M-1, 2M-1 corresponds to the HDLC protocol, and thus the protocol types of all the first type data packets received through 2M-1 are the HDLC protocol; the first type data packets of the HDLC terminal with terminal number 5 are all received through 2M-2, 2M-2 corresponds to the HDLC protocol, and thus the protocol types of all the first type data packets received through 2M-2 are the HDLC protocol; the first type data packets of the SV / GOOSE terminals with terminal numbers 6 and 7 are all received through ENI, ENI corresponds to the SV / GOOSE protocol, and thus the protocol types of all the first type data packets received through ENI are the SV / GOOSE protocol; and the first type data packets of the TCP / IP terminal with terminal number 8 are all received through WNI, WNI corresponds to the TCP / IP protocol, and thus the protocol types of all the first type data packets received through WNI are the TCP / IP protocol.

[0100] Table 1: first mapping table

[0101] Terminal serial number Unique address identifier Interface number of communication interface Protocol type 1 0x11 CNI Stable control ring network protocol 2 0x12 CNI Stable control ring network protocol 3 0x13 CNI Stable control 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 WNI TCP / IP protocol

[0102] In S103, the source address of each first type data packet is parsed from each received first type data packet as the unique address identifier of the corresponding first type data packet according to the protocol type of each first type data packet, and if the source address does not exist in the first type data packet, the interface number of the communication interface receiving the first type data packet is taken as the unique address identifier of the corresponding first type data packet.

[0103] The source address is included in most protocol type data packets, and the source address is the address of the heterogeneous control terminal sending the data packet. For example, the ring network terminal can access the communication interface through the fiber ring network, and the first type data packet sent by the ring network terminal includes the ring network ID representing the identity of the ring network terminal, which is the unique identifier of the control terminal under the ring network. The HDLC terminal is usually connected to the access device through fiber direct connection, and the first type data packet sent by the HDLC terminal does not have a source address. The SV / GOOSE terminal can be connected to the access device in two ways: fiber direct connection or several control terminals connected to the communication interface through a switch via an optical fiber. This type of control terminal sends information such as available capacity and actual capacity of the control terminal to the SV protocol, sends information such as incoming variable position and abnormality to the GOOSE protocol, and receives load shedding commands and removes the corresponding load according to the GOOSE protocol. The first type data packet sent by the SV / GOOSE terminal includes SV_ID and GOOSE_ID representing the identity of the SV / GOOSE terminal, so SV_ID and GOOSE_ID can be used as the source address of this type of control terminal. The TCP / IP terminal is connected to the access device in a wireless 4G or 5G manner, and the communication protocol is TCP or UDP. The TCP / UDP first type data packet includes an IP address and a port number, so the IP address and the port number can be set as the source address of this type of control terminal.

[0104] In specific implementation, first, 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 identity of the ring network terminal, i.e., the ring network terminal ID, the ring network terminal ID is used as the unique address identifier. If there is no source address, the interface number receiving the first type data packet is used as the unique address identifier. If the source address is the identity of the SV / GOOSE terminal, the identity of the SV / GOOSE terminal is used as the unique address identifier. If the source address is the 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, so its unique address identifier is the ring network ID, i.e., 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, so 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 IP of the control terminal with terminal number 8 is 192.168.0.100, and the port is 6000, so its unique address identifier is IP: 192.168.0.100, port: 6000, and the others are the same.

[0105] S104, obtaining the terminal serial number of the heterogeneous control terminal corresponding to each unique address identifier according to the first mapping table.

[0106] When the first type data packet is obtained, it is unknown which control terminal sends it, and only the first mapping table can be searched through the unique address identifier to obtain the serial number of the control terminal sending the data packet.

[0107] For example, as shown in Table 1, according to the unique address identifier 0x11, the control terminal serial number sending the data packet can be found as 1; according to the unique address identifier 2M-1, the control terminal serial number sending the data packet can be found as 4; according to the unique address identifier IP=192.168.0.100, port=6000, the control terminal serial number sending the data packet can be found as 8, and so on.

[0108] S105, obtaining the position interval of the application layer data in the uplink data packet corresponding to each terminal serial number according to the second mapping table.

[0109] 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 the application layer data of the control terminal in the uplink data packet. 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 the available capacity, actual capacity, incoming, abnormality and other information of all control terminals.

[0110] Table 2 Second mapping table

[0111]

[0112] The first mapping table and the second mapping table can be combined into one table, or can be divided into two tables. The contents of the first mapping table and the second mapping table can be stored in one configuration file, or can be stored separately in different configuration files.

[0113] S106, parsing the application layer data from each received first type data packet, and combining the application layer data of all first type data packets in the corresponding position interval to form an uplink data packet.

[0114] For example, the second mapping table shown in Table 2 is arranged and combined according to the order from front to back, and the application layer data of the control terminal serial numbers 1-8 forms an uplink data packet. If the length of the application layer data of a certain control terminal does not reach the specified byte length M, the preset content (such as 0 or 1) is filled to the specified byte length M.

[0115] S107, sending the uplink data packet to the power control system control substation device.

[0116] The upper data packet is sent to the power stability control system control substation device through the control substation interface.

[0117] The above is the data access uploading step. In addition, as shown in Figure 4 、 5 the method of the present application can further include the following data access issuing step:

[0118] S108, receiving the second type data packet issued by the power stability control system control substation device to the heterogeneous control terminal.

[0119] The second type data packet is a data packet that integrates data issued to all control terminals. Specifically, it can be a load capacity command, a full cut command, and other information issued to each control terminal. It can also be other commands or data, all within the scope of the present application.

[0120] Specifically, the second type data packet issued by the power stability control system control substation device can be received through the control substation interface.

[0121] S108, according to the third mapping table, obtaining the terminal serial number of the heterogeneous control terminal to which the data on each position interval of the second type data packet needs to be sent.

[0122] In 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] The third mapping table is used to indicate the mapping rule between the data on 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, and is specifically shown in Table 3.

[0124] Table 3 Third mapping table

[0125]

[0126] S110, according to the first mapping table, obtaining the unique address identifier, protocol type and interface number of the communication interface corresponding to each terminal serial number.

[0127] S111, extracting the data on each interval position from the second type data packet, and encapsulating it into a downlink data packet according to the corresponding protocol type.

[0128] In implementation, the data at each interval position is extracted from the second type data packet; if the protocol type of the data at the interval position is the stable control ring network protocol, the data at the current interval position is encapsulated as the issued data packet of the stable control ring network protocol; if the protocol type of the data at the interval position is the HDLC protocol, the data at the current interval position is encapsulated as the issued data packet of the HDLC protocol; if the protocol type of the data at the interval position is the SV / GOOSE protocol, the data at the current interval position is encapsulated as the issued data packet of the SV / GOOSE protocol; if the protocol type of the data at the interval position is the TCP / IP protocol, the data at the current interval position is encapsulated as the issued data packet of the TCP / IP protocol.

[0129] S112, each issued data packet is issued to the address corresponding to the unique address identification through the communication interface corresponding to the interface number.

[0130] In implementation, if the protocol type of the issued data packet is the stable control ring network protocol, the issued data packet is sent to the ring network terminal with the unique address identification as the terminal identity through the stable control ring network interface; if the protocol type of the issued data packet is the HDLC protocol, the issued data packet is sent to the 2M interface with the unique address identification as the interface number; if the protocol type of the issued data packet is the SV / GOOSE protocol, the issued data packet is sent to the SV / GOOSE terminal with the unique address identification as the terminal identity through the Ethernet interface; if the protocol type of the issued data packet is the TCP / IP protocol, the issued data packet is sent to the TCP / IP terminal with the unique address identification as the TCP / IP address through the wireless network interface.

[0131] Embodiment two

[0132] The embodiment of the present application provides an access device of a heterogeneous control terminal of a power stable control system. The device can be realized in a software+hardware mode, and the device comprises:

[0133] A plurality of communication interfaces supporting protocol types of the heterogeneous control terminals, used for receiving the first type data packets sent by the heterogeneous control terminals;

[0134] A first mapping table, used for indicating a mapping rule between a terminal serial number, a unique address identification, an interface number of a communication interface and a protocol type of each accessible heterogeneous control terminal;

[0135] A second mapping table, used for indicating a mapping rule between the terminal serial number of the accessible heterogeneous control terminal and a position interval occupied by the application layer data of the accessible heterogeneous control terminal in the uplink data packet;

[0136] The protocol type obtaining module is configured to obtain, according to the first mapping table, a protocol type of a communication interface receiving each first-type data packet as the protocol type of the corresponding first-type data packet.

[0137] The unique address identifier obtaining module is configured to parse, according to the protocol type of each first-type data packet, a source address from each received first-type data packet as the unique address identifier of the corresponding first-type data packet, and if the source address does not exist in the first-type data packet, take the interface number of the communication interface receiving the first-type data packet as the unique address identifier of the corresponding first-type data packet.

[0138] The first terminal serial number extracting module is configured to obtain, according to the first mapping table, a terminal serial number of a heterogeneous control terminal corresponding to each unique address identifier.

[0139] The data position extracting module is configured to obtain, according to the second mapping table, a position interval of application layer data corresponding to each terminal serial number in the uplink data packet.

[0140] The uplink data packet generating module is configured to parse the application layer data from each received first-type data packet, and combine the application layer data of all first-type data packets in the corresponding position intervals to form an uplink data packet.

[0141] The uplink module is configured to send the uplink data packet to the power control system control substation device.

[0142] In specific implementation, the device further comprises:

[0143] The second-type data packet receiving module is configured to receive a second-type data packet issued by the power control system control substation device to the heterogeneous control terminal.

[0144] The third mapping table is configured 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] The second terminal serial number extracting module is configured to obtain, according to the third mapping table, a terminal serial number of a heterogeneous control terminal to which data in each position interval in the second-type data packet needs to be sent.

[0146] The address type extracting module is configured to obtain, according to the first mapping table, a unique address identifier, a protocol type and an interface number of a communication interface corresponding to each terminal serial number.

[0147] The issued data packet generating module is configured to extract data in each interval position from the second-type data packet, and encapsulate the data into an issued data packet according to the corresponding protocol type.

[0148] The issuing module is configured to issue each of the issuing data packets to a corresponding address where the unique address identifier is located through a communication interface corresponding to the interface number.

[0149] The heterogeneous control terminal includes a ring network terminal, an HDLC terminal, an SV / GOOSE terminal, and a TCP / IP terminal.

[0150] The communication interface specifically includes:

[0151] The stable control ring network interface is configured to receive the first type data packets sent by the ring network terminal.

[0152] The 2M interface is configured to receive the first type data packets sent by the HDLC terminal.

[0153] The Ethernet interface is configured to receive the first type data packets sent by the SV / GOOSE terminal.

[0154] The wireless network interface is configured to receive the first type data packets sent by the TCP / IP terminal.

[0155] The unique address identifier obtaining module specifically includes:

[0156] The source address obtaining unit is configured to parse each of the received first type data packets according to the protocol type of each of the first type data packets, and obtain the source address in the first type data packet.

[0157] The first address identifier obtaining unit is configured to, if the source address is the ring network terminal identity identifier, take the ring network terminal identity identifier as the unique address identifier.

[0158] The second address identifier obtaining unit is configured to, if the source address does not exist, take the interface number of the communication interface where the first type data packet is received as the unique address identifier.

[0159] The third address identifier obtaining unit is configured to, if the source address is the SV / GOOSE terminal identity identifier, take the SV / GOOSE terminal identity identifier as the unique address identifier.

[0160] The fourth address identifier obtaining unit is configured to, if the source address is a TCP / IP address, take the TCP / IP address as the unique address identifier.

[0161] The issuing data packet generating module specifically includes:

[0162] The data extracting unit is configured to extract the data at each interval position from the second type data packet.

[0163] The first data encapsulating unit is configured to, if the protocol type to which the data at the position interval belongs is a stable control ring network protocol, encapsulate the data at the current position interval into a stable control ring network protocol issuing data packet.

[0164] The second data encapsulation unit is configured to encapsulate the data in the current location interval into a downlink data packet of the HDLC protocol when the protocol type of the data in the location interval is the HDLC protocol.

[0165] The third data encapsulation unit is configured to encapsulate the data in the current location interval into a downlink data packet of the SV / GOOSE protocol when the protocol type of the data in the location interval is the SV / GOOSE protocol.

[0166] The fourth data encapsulation unit is configured to encapsulate the data in the current location interval into a downlink data packet of the TCP / IP protocol when the protocol type of the data in the location interval is the TCP / IP protocol.

[0167] The downlink module specifically includes:

[0168] The first downlink unit is configured to send the downlink data packet to a ring network terminal whose identity is uniquely identified by the ring network terminal through a stable control ring network interface when the protocol type of the downlink data packet is the stable control ring network protocol.

[0169] The second downlink unit is configured to send the downlink data packet to a 2M interface whose interface number is uniquely identified by the interface number when the protocol type of the downlink data packet is the HDLC protocol.

[0170] The third downlink unit is configured to send the downlink data packet to a SV / GOOSE terminal whose identity is uniquely identified by the SV / GOOSE terminal through an Ethernet interface when the protocol type of the downlink data packet is the SV / GOOSE protocol.

[0171] The fourth downlink unit is configured to send the downlink data packet to a TCP / IP terminal whose TCP / IP address is uniquely identified by the TCP / IP address through a wireless network interface when the protocol type of the downlink data packet is the TCP / IP protocol.

[0172] The uplink module and the second type data packet receiving module can be control substation interfaces.

[0173] The device provided by the embodiment of the application can be used to execute the method provided by the embodiment of the application, and has the corresponding functions and advantages of the execution method.

[0174] It should be noted that, in the above embodiment of the device, each unit and module included is only divided according to the function logic, but is not limited to the above division, as long as the corresponding function can be realized; in addition, the specific name of each functional unit is only for the convenience of mutual distinction, and does not limit the protection scope of the application.

[0175] The above-described embodiments are merely illustrative for the present application, wherein the modules illustrated as separate components can or can not be physically separated, and the components illustrated as modules can or can not be physical modules, i.e., can be located in one place or can be distributed to multiple network modules. Part or all of the modules can be selected according to actual needs to achieve the purposes of the present embodiments. It is clear to those skilled in the art that the various embodiments can be realized by means of software and necessary universal hardware platforms, and of course can also be realized only by hardware, as long as the functions or effects can be realized.

[0176] It should be understood that the above embodiments and descriptions in the specification are only the principles, main features and advantages of the present application, and various changes and improvements can be made to the present application without departing from the spirit and scope of the present application, and these changes and improvements all fall within the protection scope of the present application.

Claims

1. A heterogeneous control terminal access method for a power stability control system, characterized in that, The method comprises the following steps: receiving first type data packets sent by each of the heterogeneous control terminals through a communication interface supporting the protocol type of each of the heterogeneous control terminals; obtaining the protocol type of the communication interface receiving each of the first type data packets as the protocol type of the corresponding first type data packet according to a first mapping table, wherein the first mapping table is used to indicate the mapping rule between the terminal serial number, the unique address identifier, the interface number of the communication interface and the protocol type of each of the accessible heterogeneous control terminals; parsing the source address from each of the received first type data packets as the unique address identifier of the corresponding first type data packet according to the protocol type of each of the first type data packets, and if the source address does not exist in the first type data packet, taking the interface number of the communication interface receiving the first type data packet as the unique address identifier of the corresponding first type data packet; obtaining the terminal serial number of the heterogeneous control terminal corresponding to each of the unique address identifiers according to the first mapping table; obtaining the position interval of the application layer data in the uplink data packet corresponding to each of the terminal serial numbers according to a second mapping table, 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 the application layer data in the uplink data packet; parsing the application layer data from each of the received first type data packets, and combining the application layer data of all the first type data packets in the corresponding position intervals to form an uplink data packet; sending the uplink data packet to the power stability control system control substation device.

2. The method of claim 1, wherein the method further comprises: The method further comprises the following steps: receiving second type data packets sent by the power stability control system control substation device to the heterogeneous control terminals; obtaining the terminal serial number of the heterogeneous control terminal to which the data in each of the position intervals in the second type data packet needs to be sent according to a third mapping table, wherein the third mapping table is used to indicate the mapping rule between the data in each of the position intervals in the second type data packet and the terminal serial number of the heterogeneous control terminal to which the data needs to be sent; obtaining the unique address identifier, the protocol type and the interface number of the communication interface corresponding to each of the terminal serial numbers according to the first mapping table; extracting the data in each of the position intervals from the second type data packet, and encapsulating the data into a downlink data packet according to the corresponding protocol type; sending each of the downlink data packets to the address of the corresponding unique address identifier through the communication interface with the corresponding interface number.

3. The method of claim 2, wherein the method further comprises: The heterogeneous control terminals comprise ring network terminals, HDLC terminals, SV / GOOSE terminals and TCP / IP terminals.

4. The power stability control system heterogeneous control terminal access method according to claim 3, characterized in that, The receiving of the first type data packets sent by each of the heterogeneous control terminals through a communication interface supporting the protocol type of each of the heterogeneous control terminals comprises the following steps: receiving the first type data packets sent by the ring network terminals through a stability control ring network interface; receiving the first type data packets sent by the HDLC terminals through a 2M interface; receiving the first type data packets sent by the SV / GOOSE terminals through an Ethernet interface; receiving the first type data packets sent by the TCP / IP terminals through a wireless network interface.

5. The power stability control system heterogeneous control terminal access method according to claim 3, characterized in that, The source address is parsed from each received first-type data packet according to the protocol type of each first-type data packet as the unique address identifier of the corresponding first-type data packet, and if the source address does not exist in the first-type data packet, the interface number of the communication interface receiving the first-type data packet is taken as the unique address identifier of the corresponding first-type data packet, and specifically comprises: 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 a ring network terminal identity, the ring network terminal identity is taken as the unique address identifier; If the source address does not exist, the interface number of the communication interface receiving the first-type data packet is taken as the unique address identifier; If the source address is an SV / GOOSE terminal identity, the SV / GOOSE terminal identity is taken as the unique address identifier; If the source address is a TCP / IP address, the TCP / IP address is taken as the unique address identifier.

6. The access method of the heterogeneous control terminal of the power stability control system according to claim 3, characterized in that, The data at each interval position is extracted from the second-type data packet, and is encapsulated into a downlink data packet according to the corresponding protocol type, and specifically comprises: The data at each interval position is extracted from the second-type data packet; If the protocol type of the data at the position interval is a stable control ring network protocol, the data at the current position interval is encapsulated into a downlink data packet of the stable control ring network protocol; If the protocol type of the data at the position interval is an HDLC protocol, the data at the current position interval is encapsulated into a downlink data packet of the HDLC protocol; If the protocol type of the data at the position interval is an SV / GOOSE protocol, the data at the current position interval is encapsulated into a downlink data packet of the SV / GOOSE protocol; If the protocol type of the data at the position interval is a TCP / IP protocol, the data at the current position interval is encapsulated into a downlink data packet of the TCP / IP protocol.

7. The access method of the heterogeneous control terminal of the power stability control system according to claim 3, characterized in that, Each downlink data packet is downlinked to the address where the unique address identifier is located through the communication interface of the corresponding interface number, and specifically comprises: If the protocol type of the downlink data packet is a stable control ring network protocol, the downlink data packet is sent to the ring network terminal whose ring network terminal identity is the unique address identifier through the stable control ring network interface; If the protocol type of the downlink data packet is an HDLC protocol, the downlink data packet is sent to the 2M interface whose interface number is the unique address identifier; If the protocol type of the downlink data packet is an SV / GOOSE protocol, the downlink 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 of the downlink data packet is a TCP / IP protocol, the downlink 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 access method of the heterogeneous control terminal of the power stability control system according to claim 2, characterized in that, The uplink data packet is uplinked to the power stable control system control substation device through the control substation interface, and the second-type data packet is received through the control substation interface.

9. A power stability control system heterogeneous control terminal access device, characterized in that, It comprises: The communication interface supports various isomeric control terminal protocol types, and is configured to receive first type data packets sent by various isomeric control terminals; The first mapping table is configured 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 isomeric control terminal; The second mapping table is configured to indicate a mapping rule between a terminal serial number of an accessible isomeric control terminal and a position interval occupied by application layer data of the isomeric control terminal in an upload data packet; The protocol type acquisition module is configured to acquire, according to the first mapping table, a protocol type of a communication interface receiving each first type data packet as a protocol type corresponding to the first type data packet; The unique address identifier acquisition module is configured to parse, according to the protocol type of each first type data packet, a source address from each received 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, to acquire the interface number of the communication interface receiving the first type data packet as the unique address identifier corresponding to the first type data packet; The first terminal serial number extraction module is configured to acquire, according to the first mapping table, a terminal serial number of an isomeric control terminal corresponding to each unique address identifier; The data position extraction module is configured to acquire, according to the second mapping table, a position interval of application layer data corresponding to each terminal serial number in an upload data packet; The upload data packet generation module is configured to parse application layer data from each received first type data packet, and to combine the application layer data of all first type data packets in corresponding position intervals to form an upload data packet; The upload module is configured to upload the upload data packet to a power stability control system control substation device.

10. The power stability control system heterogeneous control terminal access device of claim 9, wherein, The device further includes: The second type data packet receiving module is configured to receive second type data packets issued by the power stability control system control substation device to the isomeric control terminal; The third mapping table is configured to indicate a mapping rule between data in each position interval in the second type data packet and a terminal serial number of an isomeric control terminal to which the data needs to be sent; The second terminal serial number extraction module is configured to acquire, according to the third mapping table, a terminal serial number of an isomeric control terminal to which data in each position interval of the second type data packet needs to be sent; The address type extraction module is configured to acquire, according to the first mapping table, a unique address identifier, a protocol type, and an interface number of a communication interface corresponding to each terminal serial number; The issued data packet generation module is configured to extract data in each interval position from the second type data packet, and to encapsulate the data into an issued data packet according to a corresponding protocol type; The issuing module is configured to issue each issued data packet to a corresponding unique address identifier through a communication interface corresponding to the interface number.

11. The power stability control system heterogeneous control terminal access device of claim 10, wherein, The isomeric control terminal includes a ring network terminal, an HDLC terminal, an SV / GOOSE terminal, and a TCP / IP terminal.

12. The power stability control system heterogeneous control terminal access device of claim 11, wherein, The communication interface specifically includes: The stability control ring network interface is configured to receive first type data packets sent by the ring network terminal; The 2M interface is configured to receive first type data packets sent by the HDLC terminal; The Ethernet interface is configured to receive first type data packets sent by the SV / GOOSE terminal; The wireless network interface is configured to receive the first type of data packet sent by the TCP / IP terminal.

13. The power stability control system heterogeneous control terminal access device of claim 11, wherein, The unique address identifier obtaining module specifically comprises: A source address obtaining unit configured to parse each received first type of data packet according to the protocol type of each first type of data packet, and obtain the source address in the first type of data packet; A first address identifier obtaining unit configured to, if the source address is a ring network terminal identity, take the ring network terminal identity as the unique address identifier; A second address identifier obtaining unit configured to, if there is no source address, take the interface number of the communication interface receiving the first type of data packet as the unique address identifier; A third address identifier obtaining unit configured to, if the source address is an SV / GOOSE terminal identity, take the SV / GOOSE terminal identity as the unique address identifier; A fourth address identifier obtaining unit configured to, if the source address is a TCP / IP address, take the TCP / IP address as the unique address identifier.

14. The access device of the heterogeneous control terminal of the power stability control system according to claim 11, characterized in that, The downlink data packet generating module specifically comprises: A data extracting unit configured to extract the data at each interval position from the second type of data packet; A first data encapsulating unit configured to, if the protocol type of the data at the interval position is the stable control ring network protocol, encapsulate the data at the current interval position into a downlink data packet of the stable control ring network protocol; A second data encapsulating unit configured to, if the protocol type of the data at the interval position is the HDLC protocol, encapsulate the data at the current interval position into a downlink data packet of the HDLC protocol; A third data encapsulating unit configured to, if the protocol type of the data at the interval position is the SV / GOOSE protocol, encapsulate the data at the current interval position into a downlink data packet of the SV / GOOSE protocol; A fourth data encapsulating unit configured to, if the protocol type of the data at the interval position is the TCP / IP protocol, encapsulate the data at the current interval position into a downlink data packet of the TCP / IP protocol.

15. The access device of the heterogeneous control terminal of the power stability control system according to claim 11, characterized in that, The downlink module specifically comprises: A first downlink unit configured to, if the protocol type of the downlink data packet is the stable control ring network protocol, send the downlink data packet to the ring network terminal with the ring network terminal identity as the unique address identifier through the stable control ring network interface; A second downlink unit configured to, if the protocol type of the downlink data packet is the HDLC protocol, send the downlink data packet to the 2M interface with the interface number as the unique address identifier; A third downlink unit configured to, if the protocol type of the downlink data packet is the SV / GOOSE protocol, send the downlink data packet to the SV / GOOSE terminal with the SV / GOOSE terminal identity as the unique address identifier through the Ethernet interface; A fourth downlink unit configured to, if the protocol type of the downlink data packet is the TCP / IP protocol, send the downlink data packet to the TCP / IP terminal with the TCP / IP address as the unique address identifier through the wireless network interface.

16. The access device of the heterogeneous control terminal of the electric power stability control system according to claim 10, characterized in that, The uplink module and the second type of 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