An embedded device multi-mode redundant communication configuration method, system and storage medium
By constructing a standardized rule model for Typedata and a SysSettings configuration file, and automatically updating the IEC 61850 model, the automated configuration of multi-mode redundant communication for embedded devices is realized. This solves the problems of parameter confusion and insufficient adaptability in existing redundant communication configurations, and improves communication reliability and stability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NANJING GUODIAN NANZI POWER GRID AUTOMATION CO LTD
- Filing Date
- 2026-04-28
- Publication Date
- 2026-07-31
AI Technical Summary
Existing redundant communication configurations lack a unified design scheme, have chaotic parameters and incompatible files, complex configuration processes and require a lot of manual intervention, poor adaptability of multiple redundancy modes and inflexible switching, cannot dynamically load FPGA programs, lack real-time monitoring and closed-loop verification of links, and have insufficient communication reliability.
Construct a standardized rule model for Typedata, generate a standardized configuration file for SysSettings, automatically synchronize and update the IEC 61850 model, realize trusted communication between the host computer and the embedded device, load the corresponding FPGA program and restart to take effect, and perform real-time monitoring of the link status and verification of redundancy functions.
It achieves standardized and automated configuration of multi-mode redundant communication, improves communication reliability and scenario adaptability, reduces configuration failure risk, and ensures stable operation of embedded relay protection devices.
Smart Images

Figure CN122489151A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of relay protection technology, specifically relating to a method, system, and storage medium for configuring multi-mode redundant communication in embedded devices. Background Technology
[0002] Existing redundant communication configuration technologies suffer from several core technical problems: There is no unified design scheme for redundant communication configuration, resulting in chaotic parameters, incompatible files, and inconsistent parsing between the host computer and the device; the configuration process is complex, requires extensive manual intervention, is cumbersome and prone to errors, leading to low configuration efficiency; multiple redundancy modes (HSR / RSTP / PRP, etc.) have poor adaptability and inflexible switching; the corresponding FPGA program cannot be automatically and dynamically loaded according to the mode, making it inconvenient for the mode to take effect; and there is a lack of real-time monitoring and closed-loop verification of redundant communication links, resulting in insufficient communication reliability and fault feedback capabilities. For example, the China Nuclear Power Research and Design Institute, with patent number CN120750986A, proposed a safety-grade DCS redundant communication system, communication method, equipment, and medium. By adding an Ethernet communication module to the TU control station of the safety-grade DCS, a redundant communication system was constructed, solving the problem that non-safety-grade DCS in nuclear power plants could not automatically switch data links. This achieved redundant communication and independent information transmission for the safety-grade DCS, and is suitable for the renovation of old power plants. Similarly, Daoli Zhiyuan Technology (Qingdao) Co., Ltd., with patent number CN119788451A, proposed a data acquisition and real-time control system based on the EtherCAT bus. By using the EtherCAT bus in the data acquisition and real-time control system for seamless connection between the PLC and DAQ system, this system solved problems such as complex system integration and data transmission delay, achieving efficient and reliable data transmission and system integration, and improving user experience and system performance. Patent No. CN117412348A, Hangzhou Hanrui Technology Co., Ltd., discloses a high-speed traffic communication method and system based on duplex base station communication. This application involves selecting base stations along the high-speed traffic direction according to a time sequence, calculating the signal strength of base stations before and after the time sequence, and using the two consecutive base stations with the highest ranking in the current time sequence as two signal base stations for redundant communication with the current user terminal. Switching is only performed when network quality issues arise. This allows mobile users in high-speed traffic to switch signals using two consecutive signal base stations, switching to the superior base station signal along the high-speed traffic direction earlier, thereby reducing the risk of signal loss and maintaining network stability for users in high-speed traffic, meeting the network needs of such users.
[0003] Therefore, there is an urgent need for a multi-mode redundant communication configuration method for embedded devices that can flexibly switch between four modes: HSR / RSTP / PRP / redundant communication disabled, simplify the configuration process, improve adaptability and communication reliability, and be applicable to embedded relay protection devices and other power equipment in domestic and overseas industrial fields. Summary of the Invention
[0004] The purpose of this invention is to provide a method, system, and storage medium for configuring multi-mode redundant communication in embedded devices. This invention addresses the technical problems of existing redundant communication configurations, such as lack of a unified design scheme, high configuration complexity, poor flexibility, insufficient multi-mode adaptability, and inability to dynamically switch corresponding FPGA programs. It achieves standardized and automated configuration of multi-mode redundant communication, improving communication reliability and scenario adaptability.
[0005] To achieve the above objectives, the present invention is implemented using the following technical solution.
[0006] On one hand, the present invention provides a method for configuring multi-mode redundant communication in an embedded device, comprising:
[0007] Obtain the basic parameters for redundant communication, and use the Typedata model, a static rule file in XML format, to clarify the definition, value range, and mapping relationship of the basic parameters, thereby obtaining a standardized configuration rule system;
[0008] Based on the standardized rule system, the redundant communication modes and corresponding configuration parameters selected by the user are obtained, and then standardized filtering and storage processing is performed to obtain the SysSettings configuration file in XML format.
[0009] Based on the SysSettings configuration file, the model instantiation content is automatically updated and verified based on the pre-built IEC 61850 model to obtain the updated IED.ICD model file;
[0010] The host computer establishes a connection with the embedded device and completes identity verification via the TCP Socket protocol, and then sends the SysSettings configuration file and IED.ICD model file to the embedded device.
[0011] The embedded device obtains the current communication redundancy mode by parsing the SysSettings configuration file, loads the corresponding preset FPGA program for the embedded relay protection device and performs CRC verification. After the verification is successful, the device is restarted.
[0012] After the device restarts, the embedded relay protection device's built-in link status monitoring unit collects A / B network port link status data at fixed intervals, processes it according to the IEC 61850 model mapping rules, and uploads it to the host computer to obtain real-time link status monitoring data.
[0013] Based on the real-time link status monitoring data, the host computer completes the display of redundant communication status, fault judgment and feedback, which is used to realize the closed-loop verification of redundant communication function and obtain a stable and reliable multi-mode redundant communication operation status.
[0014] The aforementioned method for configuring multi-mode redundant communication in embedded devices includes the following core internal structure of the XML-formatted static rule file Typedata model: configuration parameter groups, parameter inherent attributes, parameter activation rules, IEC61850 model mapping relationships, and link monitoring parameter specifications. All configuration logic, parameter constraints, value ranges, and mapping rules in redundant communication are uniformly and standardizedly defined through the static rule file Typedata to ensure consistent parsing of monitoring data when the host computer and embedded device are paired.
[0015] The aforementioned method for configuring redundant communication in multiple modes for embedded devices uses a hierarchical structure in the SysSettings configuration file to store configuration results. It retains only the parameters specific to the currently active mode and uses attribute annotations to mark the parameter activation rules, thereby achieving standardized persistence and transmission of configuration data.
[0016] This invention solves the technical problems of inconsistent parsing and abnormal transmission caused by parameter chaos and file incompatibility in existing redundant communication configurations, which are caused by the host computer and embedded device. It achieves consistent parsing and stable transmission of configuration parameters between the host computer and embedded device, provides unified rule support for multi-mode redundant communication configuration, and reduces the risk of failure caused by configuration chaos.
[0017] The aforementioned method for configuring multi-mode redundant communication in an embedded device involves automatically updating and verifying the instantiated content of the model based on a pre-built IEC61850 model to obtain an updated IED.ICD model file.
[0018] The automatic update of model instantiation content includes: physical channel status of network interface A, physical channel status of network interface B, link status of network interface A, link status of network interface B, frame error rate of network interface A, frame error rate of network interface B, and mapping relationship configuration, which is used to ensure that the content of the model file is completely matched with the currently configured redundancy mode and link status monitoring requirements.
[0019] The aforementioned method for configuring multi-mode redundant communication in an embedded device includes four independent FPGA programs pre-installed in the FPGA program storage unit of the embedded relay protection device, which correspond to three redundant communication modes (HSR, RSTP, and PRP) and a working mode that disables redundant communication.
[0020] After receiving the SysSettings configuration file, the embedded relay protection device first performs integrity parsing and legality verification on the file. After the verification is successful, it extracts the configuration values of the core configuration parameters. The internal program loading unit reads the corresponding FPGA program from the FPGA program storage unit according to the configuration instruction, performs CRC integrity verification on the read program, and after the verification is successful, it unloads the currently running FPGA program, completes the loading of the new FPGA program, and performs configuration initialization operations.
[0021] After the FPGA program is loaded and initialized, the embedded relay protection device automatically triggers the whole machine restart process. After the restart is completed, the newly configured redundant communication mode officially takes effect.
[0022] This invention automates the entire process of redundant mode switching and parameter configuration by automatically updating the IEC 61850 model without manual intervention. It solves the technical problems of existing redundant communication configuration processes being cumbersome, requiring a lot of manual intervention, and being prone to human error. It reduces the workload of operators, improves configuration efficiency and accuracy, and avoids the impact of human error on communication stability.
[0023] The aforementioned method for configuring redundant communication in multiple modes for embedded devices includes the following closed-loop verification for implementing redundant communication functionality: After the embedded relay protection device restarts and loads the corresponding FPGA program, the configured redundant communication mode officially takes effect. Both the MMS communication and GOOSE communication of the embedded relay protection device achieve redundant data transmission through the A / B network ports. Specifically, the MMS communication sends data frames in parallel through the dual network ports, and the receiving end executes the processing logic of selecting the first frame for reception and discarding duplicate frames. The GOOSE communication completes redundant transmission and reception of messages based on the dual network ports, ensuring that when a single network port link fails, data transmission can seamlessly switch to another normal network port, ensuring the continuity of communication.
[0024] This invention solves the technical problems of existing redundant communication systems, such as the inability to achieve seamless switching of redundant communication modes and the lack of real-time monitoring of link status, which leads to the inability to detect and handle communication faults in a timely manner and affect the stable operation of embedded relay protection devices. It enables seamless switching of redundant communication modes and closed-loop monitoring of link status, and can provide real-time feedback of fault information. This invention ensures the stable operation of embedded relay protection devices and improves the reliability and fault self-healing capability of redundant communication in industrial control scenarios.
[0025] The aforementioned method for configuring redundant communication in multiple modes for embedded devices involves a link status monitoring unit continuously collecting and uploading link status data from ports A and B during redundant communication mode operation. When any port link fails, the link connection status of that port will be determined as "down." This status data is synchronously uploaded to the host computer software and updated in real time. Simultaneously, the validity of normal port data transmission can be confirmed through frame error rate-related data, enabling real-time detection of the correctness of redundant communication status and timely feedback of communication link failure information.
[0026] This invention adapts to four redundant communication modes: None, RSTP, HSR, and PRP, and complies with IEC 62439-3 and IEC 61850 standards. This solves the technical problem that existing redundant communication configurations lack multi-mode adaptability and cannot meet the redundant communication needs of different industrial control scenarios. It broadens the application scope of this invention and can flexibly adapt to the redundant communication needs of embedded relay protection devices and other power equipment in various industrial fields at home and abroad.
[0027] In a second aspect, the present invention provides a system comprising:
[0028] Memory, used to store computer programs / instructions;
[0029] A processor for executing the computer program / instructions to implement the steps of the embedded device multi-mode redundant communication configuration method described in any of the preceding claims.
[0030] Thirdly, the present invention provides a computer-readable storage medium having a computer program / instruction stored thereon, characterized in that, when the computer program / instruction is executed by a processor, it implements the steps of any of the aforementioned embedded device multi-mode redundant communication configuration methods.
[0031] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0032] This invention solves the technical problems of existing redundant communication configurations, such as lack of a unified design scheme, high configuration complexity, poor flexibility, insufficient multi-mode adaptability, and inability to dynamically switch corresponding FPGA programs, by constructing a standardized Typedata rule model, generating a standardized SysSettings configuration file, automatically synchronizing and updating the IEC 61850 model, establishing trusted communication between the host computer and the embedded device, loading the corresponding FPGA program and restarting to take effect, and realizing real-time monitoring of link status and verification of redundancy functions. It achieves standardized and automated configuration of multi-mode redundant communication, improving the technical effect of communication reliability and scenario adaptability.
[0033] This invention solves the technical problems of inconsistent parsing and transmission anomalies caused by parameter chaos and file incompatibility in existing redundant communication configurations. It achieves consistent parsing and stable transmission of configuration parameters between the host computer and embedded devices by unifying parameter rules through Typedata files and standardizing the SysSettings file format. This provides unified rule support for multi-mode redundant communication configuration and reduces the risk of failure caused by configuration chaos. This invention solves the technical problems of existing redundant communication systems, such as the inability to seamlessly switch between redundant communication modes and the lack of real-time monitoring of link status, which leads to the inability to detect and handle communication faults in a timely manner and affect the stable operation of embedded relay protection devices. It enables seamless switching of redundant communication modes and real-time monitoring of link status, thus ensuring the stable operation of embedded relay protection devices and improving the reliability and fault self-healing capability of redundant communication in industrial control scenarios. Furthermore, by adapting to four redundant communication modes (None / RSTP / HSR / PRP) and complying with IEC 62439-3 and IEC 61850 standards, this invention addresses the technical problem of insufficient multi-mode adaptability of existing redundant communication configurations, which cannot meet the redundant communication needs of different industrial control scenarios. This broadens the application scope of the invention, allowing for flexible adaptation to the redundant communication needs of embedded relay protection devices and other power equipment in various industrial fields both domestically and internationally. Attached Figure Description
[0034] Figure 1 This is a schematic diagram of the process steps of the multi-mode redundant communication configuration method for embedded devices according to Embodiment 1 of the present invention;
[0035] Figure 2This is a schematic diagram of the system architecture of the present invention;
[0036] Figure 3 This is a schematic diagram of the IEC 61850 redundancy LNodeType definition parameters of the present invention. Detailed Implementation
[0037] It should be noted that the embedded device redundant communication mode configuration and link status monitoring method disclosed in this invention relies on a complete technical solution that includes standardized parameter rule definitions, configuration file format specifications, host computer configuration interaction, IEC 61850 model synchronization adaptation, communication link transmission interaction, embedded hardware program loading, and redundancy function effectiveness verification. This solution is adapted to the redundant communication management and control scenarios of embedded relay protection devices, ensuring the standardization of redundant communication mode switching, the consistency of parameter configuration, the standardization of configuration files, and the real-time nature of link status monitoring.
[0038] The technical solution of the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations thereof. In the absence of conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.
[0039] The term "and / or" simply 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. Additionally, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0040] Example 1:
[0041] This case study uses the configuration and link status monitoring of an embedded relay protection device in PRP redundancy mode as an example to illustrate the implementation process of the present invention in detail. All parameter configurations and operation procedures follow the aforementioned Typedata file rules and SysSettings file format specifications.
[0042] Prerequisites for this embodiment:
[0043] Hardware equipment: 1 embedded relay protection device (with built-in FPGA program storage unit and 4 pre-installed independent FPGA programs), 1 SAC600 host computer, 2 physically isolated independent switches, and several communication links.
[0044] Software and Protocols: Compliant with IEC 62439-3 (PRP protocol) and IEC 61850 standards, the SAC600 host computer software is pre-installed and the Typedata file has been deployed in advance.
[0045] like Figure 1 As shown, this embodiment provides a method for configuring multi-mode redundant communication in an embedded device, including:
[0046] Step 1: Obtain the basic parameters for redundant communication. Use the Typedata model, a static rule file in XML format, to define the basic parameters, their value ranges, and mapping relationships, thus obtaining a standardized configuration rule system.
[0047] The pre-deployed Typedata file has completed the PRP mode parameter definition, and its core content includes:
[0048] General parameters: Baud rate values are 9600 / 19200 / 38400 (effective immediately), FrameErrorRate values are 0-1000, and LinkStatus values are up / down;
[0049] PRP-specific parameters: PRPDomainID (value 0-15), PRPpupeFilter (value 0 / 1, required), PRPHeartBeat (value 0 / 1), PRPHeartBeatIntv (value 0-60 seconds, default 5 seconds), PRPTAgEnable (value 0 / 1), PRPPortAEnable / PRPPortBEnable (value 0 / 1), PRPFaultRecover (value 0 / 1).
[0050] Step 2: Based on the standardized rule system, obtain the redundant communication mode selected by the user and the corresponding configuration parameters, perform standardized filtering and storage processing, and obtain the SysSettings configuration file in XML format.
[0051] The SysSettings configuration file is generated by starting the SAC600 host computer software, automatically parsing the Typedata file, selecting PRP mode in the configuration interface, configuring the following parameters, and completing the validity check:
[0052] Basic parameters: RedundantMode=PRP, BaudRate=19200, FrameErrorRate=50;
[0053] PRP exclusive parameters: PRPDomainID=2, PRPDupeFilter=1, PRPHeartBeat=1, PRPHeartBeatIntv=10, PRPTagEnable=1, PRPPortAEnable=1, PRPPortBEnable=1, PRPFaultRecover=1, LinkStatus=up.
[0054] After successful verification, the software generates a SysSettings file, with the following file format and content:
[0055] xml<?xml version="1.0" encoding="UTF-8"?> <syssettings> <basicconfig> <redundantmode restart="true"> PRP< / redundantmode> <baudrate restart="false"> 19200< / baudrate> <frameerrorrate restart="false"> 50< / frameerrorrate> < / basicconfig> <redundantconfig> <prpconfig> <linkstatus restart="false"> up< / linkstatus> <prpdomainid restart="true"> 2< / prpdomainid> <prpdupefilter restart="true"> 1< / prpdupefilter> <prpheartbeat restart="true"> 1< / prpheartbeat> <prpheartbeatintv restart="true"> 10< / prpheartbeatintv> <prptagenable restart="true"> 1< / prptagenable> <prpportaenable restart="true"> 1< / prpportaenable> <prpportbenable restart="true"> 1< / prpportbenable> <prpfaultrecover restart="true"> 1< / prpfaultrecover> < / prpconfig> < / redundantconfig> < / syssettings>
[0056] Step 3: Based on the SysSettings configuration file and the pre-built IEC 61850 model, automatically update and verify the instantiated model content to obtain the updated IED.ICD model file.
[0057] The host computer software detects that RedundantMode has switched to PRP and automatically triggers the model update process:
[0058] Update the logical nodes prefix="RCH" and LNNodeType=LCCH in the IEC 61850 model, instantiate the data objects ChLiv (physical channel status of port A), RedChLiv (physical channel status of port B), LnkLiv (link status of port A), RedLnkLiv (link status of port B), Fer (frame error rate of port A), and RedFer (frame error rate of port B), and configure the corresponding attributes and mapping relationships.
[0059] Perform an integrity check on the updated model file. Once the check passes, store it in the IED.ICD file to ensure it matches the PRP mode and monitoring requirements.
[0060] Step 4: The host computer establishes a connection with the embedded device via the TCP Socket protocol and completes identity verification, then sends the SysSettings configuration file and IED.ICD model file to the embedded device.
[0061] The host computer establishes a communication connection with the embedded relay protection device via the TCP Socket protocol, completing identity verification and communication handshake sequentially, both of which pass. The host computer then sends the SysSettings file and the IED.ICD file to the embedded device via the communication link, and the device verifies the file integrity upon receipt. Due to the need for RedundantMode switching, the host computer sends a restart command to the embedded device, which confirms the command and executes the restart process.
[0062] Step 5: The embedded device obtains the current communication redundancy mode by parsing the SysSettings configuration file, loads the corresponding preset FPGA program for the embedded relay protection device and performs CRC verification. After the verification is successful, the device is restarted.
[0063] After the embedded device restarts, it parses the SysSettings file, extracts the RedundantMode=PRP parameter, and the program loading unit reads the FPGA program corresponding to the PRP mode from the FPGA storage unit. It performs a CRC integrity check on the read FPGA program; if the check passes, it unloads the currently running program, loads the PRP mode FPGA program, and completes configuration initialization, enabling both A and B network ports to connect to the corresponding physically isolated switches.
[0064] Step 6: After the device restarts, the embedded relay protection device's built-in link status monitoring unit collects A / B network port link status data at fixed intervals, processes it according to the IEC 61850 model mapping rules, and uploads it to the host computer to obtain real-time link status monitoring data.
[0065] Step 7: Based on the real-time link status monitoring data, the host computer completes the display of redundant communication status, fault judgment and feedback, which is used to realize the closed-loop verification of redundant communication function and obtain a stable and reliable multi-mode redundant communication operation status.
[0066] Redundant communication is implemented as follows: the device’s MMS communication and GOOSE communication are transmitted in parallel through dual network ports A and B. MMS communication selects the first frame to receive and discards duplicate frames, while GOOSE communication has redundant transmission and reception to ensure seamless service switching when a single network port fails.
[0067] Real-time status monitoring: The embedded device link status monitoring unit collects data at 500ms intervals, including the physical channel status of A / B network ports (ChLiv / RedChLiv are both normal), link connection status (LnkLiv / RedLnkLiv are both up), and frame error rate (Fer / RedFer are both below the 50 threshold). After mapping through the IEC 61850 model, the data is uploaded to the host computer.
[0068] Fault simulation verification: When the link of network port A is manually disconnected, the link status monitoring unit of the device detects that the LinkStatus of network port A changes to down and immediately uploads it to the host computer. The host computer interface updates the fault prompt of network port A in real time. At the same time, the PRPFaultRecover function is triggered, and the service is automatically switched to network port B. The frame error rate does not fluctuate abnormally, verifying the effectiveness of redundant communication and fault self-healing functions.
[0069] Example 2:
[0070] This embodiment provides a system, including:
[0071] Memory, used to store computer programs / instructions;
[0072] A processor for executing the computer program / instructions to implement the steps of the embedded device multi-mode redundant communication configuration method described in any of the preceding claims.
[0073] Example 3:
[0074] This embodiment provides a computer-readable storage medium storing a computer program / instructions thereon, characterized in that, when the computer program / instructions are executed by a processor, they implement the steps of any of the aforementioned embedded device multi-mode redundant communication configuration methods.
[0075] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0076] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0077] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0078] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1The steps of the function specified in one or more boxes.
[0079] The embodiments of the present invention have been described above with reference to the accompanying drawings. However, the present invention is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of the present invention without departing from the spirit and scope of the claims. All of these forms are within the protection scope of the present invention.
Claims
1. A method for configuring multi-mode redundant communication in an embedded device, characterized in that, include: Obtain the basic parameters for redundant communication, and use the Typedata model, a static rule file in XML format, to clarify the definition, value range, and mapping relationship of the basic parameters, thereby obtaining a standardized configuration rule system; Based on the standardized rule system, the redundant communication modes and corresponding configuration parameters selected by the user are obtained, and then standardized filtering and storage processing is performed to obtain the SysSettings configuration file in XML format. Based on the SysSettings configuration file, the model instantiation content is automatically updated and verified based on the pre-built IEC 61850 model to obtain the updated IED.ICD model file; The host computer establishes a connection with the embedded device and completes identity verification via the TCP Socket protocol, and then sends the SysSettings configuration file and IED.ICD model file to the embedded device. The embedded device obtains the current communication redundancy mode by parsing the SysSettings configuration file, loads the corresponding preset FPGA program for the embedded relay protection device and performs CRC verification. After the verification is successful, the device is restarted. After the device restarts, the embedded relay protection device's built-in link status monitoring unit collects A / B network port link status data at fixed intervals, processes it according to the IEC 61850 model mapping rules, and uploads it to the host computer to obtain real-time link status monitoring data. Based on the real-time link status monitoring data, the host computer completes the display of redundant communication status, fault judgment and feedback, which is used to realize the closed-loop verification of redundant communication function and obtain a stable and reliable multi-mode redundant communication operation status.
2. The method according to claim 1, characterized in that, The core internal structure of the Typedata static rule file model in XML format includes: configuration parameter groups, parameter inherent attributes, parameter activation rules, IEC 61850 model mapping relationships, and link monitoring parameter specifications. All configuration logic, parameter constraints, value ranges, and mapping rules in redundant communication are uniformly and standardizedly defined through the Typedata static rule file to ensure consistent parsing of monitoring data when the host computer and embedded device are paired.
3. The method according to claim 1, characterized in that, The SysSettings configuration file uses a hierarchical structure to store configuration results, retaining only the parameters specific to the currently active mode. By annotating the parameter activation rules through attributes, it achieves standardized persistence and transmission of configuration data.
4. The method according to claim 1, characterized in that, The model is based on a pre-built IEC 61850 model. The instantiated model content is automatically updated and verified to obtain the updated IED.ICD model file. The automatic update of model instantiation content includes: physical channel status of network interface A, physical channel status of network interface B, link status of network interface A, link status of network interface B, frame error rate of network interface A, frame error rate of network interface B, and mapping relationship configuration, which is used to ensure that the content of the model file is completely matched with the currently configured redundancy mode and link status monitoring requirements.
5. The method according to claim 1, characterized in that, The FPGA program storage unit in the embedded relay protection device is pre-loaded with four independent FPGA programs, which correspond to three redundant communication modes: HSR, RSTP, and PRP, as well as a working mode that disables redundant communication. After receiving the SysSettings configuration file, the embedded relay protection device first performs integrity parsing and legality verification on the file. After the verification is successful, it extracts the configuration values of the core configuration parameters. The internal program loading unit reads the corresponding FPGA program from the FPGA program storage unit according to the configuration instruction, performs CRC integrity verification on the read program, and after the verification is successful, it unloads the currently running FPGA program, completes the loading of the new FPGA program, and performs configuration initialization operations. After the FPGA program is loaded and initialized, the embedded relay protection device automatically triggers the whole machine restart process. After the restart is completed, the newly configured redundant communication mode officially takes effect.
6. The method according to claim 1, characterized in that, The closed-loop verification of the redundant communication function includes: after the embedded relay protection device restarts and loads the corresponding FPGA program, the configured redundant communication mode officially takes effect. Both the MMS communication and GOOSE communication of the embedded relay protection device achieve redundant data transmission through the A / B network ports. Among them, the MMS communication sends data frames in parallel through the dual network ports, and the receiving end executes the processing logic of selecting the first frame for reception and discarding duplicate frames. The GOOSE communication completes the redundant transmission and reception of messages based on the dual network ports, ensuring that when a single network port link fails, data transmission can be seamlessly switched to another normal network port, ensuring the continuity of communication.
7. The method according to claim 1, characterized in that, During redundant communication mode operation, the link status monitoring unit continuously collects and uploads link status data of ports A and B. When any port link fails, the link connection status of that port will be determined as down. This status data is synchronously uploaded to the host computer software and updated in real time. At the same time, the validity of normal port data transmission can be confirmed by frame error rate related data, realizing real-time detection of the correctness of redundant communication status and timely feedback of communication link failure information.
8. A system, characterized in that, include: Memory, used to store computer programs / instructions; A processor for executing the computer program / instructions to implement the steps of the embedded device multi-mode redundant communication configuration method according to any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program / instructions stored thereon, characterized in that, When the computer program / instruction is executed by the processor, it implements the steps of the embedded device multi-mode redundant communication configuration method according to any one of claims 1 to 7.