摘要
由于嵌入式Linux系统中设备驱动软件体系结构和设备驱动之间关系复杂和依赖性强,仅从代码层面考虑设备驱动的开发,不但会增加开发的复杂度,而且不利于驱动程序的移植。为了能够正确的开发设备驱动程序,提出了一种设备驱动的UML(统一建模语言)建模分析方法。该方法使用UML首先对Linux中的相关设备体系建立结构模型,然后再建立设备驱动的功能模型、架构模型和动态行为模型。以嵌入式设备中电池管理芯片的驱动实现的过程为例,阐述了使用UML建模方法,达到简化驱动程序的设计与实现,提高驱动程序的可移植性,方便生成测试用例等目的。
Due to complexity of relationship and much dependence between the software architecture of device drivers and the device driver in embedded Linux system, considering development of device driver only from the code level, will not only increase the complexity of the development, and it is not conducive to the transplantation of driver. An analytical method of device drivers by modeling with UML (Unified Modeling Language) was proposed, guaranteeing the device drivers developed correctly. Firstly, the structure model of relative devices in Linux was established using this method with UML, and then function model, architecture model and dynamic behavior model of the device driver were established. The process of developing the driver of battery management chip of an embedded device was taken as an example to illustrate how this method was used to achieve the goal of simplifying the design and implementation, enhancing the portability of the driver, and generating test cases.
出处
《系统仿真学报》
CAS
CSCD
北大核心
2013年第7期1471-1475,1495,共6页
Journal of System Simulation
基金
江苏省科技支撑计划项目(BE2009157)