KNX has become worldwide open standard in home and building automation systems. In this paper, the function of data link layer in KNX Protocol Stack is presented in details. And the finite state stack (FSM) is applied to realize the data link layer which provides the medium access control and the logical link control. There are three problems in the implementation process of the data link layer: the interaction of data link layer, the upper and lower layer; the implementation of data link layer protocol; and the definition of the data structure. The first two are solved using the FSM theory and the rest is designed. Finally, we design the software of data link layer protocol by the above method. And the software testing indicates that it meets the data link layer functionality.
展开▼