Pluggable communication architecture supporting multiple industrial protocols
By adopting a modular design with a pluggable communication architecture, the shortcomings of traditional industrial communication systems in terms of multi-protocol integration, latency, and reliability are solved. This enables plug-and-play multi-protocol communication, low-latency communication, and high reliability, thereby improving system scalability and maintainability.
Patent Information
- Application Number
- CN202511667700.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-14
- Publication Date
- 2026-02-13
AI Technical Summary
Traditional industrial communication systems are inadequate in terms of multi-protocol integration, system latency, and reliability, making it difficult to adapt to rapidly changing industrial application needs. Furthermore, they have poor scalability, high maintenance costs, and lack flexible plug-and-play deployment capabilities.
It adopts a pluggable communication architecture, including a protocol adapter dynamic loading module, a container orchestration module, an asynchronous processing and connection pool co-optimization module, and a heartbeat detection and automatic fault recovery module. Through layered design and modular technology, it achieves multi-protocol compatibility, low-latency communication, and high reliability.
It achieves multi-protocol plug-and-play functionality, good system scalability and maintainability, reduced communication latency, improved system throughput, and significantly enhanced system reliability and self-healing capabilities, meeting the comprehensive technical requirements of complex industrial environments.
Smart Images

Figure CN121531045A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of industrial automation and industrial communication technology, and more specifically, to a pluggable communication architecture that supports multiple industrial protocols. Background Technology
[0002] With the deepening of Industry 4.0 and intelligent manufacturing, the types of equipment in industrial fields are increasing, and communication protocols are becoming more complex and diverse. Traditional industrial communication systems face severe challenges in dealing with complex technical issues such as multi-protocol integration, system latency, and reliability. Existing systems typically use hard coding to achieve protocol conversion, resulting in poor system scalability, long access cycles for new protocols, and difficulty in adapting to rapidly changing industrial application needs.
[0003] In terms of real-time performance and reliability, traditional communication architectures mostly adopt synchronous blocking communication mechanisms, resulting in generally high system latency. Furthermore, they lack effective automatic fault tolerance and recovery methods when facing network fluctuations or equipment failures, which seriously affects the system stability in scenarios such as robot scheduling and real-time control. In addition, existing systems are often tightly coupled with specific hardware platforms, lacking flexible plug-and-play deployment capabilities, leading to high system upgrade and maintenance costs and low resource utilization.
[0004] Therefore, there is a need in this field for a communication architecture that can collaboratively solve the problems of latency, multi-protocol compatibility and reliability, and realize the dynamic loading of protocol modules, flexible service orchestration and intelligent resource scheduling, so as to meet the comprehensive requirements of modern industrial automation systems for high performance, high reliability and easy expansion. Summary of the Invention
[0005] In view of the above-mentioned technical problems in related technologies, the present invention proposes a pluggable communication architecture that supports multiple industrial protocols, which can overcome the above-mentioned shortcomings of the prior art.
[0006] To achieve the above-mentioned technical objectives, the technical solution of the present invention is implemented as follows: A pluggable communication architecture that supports multiple industrial protocols; This pluggable communication architecture, which supports multiple industrial protocols, includes a protocol adapter dynamic loading module, a container orchestration module, an asynchronous processing and connection pool co-optimization module, and a heartbeat detection and automatic fault recovery module. The protocol adapter dynamic loading module is used to dynamically load and unload adapters for various industrial protocols at runtime; the container orchestration module is used to achieve pluggable deployment and automatic discovery of services through containerization technology; the asynchronous processing and connection pool co-optimization module is used to reduce communication latency through asynchronous I / O processing and connection pool management; and the heartbeat detection and automatic fault recovery module is used to improve system reliability through heartbeat detection and automatic recovery mechanisms.
[0007] Furthermore, the communication architecture adopts a layered design, including a front-end presentation layer, a back-end service layer, a data storage layer, and an external integration layer; The front-end presentation layer is developed using a cross-platform framework to support mobile devices; the back-end service layer is built on an asynchronous framework to provide API services; the data storage layer uses a relational database to ensure data consistency; and the external integration layer connects to industrial equipment and robot platforms through standardized interfaces.
[0008] Furthermore, the various industrial protocols include: the HTTP RESTful API protocol for standardized data exchange, the WebSocket protocol for real-time status push and bidirectional communication, the Modbus TCP industrial protocol for communication with PLC devices, and the Robot Open Platform API for robot control and status query.
[0009] Furthermore, the protocol adapter dynamic loading module adopts a factory pattern and plug-in architecture, supporting hot-swapping of new protocol modules by implementing standard adapter interfaces; the container orchestration module implements service registration, health checks, load balancing, and automatic scaling through container orchestration tools.
[0010] Furthermore, the asynchronous processing and connection pool collaborative optimization module includes: an asynchronous non-blocking I / O processing unit, a connection pool reuse management unit, a multi-level caching architecture, and a message queue buffer unit.
[0011] Furthermore, the heartbeat detection and automatic fault recovery module includes: a redundant backup unit with a master-slave database architecture and multi-instance deployment, an automatic fault detection and switching unit, a data integrity verification and transaction rollback unit, and a hierarchical alarm and adaptive heartbeat detection unit.
[0012] Furthermore, the Modbus TCP industrial protocol adopts a dynamic and scalable address mapping mechanism to support quick mapping for laboratories. Each laboratory adopts a standardized 3-address mapping mode that includes a call feedback address, a queue number address, and an arrival feedback address.
[0013] Furthermore, the backend service layer integrates a WebSocket server, supports real-time message push, and implements a heartbeat detection mechanism through a connection manager to ensure connection stability.
[0014] The beneficial effects of this invention are as follows: Through the dynamic loading and containerized orchestration mechanism of protocol adapters, plug-and-play functionality and flexible deployment of various industrial protocols and services are achieved, thereby enabling the system to have good scalability and maintainability; through asynchronous processing and connection pool collaborative optimization, communication latency is effectively reduced and system throughput is improved; through heartbeat detection and automatic fault recovery mechanisms, system reliability and self-healing capability are significantly enhanced, thereby achieving a comprehensive technical effect of collaboratively optimizing latency, multi-protocol compatibility and reliability in complex industrial environments. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a system architecture diagram of a pluggable communication architecture supporting multiple industrial protocols according to an embodiment of the present invention; Figure 2 This is a multi-protocol integrated architecture diagram of a pluggable communication architecture supporting multiple industrial protocols according to an embodiment of the present invention; Figure 3 This is a deployment architecture diagram of a pluggable communication architecture supporting multiple industrial protocols according to an embodiment of the present invention; Figure 4 This is a module connection diagram of a pluggable communication architecture supporting multiple industrial protocols according to an embodiment of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] like Figure 1-4 As shown in the figure, a pluggable communication architecture supporting multiple industrial protocols according to an embodiment of the present invention includes a protocol adapter dynamic loading module, a container orchestration module, an asynchronous processing and connection pool collaborative optimization module, and a heartbeat detection and automatic fault recovery module. The protocol adapter dynamic loading module is used to dynamically load and unload adapters for various industrial protocols at runtime; the container orchestration module is used to achieve pluggable deployment and automatic discovery of services through containerization technology; the asynchronous processing and connection pool co-optimization module is used to reduce communication latency through asynchronous I / O processing and connection pool management; and the heartbeat detection and automatic fault recovery module is used to improve system reliability through heartbeat detection and automatic recovery mechanisms.
[0019] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the communication architecture adopts a layered design, including a front-end presentation layer, a back-end service layer, a data storage layer, and an external integration layer. The front-end presentation layer is developed using a cross-platform framework to support mobile devices; the back-end service layer is built on an asynchronous framework to provide API services; the data storage layer uses a relational database to ensure data consistency; and the external integration layer connects to industrial equipment and robot platforms through standardized interfaces.
[0020] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the multiple industrial protocols include: an HTTP RESTful API protocol for standardized data exchange, a WebSocket protocol for real-time status push and bidirectional communication, a Modbus TCP industrial protocol for communication with PLC devices, and a robot open platform API for robot control and status query.
[0021] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the protocol adapter dynamic loading module adopts a factory pattern and plug-in architecture, supporting hot-swapping of new protocol modules by implementing standard adapter interfaces; the container orchestration module implements service registration, health checks, load balancing, and automatic scaling through container orchestration tools.
[0022] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the asynchronous processing and connection pool collaborative optimization module includes: an asynchronous non-blocking I / O processing unit, a connection pool multiplexing management unit, a multi-level caching architecture, and a message queue buffer unit.
[0023] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the heartbeat detection and automatic fault recovery module includes: a redundant backup unit using a master-slave database architecture and multi-instance deployment, an automatic fault detection and switching unit, a data integrity verification and transaction rollback unit, and a hierarchical alarm and adaptive heartbeat detection unit.
[0024] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the Modbus TCP industrial protocol adopts a dynamic and scalable address mapping mechanism to support quick mapping of laboratories. Each laboratory adopts a standardized 3-address mapping mode including a call feedback address, a queue number address, and an arrival feedback address.
[0025] According to an embodiment of the present invention, a pluggable communication architecture supporting multiple industrial protocols is provided. In a specific embodiment, the backend service layer integrates a WebSocket server, supports real-time message push, and implements a heartbeat detection mechanism through a connection manager to ensure connection stability.
[0026] To facilitate understanding of the above technical solutions of the present invention, the following detailed description of the above technical solutions of the present invention is provided through specific structures and embodiments.
[0027] In practical applications, the pluggable communication architecture supporting multiple industrial protocols according to the present invention includes an architecture based on a layered modular design, which achieves multi-protocol integration, low-latency communication, and high reliability through the collaborative work of core functional modules. The technical solution of the present invention will be described in detail below with reference to specific embodiments.
[0028] (I) Overall Architecture Design: This architecture adopts a four-layer modular design, including: Front-end presentation layer: Developed using the Flutter cross-platform framework, supporting Android, iOS and Web platforms, implementing a responsive user interface and real-time status display, integrating a WebSocket client to support bidirectional communication with the backend, and featuring offline caching and data synchronization functions.
[0029] Backend service layer: Built on the FastAPI asynchronous framework, it provides RESTful API interfaces and WebSocket servers, supports high-concurrency request processing and real-time message push, unifies access interfaces for different industrial protocols through multi-protocol adapters, and adopts a microservice architecture to achieve independent deployment and expansion.
[0030] Data storage layer: It adopts PostgreSQL relational database to ensure data consistency and ACID transaction characteristics, integrates Redis caching system to improve data access speed, and supports master-slave replication, automatic failover, connection pool management and data backup and recovery mechanism.
[0031] External integration layer: Connects industrial equipment and robot open platform through standardized interfaces, supports Modbus TCP protocol for communication with PLC devices, and realizes protocol conversion and data format standardization.
[0032] (II) Implementation of core functional modules: Protocol adapter dynamically loads modules: Employing a factory pattern and plug-in architecture, a standard protocol adapter interface is defined (including connection establishment, data transmission, data reception, and connection closure methods). New protocol modules achieve hot-swappable integration by implementing this interface. Runtime dynamic loading and unloading are supported, and zero-downtime expansion is achieved through a module registration mechanism, dependency injection container, and lifecycle management. Specific protocol integrations include: HTTP RESTful API: Based on the FastAPI framework, it provides a standardized data exchange interface, supporting robot calls, status queries, and task management.
[0033] WebSocket: Establishes long-lived connection channels, enables broadcasting, peer-to-peer and group message push through a connection manager, and integrates a heartbeat detection mechanism.
[0034] Modbus TCP: It adopts a dynamic and scalable address mapping mechanism, supports fast mapping of unlimited labs, and each lab uses a standardized 3-address mode (call feedback, queue number, arrival feedback). It achieves intelligent address space management through dictionary mapping structure and dynamic configuration loading, and integrates asynchronous I / O processing, connection pool management and error retry mechanism.
[0035] Robot Open Platform API: Integrates OAuth2.0 authentication, status data parsing, error retries, and connection pool optimization.
[0036] Container orchestration module: It employs Docker container orchestration technology, using Docker Compose to define service dependencies and network configurations, enabling service registration and discovery, health checks, load balancing (round-robin or least connections algorithm), automatic scaling, and network isolation. It supports multi-instance deployment and failover.
[0037] Asynchronous processing and connection pool collaborative optimization module: By avoiding thread blocking through asynchronous non-blocking I / O processing, combined with a connection pool reuse mechanism (database connection reuse rate over 95%), a multi-level caching architecture (memory-Redis-database three-level cache), and a message queue (based on token bucket algorithm for traffic shaping, priority queues, and backpressure control), communication latency is reduced from 500-1000ms to 50-100ms, and system throughput is increased to 1000+ TPS. A performance monitoring system is also integrated to dynamically adjust parameters to optimize latency and throughput.
[0038] Heartbeat detection and automatic fault recovery module: By employing redundant backups (master-slave database architecture and multi-instance deployment of application services), automatic fault detection and failover, data integrity verification (CRC check and transaction rollback), and a tiered alarm mechanism, system availability is improved to over 99.9%, with fault recovery time less than 30 seconds. Specifically, this includes: Heartbeat detection and health monitoring: Multi-dimensional checks on service status, network connectivity, and resource utilization, adaptively adjusting the detection frequency, with fault detection time less than 5 seconds.
[0039] Automatic recovery capabilities: Supports automatic service restart, automatic connection reconnection, automatic load migration, and automatic configuration repair.
[0040] (III) Key performance parameters: Latency and throughput: Communication latency is optimized to 50-100ms, and system throughput reaches 1000+ TPS.
[0041] Reliability metrics: System availability 99.9%, fault recovery time <30 seconds, RPO=0.
[0042] Protocol integration efficiency: The integration time for the new protocol module has been reduced from several days to several hours, and it supports protocols such as Modbus, Profibus, and Ethernet / IP.
[0043] Scalability and maintainability: Through dynamic address mapping and container orchestration, it supports unlimited lab expansion, reducing deployment time from days to hours and reducing operation and maintenance costs by more than 60%.
[0044] The implementation of the present invention will be described in detail below with reference to two typical embodiments, but the scope of protection of the present invention is not limited to the following embodiments.
[0045] Example 1: Containerized Deployment Based on Docker This embodiment provides a deployment scheme based on Docker containers, and the specific implementation is as follows: 1: Hardware Environment Configuration Processor: Supports Intel x86_64 or ARM64 architecture, 4 cores or more Memory capacity: 8GB or more Storage device: SSD hard drive, 100GB or more of available space Network interface: Gigabit Ethernet interface Operating system: Ubuntu 20.04 LTS or CentOS 8 or later 2: Software Environment Configuration The system adopts a Docker containerized deployment solution and includes the following core components: Docker Engine version 20.10 and above Docker Compose version 1.29 and above PostgreSQL 17 database container Redis 7 caching container Nginx reverse proxy container Application service container 3: Deployment Architecture Implementation The entire system adopts a microservice architecture, orchestrating multiple container services using the Docker Compose tool. Each service communicates securely through a custom network, achieving service isolation. It supports independent service expansion and version management, and the number of service instances can be dynamically adjusted based on system load.
[0046] 4: Configuration Management Solution It employs a management approach combining environment variables and configuration files, with sensitive information secured through Docker Secrets. It supports configuration isolation across development, testing, and production environments, and provides configuration verification and error checking mechanisms.
[0047] Example 2: High Availability Deployment in Production Environments This embodiment provides a high-availability deployment solution for a production environment: 1: Implementation of High Availability Architecture A master-slave database architecture is adopted to achieve data redundancy backup and failover. Application services are deployed in a multi-instance mode, and requests are distributed through a load balancer. An integrated system monitoring and log collection system is provided to achieve comprehensive monitoring of operational status and to provide automated backup and recovery mechanisms.
[0048] 2: Monitoring and Maintenance Solution Integrate a web-based monitoring system to continuously collect system performance metrics. Build a visual monitoring dashboard based on ECharts to display operational status. Integrate a log aggregation system to uniformly manage the operational logs of all components and establish a tiered alerting mechanism to ensure timely notification of system anomalies.
[0049] 3: Safety Protection Measures Implement network access control policies to restrict unnecessary network connections. Employ HTTPS protocol to encrypt data transmission, establish user authentication and authorization mechanisms, and strictly control system access permissions. Regularly perform security scans and vulnerability patching to ensure secure system operation.
[0050] Technical performance comparison and analysis: The table below shows the comparison results of the key performance indicators between the present invention and the traditional industrial communication system:
[0051] Test environment description: Hardware configuration: Intel Xeon E5-2680 v4 CPU, 64GB RAM, SSD storage Network environment: Gigabit Ethernet, LAN testing Test load: Simulate 100 concurrent clients and run continuously for 24 hours. Test Protocol: Simultaneously integrates Modbus TCP, HTTP RESTful, and WebSocket protocols. Test results show that the present invention is significantly superior to traditional industrial communication solutions in key indicators such as latency, reliability, and scalability, and performs particularly well in handling complex technical problems.
[0052] In summary, by utilizing the above-described technical solution of the present invention, the following significant technical advancements have been achieved: In terms of communication latency optimization: by adopting asynchronous I / O processing and connection pool collaborative optimization technology, the system communication latency is reduced from 500-1000ms in the traditional solution to 50-100ms, the response speed is improved by 5-10 times, and the system throughput reaches 1000+ TPS, meeting the needs of high-concurrency industrial application scenarios.
[0053] In terms of system reliability: Through redundant backup and automatic fault recovery mechanisms, the system availability is increased from 95% in the traditional solution to over 99.9%, the fault recovery time is shortened to less than 30 seconds, the data protection goal of RPO=0 is achieved, and business continuity is ensured.
[0054] Regarding multi-protocol compatibility: Based on the dynamic loading mechanism of protocol adapters, the integration time of new protocol modules is shortened from several days to several hours, supporting seamless integration of various industrial protocols such as Modbus, Profibus, and Ethernet / IP, with protocol compatibility improved by more than 80%.
[0055] In terms of deployment efficiency: Container orchestration technology enables pluggable deployment, reducing system deployment time from several days to several hours, supporting dynamic service expansion and automatic discovery, reducing operation and maintenance costs by more than 60%, and improving system maintenance efficiency by 3 times.
[0056] This architecture innovatively achieves a collaborative solution for latency optimization, multi-protocol compatibility, and reliability assurance. Through the organic combination of various technical modules, it has achieved significant improvements in key indicators such as average response latency, system throughput, availability, fault recovery time, and protocol integration efficiency, providing a complete communication solution for industrial automation systems.
[0057] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A pluggable communication architecture supporting multiple industrial protocols, characterized in that, It includes a protocol adapter dynamic loading module, a container orchestration module, an asynchronous processing and connection pool co-optimization module, and a heartbeat detection and automatic fault recovery module; The protocol adapter dynamic loading module is used to dynamically load and unload adapters for various industrial protocols at runtime; the container orchestration module is used to achieve pluggable deployment and automatic discovery of services through containerization technology; the asynchronous processing and connection pool co-optimization module is used to reduce communication latency through asynchronous I / O processing and connection pool management; and the heartbeat detection and automatic fault recovery module is used to improve system reliability through heartbeat detection and automatic recovery mechanisms.
2. The pluggable communication architecture supporting multiple industrial protocols according to claim 1, characterized in that, The communication architecture adopts a layered design, including a front-end presentation layer, a back-end service layer, a data storage layer, and an external integration layer; The front-end presentation layer is developed using a cross-platform framework to support mobile devices; the back-end service layer is built on an asynchronous framework to provide API services; the data storage layer uses a relational database to ensure data consistency; and the external integration layer connects to industrial equipment and robot platforms through standardized interfaces.
3. A pluggable communication architecture supporting multiple industrial protocols according to claim 1, characterized in that, The various industrial protocols include: the HTTP RESTful API protocol for standardized data exchange, the WebSocket protocol for real-time status push and bidirectional communication, the Modbus TCP industrial protocol for communication with PLC devices, and the Robot Open Platform API for robot control and status query.
4. The pluggable communication architecture supporting multiple industrial protocols according to claim 1, characterized in that, The protocol adapter dynamic loading module adopts a factory pattern and plug-in architecture, supporting hot-swapping of new protocol modules by implementing standard adapter interfaces; the container orchestration module implements service registration, health checks, load balancing, and automatic scaling through container orchestration tools.
5. A pluggable communication architecture supporting multiple industrial protocols according to claim 1, characterized in that, The asynchronous processing and connection pool collaborative optimization module includes: an asynchronous non-blocking I / O processing unit, a connection pool reuse management unit, a multi-level caching architecture, and a message queue buffer unit.
6. The pluggable communication architecture supporting multiple industrial protocols according to claim 1, characterized in that, The heartbeat detection and automatic fault recovery module includes: a redundant backup unit with a master-slave database architecture and multi-instance deployment, an automatic fault detection and switching unit, a data integrity verification and transaction rollback unit, and a hierarchical alarm and adaptive heartbeat detection unit.
7. A pluggable communication architecture supporting multiple industrial protocols according to claim 3, characterized in that, The Modbus TCP industrial protocol adopts a dynamic and scalable address mapping mechanism to support quick mapping for laboratories. Each laboratory adopts a standardized 3-address mapping mode that includes a call feedback address, a queue number address, and an arrival feedback address.
8. A pluggable communication architecture supporting multiple industrial protocols according to claim 2, characterized in that, The backend service layer integrates a WebSocket server, supports real-time message push, and implements a heartbeat detection mechanism through a connection manager to ensure connection stability.