USB通信接口在汽车行驶记录仪中的应用
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
汽车行驶记录仪主要用于对车辆行驶速度、时间、里程以及有关车辆行驶的其它状态信息进行记录、存储,并可通过通信接口实现数据的上载和下传。在该记录仪的开发过程中,本人的主要工作是设计和实现记录仪的通信接口部分,重点是USB接口通信技术,我们采用了U盘转移数据的方案。本文主要内容:
     首先对汽车行驶记录仪的整体方案进行简介,然后对通信接口部分进行了详细介绍。
     汽车行驶记录仪的通信接口包括:USB接口和RS232接口。本文将分别从两个部分进行介绍:硬件部分,先简介USB总线和RS232总线,然后描述其实现的电路原理图,并对涉及到的主要芯片(串口芯片MAX232、微控制器W78E54、USB接口芯片SL811HS)的功能、性能和使用,进行了详尽的描述;软件部分,先介绍了软件调试工具,然后分析了RS232数据通信协议和USB1.1协议,在此基础上,对其固件程序模块的功能及实现进行了详细的描述,并给出了相应的程序流程图,并且还对其间涉及到的海量存储协议、FAT16文件系统进行介绍。综合本文中的硬件和软件设计,实现了记录仪的RS232串口通信功能,和记录仪对U盘的读写功能。
     最后给出了一个应用实例,并对该项目进行了总结。
Vehicle traveling data recorder is used to record the status, such as velocity, time and mileage, of the vehicle and store the information that should be exported to the computer or other devices through the communication interface. In the study, the main work of mine is to design and realize the communication interface of the recoder, and my emphase is how to design the USB interface, we introduce the scheme of tranfering data. The main content of this paper includes:
    First, I introduce the whole of the vehicle traveling data recorder, and then discuss the communication interface of the recoder in detail.
    The communication interface of the recoder include: USB interface and RS232 interface. This paper will introduce them from two part :In the part of the hardware, firstly brief introduce USB bus and RS232 bus, then describe the circuit diagram of the recorder, and write up the information of the main chips(serial interface chip MAX232 singlechip W78E54 USB interface chip SL811HS), and write up some information about how to use them. In the part of the software, firstly introduce debugging tools, then analyze the RS232 data communication protocol and the USB 1.1 protocol; on these elements, write up the function of every software module, and draw the flow chart of the program; in addition, introduce mass storage protocol FAT file system, because in the program it needs some knowadge about them. We synthetize the hardware and software, and realize the function of the communication of RS232 serial interface the function of the recorder reading and writing USB disk.
    At last, i bring forward one example of the applications.and sum up the project.
引文
1.张弘.USB接口设计.西安:西安电子科技大学出版社,2002
    2.Jan Axelson.USB大全.北京:中国电力出版社.2001
    3.徐永和.USB外围设备设计与应用.北京:中国电力出版社.2002
    4.MindShare Inc,Don Anderson,Dave Dzatko.USB系统体系.中国电力出版社.2003
    5.肖踞雄,翁铁成,宋中庆.USB技术及应用设计.北京:清华大学出版社,2003
    6.孙育才.MCS-51系列单片微型计算机及其应用.南京:东南大学出版社.2000
    7.胡汉才.单片机原理及其接口技术.第一版.北京:清华大学出版社.1996
    8.徐爱钧,彭秀华.单片机高级语言C51应用程序设计.北京:电子工业出版社.1998
    9.张培仁.基于C语言编程MCS-51单片机原理与应用.北京:清华大学出版社.2002
    10.赵亮,侯国锐.单片机C语言编程与实例.北京:人民邮电出版社.2003
    11.戴红梅,胡仁杰.USB总线及USB外设的开发.电测与仪表.2000(12):18~20
    12.莫宏伟,柳泉,赵文华.USB传输技术及其应用.应用科技.2001(10):20~22
    13.陈启美,张静,丁传锁.USB数据流模型.电力自动化设备.2001(3):55~60
    14.吕扬,陈露晨.USB总线协议信息包分析.微型机与应用.2002(1):28~29
    15.汽车行驶记录仪国家标准.GB/T19056——2003
    16.无署名.USB设备枚举过程.网络文章.2002
    17.frank.USB项目技术报告.北航交流.2002
    18. USB Implementers Forum. Universal Serial Bus Specification Revision 1.1
    19. Microsoft Corporation. Microsoft Extensible Firmware Initiative FAT32 File System Specification FAT: General Overview of On-Disk Format. Version 1.03. December 6, 2000
    20. USB Mass Storage Class - Bulk Only Transport
    21. USB Mass Storage Class CBI Transport Specification
    22. Cypress Semiconductor Corporation. SL811HS Embedded USB Host/Slave Controller. March 14, 2002
    23. Cypress Semiconductor Corporation. Interfacing an External Processor to the SLS1 IHS/S. December 3, 2002
    24. Cypress Semiconductor Corporation. SL811HS Linux USB Host Control Driver User's Guide. March 18, 2002
    25. Cypress Semiconductor Corporation. SL811HS/SL811S Errata Embedded USB Host/Slave Controller. April 04, 2002
    26. Cypress Semiconductor Corporation. EZ-811HS Getting Started Development Kit Manual Rev 1.4.

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

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

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