A slave station redundancy implementation method and system based on IEC104 protocol

By adding a redundant system mechanism to the IEC104 slave module, real-time fault depth comparison between the working slave and the standby slave is achieved, and redundancy switching is quickly performed, which solves the problem of prolonged redundant switching time and improves the system's applicability and communication stability.

CN118900164BActive Publication Date: 2025-09-23SUPCON TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, in an automation control system based on the IEC104 protocol, the redundancy switching delay is prolonged, and the redundancy switching cannot be performed quickly, resulting in prolonged redundancy switching time and the inability to perform redundancy switching quickly.

Method used

A redundant system mechanism is added to the IEC104 slave module. Through periodic interaction between the working slave and the standby slave, the redundant fault depth is compared in real time. When the fault depth of the working slave is higher than that of the standby slave, redundancy switching is performed quickly and the standby slave takes over the communication authority.

Benefits of technology

The redundancy switching time is shortened, the applicability and scalability of the IEC104 slave redundancy system are improved, and the slave modules can communicate normally whether the master station is redundant or not.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900164B_ABST
    Figure CN118900164B_ABST
Patent Text Reader

Abstract

The present invention relates to a slave station redundancy implementation method based on the IEC104 protocol and a system thereof. The method comprises obtaining a first and latest redundant fault depth of the slave station, sending a message carrying the first and latest redundant fault depth to an IEC104 standby slave station according to a preset period, and receiving a message carrying the second and latest redundant fault depth of the slave station sent by the ICE104 standby slave station; comparing the first and second latest redundant fault depths; if it is determined that the first and second latest redundant fault depths are higher than the second latest redundant fault depths, sending a redundant switching request to the ICE104 standby slave station; receiving redundant switching permission information sent by the ICE104 standby slave station, and performing redundant switching based on the redundant switching permission information. Thus, compared with the prior art, the method can shorten the redundant switching time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automation control technology, and in particular to a slave station redundancy implementation method based on IEC104 protocol and a system thereof. Background Art

[0002] The IEC104 protocol is a standard developed by the International Electrotechnical Commission and is based on the TCP / IP protocol for transmission. It is mainly used for dispatching automation systems and communications between plants and stations.

[0003] However, there are at least the following problems in using the IEC104 protocol for communication in automation control systems: currently, redundancy switching is performed only after determining whether the IEC104 communication is normal, which requires waiting for a timeout, prolonging the redundancy switching time and preventing rapid redundancy switching. Summary of the Invention

[0004] (1) Technical issues to be solved

[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a slave station redundancy implementation method and system based on the IEC104 protocol, which solves the technical problem of prolonging the redundancy switching time in the prior art.

[0006] (2) Technical solution

[0007] In order to achieve the above objectives, the main technical solutions adopted by the present invention include:

[0008] In a first aspect, an embodiment of the present invention provides a slave redundancy implementation method based on the IEC104 protocol, which is applied to an IEC104 working slave station. The slave redundancy implementation method includes: obtaining a first and latest redundant fault depth of the slave station, sending a message carrying the first and latest redundant fault depth to an IEC104 standby slave station according to a preset period, and receiving a message carrying the second and latest redundant fault depth of the slave station sent by the ICE104 standby slave station; comparing the first and second latest redundant fault depths; if it is determined that the first and second latest redundant fault depths are higher than the second and third latest redundant fault depths, sending a redundant switching request to the ICE104 standby slave station, so that the ICE104 standby slave station determines whether the second and third latest redundant fault depths are lower than the first and third latest redundant fault depths based on the redundant switching request; if it is determined that the second and third latest redundant fault depths are lower than the first and third latest redundant fault depths, feeding back redundant switching permission information to the IEC104 working slave station; receiving the redundant switching permission information sent by the ICE104 standby slave station, and performing redundant switching based on the redundant switching permission information.

[0009] Therefore, with the help of the above technical solution, the embodiment of the present application not only solves the problem of relying on the redundancy of the IEC104 master station during redundant communication, but also solves the problem of needing to determine whether the IEC104 communication is abnormal during redundant switching, thereby not only shortening the redundant communication time, but also improving the scalability and applicability of the IEC104 slave station redundancy system.

[0010] In one possible embodiment, the first latest redundant fault depth is calculated based on multiple fault parameters, and the multiple fault parameters include but are not limited to whether the configuration is obtained, whether there is an Ethernet hardware fault, whether there is an FPGA hardware fault, and whether there is a configuration fault.

[0011] In a possible embodiment, the IEC 104 working slave station and the ICE 104 standby slave station are both communicatively connected to the same switch, and the same switch is communicatively connected to multiple ICE 104 master stations.

[0012] In a possible embodiment, the IEC104 working slave station is communicatively connected to the first switch, which is in communication with multiple IEC104 working master stations; and the ICE104 standby slave station is communicatively connected to the second switch, which is in communication with multiple IEC104 standby master stations.

[0013] In a second aspect, an embodiment of the present invention provides a slave redundancy implementation method based on the IEC104 protocol, which is applied to an IEC104 standby slave station. The slave redundancy implementation method includes: obtaining its own second-most recent redundant fault depth, sending a message carrying the second-most recent redundant fault depth to the IEC104 working slave station according to a preset period, and receiving a message carrying its own first-most recent redundant fault depth sent by the IEC104 working slave station; when the first-most recent redundant fault depth is higher than the second-most recent redundant fault depth, receiving a redundant switching request sent by the IEC104 working slave station; based on the redundant switching request, determining whether the second-most recent redundant fault depth is lower than the first-most recent redundant fault depth; and if it is determined that the second-most recent redundant fault depth is lower than the first-most recent redundant fault depth, feeding back redundant switching permission information to the IEC104 working slave station, so that the IEC104 working slave station performs redundant switching according to the redundant switching permission information.

[0014] In one possible embodiment, the second latest redundant fault depth is calculated based on multiple fault parameters, and the multiple fault parameters include but are not limited to whether the configuration is obtained, whether there is an Ethernet hardware fault, whether there is an FPGA hardware fault, and whether there is a configuration fault.

[0015] In a possible embodiment, the ICE 104 standby slave station and the IEC 104 working slave station are both communicatively connected to the same switch, and the same switch is communicatively connected to multiple ICE 104 master stations.

[0016] In a possible embodiment, the IEC104 working slave station is communicatively connected to the first switch, which is in communication with multiple IEC104 working master stations; and the ICE104 standby slave station is communicatively connected to the second switch, which is in communication with multiple IEC104 standby master stations.

[0017] In a third aspect, an embodiment of the present invention provides an industrial control system, comprising an IEC104 working slave station and an IEC104 standby slave station communicatively connected to the IEC104 working slave station, wherein the IEC104 working slave station is used to execute the slave redundancy implementation method based on the IEC104 protocol as described in any one of the first aspects, and the IEC104 standby slave station is used to execute the slave redundancy implementation method based on the IEC104 protocol as described in any one of the first aspects.

[0018] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 A topology diagram of a non-redundant IEC104 master station provided in an embodiment of the present application is shown;

[0021] Figure 2 A topology diagram of an IEC104 master station redundancy provided by an embodiment of the present application is shown;

[0022] Figure 3 A flowchart of a method for implementing slave station redundancy based on the IEC104 protocol provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0023] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation methods in conjunction with the accompanying drawings.

[0024] Currently, there are at least two problems with using the IEC104 protocol for communication in automation control systems: the slave station can only perform redundant communication with the master station if the master station supports redundancy; currently, redundancy switching is performed only after determining whether the IEC104 communication is normal, which requires waiting for a timeout, prolonging the redundancy switching time and preventing rapid redundancy switching.

[0025] Based on this, an embodiment of the present application provides a method for implementing slave redundancy based on the IEC104 protocol. By adding a redundant system mechanism to the IEC104 slave module, when module redundancy is selected in the host computer software configuration, the last digit of the IP address of the IEC104 standby slave is incremented by 1. Furthermore, after the ICE104 working slave and IEC104 standby slave are powered on, they first establish a TCP connection with the IEC104 master station in the network. The ICE104 working slave has permission to conduct real-time data communication, while the IEC104 standby slave does not communicate. Furthermore, the ICE104 working slave and the IEC104 standby slave will periodically exchange their respective redundant fault depths, which are used to indicate their own fault conditions. When the redundant fault depth of the authorized ICE104 working slave is greater than that of the IEC104 standby slave, a redundancy switch will be quickly performed. The ICE104 working slave will relinquish communication privileges, and the IEC104 standby slave will quickly take over communication privileges without waiting for the IEC104 communication abnormality response time. Furthermore, when the IEC104 master is not redundant, meaning there is only one IP address for communication with the slave, the slave will also switch the IP address during redundancy switch to ensure normal communication with the 104 master. This allows the slave module to communicate with the IEC104 master in both redundant and non-redundant situations, expanding the redundancy applicability of the IEC104 slave module and shortening the redundancy switch time.

[0026] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. Instead, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0027] It should be noted that the slave station redundancy implementation method based on the IEC104 protocol of the present application can be applied to both systems with redundant master stations and systems with non-redundant master stations. Specifically:

[0028] like Figure 1As shown, when the IEC104 master station is not redundant, the ICE104 standby slave station and the IEC104 working slave station are both connected to the same switch, and the same switch is connected to multiple ICE104 master stations. The IEC104 working slave station with permission will conduct IEC104 communication with the IEC104 working master station, but the ICE104 standby slave station without permission will not send packets back to the master station. When a redundancy switch occurs, the ICE104 standby slave station will switch IP addresses with the previously working IEC104 working slave station to ensure that there is always only one IP address for communication with the ICE104 master station. In this way, the slave station that has undergone redundancy switch can also conduct IEC104 communication with the IEC104 master station normally.

[0029] like Figure 2 As shown, when the IEC104 master station is redundant, the IEC104 working slave station is in communication with the first switch, which is also in communication with multiple IEC104 working master stations. The ICE104 standby slave station is in communication with the second switch, which is also in communication with multiple IEC104 standby master stations. The IEC104 working slave station with communication privileges conducts IEC104 communications with the IEC104 master station, while the ICE104 standby slave station and the ICE104 standby master station only establish a TCP connection. Furthermore, when the fault level of the working IEC104 working slave station is higher than that of the ICE104 standby slave station, the IEC104 working slave station relinquishes communication privileges, and the ICE104 standby slave station quickly assumes communication privileges. At this point, the ICE104 standby slave station communicates with the ICE104 standby master station.

[0030] It should be noted here that the specific number of IEC104 master stations can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0031] On the basis of the above, if Figure 3 As shown, Figure 3 FIG1 shows a flow chart of a method for implementing slave redundancy based on the IEC104 protocol provided in an embodiment of the present application. Figure 3 As shown, the slave station redundancy implementation method includes:

[0032] In step S310, the IEC 104 working slave station obtains its own first and latest redundant fault depth and sends a message carrying the first and latest redundant fault depth to the IEC 104 standby slave station according to a preset period. Correspondingly, the IEC 104 standby slave station receives the message carrying its own first and latest redundant fault depth sent by the ICE 104 working slave station.

[0033] It should be understood that the calculation method of the redundancy fault depth can be set according to actual needs, and the embodiments of the present application are not limited thereto.

[0034] Optionally, the redundant fault depth is calculated based on multiple fault parameters, and the multiple fault parameters include but are not limited to whether the configuration is obtained, whether there is an Ethernet hardware fault, whether there is an FPGA hardware fault, and whether there is a configuration fault.

[0035] For example, when multiple fault parameters are obtained, the redundant fault depth may be calculated by weighted summation.

[0036] Therefore, the first latest redundancy fault depth and the second latest redundancy fault depth can be calculated in the above manner.

[0037] It should also be understood that the specific period of the preset period can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0038] For example, the preset period may be 50 ms, or 55 ms, etc.

[0039] In step S320, the IEC 104 standby slave station obtains its second most recent redundant fault depth and sends a message carrying the second most recent redundant fault depth to the IEC 104 working slave station according to a preset period. Correspondingly, the IEC 104 working slave station receives the message carrying its second most recent redundant fault depth from the ICE 104 standby slave station.

[0040] It should be understood that the preset period mentioned in step S320 and the preset period mentioned in step S310 may be the same, and the time point at which the IEC104 working slave station sends the message carrying the first latest redundant fault depth to the IEC104 standby slave station and the time point at which the IEC104 standby slave station sends the message carrying the second latest redundant fault depth to the IEC104 working slave station may be the same.

[0041] In step S330 , the IEC104 working slave station compares the first latest redundant fault depth with the second latest redundant fault depth.

[0042] Specifically, since the first latest redundant fault depth may be a fault level and the second latest redundant fault depth may also be a fault level, the first latest redundant fault depth and the second latest redundant fault depth may be compared by comparing the fault levels.

[0043] Step S340 : If the IEC 104 working slave station determines that the first latest redundancy fault depth is greater than the second latest redundancy fault depth, the working slave station sends a redundancy switching request to the ICE 104 standby slave station.

[0044] In addition, if the IEC104 working slave station determines that the first latest redundancy fault depth is lower than the second latest redundancy fault depth, there is no need to perform switching.

[0045] In step S350 , the standby slave station of ICE 104 determines whether the second latest redundancy fault depth is lower than the first latest redundancy fault depth based on the redundancy switch request.

[0046] In step S360, if the ICE 104 standby slave station determines that the second latest redundancy fault depth is lower than the first latest redundancy fault depth, it feeds back redundancy switching permission information to the IEC 104 working slave station. Correspondingly, the IEC 104 working slave station receives the redundancy switching permission information sent by the ICE 104 standby slave station.

[0047] In addition, if the ICE 104 standby slave station determines that the second latest redundancy fault depth is higher than the first latest redundancy fault depth, it feeds back a redundancy switching rejection message to the IEC 104 working slave station.

[0048] In step S370 , the IEC 104 working slave station performs redundancy switching based on the redundancy switching permission information, and gives the communication right to the ICE 104 standby slave station, so that the ICE 104 standby slave station has the communication right.

[0049] For example, when redundancy switching is performed and the master station is not redundant, the IEC104 working slave station switches its own IP address to the IP address of the ICE104 standby slave station, and the ICE104 standby slave station switches its own IP address to the IP address of the IEC104 working slave station.

[0050] For another example, when redundancy switching is performed and the master station is redundant, IP switching is not required.

[0051] Therefore, with the help of the above technical solution, the embodiment of the present application not only solves the problem of relying on the redundancy of the IEC104 master station during redundant communication, but also solves the problem of needing to determine whether the IEC104 communication is abnormal during redundant switching, thereby not only shortening the redundant communication time, but also improving the scalability and applicability of the IEC104 slave station redundancy system.

[0052] It should be understood that the above-mentioned method for implementing slave station redundancy based on the IEC104 protocol is merely exemplary, and those skilled in the art may make various modifications based on the above-mentioned method, and the modified solutions also fall within the protection scope of this application.

[0053] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0054] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions.

[0055] It should be noted that, in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In claims enumerating several means, several of these means may be embodied by one and the same hardware. The use of the words first, second, third etc. is for convenience only and does not indicate any order. These words may be understood as part of the component name.

[0056] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0057] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after learning the basic creative concept. Therefore, the claims should be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0058] Obviously, those skilled in the art may make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if such modifications and variations fall within the scope of the claims and their equivalents, the present invention shall also include such modifications and variations.

Claims

1. A method for implementing slave station redundancy based on the IEC104 protocol, characterized in that: The slave station redundancy implementation method is applied to IEC104 working slave stations; The slave station redundancy implementation method includes: Obtaining its own first latest redundant fault depth, and sending a message carrying the first latest redundant fault depth to the IEC104 standby slave station according to a preset period, and receiving a message carrying its own second latest redundant fault depth sent by the ICE104 standby slave station; wherein the first latest redundant fault depth is calculated based on multiple fault parameters, and the multiple fault parameters include but are not limited to whether the configuration is obtained, whether the Ethernet hardware fault is present, whether the FPGA hardware fault is present, and whether the configuration fault is present; comparing the first latest redundancy fault depth and the second latest redundancy fault depth; If it is determined that the first latest redundant fault depth is higher than the second latest redundant fault depth, sending a redundant switching request to the ICE 104 standby slave station, so that the ICE 104 standby slave station determines whether the second latest redundant fault depth is lower than the first latest redundant fault depth based on the redundant switching request; if it is determined that the second latest redundant fault depth is lower than the first latest redundant fault depth, feeding back redundant switching permission information to the IEC 104 working slave station; Receive the redundancy switching permission information sent by the ICE 104 standby slave station, and perform redundancy switching based on the redundancy switching permission information.

2. The method for implementing slave station redundancy according to claim 1, wherein: The IEC 104 working slave station and the ICE 104 standby slave station are both communicatively connected to the same switch, and the same switch is communicatively connected to multiple ICE 104 master stations.

3. The method for implementing slave station redundancy according to claim 1, wherein: The IEC104 working slave station is communicatively connected to a first switch, and the first switch is communicatively connected to multiple IEC104 working master stations; and the ICE104 standby slave station is communicatively connected to a second switch, and the second switch is communicatively connected to multiple IEC104 standby master stations.

4. A method for implementing slave station redundancy based on the IEC104 protocol, characterized in that: The slave station redundancy implementation method is applied to IEC104 standby slave stations; The slave station redundancy implementation method includes: Obtaining its own second latest redundant fault depth, and sending a message carrying the second latest redundant fault depth to the IEC104 working slave station according to a preset period, and receiving a message carrying its own first latest redundant fault depth sent by the ICE104 working slave station; wherein the first latest redundant fault depth is calculated based on multiple fault parameters, and the multiple fault parameters include but are not limited to whether the configuration is obtained, whether the Ethernet hardware fault is present, whether the FPGA hardware fault is present, and whether the configuration fault is present; In a case where the first latest redundancy fault depth is greater than the second latest redundancy fault depth, receiving a redundancy switching request sent by the IEC104 working slave station; Based on the redundancy switching request, determining whether the second latest redundancy fault depth is lower than the first latest redundancy fault depth; If it is determined that the second latest redundancy fault depth is lower than the first latest redundancy fault depth, redundancy switching permission information is fed back to the IEC104 working slave station so that the IEC104 working slave station performs redundancy switching according to the redundancy switching permission information.

5. The method for implementing slave station redundancy according to claim 4, wherein: The ICE 104 standby slave station and the IEC 104 working slave station are both communicatively connected to the same switch, and the same switch is communicatively connected to multiple ICE 104 master stations.

6. The method for implementing slave station redundancy according to claim 4, wherein: The IEC104 working slave station is communicatively connected to a first switch, and the first switch is communicatively connected to multiple IEC104 working master stations; and the ICE104 standby slave station is communicatively connected to a second switch, and the second switch is communicatively connected to multiple IEC104 standby master stations.

7. An industrial control system, characterized in that: The invention comprises an IEC104 working slave station and an IEC104 standby slave station communicatively connected to the IEC104 working slave station, wherein the IEC104 working slave station is used to execute the slave station redundancy implementation method based on the IEC104 protocol as described in any one of claims 1 to 3, and the IEC104 standby slave station is used to execute the slave station redundancy implementation method based on the IEC104 protocol as described in any one of claims 4 to 6.

Citation Information

Patent Citations

  • Primary device redundancy switching method of single main communication control bus

    CN103139033A

  • Industrial gateway redundancy system and control method

    CN112650048A