| DLMS/COSEM protocol system is a novel meter reading protocol system based on Object oriented,which is proposed to satisfy the requirement of compatibility between different equipment and systems and increasing diversity of resource information in the environment where intelligent and auto meter reading are faster developing.At present,this protocol system is regarded as an advanced metering communication standard which represents the develop direction in this area as for its good interoperability and strong scalability for metering information.However,the research work on this protocol system and its application starts relatively late in our country.As a result,it is a necessity to design an intelligent meter device which satisfies the newest DLMS/COSEM protocol to address the unified metering communication protocol problem in auto meter reading industry and at the same time improve the international competitive power of domestic intelligent meter reading device.We mainly focus our work on the realization designing of DLMS data link layer protocol which is modified from HDLC protocol and the corresponding test experiments.The main work consist of two parts: realization designing of the data link protocol software and developing consistency testing software for this protocol so as to provide realization examples for data link layer development and the corresponding consistency testing tool.We first give an overall introduction for DLMS/COSEM protocol system and describe the mechanisms in DLMS data link layer protocol in detail.Secondly,the module structure of data link layer software is designed including frame receiving module,frame processing module,frame transmitting module and the interface module between upper layer and lower layer,etc.In addition,the finite state mechanism is designed as well as the realization of connection management,segmentation transmission for long frame,sliding window based error control and flow control mechanism and consequence the completion of data link layer software.Then,we realize the modularization of consistency testing software which contains: front end module,back end module,channel module and timer module based on the requirement analysis for consistency testing software.In addition,four function optimizations are worked out including the visually of interactive process via naming channel,the simplification of testing environment building via virtual physical layer,flexibility of testing case adding via HS script language and scalability of software development via DLMS protocol logic and back end isolation.Finally,the designed DLMS data link software is tested for consistency via the developed consistency testing software and a third party test platform is utilized to make twice verification.The testing results demonstrated that the designed data link layer software and the developed consistency testing software operate correctly and effectively.This paper has positive referring value for the development of DLMS/COSEM intelligent meter reading device protocol. |