With the rapid development of IIoT,the exchange and interconnection of data between de-vices have become increasingly important.OPC UA,being an open and cross-platform communica-tion protocol,has gained widespread adoption.This paper presents the design of a dual-mode gate-way based on OPC UA.The OPC UA SDK utilizes the open-source open62541 framework,while the gateway combines the C/S architecture based on TCP/IP with the Pub/Sub architecture based on UDP.This hybrid approach ensures reliable data transmission and seamless integration with other systems using TCP/IP.Moreover,it provides real-time and efficient data transmission,allowing the gateway to handle diverse data splitting requirements.To decouple user programs from devices,the gateway utilizes a configuration file in JavaScript Object Notation(JSON)format to define device in-formation.Additionally,it supports dynamic updating of node and device information by parsing the configuration file.
OPC UAindustrial gatewayopen62541dual-mode gatewayreal-time Linux