Relay protection device dual-system switching system and method, processing equipment and storage medium

By using the combination of two FPGA chips and selection logic chips in the relay protection device, fast and flexible signal switching is achieved, the system failure problem caused by single component failure is solved, and the reliability and flexibility of the power system is improved. , reduces costs.

CN119025314APending Publication Date: 2024-11-26STATE GRID ECONOMIC TECH RES INST CO LTD +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411070472.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the dual redundant design of existing relay protection devices, the failure of a single component will cause the failure of the entire board or the entire system, which will not meet the demand for complete redundancy and affect the reliability of the power system.

Method used

Using the combination of two FPGA chips and selection logic chips, the chip status is judged through the core board, the master-slave switching instructions are sent based on the FPGA chip ID, and the control instructions of the master-slave FPGA chip are determined using the truth table, and the control instructions of the master-slave FPGA chip are sent to Peripheral equipment, realizes fast and flexible signal switching.

Benefits of technology

It realizes the switching speed of nanoseconds, improves the reliability and flexibility of the system, reduces costs, solves the blockade problem in the event of chip failure, and enhances the system's autonomous controllability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025314A_ABST
    Figure CN119025314A_ABST
Patent Text Reader

Abstract

The invention relates to a relay protection device dual-system switching system and method, processing equipment and a storage medium. The system comprises a first FPGA chip, a second FPGA chip, a core board and a selection logic chip. The first FPGA chip and the second FPGA chip are both used for judging the states of the first FPGA chip and the second FPGA chip, determining the IDs of the FPGA chips, outputting a control instruction to the selection logic chip based on a master-slave switching instruction, and detecting a control instruction output by the other FPGA chip; the core board is used for judging whether the first FPGA chip and the second FPGA chip are in a busy state or an idle state, and sending a master-slave switching instruction to the first FPGA chip and the second FPGA chip based on the ID of the FPGA chips; the selection logic chip is used for determining the master FPGA chip and the slave FPGA chip based on the control instructions of the first FPGA chip and the second FPGA chip and the FPGA chip ID, and issuing the control instruction of the master FPGA chip to the peripheral equipment through the optical transceiver based on the truth table, and the system is high in response speed, low in cost, autonomous and controllable, and can be widely applied to the field of power systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power systems, and in particular to a dual-system switching system, method, processing equipment and storage medium for a relay protection device. Background Art

[0002] A relay protection device is an automated measure and device that can send a warning signal to the operating personnel on duty in a timely manner, or directly send a tripping command to the controlled circuit breaker to avoid the escalation of the situation when a power element in the power system or the power system itself fails and endangers the safe operation of the power system. Usually, the relay protection device is connected to the human-machine interface through Ethernet at the top and to the peripheral equipment through optical fiber at the bottom. In order to ensure the reliability of the power system, the relay protection device often adopts a dual redundant configuration design. When one power system fails, it will quickly switch to another power system to continue operating. However, since there is only one pair of optical fibers connecting the relay protection device to the peripheral equipment, the relay protection device can only export the control instructions of the main power system at the same time.

[0003] At present, software is mostly used to realize the export and switching of control instructions. The specific implementation method is to configure an FPGA (field programmable gate array) chip in the instruction export part. The chip receives control instructions from the main power system and the slave power system at the same time, and then exports the control instructions of the main power system to peripheral devices after software arbitration.

[0004] However, the two power systems in the above scheme share a control chip, which does not meet the design concept of full redundancy of the relay protection device. The failure of a single component will cause the failure of the entire board or the entire system, which has great limitations. Therefore, a system, method, processing device and storage medium that can meet the full redundancy requirements and add a logic selection circuit to meet the master-slave signal switching are needed to improve the reliability of the power system. Summary of the invention

[0005] In view of the above problems, the object of the present invention is to provide a dual-system switching system, method, processing equipment and storage medium for a relay protection device that can meet full redundancy requirements and improve the reliability of the power system.

[0006] To achieve the above object, the present invention adopts the following technical solutions: In the first aspect, a dual-system switching system for a relay protection device is provided, comprising a first FPGA chip, a second FPGA chip, a core board and a selection logic chip; The first FPGA chip and the second FPGA chip are both used to determine their own states, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instruction, and detect the control instructions output by another FPGA chip; The core board is used to determine whether the first FPGA chip and the second FPGA chip are in a busy state or an idle state, and send a master-slave switching instruction to the first FPGA chip and the second FPGA chip based on the FPGA chip ID; The selection logic chip is used to determine the master FPGA chip and the slave FPGA chip based on the control instructions and FPGA chip ID of the first FPGA chip and the second FPGA chip, and based on the truth table, send the control instructions of the master FPGA chip to the peripheral device through the optical transceiver.

[0007] Furthermore, the first FPGA chip and the second FPGA chip are both provided with: The status judgment module is used to judge its own status, including busy status and idle status; A signal receiving module, used for receiving a master-slave switching instruction sent by the core board; A signal sending module, used for outputting a control instruction to the selection logic chip based on a master-slave switching instruction when the FPGA chip is used as a master and is in an idle state; The signal detection module is used to detect the control instructions output by another FPGA chip.

[0008] Furthermore, when both the first FPGA chip and the second FPGA chip are in a busy state, the master-slave switching instruction of the core board needs to be delayed until both the first FPGA chip and the second FPGA chip are in an idle state.

[0009] Furthermore, the selection logic chip is provided with: ID detection module, used to detect FPGA chip ID; A control instruction receiving module, used to receive control instructions output by the first FPGA chip and the second FPGA chip; An output module is used to output control instructions of the first FPGA chip or the second FPGA chip based on its own truth table.

[0010] Furthermore, the specific working process of the output module is: When the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 0, a signal of the port In0 connected to the second FPGA chip is output; When the control instruction S0 output by the first FPGA chip is 0 and the control instruction S1 output by the second FPGA chip is 1, a signal of the port In1 connected to the first FPGA chip is output; When the control instruction S0 output by the first FPGA chip is 1 and the control instruction S1 output by the second FPGA chip is 0, a signal of the port In2 connected to the first FPGA chip is output; When the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 1, a signal of the port In3 connected to the second FPGA chip is output.

[0011] Furthermore, the selection logic chip adopts a chip model AIP74LVC153 produced by China Micro Semiconductor Corporation.

[0012] In a second aspect, a dual-system switching method for a relay protection device is provided, comprising: The core board determines whether the first FPGA chip and the second FPGA chip are in a busy state. If they are in a busy state, the core board waits until both the first FPGA chip and the second FPGA chip are in an idle state, and sends a master-slave switching instruction to the first FPGA chip and the second FPGA chip; The first FPGA chip and the second FPGA chip both judge their own states, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instruction, and detect the control instructions output by the other FPGA chip; The logic chip is selected based on the control instructions and FPGA chip ID of the first FPGA chip and the second FPGA chip, the master FPGA chip and the slave FPGA chip in the first FPGA chip and the second FPGA chip are determined, and based on the truth table, the control instructions of the master FPGA chip are sent to the peripheral device through the optical transceiver.

[0013] Further, the selection logic chip determines the master FPGA chip and the slave FPGA chip in the first FPGA chip and the second FPGA chip based on the control instructions and FPGA chip IDs of the first FPGA chip and the second FPGA chip, and sends the control instructions of the master FPGA chip to the peripheral device through the optical transceiver based on the truth table, including: When the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 0, a signal of the port In0 connected to the second FPGA chip is output; When the control instruction S0 output by the first FPGA chip is 0 and the control instruction S1 output by the second FPGA chip is 1, a signal of the port In1 connected to the first FPGA chip is output; When the control instruction S0 output by the first FPGA chip is 1 and the control instruction S1 output by the second FPGA chip is 0, a signal of the port In2 connected to the first FPGA chip is output; When the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 1, a signal of the port In3 connected to the second FPGA chip is output.

[0014] According to a third aspect, a processing device is provided, comprising computer program instructions, wherein the computer program instructions, when executed by the processing device, are used to implement the steps corresponding to the above-mentioned dual-system switching method of the relay protection device.

[0015] In a fourth aspect, a computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the above-mentioned dual-system switching method of the relay protection device.

[0016] The present invention adopts the above technical solution, which has the following advantages: 1. Fast response speed: The present invention adopts a switching mode that matches FPGA software control and "one out of four" selection logic chip selection, which can achieve nanosecond switching without affecting the reliable operation of the system.

[0017] 2. Strong flexibility: The present invention adopts a combination of software and hardware. When one of the FPGA chips fails, the signal outlet can be blocked by software without any other additional operations.

[0018] 3. Low cost: Based on the full redundant design, the present invention only needs to add an additional selection logic chip to complete the function implementation, which is low cost and simple to operate.

[0019] 4. Independent and controllable: The present invention completely adopts components made in China, which not only solves the chip "bottleneck" problem, but also shortens the R&D and production cycle.

[0020] 5. To ensure the reliability of switching, the present invention adds a Busy signal between the two FPGA chips. When both FPGA chips are in a busy state (sending data, receiving data, or executing other logic), the master-slave switching of the core board needs to be delayed until both FPGA chips are in an idle state before it can be executed.

[0021] In summary, the present invention can be widely used in the field of power systems. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Throughout the accompanying drawings, the same reference numerals are used to represent the same components. In the accompanying drawings: Figure 1is a schematic diagram of a system structure provided by an embodiment of the present invention; Figure 2 1 is a waveform diagram of the master-slave switching timing of the core board provided by an embodiment of the present invention, wherein: Figure 2 (a) is the control diagram of S0 and S1 at the starting switching time. Figure 2 (b) is the control diagram of S0 and S1 after the first switching. Figure 2 (c) is the control diagram of S0 and S1 after the second switching. Figure 2 (d) is the control diagram of S0 and S1 after the third switching; Figure 3 It is a schematic diagram of a method flow provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the 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. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0024] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive, and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.

[0025] Although the terms first, second, third, etc. can be used in the text to describe multiple elements, components, regions, layers and / or sections, these elements, components, regions, layers and / or sections should not be limited by these terms. These terms can only be used to distinguish an element, component, region, layer or section from another region, layer or section. Unless the context clearly indicates, terms such as "first", "second" and other numerical terms do not imply order or sequence when used in the text. Therefore, the first element, component, region, layer or section discussed below can be referred to as the second element, component, region, layer or section without departing from the teaching of the example embodiments.

[0026] Since the two power systems in the prior art share a control chip, which does not meet the design concept of full redundancy of the relay protection device, the failure of a single component will cause the failure of the entire board or the entire system, which has great limitations. Therefore, a system, method, processing device and storage medium that can meet the full redundancy requirements and add a logic selection circuit to meet the master-slave signal switching are needed to improve the reliability of the power system. Aiming at the problem of coupling outlets of two sets of master and slave systems in relay protection equipment, an embodiment of the present invention provides a dual-system switching system for relay protection device, including a first FPGA chip, a second FPGA chip, a core board and a selection logic chip; the first FPGA chip and the second FPGA chip are both used to judge their own state, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instruction, and detect the control instructions output by another FPGA chip; the core board is used to judge whether the first FPGA chip and the second FPGA chip are in a busy state or an idle state, and send the master-slave switching instruction to the first FPGA chip and the second FPGA chip based on the FPGA chip ID; the selection logic chip is used to determine the master FPGA chip and the slave FPGA chip based on the control instructions and FPGA chip ID of the first FPGA chip and the second FPGA chip, and based on the truth table, the control instructions of the master FPGA chip are sent to the peripheral device through an optical transceiver. The present invention can effectively improve the reliability of the system, significantly reduce the impact of the failure of a single component on the normal operation of the system, and has the characteristics of fast, stable and wide application range, and all the devices in the scheme are domestically produced, which has a strong promotion significance in engineering applications.

[0027] Example 1 like Figure 1 As shown, this embodiment provides a dual-system switching system for a relay protection device, including a first FPGA chip (FPGA_A), a second FPGA chip (FPGA_B), a core board and a selection logic chip, wherein one of the first FPGA chip and the second FPGA chip serves as a master FPGA chip, and the other FPGA chip serves as a slave FPGA chip.

[0028] The first FPGA chip and the second FPGA chip are both used to judge their own status, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instructions, and detect the control instructions output by another FPGA chip.

[0029] The core board is used to determine whether the first FPGA chip and the second FPGA chip are in a busy state or an idle state, and based on the FPGA chip ID, sends a master-slave switching instruction to the first FPGA chip and the second FPGA chip.

[0030] The logic chip is selected to determine the master FPGA chip and the slave FPGA chip based on the control instructions of the first FPGA chip and the second FPGA chip and the FPGA chip ID, and based on the truth table, the control instructions of the master FPGA chip are sent to the peripheral device through the optical transceiver to control the peripheral device.

[0031] In a preferred embodiment, the first FPGA chip and the second FPGA chip are both provided with a state judgment module, a signal receiving module, a signal sending module and a signal detection module.

[0032] The status judgment module is used to judge its own status, including busy status and idle status.

[0033] The signal receiving module is used to receive the master-slave switching instruction sent by the core board.

[0034] The signal sending module is used to output control instructions to the selection logic chip based on the master-slave switching instructions when it acts as the master FPGA chip and is in an idle state.

[0035] The signal detection module is used to detect the control instructions output by another FPGA chip.

[0036] Specifically, when the first FPGA chip and the second FPGA chip are both in a busy state (sending data, receiving data or executing other logic), the master-slave switching instruction of the core board needs to be delayed until the first FPGA chip and the second FPGA chip are both in an idle state before they can be executed.

[0037] In a preferred embodiment, the first FPGA chip and the second FPGA chip can both adopt the chip model PGL22G-6MBG324 in the Logos series chips of Tsinghua Tongchuang Company. The chip has the characteristics of high speed, high bandwidth, and high capacity, and is suitable for high-speed data communication and high-speed data acquisition.

[0038] In a preferred embodiment, an ID detection module, a control instruction receiving module and an output module are provided in the selection logic chip.

[0039] The ID detection module is used to detect the ID of the FPGA chip. Specifically, for example, when the IO pin of the first FPGA chip is pulled high (ID is 1) and the IO pin of the second FPGA chip is pulled low (ID is 0), if a high signal is detected in the selection logic chip, it can be known that it is the first FPGA chip, and if a low signal is detected, it can be known that it is the second FPGA chip.

[0040] The control instruction receiving module is used to receive the control instructions output by the first FPGA chip and the second FPGA chip.

[0041] The output module is used to output the control instructions of the first FPGA chip or the second FPGA chip based on its own truth table. Specifically, when the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 0, the signal of the port In0 connected to the second FPGA chip is output; when the control instruction S0 output by the first FPGA chip is 0 and the control instruction S1 output by the second FPGA chip is 1, the signal of the port In1 connected to the first FPGA chip is output; when the control instruction S0 output by the first FPGA chip is 1 and the control instruction S1 output by the second FPGA chip is 0, the signal of the port In2 connected to the first FPGA chip is output; when the control instruction S0 output by the first FPGA chip and the control instruction S1 output by the second FPGA chip are both 1, the signal of the port In3 connected to the second FPGA chip is output. The default power-on time is FPGA_A master FPGA_B slave, S0S1=10.

[0042] In a preferred embodiment, the selection logic chip may be a chip of model AIP74LVC153 produced by China Micro Aixin Company. The truth table of the selection logic chip is shown in Table 1 below: Table 1: Truth table for selecting logic chips

[0043] In a preferred embodiment, Figure 2 As shown in the figure, the specific process of the core board performing a master-slave switching cycle is as follows: ①In the initial state, assume that the first FPGA chip (FPGA_A) is the master FPGA chip and the second FPGA chip (FPGA_B) is the slave FPGA chip. Take the internal control timing of the first FPGA chip as an example (the same below). Figure 2 As shown in (a), the logic chip is selected to send the control instructions of the first FPGA chip to the peripheral device: Table 2: Select the control instructions sent by the logic chip to the peripheral device

[0044] ②At this time, the core board performs master-slave switching, the first FPGA chip is the slave FPGA chip, and the second FPGA chip is the master FPGA chip. The corresponding master-slave control instructions are as follows: Figure 2 As shown in (b), the logic chip is selected to send the control instructions of the second FPGA chip to the peripheral device: Table 3: Select the control instructions sent by the logic chip to the peripheral device

[0045] ③The core board switches from master to slave again. At this time, the first FPGA chip is the master FPGA chip and the second FPGA chip is the slave FPGA chip. The corresponding master-slave control instructions are as follows: Figure 2 As shown in (c), the logic chip is selected to send the control instructions of the first FPGA chip to the peripheral device: Table 4: Select the control instructions sent by the logic chip to the peripheral device

[0046] ④The core board switches from master to slave again. At this time, the first FPGA chip is the slave FPGA chip, and the second FPGA chip is the master FPGA chip. The corresponding master-slave control instructions are as follows: Figure 2 As shown in (d), the logic chip is selected to send the control instructions of the second FPGA chip to the peripheral device: Table 5: Select the control instructions sent by the logic chip to the peripheral device

[0047] ⑤ When the core board performs master-slave switching again, the signal of control instruction S1 becomes 1, and the signal of S0 becomes 0, and the loop control will be performed again from step ①.

[0048] Example 2 like Figure 3 As shown, this embodiment provides a dual-system switching method for a relay protection device, comprising the following steps: 1) The core board determines whether the first FPGA chip and the second FPGA chip are in a busy state. If they are in a busy state, the core board waits until both the first FPGA chip and the second FPGA chip are in an idle state, and sends a master-slave switching instruction to the first FPGA chip and the second FPGA chip.

[0049] 2) The first FPGA chip and the second FPGA chip both judge their own status, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instructions, and detect the control instructions output by the other FPGA chip.

[0050] 3) Select the logic chip based on the FPGA chip ID, determine the master FPGA chip and the slave FPGA chip in the first FPGA chip and the second FPGA chip, and send the control instructions of the master FPGA chip to the peripheral device through the optical transceiver based on the truth table, specifically: 3.1) When the first FPGA chip and the second FPGA chip receive the first switch of the master-slave switch instruction sent by the core board (i.e., the A / B system starts to switch, and the master-slave instructions of the two FPGA chips are replaced), for the first FPGA chip, the selection logic chip detects that the FPGA chip ID of the first FPGA chip is 1, and the master-slave switch instruction for the set (i.e., the master-slave switch instruction received by the second FPGA chip) is 1 (because the second FPGA chip is upgraded to the master FPGA chip at this time, the master-slave switch instruction is 1), so the control instruction of the first FPGA chip changes from S0=1 to S0=0. Similarly, for the second FPGA chip, the selection logic chip detects that the FPGA chip ID of the second FPGA chip is 0, and the master-slave switch instruction for the set is 0 (because the first FPGA chip is downgraded to the slave FPGA chip at this time, so it is 0), so the control instruction of the second FPGA chip remains unchanged S1=0, and the control instructions of the first FPGA chip and the second FPGA chip after the switch are S0S1=00. According to the truth table of the selection logic chip, the signal of the second FPGA chip is output at this time.

[0051] 3.2) When the first FPGA chip and the second FPGA chip receive the second switch of the master-slave switch instruction sent by the core board (the first FPGA chip becomes the master FPGA chip again, the second FPGA chip is downgraded to the slave FPGA chip, the master-slave switch instruction of the first FPGA chip becomes 1, and the master-slave switch instruction of the second FPGA chip becomes 0), for the first FPGA chip, the selection logic chip detects that the FPGA chip ID of the first FPGA chip is 1, and the master-slave switch instruction for the set is 0 (because the second FPGA chip is downgraded to the slave FPGA chip at this time, the master-slave switch instruction is 0), so the control instruction of the first FPGA chip remains unchanged S0=0. Similarly, for the second FPGA chip, the selection logic chip detects that the FPGA chip ID of the second FPGA chip is 0, and the master-slave switch instruction for the set is 1 (because the first FPGA chip is upgraded to the master FPGA chip at this time, it is 0), so the control instruction of the second FPGA chip is changed to 1, S1=1, and the control instructions of the first FPGA chip and the second FPGA chip after the switch are S0S1=01. According to the truth table of the selection logic chip, the signal of the first FPGA chip is output at this time.

[0052] 3.3) When the first FPGA chip and the second FPGA chip receive the third switch of the master-slave switch instruction sent by the core board (the first FPGA chip is downgraded to a slave FPGA chip, the second FPGA chip is upgraded to a master FPGA chip, the master-slave switch instruction of the first FPGA chip becomes 0, and the master-slave switch instruction of the second FPGA chip becomes 1), for the second FPGA chip, the selection logic chip detects that the FPGA chip ID of the first FPGA chip is 1, and the master-slave switch instruction for the set is 1 (because the second FPGA chip is upgraded to the master FPGA chip again at this time, the master-slave switch instruction is 1), so the control instruction of the first FPGA chip changes from S0=0 to S0=1. Similarly, for the second FPGA chip, the selection logic chip detects that the FPGA chip ID of the second FPGA chip is 0, and the master-slave switch instruction for the set is 0 (because the first FPGA chip is downgraded to a slave FPGA chip at this time, so it is 0), so the control instruction of the second FPGA chip remains unchanged S1=1, and the control instructions of the first FPGA chip and the second FPGA chip after the switch are S0S1=11. According to the truth table of the selection logic chip, the signal of the second FPGA chip is output at this time.

[0053] 3.4) When the first FPGA chip and the second FPGA chip receive the fourth switch of the master-slave switch instruction sent by the core board, it can be inferred that S0S1=10, and the signal of the first FPGA chip is output at this time. Therefore, the control instruction of S0S1 goes through a cycle of 10-00-01-11-10...

[0054] Example 3 This embodiment provides a processing device corresponding to the dual-system switching method of the relay protection device provided in Embodiment 2. The processing device can be applicable to a client processing device, such as a mobile phone, a laptop computer, a tablet computer, a desktop computer, etc., to execute the method of Embodiment 2.

[0055] The processing device includes a processor, a memory, a communication interface and a bus, and the processor, the memory and the communication interface are connected through the bus to complete mutual communication. The memory stores a computer program that can be run on the processing device, and the processing device executes the dual-system switching method of the relay protection device provided in this embodiment 2 when running the computer program.

[0056] In some implementations, the memory may be a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage.

[0057] In some other implementations, the processor may be a central processing unit (CPU), a digital signal processor (DSP), or other general-purpose processors of various types, which are not limited herein.

[0058] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0059] Those skilled in the art will understand that the structure of the above-mentioned computing device is only a partial structure related to the solution of the present invention, and does not constitute a limitation on the computing device to which the solution of the present invention is applied. The specific computing device may include more or fewer components, or combine certain components, or have a different arrangement of components.

[0060] Example 4 This embodiment provides a computer program product corresponding to the dual-system switching method of the relay protection device provided in Embodiment 2. The computer program product may include a computer-readable storage medium on which computer-readable program instructions for executing the dual-system switching method of the relay protection device described in Embodiment 2 are loaded.

[0061] Computer readable storage media can be tangible devices that hold and store instructions used by instruction execution devices. Computer readable storage media can be, for example, but not limited to, electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, or any combination thereof.

[0062] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.

[0063] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0064] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0065] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0066] The above embodiments are only used to illustrate the present invention, wherein the structure, connection mode and manufacturing process of each component may be changed. Any equivalent transformations and improvements based on the technical solution of the present invention should not be excluded from the protection scope of the present invention.

Claims

1. A dual-system switching system for relay protection devices, It is characterized in that It includes a first FPGA chip, a second FPGA chip, a core board and a selection logic chip; The first FPGA chip and the second FPGA chip are both used to determine their own states, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instruction, and detect the control instructions output by another FPGA chip; The core board is used to determine whether the first FPGA chip and the second FPGA chip are in a busy state or an idle state, and send a master-slave switching instruction to the first FPGA chip and the second FPGA chip based on the FPGA chip ID; The selection logic chip is used to determine the master FPGA chip and the slave FPGA chip based on the control instructions and FPGA chip ID of the first FPGA chip and the second FPGA chip, and based on the truth table, send the control instructions of the master FPGA chip to the peripheral device through the optical transceiver.

2. A dual-system switching system for a relay protection device as claimed in claim 1, It is characterized in that The first FPGA chip and the second FPGA chip are both provided with: The status judgment module is used to judge its own status, including busy status and idle status; A signal receiving module, used for receiving a master-slave switching instruction sent by the core board; A signal sending module, used for outputting a control instruction to the selection logic chip based on a master-slave switching instruction when the FPGA chip is used as a master and is in an idle state; The signal detection module is used to detect the control instructions output by another FPGA chip.

3. A dual-system switching system for a relay protection device as claimed in claim 1, It is characterized in that When both the first FPGA chip and the second FPGA chip are in a busy state, the master-slave switching instruction of the core board needs to be delayed until both the first FPGA chip and the second FPGA chip are in an idle state before being executed.

4. A dual-system switching system for a relay protection device as claimed in claim 1, It is characterized in that The selection logic chip is provided with: ID detection module, used to detect FPGA chip ID; A control instruction receiving module, used to receive control instructions output by the first FPGA chip and the second FPGA chip; An output module is used to output control instructions of the first FPGA chip or the second FPGA chip based on its own truth table.

5. A dual-system switching system for a relay protection device as claimed in claim 4, It is characterized in that The specific working process of the output module is as follows: When the control instruction output by the first FPGA chip and the control instruction output by the second FPGA chip are both 0, output a signal of a port connected to the second FPGA chip; When the control instruction output by the first FPGA chip is 0 and the control instruction output by the second FPGA chip is 1, output a signal of a port connected to the first FPGA chip; When the control instruction output by the first FPGA chip is 1 and the control instruction output by the second FPGA chip is 0, output a signal of the port connected to the first FPGA chip; When the control instruction output by the first FPGA chip and the control instruction output by the second FPGA chip are both 1, a signal of the port connected to the second FPGA chip is output.

6. A dual-system switching system for a relay protection device as claimed in claim 1, It is characterized in that The selection logic chip adopts the chip model AIP74LVC153 produced by China Micro-chip Corporation.

7. A dual-system switching method for a relay protection device, It is characterized in that include: The core board determines whether the first FPGA chip and the second FPGA chip are in a busy state. If they are in a busy state, the core board waits until both the first FPGA chip and the second FPGA chip are in an idle state, and sends a master-slave switching instruction to the first FPGA chip and the second FPGA chip; The first FPGA chip and the second FPGA chip both judge their own states, determine the FPGA chip ID, output control instructions to the selection logic chip based on the master-slave switching instruction, and detect the control instructions output by the other FPGA chip; The logic chip is selected based on the control instructions and FPGA chip ID of the first FPGA chip and the second FPGA chip, the master FPGA chip and the slave FPGA chip in the first FPGA chip and the second FPGA chip are determined, and based on the truth table, the control instructions of the master FPGA chip are sent to the peripheral device through the optical transceiver.

8. A dual-system switching method for a relay protection device as claimed in claim 7, It is characterized in that The selection logic chip determines the master FPGA chip and the slave FPGA chip in the first FPGA chip and the second FPGA chip based on the control instructions of the first FPGA chip and the second FPGA chip and the FPGA chip ID, and sends the control instructions of the master FPGA chip to the peripheral device through the optical transceiver based on the truth table, including: When the control instruction output by the first FPGA chip and the control instruction output by the second FPGA chip are both 0, output a signal of the port connected to the second FPGA chip; When the control instruction output by the first FPGA chip is 0 and the control instruction output by the second FPGA chip is 1, a signal of the port connected to the first FPGA chip is output; When the control instruction output by the first FPGA chip is 1 and the control instruction output by the second FPGA chip is 0, a signal of the port connected to the first FPGA chip is output; When the control instruction output by the first FPGA chip and the control instruction output by the second FPGA chip are both 1, a signal of the port connected to the second FPGA chip is output.

9. A processing device, It is characterized in that It includes computer program instructions, wherein the computer program instructions, when executed by a processing device, are used to implement the steps corresponding to the dual-system switching method of a relay protection device according to any one of claims 7 to 8.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer program instructions, wherein the computer program instructions, when executed by a processor, are used to implement the steps corresponding to the dual-system switching method for a relay protection device according to any one of claims 7 to 8.