System and method for configuring digital quantity interface meaning by relay protection device user
By introducing configuration definition registers and dynamic mapping layers, combined with user configuration interfaces and historical interface definition tables, the issues of flexibility and stability in the configuration of digital interfaces of relay protection devices are resolved, and the scalability and stability of functions are improved.
Patent Information
- Application Number
- CN202511690206.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-02-17
AI Technical Summary
Existing digital interface configuration methods for relay protection devices suffer from poor configuration flexibility, poor scalability, fixed port functions, and insufficient stability and reliability.
A configuration definition register is introduced as the core dynamic mapping layer. Combined with an input display module, it provides a user configuration interface and a preset historical cabinet interface definition mapping table. Through the dynamic binding mechanism of application layer definition name pointers and physical interface status, the physical hardware and upper-layer application software are decoupled.
It enhances the scalability of functions, enables flexible configuration and one-click switching of digital interface meanings, and improves the stability and reliability of program operation.
Smart Images

Figure CN121542337A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of relay protection device technology, and more specifically, to a system and method for configuring the meaning of digital interfaces in a relay protection device. Background Technology
[0002] Relay protection devices are critical equipment for ensuring the safety of power systems and are widely used in new energy power generation, rail transit, smart grids, and other fields. In practical engineering applications, the installation of relay protection devices also presents extremely high technical requirements, and the demands for installation flexibility and configurability are constantly increasing with industry development. Taking urban rail transit as an example, relay protection devices are used in different switchgear cabinets. According to the cabinet type, they can be divided into incoming line cabinets, feeder cabinets, negative pole cabinets, regenerative braking energy feedback devices, etc. Therefore, the meaning of their digital interfaces differs depending on the cabinet type.
[0003] The existing digital interface configuration methods for relay protection devices have several shortcomings. Firstly, they lack configuration flexibility, with fixed port functions that cannot be dynamically adjusted to meet actual needs, making it difficult to adapt to complex and ever-changing protection scenarios. Secondly, they lack compatibility; different manufacturers' devices have different digital interface point tables and inconsistent interface definitions, making system integration difficult. Thirdly, they pose security risks; if a relay protection program of one type is mistakenly downloaded to another type of relay protection device in the field, it could lead to malfunctions or failures. Finally, they have poor scalability; after hardware upgrades, the software uses a fixed number of ports, limiting functional expansion and failing to meet the demands of intelligent upgrades.
[0004] Chinese invention application No. 201911038643.4 discloses "An Adaptive Interval Protection Strategy Configuration Method and Device", which includes the following steps: 1) Obtaining the interval type; 2) Querying the corresponding information configuration table according to the interval type, wherein the information configuration table stores the correspondence between each interval type and the protection strategy required; wherein the protection strategy is a combination of various types of protection functions; the corresponding information configuration table includes: a basic information table, a functional module configuration table, and a protection strategy information configuration table; 3) Determining the protection strategy required for the interval type according to the corresponding information configuration table and the corresponding interval type, and calling several corresponding protection functional modules; after calling several corresponding protection functional modules, selecting the required functional module information from the basic information table and the functional module configuration table, and completing the interface association between the basic information and the functional module to realize the interface configuration of the functional module; each protection device stores a functional module library; the functional module library contains all types of protection functional modules; 4) Initialization of business functions: loading several protection functional modules called according to the protection strategy, and loading the information of the several protection functional modules into the program execution list; The system monitors in real time whether the interval type has changed. If a change in the current interval type is detected, steps 2) and 3) are re-executed to complete the reconfiguration of the protection strategy. This existing technology aims to solve the problem of low R&D and testing efficiency caused by the large number of functional software types and inconsistent versions of protection devices, and to achieve self-adaptation of protection devices in different intervals. Summary of the Invention
[0005] To address the technical problems of existing digital interface configuration methods for relay protection devices, such as poor configuration flexibility, poor scalability, fixed port functions, and insufficient stability and reliability, this invention provides a system and method for users to configure the meaning of digital interfaces in relay protection devices. The technical solution adopted by this invention is as follows: The first aspect of the present invention provides a system for configuring a digital interface for a relay protection device, the system comprising a signal acquisition module, an input display module, a memory module, and a central processing unit module; The signal acquisition module is used to acquire the level status of the physical interface and transmit it to the central processing unit module; The input display module is used to receive user input, provide a configuration interface, and display the physical interface level status; The memory module is used to store the real-time interface definition mapping table and the historical cabinet-type interface definition mapping table; The central processing unit module includes: An initialization module is used to read the real-time interface definition mapping table from the memory module and load it into a preset configuration definition register for initialization when the system is powered on. The interface binding module is used to read the level status of the physical interface transmitted by the signal acquisition module, and dynamically bind the application layer definition name pointer to the physical layer interface address by combining the mapping relationship data of the configuration definition register with the pre-stored interface meaning correspondence table. The update module is used to respond to configuration instructions from the input display module, update the configuration definition register and the real-time interface definition mapping table in the memory module, and then combine the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. The execution module is used to call the bound application layer definition name pointer to obtain the interface status and execute the corresponding relay protection logic.
[0006] As a preferred embodiment, the configuration definition register is implemented using an array, with the array index bound to the physical interface number and the array value serving as a meaning identifier. The interface binding module queries a pre-stored interface meaning correspondence table, converts the meaning identifier into a corresponding application layer definition name pointer, and binds the pointer to the address of the physical interface.
[0007] As a preferred embodiment, the central processing unit module further includes a reset module, which is used to perform a reset operation to clear false fault alarm signals caused by the update module during the configuration change process.
[0008] As a preferred embodiment, the central processing unit module is connected to the memory module via a UPP bus.
[0009] A second aspect of the present invention provides a method for configuring the meaning of a digital interface of a relay protection device based on the aforementioned system, the method comprising: When the system is powered on, the initialization module reads the real-time interface definition mapping table from the memory module and loads it into the preset configuration definition register for initialization; The signal acquisition module acquires the voltage level of the physical interface and transmits it to the central processing unit module; The interface binding module reads the level status of the physical interface transmitted by the signal acquisition module, and combines the mapping relationship data of the configuration definition register with the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. The update module responds to the configuration command from the input display module, updates the configuration definition register and the real-time interface definition mapping table in the memory module, and then, in conjunction with the pre-stored interface meaning correspondence table, dynamically binds the application layer definition name pointer to the physical layer interface address. The execution module calls the bound application layer definition name pointer to obtain the interface status and execute the corresponding relay protection logic.
[0010] As a preferred embodiment, the configuration definition register is implemented using an array, with the array index bound to the physical interface number and the array value serving as a meaning identifier. The interface binding module queries a pre-stored interface meaning correspondence table, converts the meaning identifier into a corresponding application layer definition name pointer, and binds the pointer to the address of the physical interface.
[0011] As a preferred embodiment, the configuration instructions include: An instruction to modify the mapping relationship between physical interface numbers and meaning identifiers in the real-time interface definition mapping table; The instructions for selecting the historical cabinet type interface definition mapping table for application.
[0012] As a preferred embodiment, after the update module responds to the configuration command from the input display module, updates the configuration definition register and the real-time interface definition mapping table in the memory module, and then dynamically binds the application layer definition name pointer to the physical layer interface address by combining it with the pre-stored interface meaning correspondence table, the method further includes: Perform a reset operation to clear false fault alarm signals caused by the update module during the configuration change process.
[0013] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the aforementioned method for configuring a digital interface for a relay protection device.
[0014] A fourth aspect of the present invention provides a computer device including a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor, wherein the computer program, when executed by the processor, implements the steps of the aforementioned method for configuring a digital interface for a relay protection device.
[0015] Compared with the prior art, the beneficial effects of this invention are: This invention achieves complete decoupling between physical hardware and upper-layer application software by introducing a configuration definition register as the core dynamic mapping layer, thereby improving the scalability of functions; by combining an input display module to provide a user configuration interface and a pre-set historical cabinet interface definition mapping table, it realizes flexible configuration and one-click switching of the meaning of digital interfaces; and by using a dynamic binding mechanism between application layer definition name pointers and physical interface states, it improves the stability and reliability of program operation. Attached Figure Description
[0016] Figure 1 This embodiment provides a flowchart of a method for configuring digital interfaces for relay protection devices. Figure 2This is a schematic diagram illustrating the application of the configuration definition register provided in this embodiment. Detailed Implementation The accompanying drawings are for illustrative purposes only and should not be construed as limiting the invention. It should be understood that the described embodiments are merely some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of the embodiments of this application.
[0017] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0018] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0019] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. The invention will be further described below with reference to the accompanying drawings and embodiments.
[0020] The present invention will be further described below with reference to the accompanying drawings and embodiments.
[0021] Example 1 This embodiment provides a system for configuring the meaning of a digital interface for a relay protection device. The system includes a signal acquisition module, an input display module, a memory module, and a central processing unit module. The signal acquisition module is used to acquire the level status of the physical interface and transmit it to the central processing unit module; Specifically, the signal acquisition module is implemented using an FPGA.
[0022] The input display module is used to receive user input, provide a configuration interface, and display the physical interface level status; Specifically, the input display module is an HMI touchscreen. The memory module is used to store the real-time interface definition mapping table and the historical cabinet type interface definition mapping table; the interface definition mapping table is used to represent the mapping relationship between physical interfaces and meaning identifiers in the form of an array, the array subscript is bound to the physical interface number, and the array value is used as the meaning identifier.
[0023] Specifically, the memory module is a non-volatile memory (flash).
[0024] The central processing unit module includes: An initialization module is used to read the real-time interface definition mapping table from the memory module and load it into a preset configuration definition register for initialization when the system is powered on. The interface binding module is used to read the level status of the physical interface transmitted by the signal acquisition module, and dynamically bind the application layer definition name pointer to the physical layer interface address by combining the mapping relationship data of the configuration definition register with the pre-stored interface meaning correspondence table. The update module is used to respond to the configuration command from the input display module, update the configuration definition register and the real-time interface definition mapping table in the memory module, and then combine the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. The execution module is used to call the bound application layer definition name pointer to obtain the interface status and execute the corresponding relay protection logic.
[0025] Specifically, the central processing unit module is implemented using a DSP chip. The DSP chip abstracts the application layer and the physical layer, and designs and configures the registers.
[0026] In one specific embodiment, the configuration definition register is implemented by an array, the array index is bound to the physical interface number, and the array value serves as a meaning identifier; the interface binding module queries a pre-stored interface meaning correspondence table, converts the meaning identifier into a corresponding application layer definition name pointer, and binds the pointer to the address of the physical interface.
[0027] In one specific embodiment, the central processing unit module further includes a reset module, which is used to perform a reset operation to clear false fault alarm signals caused by the update module during the configuration change process.
[0028] In one specific embodiment, the central processing unit module is connected to the memory module via a UPP bus.
[0029] Example 2 Please refer to Figure 1 This embodiment provides a method for configuring the meaning of a digital interface for a relay protection device based on the system described in Embodiment 1. The method includes: S1: When the system is powered on, the initialization module reads the real-time interface definition mapping table from the memory module and loads it into the preset configuration definition register for initialization; S2: The signal acquisition module acquires the level status of the physical interface and transmits it to the central processing unit module; S3: The interface binding module reads the level status of the physical interface transmitted by the signal acquisition module, and combines the mapping relationship data of the configuration definition register with the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. S4: The update module responds to the configuration command from the input display module, updates the configuration definition register and the real-time interface definition mapping table in the memory module, and again combines the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. In one specific embodiment, the configuration instructions include: An instruction to modify the mapping relationship between physical interface numbers and meaning identifiers in the real-time interface definition mapping table; The instructions for selecting the historical cabinet type interface definition mapping table for application.
[0030] In one specific embodiment, the method by which the update module responds to a configuration instruction from the input display module, updates the configuration definition register and the real-time interface definition mapping table in the memory module, and then, in conjunction with a pre-stored interface meaning correspondence table, dynamically binds the application layer definition name pointer to the physical layer interface address includes: The update module responds to the instruction to select the historical cabinet type interface definition mapping table for application, loads the historical cabinet type interface definition mapping table in the storage module into the configuration definition register, and again combines it with the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address. The update module responds to the instruction to modify the mapping relationship between physical interface number and meaning identifier in the real-time interface definition mapping table, loads the modified real-time interface definition mapping table into the configuration definition register, and, together with the pre-stored interface meaning correspondence table, dynamically binds the application layer definition name pointer to the physical layer interface address.
[0031] S5: The execution module calls the bound application layer definition name pointer to obtain the interface status and executes the corresponding relay protection logic.
[0032] In one specific embodiment, the configuration definition register is implemented by an array, the array index is bound to the physical interface number, and the array value serves as a meaning identifier; the interface binding module queries a pre-stored interface meaning correspondence table, converts the meaning identifier into a corresponding application layer definition name pointer, and binds the pointer to the address of the physical interface.
[0033] In a specific embodiment, the pre-stored interface meaning correspondence table is shown in the following table: Table 1
[0034] Among them, the pointers with meaningful names in the application layer are defined, which makes it easy to bind the pointers to the array after the correspondence is resolved.
[0035] The specific analysis method is as follows: The array index is defined as the physical layer interface number, such as... Figure 2 As shown, the array indices 0, 1, 2, and 3 represent the physical layer interfaces DI1, DI2, DI3, and DI4, respectively.
[0036] The values of the array are defined according to the corresponding relationship table to define the interface meaning. As shown in the table above, the values 3, 4, and 5 of the array represent the interface meanings "circuit breaker open", "circuit breaker closed", and "trolley working position", respectively.
[0037] The program iterates through the array, reading values sequentially, then searches the corresponding relationship table to bind the corresponding name pointer to the physical layer interface. For example... Figure 2 In this process, the pointer openPosition is bound to the address where the physical layer DI1 variable is located, closePosition is bound to the address where the physical layer DI2 variable is located, and so on.
[0038] Based on the correspondence between array values and definition names, and combined with the order given in the configuration definition register, the program calculates the specific meaning of the current interface using the method described above. After the user modifies the definition using the touchscreen, the touchscreen will update the value in the configuration definition register in real time. Once the program detects a change in the value in the register, it will repeat the above parsing steps to update the meaning of the current interface.
[0039] In one specific embodiment, after the update module responds to the configuration instruction from the input display module, updates the configuration definition register and the real-time interface definition mapping table in the memory module, and then dynamically binds the application layer definition name pointer to the physical layer interface address by combining it with the pre-stored interface meaning correspondence table, the method further includes: Perform a reset operation to clear false fault alarm signals caused by the update module during the configuration change process.
[0040] Example 3 This embodiment provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method for configuring the meaning of a digital quantity interface of a relay protection device as described in Embodiment 2.
[0041] Example 4 This embodiment provides a computer device, including a storage medium, a processor, and a computer program stored in the storage medium and executable by the processor. When the computer program is executed by the processor, it implements the steps of the method for configuring a digital quantity interface for a relay protection device as described in Embodiment 2.
[0042] Obviously, the above embodiments of the present invention are merely examples for clearly illustrating the present invention, and are not intended to limit the implementation of the present invention. Those skilled in the art can make other variations or modifications based on the above description. It is neither necessary nor possible to exhaustively describe all embodiments here. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention should be included within the scope of protection of the claims of the present invention.
Claims
1. A system for configuring the meaning of a digital quantity interface of a relay protection device user, characterized in that, The system comprises a signal acquisition module, an inputtable display module, a memory module, and a central processor module; The signal acquisition module is configured to acquire the level state of the physical interface and transmit the level state to the central processor module; The inputtable display module is configured to receive user input, provide a configuration interface, and display the level state of the physical interface; The memory module is configured to store a real-time interface definition mapping table and a historical cabinet-type interface definition mapping table; The central processor module comprises: An initialization module configured to read the real-time interface definition mapping table from the memory module and load the table into a preset configuration definition register for initialization when the system is powered on; An interface binding module configured to read the level state of the physical interface transmitted by the signal acquisition module, combine the mapping relationship data of the configuration definition register with a pre-stored interface meaning correspondence table, and dynamically bind an application layer definition name pointer to a physical layer interface address; An updating module configured to update the configuration definition register and the real-time interface definition mapping table in the memory module in response to a configuration instruction from the inputtable display module, and again combine the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address; An execution module configured to call the bound application layer definition name pointer to obtain the interface state and execute corresponding relay protection logic.
2. The system for configuring the meaning of digital quantity interface of a relay protection device user according to claim 1, characterized in that, The configuration definition register is implemented by an array, the array subscript is bound to the physical interface number, and the array value serves as a meaning identifier; the interface binding module converts the meaning identifier into a corresponding application layer definition name pointer by querying the pre-stored interface meaning correspondence table, and binds the pointer to the address of the physical interface.
3. The system for configuring the meaning of digital quantity interface of relay protection device user according to claim 1, characterized in that, The central processor module further comprises a reset module configured to perform a reset operation to clear false fault alarm signals caused during the configuration change process performed by the updating module.
4. The system for configuring the meaning of digital quantity interface of relay protection device user according to claim 1, characterized in that, The central processor module is connected to the memory module through a UPP bus.
5. A method for a user of a digital quantity interface of a relay protection device to configure the meaning of the digital quantity interface based on the system of any one of claims 1 to 4, characterized in that, The method comprises: An initialization module reads a real-time interface definition mapping table from a memory module and loads the table into a preset configuration definition register for initialization when the system is powered on; A signal acquisition module acquires the level state of a physical interface and transmits the level state to a central processor module; An interface binding module reads the level state of the physical interface transmitted by the signal acquisition module, combines the mapping relationship data of the configuration definition register with a pre-stored interface meaning correspondence table, and dynamically binds an application layer definition name pointer to a physical layer interface address; An updating module updates the configuration definition register and the real-time interface definition mapping table in the memory module in response to a configuration instruction from an inputtable display module, and again combines the pre-stored interface meaning correspondence table to dynamically bind the application layer definition name pointer to the physical layer interface address; An execution module calls the bound application layer definition name pointer to obtain the interface state and executes corresponding relay protection logic.
6. The method according to claim 5, wherein, The configuration definition register is implemented by an array, the array index is bound to the physical interface number, and the array value is used as a meaning identifier; the interface binding module converts the meaning identifier into a corresponding application layer definition name pointer by querying a pre-stored interface meaning correspondence table, and binds the pointer to the address of the physical interface.
7. The method of claim 5, wherein the method further comprises: The configuration instruction includes: an instruction for modifying the mapping relationship between the physical interface number and the meaning identifier in the real-time interface definition mapping table; an instruction for selecting the historical cabinet type interface definition mapping table for application.
8. The method of claim 5, wherein the method further comprises: After the updating module updates the configuration definition register and the real-time interface definition mapping table in the memory module in response to the configuration instruction from the input display module, and dynamically binds the application layer definition name pointer to the physical layer interface address again by combining the pre-stored interface meaning correspondence table, the method further includes: performing a reset operation to clear the false fault alarm signal caused by the updating module during the configuration change process.
9. A computer readable storage medium having stored thereon a computer program, characterized in that: The computer program, when executed by a processor, implements the steps of the method for configuring the meaning of a digital quantity interface of a relay protection device according to any one of claims 5 to 8.
10. A computer device, comprising: The computer program, when executed by a processor, implements the steps of the method for configuring the meaning of a digital quantity interface of a relay protection device according to any one of claims 5 to 8.
Citation Information
Patent Citations
Self-adaptive interval protection strategy configuration method and device
CN110957705A