车上总线网络及其与车载网关接口的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着电子技术在汽车上的广泛应用,汽车上的电子设备越来越多,为了减少车身线束和提高可靠性,汽车网络应运而生。同时伴随着互联网络的普及和下一代网络技术的发展,能够提供更多更好服务的车载信息系统将成为未来的汽车里不可缺少的一部分。车载信息系统为了能够提供某些服务就需要掌握汽车在行驶过程中的状态信息,有时候甚至需要直接控制车上的设备,而这些信息和设备则需要通过车上总线网络才能访问和获取。本文设计并实现了具有基本功能的车上CAN、LIN总线网络及其与车载网关的CAN、LIN接口。本文实现的车上总线网络及其与车载网关的应用接口将极大简化车载网关上其它功能应用的后续开发工作,并为车载信息系统的后续研发工作提供技术基础。
     本文设计了车上CAN、LIN总线网络以及车载网关与总线网络接口的整体结构、功能和各个部分间的协议规则;参照项目需求提出了CAN、LIN网络的结构定义、功能需求分析和协议定义,并完成了网络上节点的软硬件设计;实现了车载网关上的CAN、LIN网络接口的硬件设计以及软件部分的设备驱动程序和部分应用接口程序;进行了装车实验及测试工作,通过装车实验及测试对本文的工作成果进行了检验,完成了设计目标并给出了下一步的开发建议。本文设计开发的车载网关CAN、LIN网络接口,让后续的应用开发工作变得简单透明,对车载网关和车上总线网络的发展具有现实意义。
With the development of electronic technique and its wider use on the automobile, there are more and more electronic equipments, and these electronic devices usually centralized controlled by the electronic control system. Traditional electronic control system can improve a vehicle’s dynamics, economy and comfort, but some problems also have come up, such as the body wiring complexity, space constraints and some reliability issues. In order to solve these problems, in the integration of computer networks and modern control technology, the vehicle network technology has been generated. Vehicle network has many advantages, such as a significant reduction of wiring harness, reducing body weight and costs, improving the efficiency of fault diagnosis and enhancing the level of intelligent control. At present, some vehicle buses have been already put into used, such as CAN bus, LIN bus, MOST, and Flexray. Different applicants can select proper one to achieve their purposes. Because of the good network transmission characteristics and low cost, CAN bus is considered as the most popular solution for vehicle network.
     Network is the largest hot spot of automobile electronics. Various kinds of buses can improve the vehicle performance, and the market scope will continue growing. However, in a short period of time, there can not have a uniform solving method of automotive network to satisfy all the requirements. Vehicle bus network will maintain the competition situation for a long time, and now for different applications, a model uses two or more kinds of buses to connect different application-level electronic control systems. Although the automobile network has realized information transmission and data exchange between electronic control systems in the same network, exchange of information between different buses, and automotive electronic control system information interaction with the outside world are beyond its ability.
     Future automobile will become a terminal of internet, and in-vehicle information system will be an indispensable part of automobile. The complex information need to be accessed and acquired in automobile, and these are basic information for the various services of future Network vehicles. The application interface between vehicle network and in-vehicle gateway is the key part of development. The interface provides great facilitation for the follow-up development. Without knowing what's the data communication form in vehicle bus and how the vehicle electronic control module have implemented, application layer software developers can complete the development works based on corresponding interface protocols only.
     The study of in-vehicle gateway in this paper is based on the National Development and Reform Commission (NDRC) project“IPv6-based in-vehicle information system research and industrialization”. The purpose of the project is to support the next generation of in-vehicle information systems. The work in this article is the key technique of IPv6-based in-vehicle information system, and has practical significance to future networke automobile. The major work is divided into two parts: first part, the design and implementation of vehicle network are completed, mainly about CAN, LIN bus network within vehicle environment; another part, the interface between vehicle bus and gateway is constructed. At the aspect of hardware, A CAN and a LIN bus which have the basic functions are constructed. In-vehicle gateway used SAMSUNG’s S3C2410 processor, and hardware development environment makes from the core board and bottom board (peripherals board or basic board). The core board integrates the SAMSUNG’s S3C2410 processor, the 16M and 64M FLASH SDRAM, and backplane provides the mainly peripheral interfaces. The hardware system has small size, low power consumption and other characteristics, also can load and run the embedded Linux operating system. At the aspect of software, the corresponding codes are programmed to support the protocol transmit, including the design and implementation of CAN Bus and LIN bus interface with In-vehicle gateway, and a part of application programs. The interface can be used by user applications to exchange the in-vehicle informations. In the in-vehicle information system project, such informations are transmitted through wireless communications to the monitor center server by other applications of in-vehicle gateway. This provides a large number of timely and effective informations which are used for automobile online monitoring and fault diagnosis.
     Based on these thoughts mentioned above, this paper implements the CAN, LIN bus application interface with in-vehicle gateway and the corresponding vehicle CAN, LIN bus network. After summarized the former works, the development is improved, and some new methods and techniques are adopted. In the article, the overall structure, functions and requirement definition of gateway interface are presented.
     The main contents of this paper are as follows:
     (1) The paper has introducted the research background on the in-vehicle information systems, and analyzed the necessity and feasibility of implementation of the vehicle bus and its interface with the in-vehicle gateway.
     (2) Through analysis of in-vehicle information system project, and combined with the past development experiences, the paper presents a overall structure, functions and protocols of vehicle bus network and its interface with in-vehicle gateway. The paper also analyses the implementaion Technology for various parts: hardware and software architecture, and designs the protocols between different parts.
     (3) Based on analysis of functional demands, the paper completes the part of vehicle Bus Network Design and Implementation, including CAN, LIN bus structure definition, functional requirement analysis and protocol definition, as well as the hardware design and software implementation of the nodes in the network.
     (4) In this article, we particularly present the design and implementation of vehicle bus interface with in-vehicle gateway. First, a brief introduction of gateway hardware platform, software platform, and embedded Linux system device driver development are given. On this basis, we focused on the hardware design about the CAN, LIN interface with the in-vehicle gateway, as well as the device drivers and some application programs.
     (5) After completion of works above, a prototype system is installed in a automobile and tested. The works include the choice of models, vehicle wiring installation, distribution of nodes, etc. And cooperating with other applications, we carry out the tests of integrated system, including system hardware and system software testing. Finally, test results and recommendations of the next step development are given.
     The research described in this paper is based on the analysis on the trend of in-vehicle information system. The innovation points are shown as follow:
     (1) Construction of in-vehicle gateway hardware and software design. Various vehicle bus networks can seamlessly connect to esch other, and information can be exchanged through intercommunication.
     (2) Adoption of the concept of mid-ware research and development. The equipments developed by this way have a strong expansibility and compatibility, and will have good market prospects.
     (3) ARM-Linux development platform provides a standard interface for all kinds of equipments, and that will facilitate the service provider.
引文
[1] 南金瑞,刘波澜,汽车单片机及车载总线技术,北京理工大学出版社,2005,第 1 版,69~79。
    [2] 秦贵和,宋益青,李宝玲,基于 ARM9 的嵌入式车载网关的软硬件系统设计,微计算机信息,2007,5(23):271~272。
    [3] 饶运涛,邹继军,王进宏,郑勇芸,现场总线 CAN 原理与应用技术,北京航空航天大学出版社,2007,第 2 版,20~37。
    [4] CAN Specification Version 2.0, BOSCH, 1991:34~70.
    [5] 邬宽明,CAN 总线原理和应用系统设计,北京航空航天大学出版社,1996,第一版,1~34。
    [6] 崔代福,魏学哲,孙泽昌,赵格英,LIN 协议及其在轿车车身控制中的应用,自动化与仪表,2002,6(17):4~6。
    [7] 秦贵和,车上网络技术,机械工业出版社,2003,第 1 版,154~166。
    [8] 佟为明,孙凡金,赵志衡,LIN 总线技术,低压电器,2004,2:26~29。
    [9] LIN Consortium, LIN Specification Version 1.2, 2000.
    [10] 王巍,秦贵和,范玮,基于 CAN 总线的汽车车身线束设计,制造业自动化,2005,7(27):71~74。
    [11] Peter Hank, Egon J?hnk, SJA1000 Stand-alone CAN controller Application Note, Philips Semiconductors, 1997.
    [12] Harald Eisele, Egon J?hnk, PCA82C250/251 CAN Transceiver Application Note, Philips Semiconductors, 1994.
    [13] T Nolte, M Nolin, H Hansson, Real-Time Server-Based Communication with CAN, Industrial Informatics, IEEE Transactions on, 2005, 1(3):192~201.
    [14] Data Sheet ADC0803/0804, Philips Semiconductors, 2002.
    [15] 逄玉台,王团部,集成温度传感器 AD590 及其应用,国外电子元器件,2002,7:22~24。
    [16] Data Sheet TJA1020 LIN Transceiver, Philips Semiconductors, 2001.
    [17] Data Sheet L298N Dual Full Bridge Driver, STMicroelectronics, 2000.
    [18] Anders Rylander, Erik Wallin, LIN-Local Interconnect Network-for use assub-bus in Volvo trucks, CHALMERS University of Technology, Master’s Thesis, 2003.
    [19] User’s Manual S3C2410X 32-bit RISC Microprocessor Revision 1.2, SAMSUNG Electronic, 2003.
    [20] 马忠梅,李善平,康慨,叶楠,ARM & Linux 嵌入式系统教程,北京航空航天大学出版社,2004,第 1 版,56~94。
    [21] 程耕国,刘先勇,鲍考明,Linux 内核启动过程分析,计算机工程与设计,2006,9(27):1528~1530。
    [22] 徐英慧,马忠梅,王磊,王琳,ARM9 嵌入式系统设计—基于 S3C2410与 Linux,北京航空航天大学出版社,2007,第 1 版,348~356。
    [23] 孙纪坤,张小全,嵌入式 Linux 系统开发技术详解-基于 ARM,人民邮电出版社,2006,48~72。
    [24] 董志国,李式巨,嵌入式 Linux 设备驱动程序开发,计算机工程与设计,2006,20(27):3737~3740。
    [25] 宋宝华,设备驱动开发详解,人民邮电出版社,2008,第 1 版,74~134。
    [26] 陈莉君,深入分析 Linux 内核源代码,人民邮电出版社,2002,第 1 版,405~445。
    [27] 李顶根,陈军,吴朝晖,基于 Arm-Linux 的车载信息平台的研制,浙江大学学报(工学版),2006,9(40):1531~1535。
    [28] Data Sheet MCP2510, Microchip Technology, 1999.
    [29] 杨波,徐成,李仁发,嵌入式 Linux 上的 CAN 设备驱动程序的设计,科学技术与工程,2004,12(4):1019~1023。
    [30] 陈祖爵,周明,嵌入式 Linux 下 CAN 控制器的驱动程序设计,计算机工程与设计,2006,21(27):4097~4100。
    [31] 贾明,严世贤,Linux 下的 C 编程,人民邮电出版社,第 1 版,2001,35~42。
    [32] 华韬,阳宪惠,宋明浩,基于 CAN/LIN 网络的汽车门锁控制系统,电子技术应用,2005,11:29~32。
    [33] Michael R. Sweet, Serial Programming Guide for POSIX Operating Systems, 5th Edition, 3nd Revision, 2005, 11~30.
    [34] 彭朝勇,薛兵,一种嵌入式Linux串口驱动开发模式,微计算机信息,2007,14(23):56~57。
    [35] 田志辉,蒋蓁,吉梅峰,基于嵌入式LINUX的串口通信技术在超小型飞机控制系统中的应用,机电工程,2005,2(22):1~5。
    [36] 任凤文,一汽大众捷达牌轿车电路原理图,汽车电器,1998,4:22~27。
    [37] 杨妙梁,车用线束与CAN总线控制车内通信技术的发展动向,汽车与配件,2006,22:50~54。
    [38] 谷孝卫,汽车线束设计及线束用原材料,汽车电器,2006,10:16~19。
    [39] 张卫红,汽车灯具的线束设计,汽车电器,2006,11:11~12。

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700