The implementation of IEC60870-5-104 based on UML statechart and Qt state machine framework

Design based on finite-state machine (FSM) is a good solution to for event driven systems[3], but for large complex systems, the state diagrams of FSM are hard to read, difficult to draw and change, non-user-friendly, not good for stepwise refinement, cannot be decomposed into executable code[7], because traditional FSM is flat, having no hierarchy and lack of support for concurrent states [6], statecharts[8] overcome this limitation of traditional FSM. This paper gives the analysis of IEC-60870-5-104 communication protocol using UML statecharts, and gives implementation based on Qt State Machine Framework. The result shows our implementation meets the main function of the protocol. Design using UML statecharts make the statechart of IEC104 is very clear and easy to read. The research is also helpful to implement other communication protocol even other event driven systems.

[1]  S. D. Dewasurendra,et al.  Statechart based modeling and controller implementation of complex reactive systems , 2011, 2011 6th International Conference on Industrial and Information Systems.

[2]  Fu Qin-cui,et al.  Implementation of IEC60870-5-104 protocol based on finite state machines , 2009, 2009 International Conference on Sustainable Power Generation and Supply.

[3]  Ashish Kumar SCHAEM: A Method to Extract Statechart Representation of FSMs , 2009, 2009 IEEE International Advance Computing Conference.

[4]  David Harel,et al.  Statecharts: A Visual Formalism for Complex Systems , 1987, Sci. Comput. Program..