Modelling and Conversion of Heterogeneous Modbus Protocols Based on UML and MySQL
Weiming Tong, Enrui Zhang, Jiaqi Shen, Wenqi Jiang, Zhongwei Li · 2024
With the development of industrial fieldbus technology, Modbus derives many different variants of protocols, and the communication between devices using different Modbus protocols faces certain challenges. In this paper, starting from the structure and semantics of heterogeneous Modbus protocols, firstly, we complete the construction of Modbus communication message model with UML static diagram, and complete the construction of read-only protocol feature library of Modbus three protocols in MySQL platform; secondly, we use UML behavioural diagram combined with the understanding of the protocol classification of the three protocols to design the conversion process and construct the node state model for simulation, and use the Python language is used to connect to MySQL database to make the protocol feature library accessible and interactive; finally, the converter program is used to operate the message frames based on the database to achieve the mutual conversion of the three heterogeneous Modbus protocols, and Modbus data simulation experiments are carried out to verify the functionality. The results show that the design of this paper has the feasibility and effectiveness, and provides a solution for the communication between devices with different Modbus protocols.