Stability control device of looped network architecture and implementation method
Through the ring network architecture and Ethernet protocol, information sharing and fast communication between multiple host devices is realized, solving the problem of efficiency and reliability of stable control devices, ensuring flexible deployment of functions and stable communication under abnormal conditions.
Patent Information
- Application Number
- CN202411200229.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-05
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
With the high proportion of new energy connected to the power grid, the strategic functions of the stabilization control device need to be changed frequently, resulting in a large workload of custom development of the host device, affecting development efficiency and reliability.
The stable control device adopts a ring network architecture supports information sharing between multiple host devices, slave devices and communication interface devices, is connected through an optical fiber ring network, and uses the communication protocol of the data link layer and the physical layer based on Ethernet. , directly map application layer data to the data link layer and physical layer, avoid network layer and transmission layer, and realize rapid data transmission and flexible deployment.
It realizes flexible deployment of the stable control device functions, improves development efficiency and reliability, ensures normal communication through another interface in abnormal situations, maximizes the retention of functions, and reduces the hardware and software changes requirements during upgrades and transformations.
Smart Images

Figure CN118900217A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of power systems and automation thereof, and specifically relates to a stabilization control device for a ring network architecture and an implementation method thereof. Background Art
[0002] The stabilization control device generally consists of a host device, a slave device (optional) and a communication interface device. With the host device as the core, the host device, the slave device and the communication interface device are connected in a star shape using dedicated optical fibers.
[0003] Slave devices and communication interface devices are relatively easy to standardize, but host devices often require customized development. With a high proportion of new energy connected to the power grid, the operation mode of the power grid is changing. In order to support the transmission and consumption of new energy, the strategy function of the stabilization and control device may need to be changed frequently, so the workload of customized development of the host device is increasing. A stabilization and control device with a ring network architecture and an implementation method are proposed to achieve flexible deployment of the stabilization and control device functions and improve the development efficiency and reliability of the stabilization and control device. Summary of the invention
[0004] Purpose of the invention: The present invention aims to provide a new stabilization and control device architecture with a ring-networked architecture that supports information sharing among a host device, a slave device, and a communication interface device, so as to realize flexible deployment of the stabilization and control device functions.
[0005] Technical solution: Creatively proposed that the stabilization control device can have multiple host devices. Proposed a stabilization control device architecture that supports information sharing between multiple host devices, slave devices and communication interface devices and uses ring network communication. Proposed a communication protocol between the host device, slave device and communication interface device and a processing mechanism for sending and receiving ring network messages. The host device, slave device and communication interface device form a fiber optic ring network in a hand-in-hand manner, and they send data to the ring network and obtain data from the ring network at the same time. Specifically:
[0006] A ring network architecture stabilization control device, characterized in that it comprises a plurality of host devices, slave devices and communication interface devices; the host devices, slave devices and communication interface devices are connected in the form of an optical fiber ring network;
[0007] The host device, the slave device and the communication interface device are all equipped with two optical fiber ring network ports, which are respectively denoted as port A and port B, and they are connected by using optical fiber, and the port A of any device is connected to the port B of the adjacent device, and the port B of any device is connected to the port A of the adjacent device, so as to form an optical fiber ring network;
[0008] The host device, slave device and communication interface device simultaneously receive and forward data sent by other device units through port A and port B; the method of forwarding data packets is that if the data packet is obtained from port A, the data packet is forwarded from port B; if the data packet is obtained from port B, the data packet is forwarded from port A.
[0009] The host device, the slave device and the communication interface device receive data from the ring network every T0 time, and send a frame of ring network data packet every 2T0 time.
[0010] As a further improvement of the present invention, the communication messages between the host device, the slave device and the communication interface device adopt an Ethernet-based data link layer and physical layer, but unlike ordinary network messages, the application layer is directly mapped to the underlying data link layer and physical layer after ASN.1 encoding, without going through the TCP / IP protocol, that is, without going through the network layer and transport layer.
[0011] The ASDU message format for sending data from the slave device to the master device is shown in the following table.
[0012]
[0013]
[0014] The ASDU tag is defined as 0x62, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes.
[0015] The ASDU message contains 16 data values, each of which contains 2 bytes.
[0016] Data value 1 is the "data type and device address code" field, which identifies whether the frame is a normal data frame or a command frame. If the acquisition station device determines that its component has failed, the corresponding position of the field of data value 13 is set to 1, and the data value 1 field is 0x9900+device address code; otherwise, the data value 1 field is 0x5500+device address code.
[0017] Data values 2 to 11 are respectively: positive sequence voltage, negative sequence voltage, zero sequence voltage, positive sequence current, negative sequence current, zero sequence current, positive sequence frequency, active power, reactive power, phase angle, etc.
[0018] The specific meaning of data value 12 "component status word" is expressed bit by bit, as shown in the following table.
[0019]
[0020]
[0021] Bit0: If this bit is set to 1, it indicates that the component is abnormal; otherwise, it indicates that the component is normal.
[0022] Bit1: If this position is 1, it indicates that the component is in operation; otherwise, it indicates that the component is in shutdown.
[0023] Bit2: If this bit is set to 1, it indicates that the component is in the startup state; otherwise, it indicates that the component is not started.
[0024] Bit4: If this position is 1, it means that the A-phase switch tripping signal of the component exists; otherwise, it means that the A-phase switch tripping signal of the component does not exist.
[0025] Bit5: If this position is 1, it means that the B-phase switch tripping signal of the component exists; otherwise, it means that the B-phase switch tripping signal of the component does not exist.
[0026] Bit6: If this position is 1, it means that the C-phase switch tripping signal of the component exists; otherwise, it means that the C-phase switch tripping signal of the component does not exist.
[0027] Bit7: If this position is 1, it means that the switch trip signal in phase A of the component is present; otherwise, it means that the switch trip signal in phase A of the component is not present.
[0028] Bit8: If this position is 1, it means that the switch trip signal in phase B of the component is present; otherwise, it means that the switch trip signal in phase B of the component is not present.
[0029] Bit9: If this position is 1, it means that the switch trip signal in phase C of the component is present; otherwise, it means that the switch trip signal in phase C of the component is not present.
[0030] Bit10: If this position is 1, it means that the switch position signal of the A phase side of the component is available; otherwise, it means that the switch position signal of the A phase side of the component is not available.
[0031] Bit11: If this position is 1, it means that the switch position signal of the B phase side of the component is available; otherwise, it means that the switch position signal of the B phase side of the component is not available.
[0032] Bit12: If this position is 1, it means that the C-phase switch position signal of the component is available; otherwise, it means that the C-phase switch position signal of the component is not available.
[0033] Bit13: If this position is 1, it means that the switch position signal in phase A of the component is present; otherwise, it means that the switch position signal in phase A of the component is absent.
[0034] Bit14: If this position is 1, it means that the switch position signal in phase B of the component is present; otherwise, it means that the switch position signal in phase B of the component is absent.
[0035] Bit15: If this position is 1, it means that the switch position signal in the C phase of the component is present; otherwise, it means that the switch position signal in the C phase of the component is not present.
[0036] The specific meaning of data value 13 "component fault word" is expressed bit by bit, as shown in the following table.
[0037]
[0038] Bit0: If this bit is set to 1, it indicates that a single-phase instantaneous fault occurs in the component; otherwise, it indicates that there is no such fault.
[0039] Bit3: If this bit is set to 1, it indicates that a single-phase permanent fault has occurred in the component; otherwise, it indicates that there is no such fault.
[0040] Bit6: If this bit is set to 1, it indicates that a phase-to-phase fault has occurred in the component; otherwise, it indicates that there is no such fault.
[0041] Bit10: If this bit is set to 1, it indicates that the component tripped without a fault; otherwise, it indicates that there is no such fault.
[0042] Data values 14 to 16 are reserved.
[0043] Each slave device collects information of 16 components, so the APDU data packet sent by the slave device to the host device includes 16 ASDU data packets, which are information of components 1 to 16 respectively.
[0044] The format of the ASDU (downlink ASDU) message used by the host device to send data to the slave device is shown in the following table.
[0045]
[0046]
[0047] The ASDU tag is defined as 0x65, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes.
[0048] The ASDU message contains 16 data values, each of which contains 2 bytes.
[0049] Data value 1 is the data type and device address code. If the data type is normal data, the data value 1 field is 0x5500+device address code. If the data type is command data, the data value 1 field is 0x9900+device address code.
[0050] Data value 2 is the slave device ID. If the host device needs to send data to a slave device, the data value 2 "slave device ID" will be set; if the data type is normal data, the data value 1 field is 0x5500+device address code; if the data type is command data, the data value 1 field is 0x9900+device address code.
[0051] Data value 3 is the "export command word" field, and data value 4 is the inverse of data value 3. If the host device wants to cut off a certain component, the bit of data value 3 is set to 1, and the bit of data value 4 is set to 0 to increase reliability.
[0052] Data values 5 to 16 are reserved.
[0053] As a further improvement of the present invention, the mechanism steps of the host device, the slave device and the communication interface device sending the ring network message are as follows:
[0054] Step S201: Generate application layer data to be sent to other device units, encode it according to the standard protocol to generate an ASDU data packet, and further generate an APDU data packet, and then enter step S202.
[0055] Step S202: Add the destination MAC address, source MAC address, Ethernet type and other fields required by the Ethernet message to the APDU data packet, and set the device ID, serial number and other contents to form a data packet to be sent, and then enter step S203.
[0056] Step S203: for port A and port B, different path identifiers are set for the data packets to be sent, and then copied to the sending buffers of port A and port B, and then the process proceeds to step S204.
[0057] Step S204: Send the data packets in the sending buffers of port A and port B to the ring network simultaneously.
[0058] As a further improvement of the present invention, the mechanism steps for the host device, the slave device and the communication interface device to receive the ring network message are as follows:
[0059] Step S301: the device unit receives the ring network data through port A and port B. If no data packet is received, the data reception is terminated; otherwise, the process proceeds to step S302.
[0060] Step S302: Determine whether the "Ethernet Type" field of the data packet is a ring network message type. If the condition is not met, discard the data packet; otherwise, proceed to step S303.
[0061] Step S303: Determine whether the "path identifier" field of the data packet is correct, and the principle of determination is that port A can only receive data packets sent from port B, and port B can only receive data packets sent from port A. If the conditions are not met, the data packet is discarded; otherwise, enter step S304.
[0062] Step S304: Determine whether the "destination address" field meets the receiving conditions, that is, whether the destination MAC address is the same as the MAC address of the device unit itself. If the conditions are not met, forward the data packet; otherwise, enter step S305.
[0063] As a further improvement of the present invention, the method for forwarding the data packet is: if the data packet is obtained from port A, the data packet is forwarded from port B; if the data packet is obtained from port B, the data packet is forwarded from port A.
[0064] Step S305: Determine whether "ID" is the ID of the device unit. If the condition is not met, discard the data packet; otherwise, go to step S306.
[0065] Step S306: Search in the first-in-first-out FIFO cache to see if there are other messages with the same serial number and different path identifiers sent from the same device unit. If the conditions are met, the two messages are considered to be twin messages sent by the access unit through different interfaces at the same time. According to the principle of first come, first served, the data packet is discarded; otherwise, go to step S307.
[0066] Step S307: The data packet is stored in a first-in first-out FIFO buffer of the device unit, and then the process proceeds to step S308.
[0067] As a further improvement of the present invention, the first-in-first-out FIFO cache of the device unit can save the latest data packet within T1 time sent by any other device unit, which is used for comparison with the currently received data packet to determine whether the twin messages sent by the device unit through different interfaces at the same time have been processed.
[0068] Step S308: parse and process the application layer data of the data packet.
[0069] The present invention also provides a method for implementing a stabilization control device of a ring network architecture, wherein the slave device performs an "OR" process on the export command words sent from multiple host devices, that is, as long as any host device wants to cut off a certain component, the command to cut off the component is executed.
[0070] Beneficial effects: Compared with the prior art, the present invention has the following two significant advantages: On the one hand, all data can be shared, any node in the ring network can get all data, and can send data to any other node. When the stabilization and control device needs to be upgraded, the original host device, slave device and communication interface device do not need to be modified in terms of software and hardware. It is only necessary to add the corresponding host device, slave device or communication interface device in the ring network, so as to realize the flexible deployment of the stabilization and control device functions and improve the development efficiency and reliability of the stabilization and control device. On the other hand, since any host device, slave device and communication interface device have two interfaces to access the ring network, the two ports A and B are always in the state of receiving and sending messages at the same time. When a communication failure occurs in one of the ports, the other port still receives messages normally in real time. If a communication path fails, they can still communicate normally through another path, so as to realize the maximum preservation of the stabilization and control device functions under abnormal conditions and improve the reliability of the stabilization and control device. BRIEF DESCRIPTION OF THE DRAWINGS
[0071] Figure 1 It is a schematic diagram of the architecture of a stabilization and control device using ring network communication.
[0072] Figure 2 It is a schematic diagram of the data transmission process of the host device, the slave device and the communication interface device.
[0073] Figure 3 It is a schematic diagram of the data receiving process of the host device, the slave device and the communication interface device. DETAILED DESCRIPTION
[0074] The present invention will be further described in detail below with reference to the accompanying drawings and in combination with the embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0075] The present invention proposes a stabilization control device architecture that supports information sharing among multiple host devices, slave devices, and communication interface devices and adopts ring network communication, such as Figure 1 As shown. The ring network contains three types of stabilization and control device units, namely the master device, the slave device and the communication interface device, all of which have two optical fiber ring network ports, respectively denoted as port A and port B, for accessing the same ring network. The connection between them is to use a dedicated optical fiber to connect port A of one device to port B of another device, and through this hand-in-hand connection, they communicate using a standardized communication protocol.
[0076] The host device mainly realizes the following functions: 1) Collecting the local and remote component operation information sent by the slave device and the communication interface device to identify the operation mode of the power grid; 2) Implementing control strategy processing such as overload, low frequency, high frequency, low voltage, overvoltage, section power limit, tripping and interlocking; 3) Sending the control strategy results to the slave device or communication interface device, and finally the slave device or remote stabilization device will execute the control strategy to achieve stable control.
[0077] The slave device mainly realizes the following functions: 1) Collecting the electrical quantity, switch quantity and other information of local components; 2) According to the collected electrical quantity and switch quantity and other information, the fault and operation / shutdown status information of the components, and sending the judgment results to the host device; 3) Parsing the control instructions sent by the host device, realizing the export and then operating the control object of this station, such as cutting off the unit, cutting off the line, etc.
[0078] The communication interface device mainly realizes the following functions: 1) receiving data or commands sent by other plant station stabilization and control devices and forwarding them to the host device; 2) receiving data or commands sent by the host device and sending them to other plant station stabilization and control devices.
[0079] According to the actual functional requirements of the stabilization and control device, multiple sets of host devices can be configured. For strategic functions such as overload, low frequency, high frequency, low voltage, overvoltage, cross-section power limit, tripping and joint cutting, one host device can be used to implement each function, or multiple functions can be implemented by one host device. When the stabilization and control device needs to be upgraded, it can be implemented by adding a host device without affecting the function of the original host device.
[0080] For the convenience of the following description, the host device, the slave device and the communication interface device are collectively referred to as "device units".
[0081] In this embodiment, the present invention proposes a data forwarding mechanism for a device unit.
[0082] The device unit simultaneously receives and forwards data sent by other device units through port A and port B. The method of forwarding data packets is that if the data packet is obtained from port A, the data packet is forwarded from port B; if the data packet is obtained from port B, the data packet is forwarded from port A.
[0083] In this embodiment, the present invention proposes a data transmission and reception time interval mechanism for a device unit.
[0084] The device unit receives data from the ring network every T0 time, and sends a frame of ring network data packet every 2T0 time. The T0 value is 0.833 milliseconds, which can meet the requirements of the stable control device.
[0085] In this embodiment, the present invention proposes a communication protocol between device units.
[0086] The communication messages between the device units use the Ethernet-based data link layer and physical layer, but unlike ordinary network messages, the application layer is directly mapped to the underlying data link layer and physical layer after ASN.1 encoding, without going through the TCP / IP protocol, that is, without going through the network layer and transport layer. This mapping method avoids the transmission delay caused by the communication stack and ensures the rapidity of message transmission. The ring network data packet structure is shown in the following table.
[0087]
[0088] The destination address field occupies 6 bytes and determines the recipient of the message. It is a multicast address. All device units that subscribe to the multicast address can receive the data packet.
[0089] The source address field, which occupies 6 bytes, identifies the sender of the message, which is the MAC address of the sender.
[0090] The Ethernet type field occupies 2 bytes and is fixed at 0x892F, indicating that this message is a ring network stability control protocol.
[0091] The path identification field occupies 2 bytes and is used to identify whether the message is sent from port A or port B of the device. Port A can only receive data sent from port B, that is, the "path identification" field of the data packet received from port A must be 0x0a; port B can only receive data sent from port A, and the "path identification" field of the data packet received from port B must be 0x0b.
[0092] The ID field occupies 2 bytes. Within the same stabilization device, each device unit has a unique ID identification.
[0093] The sequence number field occupies 2 bytes. The sequence numbers of the twin messages sent by the device unit through different interfaces at the same time are the same. Every time the device unit sends a packet of data at different times, the sequence number is increased by 1. The value range is 0 to 65535.
[0094] The APDU data length field occupies 2 bytes and is used to identify the length of the application protocol data unit (Application Protocol Data Unit), which is determined according to the actual length of the transmitted data.
[0095] The APDU data segment is the APDU data actually transmitted. The valid data transmitted by the device unit is encoded by ASN.1 into the ASDU data segment, and the ASDU data segment is further encoded by ASN.1 into the APDU data segment. With different actual application scenarios, valid data, ASDU, and APDU have different meanings.
[0096] Among them, the encoding structure adopted by the ASN.1 basic encoding rule consists of three parts: tag (Tag), length (Length) and content (Value).
[0097] The CRC field occupies 4 bytes and is a cyclic redundancy check (Cyclic Redundancy Check) for the entire packet of data. The receiver ensures the integrity and correctness of the data packet by judging whether this field is correct.
[0098] The valid data information transmitted between device units is encapsulated in APDU using ASN.1 encoding. The encoding format of the ring network data APDU is shown in the following table.
[0099]
[0100]
[0101] According to different application scenarios of the device unit, the Application Service Data Unit (ASDU) has different contents.
[0102] There are four main types of data transmission between device units: 1) a slave device sends data to a host device; 2) a host device sends data to a slave device; 3) a communication interface device sends data to a host device; 4) a host device sends data to a communication interface device.
[0103] The ASDU message format for sending data from the slave device to the master device is shown in the following table.
[0104]
[0105]
[0106] The ASDU tag is defined as 0x62, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes.
[0107] Data value 1 is the "data type and device address code" field, which identifies whether the frame is a normal data frame or a command frame. If the acquisition station device determines that its component has failed, the corresponding position of the field of data value 13 is set to 1, and the data value 1 field is 0x9900+device address code; otherwise, the data value 1 field is 0x5500+device address code.
[0108] The specific meaning of data value 12 "component status word" is expressed bit by bit, as shown in the following table.
[0109]
[0110]
[0111] Bit0: If this bit is set to 1, it indicates that the component is abnormal; otherwise, it indicates that the component is normal.
[0112] Bit1: If this position is 1, it indicates that the component is in operation; otherwise, it indicates that the component is in shutdown.
[0113] Bit2: If this bit is set to 1, it indicates that the component is in the startup state; otherwise, it indicates that the component is not started.
[0114] Bit4: If this position is 1, it means that the A-phase switch tripping signal of the component exists; otherwise, it means that the A-phase switch tripping signal of the component does not exist.
[0115] Bit5: If this position is 1, it means that the B-phase switch tripping signal of the component exists; otherwise, it means that the B-phase switch tripping signal of the component does not exist.
[0116] Bit6: If this position is 1, it means that the C-phase switch tripping signal of the component exists; otherwise, it means that the C-phase switch tripping signal of the component does not exist.
[0117] Bit7: If this position is 1, it means that the switch trip signal in phase A of the component is present; otherwise, it means that the switch trip signal in phase A of the component is not present.
[0118] Bit8: If this position is 1, it means that the switch trip signal in phase B of the component is present; otherwise, it means that the switch trip signal in phase B of the component is not present.
[0119] Bit9: If this position is 1, it means that the switch trip signal in phase C of the component is present; otherwise, it means that the switch trip signal in phase C of the component is not present.
[0120] Bit10: If this position is 1, it means that the switch position signal of the A phase side of the component is available; otherwise, it means that the switch position signal of the A phase side of the component is not available.
[0121] Bit11: If this position is 1, it means that the switch position signal of the B phase side of the component is available; otherwise, it means that the switch position signal of the B phase side of the component is not available.
[0122] Bit12: If this position is 1, it means that the C-phase switch position signal of the component is available; otherwise, it means that the C-phase switch position signal of the component is not available.
[0123] Bit13: If this position is 1, it means that the switch position signal in phase A of the component is present; otherwise, it means that the switch position signal in phase A of the component is absent.
[0124] Bit14: If this position is 1, it means that the switch position signal in phase B of the component is present; otherwise, it means that the switch position signal in phase B of the component is absent.
[0125] Bit15: If this position is 1, it means that the switch position signal in the C phase of the component is present; otherwise, it means that the switch position signal in the C phase of the component is not present.
[0126] The specific meaning of data value 13 "component fault word" is expressed bit by bit, as shown in the following table.
[0127]
[0128] Bit0: If this bit is set to 1, it indicates that a single-phase instantaneous fault occurs in the component; otherwise, it indicates that there is no such fault.
[0129] Bit3: If this bit is set to 1, it indicates that a single-phase permanent fault has occurred in the component; otherwise, it indicates that there is no such fault.
[0130] Bit6: If this bit is set to 1, it indicates that a phase-to-phase fault has occurred in the component; otherwise, it indicates that there is no such fault.
[0131] Bit10: If this bit is set to 1, it indicates that the component tripped without a fault; otherwise, it indicates that there is no such fault.
[0132] Each slave device collects information of 16 components, so the APDU data packet sent by the slave device to the host device includes 16 ASDU data packets, which are information of components 1 to 16 respectively.
[0133] The format of the ASDU (downlink ASDU) message used by the host device to send data to the slave device is shown in the following table.
[0134]
[0135]
[0136] The ASDU tag is defined as 0x65, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes.
[0137] If the host device needs to send data to a slave device, the data frame 2 "slave device ID" is set; if the data type is normal data, the data value 1 field is 0x5500+device address code; if the data type is command data, the data value 1 field is 0x9900+device address code.
[0138] Data value 3 is the "export command word" field, and data value 4 is the inverse of data value 3. If the host device wants to cut off a certain component, the bit of data value 3 is set to 1, and the bit of data value 4 is set to 0 to increase reliability.
[0139] In this embodiment, the present invention proposes a mechanism for the device unit to send a ring network message, such as Figure 2 As shown, the steps are as follows.
[0140] Step S201: Generate application layer data to be sent to other device units, encode it according to the standard protocol to generate an ASDU data packet, and further generate an APDU data packet, and then enter step S202.
[0141] Step S202: Add the destination MAC address, source MAC address, Ethernet type and other fields required by the Ethernet message to the APDU data packet, and set the device ID, serial number and other contents to form a data packet to be sent, and then enter step S203.
[0142] Step S203: for port A and port B, different path identifiers are set for the data packets to be sent, and then copied to the sending buffers of port A and port B, and then the process proceeds to step S204.
[0143] Step S204: Send the data packets in the sending buffers of port A and port B to the ring network simultaneously.
[0144] In this embodiment, the present invention proposes a mechanism for the device unit to receive the ring network message, such as Figure 3 As shown, the steps are as follows.
[0145] Step S301: the device unit receives the ring network data through port A and port B. If no data packet is received, the data reception is terminated; otherwise, the process proceeds to step S302.
[0146] Step S302: Determine whether the "Ethernet Type" field of the data packet is a ring network message type. If the condition is not met, discard the data packet; otherwise, proceed to step S303.
[0147] Step S303: Determine whether the "path identifier" field of the data packet is correct, and the principle of determination is that port A can only receive data packets sent from port B, and port B can only receive data packets sent from port A. If the conditions are not met, the data packet is discarded; otherwise, enter step S304.
[0148] Step S304: Determine whether the "destination address" field meets the receiving conditions, that is, whether the destination MAC address is the same as the MAC address of the device unit itself. If the conditions are not met, forward the data packet; otherwise, enter step S305.
[0149] Furthermore, the method for forwarding the data packet is: if the data packet is obtained from port A, the data packet is forwarded from port B; if the data packet is obtained from port B, the data packet is forwarded from port A.
[0150] Step S305: Determine whether "ID" is the ID of the device unit. If the condition is not met, discard the data packet; otherwise, go to step S306.
[0151] Step S306: Search in the first-in-first-out FIFO cache to see if there are other messages with the same serial number and different path identifiers sent from the same device unit. If the conditions are met, the two messages are considered to be twin messages sent by the access unit through different interfaces at the same time. According to the principle of first come, first served, the data packet is discarded; otherwise, go to step S307.
[0152] Step S307: The data packet is stored in a first-in first-out FIFO buffer of the device unit, and then the process proceeds to step S308.
[0153] Furthermore, the first-in-first-out FIFO cache of the device unit can save the latest data packet within T1 time sent by any other device unit, which is used to compare with the currently received data packet to determine whether the twin messages sent by the device unit through different interfaces at the same time have been processed.
[0154] Step S308: parse and process the application layer data of the data packet.
[0155] In this embodiment, the present invention provides a method for a slave device to execute a command of a host device.
[0156] The slave device performs an "OR" process on the export command words sent from multiple host devices, that is, as long as any host device wants to cut off a certain component, the command to cut off the component will be executed.
[0157] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A stabilization control device for a ring network architecture, characterized in that: It includes a plurality of host devices, slave devices and communication interface devices; the host devices, slave devices and communication interface devices are connected in the form of an optical fiber ring network; The host device, the slave device and the communication interface device are all equipped with two optical fiber ring network ports, which are respectively denoted as port A and port B, and they are connected by using optical fiber, and the port A of any device is connected to the port B of the adjacent device, and the port B of any device is connected to the port A of the adjacent device, so as to form an optical fiber ring network; The data forwarding mechanism adopted by the host device, the slave device and the communication interface device is: receiving and forwarding data sent by other device units through port A and port B at the same time; the method of forwarding data packets is that if the data packet is obtained from port A, the data packet is forwarded from port B; If the data packet is received from port B, it is forwarded from port A; The sending and receiving time interval mechanism of the host device, the slave device and the communication interface device is: receiving data from the ring network every T0 time, and sending a frame of ring network data packet every 2T0 time.
2. A stabilization control device for a ring network architecture according to claim 1, characterized in that: The communication protocol between the host device, the slave device and the communication interface device is as follows: the communication message adopts the data link layer and the physical layer based on Ethernet, but it is different from the ordinary network message in that it is directly mapped to the underlying data link layer and the physical layer after the application layer is encoded by ASN.1, without passing through the TCP / IP protocol, that is, without passing through the network layer and the transport layer; The ASDU message format for sending data from the slave device to the master device is as follows: The ASDU tag is defined as 0x62, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes; The ASDU message contains 16 data values, each of which contains 2 bytes. Data value 1 is the "data type and device address code" field, which identifies whether the frame is a normal data frame or a command frame; If the acquisition station device determines that its component has failed, the corresponding position of the field of data value 13 is set to 1, and the field of data value 1 is 0x9900 + device address code; Otherwise, the data value 1 field is 0x5500 + device address code; Data values 2 to 11 are respectively: positive sequence voltage, negative sequence voltage, zero sequence voltage, positive sequence current, negative sequence current, zero sequence current, positive sequence frequency, active power, reactive power, and phase angle; The specific meaning of data value 12 "component status word" is expressed bit by bit, as follows: Bit0: If this bit is 1, it means that the component is abnormal; otherwise, it means that the component is normal; Bit1: If this bit is 1, it indicates that the component is in operation; otherwise, it indicates that the component is in shutdown; Bit2: If this bit is 1, it means that the component is in the startup state; otherwise, it means that the component is not started; Bit4: If this bit is 1, it means that the A-phase switch tripping signal of the component exists; otherwise, it means that the A-phase switch tripping signal of the component does not exist; Bit5: If this bit is 1, it means that the B-phase switch tripping signal of the component exists; otherwise, it means that the B-phase switch tripping signal of the component does not exist; Bit6: If this bit is 1, it means that the C-phase switch tripping signal of the component exists; otherwise, it means that the C-phase switch tripping signal of the component does not exist; Bit7: If this bit is 1, it means that the switch trip signal in phase A of the component exists; otherwise, it means that the switch trip signal in phase A of the component does not exist; Bit8: If this position is 1, it means that the switch trip signal in phase B of the component exists; otherwise, it means that the switch trip signal in phase B of the component does not exist; Bit9: If this bit is 1, it means that the switch trip signal in phase C of the component is present; otherwise, it means that the switch trip signal in phase C of the component is absent; Bit10: If this bit is 1, it means that the switch position signal of the A phase side of the component is available; otherwise, it means that the switch position signal of the A phase side of the component is not available; Bit11: If this bit is 1, it means that the switch position signal of the B phase side of the component is available; otherwise, it means that the switch position signal of the B phase side of the component is not available; Bit12: If this bit is 1, it means that the switch position signal of the C phase side of the component is available; otherwise, it means that the switch position signal of the C phase side of the component is not available; Bit13: If this bit is 1, it means that the switch position signal in phase A of the component is available; otherwise, it means that the switch position signal in phase A of the component is not available; Bit14: If this bit is 1, it means that the switch position signal in phase B of the component is available; otherwise, it means that the switch position signal in phase B of the component is not available; Bit15: If this bit is 1, it means that the switch position signal in the C phase of the component is available; otherwise, it means that the switch position signal in the C phase of the component is not available; The specific meaning of data value 13 "component fault word" is expressed bit by bit, as follows: Bit0: If this bit is set to 1, it indicates that a single-phase instantaneous fault has occurred in the component; otherwise, it indicates that there is no such fault; Bit3: If this bit is set to 1, it indicates that the component has a single-phase permanent fault; otherwise, it indicates that there is no such fault; Bit6: If this bit is set to 1, it indicates that a phase-to-phase fault has occurred in the component; otherwise, it indicates that there is no such fault; Bit10: If this bit is set to 1, it means that the component trips without fault; otherwise, it means that there is no such fault; Data values 14 to 16 are reserved; Each slave device collects 16 component information, so the APDU data packet sent by the slave device to the host device contains 16 ASDU data packets, which are the information of component 1 to component 16 in order; The ASDU message format for the host device to send data to the slave device is as follows: The ASDU tag is defined as 0x65, and a total of 32 bytes of valid data are transmitted. The length of an ASDU is 36 bytes; The ASDU message contains 16 data values, each of which contains 2 bytes. Data value 1 is the data type and device address code. If the data type is normal data, the data value 1 field is 0x5500+device address code. If the data type is command data, the data value 1 field is 0x9900+device address code. Data value 2 is the slave device ID. If the host device needs to send data to a slave device, the data value 2 "slave device ID" is set; Data value 3 is the "export command word" field, and data value 4 is the inverse of data value 3. If the host device wants to cut off a certain component, the position of data value 3 is set to 1, and the position of data value 4 is set to 0 to increase reliability. Data values 5 to 16 are reserved.
3. The stabilization control device of a ring network architecture according to claim 1, characterized in that: The mechanism steps of the host device, slave device and communication interface device sending ring network messages are as follows: Step S201: Generate application layer data to be sent to other device units, encode it according to the standard protocol to generate an ASDU data packet, and further generate an APDU data packet, and then enter step S202; Step S202: Add the destination MAC address, source MAC address, Ethernet type and other fields required by the Ethernet message to the APDU data packet, and set the device ID, serial number and other contents to form a data packet to be sent, and then enter step S203; Step S203: for port A and port B, set different path identifiers for the data packets to be sent, and then copy them to the sending buffers of port A and port B, and then enter step S204; Step S204: Send the data packets in the sending buffers of port A and port B to the ring network simultaneously.
4. The stabilization control device of a ring network architecture according to claim 1, characterized in that: The mechanism steps of the host device, the slave device and the communication interface device receiving the ring network message are as follows: Step S301: the device unit receives the ring network data through port A and port B. If no data packet is received, the data reception is terminated; otherwise, the process proceeds to step S302; Step S302: determine whether the "Ethernet Type" field of the data packet is a ring network message type. If the condition is not met, discard the data packet; Otherwise, proceed to step S303; Step S303: Determine whether the "path identifier" field of the data packet is correct. The principle of determination is that port A can only receive data packets sent from port B, and port B can only receive data packets sent from port A. If the condition is not met, the data packet is discarded. Otherwise, proceed to step S304; Step S304: determine whether the "destination address" field meets the receiving condition, that is, whether the destination MAC address is the same as the MAC address of the device unit itself. If the condition is not met, forward the data packet; otherwise, proceed to step S305; Step S305: determine whether "ID" is the ID of the device unit. If the condition is not met, discard the data packet; otherwise, proceed to step S306; Step S306: Search in the FIFO buffer to see if there are other messages with the same sequence number and different path identifiers sent by the same device unit. If the conditions are met, the two messages are considered to be twin messages sent by the access unit through different interfaces at the same time. According to the principle of first come first served, the data packet is discarded. Otherwise, proceed to step S307; Step S307: save the data packet in the first-in first-out FIFO buffer of the device unit, and then proceed to step S308; Step S308: parse and process the application layer data of the data packet.
5. A stabilization control device for a ring network architecture according to claim 4, characterized in that: In step S304, the method of forwarding the data packet is: if the data packet is obtained from port A, the data packet is forwarded from port B; if the data packet is obtained from port B, the data packet is forwarded from port A.
6. The stabilization control device of a ring network architecture according to claim 4, characterized in that: In step S307, the first-in-first-out FIFO cache of the device unit can save the latest data packet within T1 time sent by any other device unit, which is used for comparison with the currently received data packet to determine whether the twin messages sent by the device unit through different interfaces at the same time have been processed.
7. A method for implementing a stabilization control device of a ring network architecture, characterized in that: By using the device as described in any one of claims 1 to 6, the slave device performs an "OR" process on the export command words sent from multiple host devices, that is, as long as any host device wants to cut off a certain component, the command to cut off the component will be executed.
Citation Information
Patent Citations
Substation control layer communication method and system, electronic equipment and storage medium
CN112822276A
Flexible and easy-to-expand safety and stability control system and method
CN116054397A
Fine cutting system terminal access layer communication method and fine cutting system
CN116506016A
Method and apparatus for discovery and installation of network devices through a network
US7925722B1
