Programmable controller system and control method thereof
By using multi-channel SFP modules and SDN interfaces for optical fiber transmission in high-voltage control systems, combined with self-healing ring networks and prediction algorithms, the stability problem of electrical signal communication in high-voltage environments is solved, and efficient and safe data transmission is achieved.
Patent Information
- Application Number
- CN202410949252.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-16
AI Technical Summary
In high-voltage control systems, electrical signal communication is susceptible to interference from the electromagnetic environment of high voltage and high current, leading to data errors and unstable controller operation.
Multi-channel SFP modules are used for optical fiber transmission, and connected to the SDN controller module through the SDN interface to dynamically adjust the transmission path; prediction algorithms and intelligent routing algorithms are deployed in the CPU unit to achieve self-healing ring networks and wireless backup communications; FPGA chips perform Network encoding processing and encryption processing.
It effectively avoids electromagnetic interference, improves the stability and security of data transmission, and enhances the reliability of equipment operation and the efficiency of data transmission.
Smart Images

Figure CN118502350B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of controllers, and in particular to a programmable controller system and a control method thereof. Background Art
[0002] At present, in high-voltage control systems, communication between controllers is usually based on electrical signals. For example, RS-485 communication and RS-232 communication usually use electrical signals to transmit data. However, electrical signal communication is easily interfered by the high voltage and high current electromagnetic environment in a long-distance, high-voltage and high-interference environment, causing data errors, affecting the stability of data transmission, and further affecting the stability of controller operation. Summary of the invention
[0003] In order to solve at least one of the above-mentioned technical problems, the present invention provides a programmable controller system and a control method thereof.
[0004] In a first aspect, the present invention provides a programmable controller system, comprising a CPU unit, an input / output module, a power module, a programmer, a memory and a communication module, wherein the communication module comprises:
[0005] DSP chip, FPGA chip, multi-channel SFP module and SDN interface;
[0006] The DSP chip is used to process the received data signal and transmit it to the FPGA chip through parallel communication;
[0007] The FPGA chip is used to accelerate the processing of the signal processed by the DSP chip, and to perform redundant communication transmission with multiple SFP modules through the data bus;
[0008] The SDN interface is used to connect to the SDN controller module, so that the SDN controller module adjusts the transmission path of the data signal in the multi-channel SFP module according to the real-time network status and communication requirements.
[0009] The programmable controller system provided by the present invention, wherein the communication module adopts a multi-channel SFP module to realize optical fiber transmission, compared with the use of electrical signals, which are easily interfered by the electromagnetic environment of high voltage and high current in long transmission distances, causing data errors and affecting the operation stability between high-voltage SVG devices, the use of a multi-channel SFP module has better anti-electromagnetic interference, can effectively avoid the interference of the high-voltage and high-current environment, and effectively improves the stability of communication transmission between devices. In addition, the communication module in the present invention can be connected to the SDN controller module by setting an SDN interface, so that the SDN controller module adjusts the transmission path of the data signal in the multi-channel SFP module according to the real-time network status and communication requirements, that is, selects the optimal transmission path that matches the network situation, further improving the communication stability and communication quality.
[0010] Preferably, the multi-channel SFP module adopts a self-healing ring network mechanism, including a main communication link and a backup communication link, for:
[0011] When it is detected that the main communication link is performing data transmission normally, the backup communication link is in a blocked state;
[0012] When a failure of the primary communication link is detected, the self-healing ring network protocol is started to control the data signal to be transmitted through the backup communication link.
[0013] The present invention sets up multiple communication links. When the main communication link communicates normally, the backup communication link is in a blocked state, that is, it will not use the occupied bandwidth; when the main communication link fails, the self-healing ring network protocol will be started to control the data signal to be transmitted through the backup communication link. In this way, the problem of being unable to realize data transmission after a certain communication link fails due to an optical fiber failure can be avoided, and the stability of data transmission is greatly improved.
[0014] Preferably, an intelligent routing algorithm is provided in the SDN controller module, and the intelligent routing algorithm is used to dynamically select the shortest communication path as the main communication link according to network load and delay conditions.
[0015] Since different communication links have different transmission capabilities, considering the transmission efficiency issue, the present invention provides an intelligent routing algorithm in the SDN controller module. The intelligent routing algorithm can dynamically select the shortest communication path as the main communication link according to the network load and delay conditions, thereby making the current transmission path the optimal path, thereby increasing data transmission efficiency.
[0016] Preferably, the CPU unit is also deployed with a prediction algorithm based on machine learning training;
[0017] The CPU unit is also used to collect operating data of the multi-channel SFP modules, input the operating data into the prediction algorithm, and predict the failure probability of the multi-channel SFP modules;
[0018] When the predicted failure probability of the main communication link is greater than a preset threshold, any backup communication link is used as the main communication link for data transmission;
[0019] When it is predicted that the failure probability of a backup communication link is greater than a preset threshold, the corresponding backup communication link is eliminated, and a new redundant link is added as a backup communication link.
[0020] During data transmission, if the path selection is performed only by real-time detection of the communication link status, data transmission delay may occur when resetting the communication link after a link failure. To this end, the present invention also deploys a prediction algorithm based on machine learning training in the CPU unit, which can analyze the operating data of each communication link to predict the failure rate of the link, which is equivalent to prejudging before the failure, so that the network topology relationship between the main link and the backup link can be adjusted in time, thereby ensuring seamless connection communication when the link may fail, and increasing the energy efficiency of data transmission.
[0021] Preferably, the communication module further includes a wireless backup communication module;
[0022] When the data signal is transmitted at the key node, the communication module is used to switch the multi-channel SFP module transmission to the wireless backup communication module, and use any one of WIFI, LoRa and Bluetooth to communicate;
[0023] The key nodes include remote sites, data centers, switches and routers.
[0024] During the data transmission process, if all communication links of the multi-channel SFP module have problems, the data cannot be effectively transmitted. To this end, the communication module provided by the present invention also includes a wireless backup communication module, which can switch the transmission mode when the data is transmitted on the key node, so as to use WIFI, LoRa and Bluetooth to perform wireless transmission, so as to promptly respond to the sudden failure of the optical fiber line and improve the effectiveness of data transmission.
[0025] Preferably, the FPGA chip is also used to perform network coding processing on the signal processed by the DSP chip;
[0026] The network coding includes adding coding information to the data packets of the data signal, so that when the data receiving end detects that the received data is lost, the data receiving end automatically recovers the lost data according to the coding information.
[0027] Network coding can add additional coding information to a data packet, so that even if part of the data packet is lost, the receiving end can recover the original data. The present invention can improve the robustness of data communication and the integrity of data transmission by configuring network coding technology in an FPGA chip.
[0028] Preferably, the DSP chip is also used for encryption processing of received data signals, and the encryption processing adopts algorithms including AES algorithm and RSA algorithm.
[0029] The present invention can protect data from eavesdropping and tampering by adopting an encrypted transmission method, thereby enhancing the security of data communication.
[0030] Preferably, the communication module further comprises an electrical signal transmission module, and the CPU unit is further used to determine the size of the transmission path;
[0031] When it is determined that the transmission path is greater than a preset distance, a multi-channel SFP module is used for optical fiber transmission;
[0032] When it is determined that the transmission path is less than or equal to the preset distance, an electrical signal transmission module is used to perform electrical signal transmission.
[0033] The present invention not only provides an SFP optical fiber communication method, but also provides an electrical signal transmission method. By judging the transmission path, the transmission method is selected so that the controller system can adapt to data transmission in various scenarios, with high flexibility and strong applicability.
[0034] In a second aspect, the present invention further provides a control method of a programmable controller system, referring to the programmable controller system as described in any one of the first aspects, the control method comprising:
[0035] The programmable controller system is used between multiple SVG devices for data redundancy communication, including using the multi-channel SFP module to form multiple communication loops between any two SVG devices; when any communication loop is detected to be faulty, the two SVG devices are controlled to communicate using another communication loop;
[0036] Each of the SVG devices uses the same data format for data transmission.
[0037] Preferably, the SVG device is deployed with edge computing capabilities for performing data processing locally.
[0038] The control method provided by the present invention uses a programmable controller system to perform data redundancy communication between multiple SVG devices, including using a multi-channel SFP module to form multiple communication loops between any two SVG devices; when any communication loop is detected to be faulty, the two SVG devices are controlled to use another communication loop for communication; this can greatly improve the stability of data transmission of the SVG device and the stability of the operation of the SVG device. By deploying edge computing capabilities on the SVG device, part of the data can be processed locally, thereby reducing the burden on the central server and improving the response speed and data processing efficiency.
[0039] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background technology, the drawings required for use in the embodiments of the present invention or the background technology will be described below.
[0041] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and are used to illustrate the technical solutions of the present disclosure together with the specification.
[0042] Figure 1 A schematic diagram of the structure of a programmable controller system provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of a redundant internal communication architecture in a communication module provided in an embodiment of the present invention;
[0044] Figure 3 A schematic diagram of the principle of a communication redundancy method based on SFP provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.
[0047] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0048] In addition, in order to better illustrate the present invention, numerous specific details are provided in the following specific embodiments. It should be understood by those skilled in the art that the present invention can be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present invention.
[0049] At present, in high-voltage control systems, communication between controllers is usually based on electrical signals, which is easily interfered by the electromagnetic environment of high voltage and high current, causing data errors, affecting the stability of data transmission, and further affecting the stability of controller operation. To this end, the present invention provides a programmable controller system, which improves the anti-electromagnetic interference ability of communication loop transmission by adopting an optical fiber transmission mechanism of multiple SFP modules, and improves the stability of data transmission and equipment operation.
[0050] See also Figure 1 , Figure 1 1 is a flow chart of a programmable controller system 100 provided in an embodiment of the present invention. Figure 1 As shown, the controller system 100 includes:
[0051] CPU unit 11, input and output module 12, power module 13, programmer 14, memory 15 and communication module 10;
[0052] The communication module 10 comprises:
[0053] DSP chip 103, FPGA chip 102, multi-channel SFP module 101 and SDN interface 104;
[0054] The DSP chip 103 is used to process the received data signal and transmit it to the FPGA chip 102 through parallel communication;
[0055] The FPGA chip 102 is used to accelerate the processing of the signal processed by the DSP chip 103, and to perform redundant communication transmission with the multi-channel SFP module 101 through the data bus;
[0056] The SDN interface 104 is used to connect to the SDN controller module, so that the SDN controller module adjusts the transmission path of the data signal in the multi-channel SFP module 101 according to the real-time network status and communication requirements.
[0057] In this embodiment, the CPU unit 11, i.e., the central processing unit, is the brain of the controller system 100, responsible for executing user programs, processing input and output data, performing logical operations, arithmetic operations, and other user-defined functions. The input and output module 12 (I / O module) is a bridge for the controller system 100 to exchange information with external devices, wherein the input module receives signals from field devices, and the output module controls the actions of field devices. The power module 13 is used to provide a stable power supply for the controller system 100. In some cases, the power module 13 can also provide isolation protection to prevent external power fluctuations from affecting the operation of the controller system 100. The programmer 14 is used to write and control programs to achieve control of the production process. The memory 15 is used to store user programs, system programs, and working data, etc. The communication module 10 is used for data communication between the controller system 100 and other devices, and can support various communication protocols.
[0058] Since the existing communication methods are still mainly based on electrical signal transmission, they are easily interfered by the electromagnetic environment of high voltage and high current, causing data errors and affecting the stability of data transmission. Therefore, in this embodiment, the communication module 10 adopts the optical fiber transmission mechanism of multiple SFP modules 101. The SFP module is a miniaturized optical transceiver used to convert electrical signals into optical signals and then transmit them through optical fibers, and vice versa. It can support multiple communication standards, such as Ethernet, SONET, etc., and can adapt to the transmission of optical signals of different wavelengths.
[0059] like Figure 1 As shown, the communication module 10 includes a DSP chip 103, an FPGA chip 102, a multi-channel SFP module 101 and an SDN interface 104, and their respective functions are as follows:
[0060] DSP chip 103: DSP chip 103 is a processor specially designed for fast processing of digital signals, with powerful data processing capabilities and efficient algorithm execution capabilities. In the communication module 10, DSP chip 103 is mainly used for signal processing tasks, such as signal modulation and demodulation, filtering, encoding and decoding, noise suppression, etc. It can process a large amount of complex signal data in real time to ensure the quality and integrity of communication signals.
[0061] FPGA chip 102: FPGA is a programmable integrated circuit that can be configured to perform various logic and computing tasks. In the communication module 10, the FPGA chip 102 is usually used to implement high-speed data processing and transmission, such as data packet encapsulation / decapsulation, protocol processing, data flow control and scheduling, etc. The flexibility and parallel processing capabilities of FPGA make it an ideal platform for implementing complex communication protocols and algorithms, and can quickly adapt to network changes and improve communication efficiency.
[0062] Multi-channel SFP module 101: The SFP module is a small pluggable optical module used to achieve high-speed data optical fiber transmission. In the communication module 10, the multi-channel SFP module 101 provides multiple physical interfaces, supports simultaneous transmission of multiple optical fiber links, increases communication bandwidth, and improves network flexibility and scalability. The SFP module can support different transmission rates and distances, and is suitable for long-distance and high-capacity communication needs.
[0063] SDN interface 104: SDN interface 104 is used to connect to an external SDN module, responsible for the formulation and execution of network policies, and can dynamically adjust network paths, optimize data flow transmission, and realize network self-repair and other functions. The SDN module makes the communication system more intelligent, can quickly respond to network changes, and improve network reliability and service quality.
[0064] See also Figure 2 , Figure 2 A redundant internal communication architecture in the communication module 10 is provided. The control core of the entire architecture is the DSP plug-in in the communication module 10 in the controller system 100, which includes a DSP chip 103, an FPGA chip 102 and a multi-channel SFP module. Figure 2 Including SFP1-SFP5. To ensure that the entire communication rate reaches 100M, parallel communication is used between DSP and FPGA, including 16-bit address lines and 32-bit data lines. FPGA chip 102 communicates with multiple SFP modules through LVDS data bus after conversion through internal logic program.
[0065] In summary, the programmable controller system 100 provided in this embodiment, wherein the communication module 10 uses a multi-channel SFP module 101 to realize optical fiber transmission, is compared to the use of electrical signals which are easily interfered by the electromagnetic environment of high voltage and high current in a long transmission distance, causing data errors and affecting the operation stability between high-voltage SVG devices. The use of a multi-channel SFP module 101 has better anti-electromagnetic interference, can effectively avoid the interference of the high voltage and high current environment, and effectively improves the stability of communication transmission between devices. In addition, in this embodiment, the communication module 10 can be connected to the SDN controller module by setting the SDN interface 104, so that the SDN controller module adjusts the transmission path of the data signal in the multi-channel SFP module 101 according to the real-time network status and communication requirements, that is, selects the optimal transmission path that matches the network conditions, further improving the communication stability and communication quality.
[0066] In one embodiment, the multi-channel SFP module 101 adopts a self-healing ring network mechanism, including a main communication link and a backup communication link, for:
[0067] When it is detected that the main communication link is performing data transmission normally, the backup communication link is in a blocked state;
[0068] When a failure of the primary communication link is detected, the self-healing ring network protocol is started to control the data signal to be transmitted through the backup communication link.
[0069] The implementation of self-healing ring network technology usually relies on special network equipment and protocols, which are designed to automatically and quickly switch to a backup path when a communication path in the network fails, thereby ensuring the continuity and reliability of network services. In this embodiment, when the backup communication link is in a blocked state, it usually means that the link is experiencing a high load or failure, resulting in data not being able to pass normally. Once the main communication link fails, the self-healing ring network protocol will be automatically turned on to control the data signal to be transmitted through the backup communication link.
[0070] In this embodiment, multiple communication links are set up. When the main communication link is communicating normally, the backup communication link is in a blocked state, that is, it will not use the occupied bandwidth; when the main communication link fails, the self-healing ring network protocol will be started to control the data signal to be transmitted through the backup communication link. In this way, the problem of being unable to realize data transmission after a communication link fails due to an optical fiber failure can be avoided, which greatly improves the stability of data transmission.
[0071] In one embodiment, an intelligent routing algorithm is provided in the SDN controller module, and the intelligent routing algorithm is used to dynamically select the shortest communication path as the main communication link according to network load and delay conditions.
[0072] Intelligent routing algorithms dynamically select the best data transmission path by analyzing network conditions, such as bandwidth utilization, latency, network congestion, etc., to optimize network performance and resource usage.
[0073] Specifically, intelligent routing algorithms may include Shortest Path First (OSPF) and Multi-Protocol Label Switching (MPLS);
[0074] OSPF is a link-state routing protocol that determines the forwarding path of data packets by calculating the shortest path tree. OSPF divides the network into multiple areas, and each router maintains a link-state database, which contains the topology of the entire network. By using the Dijkstra algorithm, the router can calculate the shortest path to any destination in the network. When implementing, the network needs to be divided first and then the link state is announced and synchronized. Through the SPF algorithm calculation, for example, using the Dijkstra algorithm, each router calculates the shortest path to each destination in the network based on the link state database. Finally, the router's routing table is updated with the calculated shortest path to guide the forwarding of data packets.
[0075] MPLS is a packet forwarding technology that assigns a label to an IP packet when it enters the MPLS domain. After that, the packet is quickly forwarded based on the label without IP lookup when it is transmitted in the network. MPLS supports multiple network layer protocols, such as IPv4 and IPv6, and can implement functions such as traffic engineering and virtual private networks (VPNs). When using this method, you can first use the MPLS edge router (LER) to assign a label to the packet entering the MPLS domain. Then, through the label switching path, the packet is forwarded along a predefined path, which can bypass congested or faulty links. Then, the packet is forwarded. Specifically, the MPLS intermediate node (LSR) quickly forwards the packet based on the label on the packet, without IP lookup, which improves forwarding efficiency. When the packet leaves the MPLS domain, the edge router removes the label and resumes the original IP packet forwarding.
[0076] In a specific embodiment, the intelligent routing algorithm is used to dynamically select the shortest communication path as the main communication link according to the network load and delay, mainly including:
[0077] 1) The SDN controller module needs to obtain the real-time status of the network first, including network topology, traffic conditions, device status, and service quality data; the device status mainly refers to obtaining the health status of the SFP module and other network devices, including indicators such as temperature, voltage, and error rate; the service quality is to identify the service quality requirements of different data streams, such as bandwidth, delay, and packet loss rate.
[0078] 2) The SDN controller module uses intelligent routing algorithms to analyze the network based on the collected data to make path adjustment decisions:
[0079] 2.1) Path optimization function: Find the optimal transmission path to ensure efficient transmission of data streams;
[0080] 2.2) Fault recovery function: Once a link or device failure is detected, the path is immediately recalculated to bypass the fault point and ensure network connectivity;
[0081] 2.3) Load balancing function: distribute traffic among multiple available paths to prevent overload of a link and improve overall network performance.
[0082] After the SDN controller module makes a decision, it sends the updated path and traffic distribution rules to the network switch, and implements continuous monitoring and dynamic adjustment, thus ensuring that the shortest and most optimal communication path can always be used as the main communication link.
[0083] In this embodiment, an intelligent routing algorithm is provided in the SDN controller module. The intelligent routing algorithm can dynamically select the shortest communication path as the main communication link according to the network load and delay conditions, thereby making the current transmission path the optimal path, thereby increasing data transmission efficiency.
[0084] In one embodiment, a prediction algorithm based on machine learning training is also deployed in the CPU unit 11;
[0085] The CPU unit 11 is also used to collect the operation data of the multi-channel SFP module 101, input the operation data into the prediction algorithm, and predict the failure probability of the multi-channel SFP module 101;
[0086] When the predicted failure probability of the main communication link is greater than a preset threshold, any backup communication link is used as the main communication link for data transmission;
[0087] When it is predicted that the failure probability of a backup communication link is greater than a preset threshold, the corresponding backup communication link is eliminated, and a new redundant link is added as a backup communication link.
[0088] During data transmission, if the path selection is performed only by real-time detection of the communication link status, data transmission delay may occur when the communication link is reset after a link failure. To this end, the CPU unit 11 of this embodiment also deploys a prediction algorithm based on machine learning training to allocate communication links by predicting the probability of failure.
[0089] When collecting operating data, the data may mainly include temperature, voltage, optical power, error rate, working time, and restart times. When training the prediction algorithm, the operating data may be cleaned and normalized first, and then trained using a machine learning algorithm. The machine learning algorithm includes but is not limited to random forests, support vector machines, neural networks, regression algorithms, and the like. Assuming that a regression model is adopted, weights may be assigned to the above operating data respectively, and the characteristic values under each operating data are calculated. The failure probability is calculated by weighted summation, and a preset threshold is set to determine how to allocate the main communication link and the backup communication link. If the failure probability of the main communication link exceeds the threshold, switch to the backup communication link. If the failure probability of the backup communication link exceeds the threshold, remove it and try to activate a new redundant link as a backup.
[0090] In this embodiment, a prediction algorithm based on machine learning training is also deployed in the CPU unit 11. The algorithm can analyze the operating data of each communication link to predict the failure rate of the link, which is equivalent to prejudgment before the failure, so that the network topology relationship between the main link and the backup link can be adjusted in time, thereby ensuring seamless connection communication when the link may fail, thereby increasing the energy efficiency of data transmission.
[0091] In one embodiment, the communication module 10 further includes a wireless backup communication module;
[0092] When the data signal is transmitted at the key node, the communication module 10 is used to switch the transmission of the multi-channel SFP module 101 to the wireless backup communication module, and use any one of WIFI, LoRa and Bluetooth to communicate;
[0093] The key nodes include remote sites, data centers, switches and routers.
[0094] Key nodes usually refer to points where data flows converge or disperse in the network, or are particularly important locations in the network. Communication interruptions at these locations may have a significant impact on the stability and service quality of the overall network. In this embodiment, key nodes mainly include remote sites, data centers, switches, and routers;
[0095] Specifically, a wireless backup communication module may be deployed at a key node so that it can interact with the wireless backup communication module of the controller system 100, for example:
[0096] Installing Wi-Fi modules on the network equipment in the data center can automatically switch to the Wi-Fi network when the fiber optic network fails. Although the data rate may be limited, emergency communications can be guaranteed.
[0097] Installing LoRa modules on remote sites or outdoor equipment to communicate with the central node through the LoRaWAN network can keep uploading data and receiving instructions even if the fiber optic line is interrupted.
[0098] For devices that require low power consumption and low data rates, such as sensors, a Bluetooth module can be used to communicate with a nearby gateway to ensure continuous data transmission.
[0099] In addition, in order to realize the automatic switching between the wireless backup communication module and the multi-channel SFP module 101, a corresponding switching mechanism needs to be provided, such as performing fault detection, monitoring the state of the optical fiber network, and immediately starting the switching process once a fault is detected. At the same time, a specific switching logic can also be designed to ensure a smooth transition from optical fiber communication to wireless backup communication.
[0100] Therefore, the communication module 10 provided in this embodiment also includes a wireless backup communication module. When data is transmitted on a key node, it can switch the transmission mode, thereby using WIFI, LoRa, Bluetooth and other methods for wireless transmission, so as to respond to sudden failures of the optical fiber line in a timely manner and improve the effectiveness of data transmission.
[0101] In one embodiment, the communication module 10 further includes an electrical signal transmission module, and the CPU unit 11 is further used to determine the size of the transmission path;
[0102] When it is determined that the transmission path is greater than the preset distance, a multi-channel SFP module 101 is used for optical fiber transmission;
[0103] When it is determined that the transmission path is less than or equal to the preset distance, an electrical signal transmission module is used to perform electrical signal transmission.
[0104] In this embodiment, the communication module 10 can integrate the electrical signal transmission module and the multi-channel SFP module 101 at the same time, and can support electrical signal and optical fiber transmission in the same module, so that the communication module 10 can flexibly select the most appropriate transmission method according to the actual communication needs and environmental conditions. For example, in short-distance scenarios and scenarios that do not require extremely high bandwidth, the electrical signal transmission module can be used for communication; and in long-distance, high-speed or high-reliability communication requirements, the multi-channel SFP module 101 can be switched to for communication. In this way, the controller system 100 can adapt to data transmission in a variety of scenarios, with high flexibility and strong applicability.
[0105] In one embodiment, the FPGA chip 102 is also used to perform network coding processing on the signal processed by the DSP chip 103;
[0106] The network coding includes adding coding information to the data packets of the data signal, so that when the data receiving end detects that the received data is lost, the data receiving end automatically recovers the lost data according to the coding information.
[0107] Network coding can tolerate packet loss to a certain extent by adding additional coding information to the data packet, thereby improving the robustness of communication and data integrity. The following is the "coding information" added by several common coding methods in network coding:
[0108] Linear coding: In linear network coding, the intermediate nodes linearly combine multiple received data packets, that is, treat them as vectors in the vector space and combine them using matrix multiplication. The encoded data packet contains the linear combination result of the original data packet, and the receiving end can restore the original data by decoding the matrix.
[0109] Randomized linear coding: This is an extended linear coding method, in which the intermediate nodes not only perform linear combinations, but also randomly select coefficients for weighting. This can further improve the robustness of the network, and even if there are multiple packet losses in the network, the receiver may still be able to recover the original data through decoding.
[0110] Non-linear coding: Although linear coding is the most common network coding method, there are also non-linear coding methods. In this type of coding, the combination of data packets may involve more complex mathematical operations, such as modular operations, polynomial operations, etc.
[0111] Therefore, this embodiment can improve the robustness of data communication and the integrity of data transmission by configuring the network coding technology in the FPGA chip 102. It can not only improve the network throughput, but also optimize the bandwidth utilization.
[0112] In one embodiment, the DSP chip 103 is also used to encrypt the received data signal, and the encryption algorithm used includes AES algorithm and RSA algorithm. By adopting the encrypted transmission mode, data can be protected from eavesdropping and tampering, and the security of data communication can be enhanced.
[0113] In one embodiment, the present invention further provides a control method of a programmable controller system 100, referring to the programmable controller system 100 as described in any of the above embodiments, the control method includes:
[0114] The programmable controller system 100 is used between multiple SVG devices for data redundancy communication, including using the multi-channel SFP module 101 to form multiple communication loops between any two SVG devices; when any communication loop is detected to be faulty, the two SVG devices are controlled to communicate using another communication loop;
[0115] Each of the SVG devices uses the same data format for data transmission.
[0116] See also Figure 3 , Figure 3 A schematic diagram of the principle of communication redundancy between high-voltage SVG devices based on SFP is provided. Figure 3 As shown, the method consists of an SFP communication module in the controller of the device and a peripheral communication loop optical fiber. Multiple SVG devices communicate with each other through optical fiber, and the communication speed of SFP can reach 100M. The communication between high-voltage SVG devices realizes the redundant design of dual-loop communication through SPF to avoid failures caused by optical fiber disconnection.
[0117] For example, in Figure 3 In the example, when SVG1, SVG2...SVGn communicate through the SFP1 module, a closed communication loop can be formed, namely, communication loop 1; at the same time, SVG1, SVG2...SVGn can also communicate through the SFP2 module and form a closed communication loop, namely, communication loop 2; when a failure of communication loop 1 is detected, communication loop 2 can be used immediately, and vice versa. During the entire communication process, the data format between each SVG device is the same, and each SVG device can be used as both a switchboard and a standby machine, realizing the redundancy function of the SVG host between multiple devices.
[0118] Preferably, the SVG device is deployed with edge computing capabilities for local data processing. Edge computing is a computing architecture that pushes computing tasks and data storage capabilities from traditional centralized servers or cloud platforms to the "edge" of the network, that is, closer to the data source or user. By deploying edge computing, latency can be reduced, bandwidth can be saved, and the efficiency and response speed of data processing can be improved. In edge computing, data is processed near the collection point, rather than being transmitted to a centralized data center or cloud for processing and then returning the results. This can significantly reduce the round-trip time of data in the network, thereby achieving faster response speeds.
[0119] Therefore, the control method provided by the present invention uses a programmable controller system 100 to perform data redundancy communication between multiple SVG devices, including using a multi-channel SFP module 101 to form multiple communication loops between any two SVG devices; when any communication loop is detected to be faulty, the two SVG devices are controlled to use another communication loop for communication; in this way, high-speed communication function and parallel redundancy function between high-voltage SVGs can be realized, greatly improving the stability of data transmission of SVG devices and the stability of SVG device operation. By deploying edge computing capabilities in SVG devices, part of the data can be processed locally, thereby reducing the burden on the central server and improving the response speed and data processing efficiency.
[0120] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0121] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present invention have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.
[0122] In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0123] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0125] A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
Claims
1. A programmable controller system, comprising a CPU unit, an input / output module, a power module, a programmer, a memory and a communication module, characterized in that: The communication module comprises: DSP chip, FPGA chip, multi-channel SFP module and SDN interface; The DSP chip is used to process the received data signal and transmit it to the FPGA chip through parallel communication; The FPGA chip is used to accelerate the processing of the signal processed by the DSP chip, and to perform redundant communication transmission with multiple SFP modules through the data bus; The SDN interface is used to connect to the SDN controller module so that the SDN controller module adjusts the transmission path of the data signal in the multi-channel SFP module according to the real-time network status and communication requirements; The multi-channel SFP module adopts a self-healing ring network mechanism, including a main communication link and a backup communication link, which are used to: When it is detected that the main communication link is performing data transmission normally, the backup communication link is in a blocked state; When a failure of the main communication link is detected, the self-healing ring network protocol is started to control the data signal to be transmitted through the backup communication link; The CPU unit is also equipped with a prediction algorithm based on machine learning training; The CPU unit is also used to collect operating data of the multi-channel SFP modules, input the operating data into the prediction algorithm, and predict the failure probability of the multi-channel SFP modules; When the predicted failure probability of the main communication link is greater than a preset threshold, any backup communication link is used as the main communication link for data transmission; When it is predicted that the failure probability of a backup communication link is greater than a preset threshold, the corresponding backup communication link is eliminated, and a new redundant link is added as a backup communication link.
2. The programmable controller system according to claim 1, characterized in that: The SDN controller module is provided with an intelligent routing algorithm, and the intelligent routing algorithm is used to dynamically select the shortest communication path as the main communication link according to network load and delay conditions.
3. The programmable controller system according to claim 1, characterized in that: The communication module also includes a wireless backup communication module; When the data signal is transmitted at the key node, the communication module is used to switch the multi-channel SFP module transmission to the wireless backup communication module, and use any one of WIFI, LoRa and Bluetooth to communicate; The key nodes include remote sites, data centers, switches and routers.
4. The programmable controller system according to claim 1, characterized in that: The FPGA chip is also used to perform network coding processing on the signal processed by the DSP chip; The network coding includes adding coding information to the data packets of the data signal, so that when the data receiving end detects that the received data is lost, the data receiving end automatically recovers the lost data according to the coding information.
5. The programmable controller system according to claim 1, characterized in that: The DSP chip is also used for encrypting the received data signal, and the encryption algorithm used includes AES algorithm and RSA algorithm.
6. The programmable controller system according to claim 1, characterized in that: The communication module also includes an electrical signal transmission module, and the CPU unit is also used to determine the size of the transmission path; When it is determined that the transmission path is greater than a preset distance, a multi-channel SFP module is used for optical fiber transmission; When it is determined that the transmission path is less than or equal to the preset distance, an electrical signal transmission module is used to perform electrical signal transmission.
7. A control method of a programmable controller system, referring to the programmable controller system according to any one of claims 1 to 6, characterized in that: The control method comprises: The programmable controller system is used between multiple SVG devices for data redundancy communication, including using the multi-channel SFP module to form multiple communication loops between any two SVG devices; when any communication loop is detected to be faulty, the two SVG devices are controlled to communicate using another communication loop; Each of the SVG devices uses the same data format for data transmission.
8. The control method of a programmable controller system according to claim 7, characterized in that: The SVG device is deployed with edge computing capabilities for local data processing.
