| The wide-area monitoring system has been widely used in many fields nowadays. Controlled objects in wide-area monitoring system are diverse, variable and widely distributed compared with those in other monitoring systems. Different kinds of controlled objects require different Data Communication Protocol (DCP). The DCP need to be changed correspondingly when requirements change. As a result, it is necessary to investigate scalable DCP and better strategy of data frame parsing and building.Vehicle monitoring system is an important component of wide-area moitoring system. In this paper, the strategy of data frame parsing and building in vehicle monitoring stystem is studied. The DCP is used to parse and build data frame, in order to make it reconfigurable, scalable and easy to maintain, the software development technology of software refactoring and design patterns is widely used in the code design. Firstly, the DCP is designed to be scalable according to the type of the information exchanged in the vehicle monitoring system. Then, the format of DCP is described in the form of XML (Extensible Markup Language) document to minimize coupling between DCP and codes. Besides, an XML schema document is designed to validate the format of DCP. At last, the whole architecture of software is designed as three-layered structure: Data Access Layer, Business Logic Layer and Presentation layer. At the same time, the codes are designed according to XML Schema document. When the DCP is changed, so long as the corresponding XML document still satisfies the constraints of XML schema document, DCP parser can reconfigure the parsing modules and parse the data frame as usual. When a new field is added to the DCP, DCP parser can also parse the new data frame by simply adding a new parsing module and modifying the corresponding XML document. |