车载信息平台的操作系统移植及应用研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
近年来随着国家经济的快速发展,汽车的数量正在不断增加,汽车工业已成为国家经济的一大支柱。伴随着汽车工业在我国的飞速发展,汽车电子产业也开始大步前进,而这些都离不开信息技术的支持。信息产业部电子信息产品管理司副司长丁文武指出,汽车电子产业是信息产业的缩影,几乎所有的电子信息产品都可以在汽车整车中应用。而在当前信息技术的应用领域中,发展最快、应用最广、最有发展前景的是嵌入式技术,汽车电子产业的发展将离不开嵌入式技术的支持。
     车载信息平台作为汽车控制系统的核心,是一个典型的实时嵌入式系统,负责汽车的电子控制和数据通讯等任务。既然名称中带有“系统”二字,就必然会涉及到硬件和软件。在嵌入式系统中,软件往往主宰着硬件的功能,尤其是操作系统方面,甚至可能决定着这一产品的销售成败和市场前景。本文所研究的重点就关于车载信息平台操作系统的移植。主要工作有:
     首先从硬件角度简单描述了车载信息平台的功能,确定了要以32位的ARM7芯片LPC2210作为其主控CPU,接下来选择了开源的μC/OS-Ⅱ嵌入式实时操作为系统移植对象,在深入研究操作系统的内核并结合LPC2210编写了为操作系统服务的启动代码后,开始将μC/OS-Ⅱ向LPC2210微控制器上进行移植。移植μC/OS-Ⅱ的目的是为了给嵌入式系统提供一个更稳定也更利于开发的软件平台,更好的为应用服务。基于此,先是通过控制LM75温度传感器测温这样一个实际应用证明了μC/OS-Ⅱ移植的成功,最后又在μC/OS-Ⅱ的基础上移植了MiniGUI这种嵌入式图形界面系统,以提高车载信息平台的人机信息交互能力。
     本文通过研究μC/OS-Ⅱ的移植、基于μC/OS-Ⅱ的温度传感器的应用、以及MiniGUI图形界面系统的移植,获得了ARM7+μC/OS-Ⅱ+MiniGUI这种成本低、开发周期短、智能性高的嵌入式应用方案。
In these years, with the rapid development of the economic of the country, the number of the automobiles is increasing quickly. The industry of automobile has become one of the pillar industries in the country. With the rapid development of the industry of automobile, the automobile electronics industry has also been moving forward with the giant step. And all these never leave the support of the Information Technology (IT). DingWenwu who is the deputy director of the management office for the electronic product of the Ministry of Information Industry says that the automobile electronics industry is the miniature of the information industry. Almost all the electronics and information products can be used in the all parts of an automobile. Now in the applied fields of the information technology, embedded system is that one with the fastest speed of the development, with the widest applied and with the best prospect. The development of the automobile electronics can not leave the support of the embedded technology.
     As the core of the vehicular controlling system, Vehicular Information Platform (VIP) is a typical Real-Time Operating System, it holds many missions such as the vehicular electronics controlling and the data communication and so on. Since there is the "system" in the name, it must do with the hardware and the software. In the embedded system, the function of hardware is always dominated by the software, particularly is the operating system (OS) that even decides the success and failure of the sales and the foreground of the market of the product. About the OS portable for the VIP is the key point of the research of this article. The main works are following:
     First, simple describing the function of the VIP from the angle of hardware, LPC2210 that is the 32 bits core of the ARM7 is defined the dominant CPU of the system. After that, the broaden sources RTOSμC/OS- II that is the object of transplant to the system is chosen. After making a thorough researching of the kernel of the OS and writing the start code to serving theμC/OS- II of the LPC2210, let's start transplant theμC/OS- II to the microprocessor LPC2210. The aim of transplant theμC/OS-II is that provide a stable software platform which is better for the development and the applied to the embedded system. Based on this, at first, it's the instance of an application by controlling the LM75 temperature sensor to survey the temperature to certificate the success of transplant. At last, transplant MiniGUI which is a GUI(Graphics User Interface) based on theμC/OS- II ,for improving the man-machine interactive ability of the VIP.
     In this article, by researching the migrating of theμC/OS- II, the applied of the LM75 temperature sensor and the migrating of the MiniGUI, ARM7+μC/0S- II + MiniGUI as an application version of the embedded system. It has a low cost, a short period of project development cycle and with the great function.
引文
[1] 冯继超.面向二十一世纪的嵌入式系统及发展方向.工业控制计算机,2001(14):5
    [2] 孙钟秀.操作系统教程.北京:高等教育出版社,2003.215~222
    [3] 吴康迪.汽车电子市场财源滚滚.北京:电子经理世界,2006(1):71~74
    [4] 田泽.嵌入式系统开发与应用教程.北京:北京航空航天大学出版社,2005.1~48
    [5] 何荣森,何希顺,张跃.从ARM体系看嵌入式处理器的发展.微电子学与计算机,2002(5):7
    [6] 周洁,杨心怀.32位RISC CPU ARM芯片的应用和选型:[硕士学位论文].上海:上海交通大学,2006.4
    [7] 杜春雷.ARM体系结构与编程.北京:清华大学出版社,2003.27~34
    [8] LPC2210/2220 User Manual. October 12, 2005. 5~18
    [9] 何立民.嵌入式系统的实时性问题.单片机与嵌入式系统应用,2004.9
    [10] Douglass Bruce Powel. Doing Hard Time. USA: Addison Wesley Professional, 1999
    [11] Alan Burns. Scheduling Hard Real-time Systems, A Reviewer Software Engineering Journal 1991. 6(3): 325~328
    [12] 李垣陵.两种嵌入式操作系统的比较.电子产品世界,2002.12
    [13] Alan Burns, Scheduling Hard Real-time Systems, A Reviewer Software Engineering Journal 1991.6(3): 325~328
    [14] 任哲编著.嵌入式实时操作系统国μC/OS-Ⅱ原理及应用.北京:北京航空航天大学出版社,2005.207~225
    [15] [美]Jean J.Labrosse,邵贝贝等译著.嵌入式实时操作系统--μC/OS-Ⅱ(第二版)北京:北京航空航天大学出版社,2003.97~125
    [16] 黄涛,徐宏品,陈宁,聂科峰.嵌入式实时操作系统移植技术的分析与应用.计算机应用,2003.9(23):88~98
    [17] Kenneth A. Reek. POINTERS ON C, 2000: 221~233
    [18] Joseph Lemieux. Programming in the OSEK/VDX Environment. 2004(6): 9~22
    [19] David Brook. Embedded Real Time Operating System and the OSEK Standard. Society of Automotive Engeers, 2000. 1~3
    [20]张宝民,孙晓民.清华OSEK车用嵌入式实时操作系统设计.计算机工程与设计,2004(5):7
    [21] 赵星寒.ARM开发工具ADS原理与应用.北京:北京航空航天大学出版社,2006.12~28
    [22] Jean J.Labrosse著,袁勤勇等译.嵌入式系统构件.北京:机械工业出版社,2002.301~363
    [23] David E. Simon, et al. An Embedded Software Primer. 2005. 329~403
    [24] 许海波,廖传书.移植μC/OS-Ⅱ的关键环节——编写启动代码.中国水运,2007.3
    [25] 黄燕平.μC/OS ARM移植要点详解.北京:北京航空航天大学出版社,2005.72~102
    [26] 胡翌博.基于ARM的嵌入式平台及其移植性研究:[硕士学位论文].浙江:浙江大学,2004(4):6~9
    [27] 周航慈,吴光文.基于嵌入式实时操作系统的程序设计技术.北京:北京航空航天大学出版社,2006.9~15
    [28] Greg Bollella, Kevin Jeffay Supporting Co-resident Operating. In Proceeding of the Real-Time Technology and Applications Symposium. 1995(5): 4~14
    [29] Xiumin Shi, Hongxing Wei. An Embedded Vehicular Integrative Platform Based on CDMA. Mechatronic and Embedded Systems and Applications, Proceedings of the 2nd IEEE/ASME International Conference on Aug. 2006 (5): 1~5
    [30] 李传志主编.汽车车身电子控制系统(第一版).北京:机械工业出版社,2005.7~24
    [31] LM75 Digital Temperature Sensor. http://www.national.Com
    [32] Colnaric, Matjaz. Hardware supported operating system kernel for embedded hard real-time applications. Microprocessors and Microsystems, 1994. 18(10): 579~591
    [33] 周立功等编著.ARM嵌入式系统基础教程.北京:北京航空航天大学出版社,2005.242~261
    [34] 李伟.车载信息显示平台的研究:[硕士学位论文].武汉:武汉理工大学,2006(4):35~48
    [35] MiniGUI技术白皮书.北京飞漫软件技术有限公司,2004.1~10
    [36] MiniGUI用户手册.北京飞漫软件技术有限公司,2004.97~103
    [37] http://www.minigui.org
    [38] MiniGUI编程指南.北京飞漫软件技术有限公司,2004.248~252
    [39] 周立功等编著.ARM嵌入式MiniGUI初步与应用开发范例.北京:北京航空航天大学出版社,2005.173~205
    [40] ARM7TDMI-S (Rev 4) Technical Reference Manual.
    [41] Collier, W.C, Weiland, R.J. Smart cars, smart highways. Spectrum, IEEE Volume 31, Issue 4, April 1994(5): 27-33
    [42] William Wong. lnferno Operating System Burns Its Way Into Embedded Systems. Electronic design,2000.48(16): 26-29
    [43] Machtel, Rzehak. Measuring the Influence of Real Time Operating Systems On Performance and Determinism. Control Engineering Practice,1996.4(10): 1461—1469
    [44] Luca Abeni, Giorgio Buttazzo. Reasource Reservation in Dynamic Real-Time Systems. Real-Time Systems,2004.27(2): 123-167