汽车行驶状态记录仪的研究与实现论文——84页
汽车行驶记录仪是一种特殊的数字式电子记录装置,它可以对车辆行驶速度、时间、里程以及有关车辆行驶的其他状态信息进行记录存储,然后通过USB和RS232接口实现数据输出。汽车行驶记录仪的使用不仅可以遏止交通违章、约束驾驶员不良驾驶习惯,而且可以有效地预防道路交通事故的发生,并为执法人员进行事故的分析、处理提供科学、忠实的原始数据,因此在交通运输管理中发挥着十分重要的作用。针对目前汽车行驶记录仪的研究现状,本文设计和实现了一种基于51单片机的汽车行驶记录仪,该汽车行驶记录仪具有实时性好、可靠性高、价格低廉等特点。
本文首先介绍了汽车行驶记录仪的研究背景和发展现状,并分析了记录仪系统需求,制定了记录仪由数据采集子系统、数据存储子系统和通信接口子系统三部分构成的总体结构。
然后介绍了记录仪系统的硬件总体结构设计,具体阐述了各个功能模块的硬件电路设计和实现方法。这些功能模块主要包括:电源,实时时钟,数据采集,数据存储,数据通讯和人机交互。
最后在软件设计部分,根据记录仪各个模块的功能,详细描述了记录仪系统各个任务的设计流程。重点描述了USB通信的实现:利用SL811HST实现USB HOST功能,通过优盘方便快捷地读取记录仪中数据,然后再由PC软件进行分析。对USB HOST中的关键技术:USB设备枚举、BulkeOnly传输协议以及FAT16文件系统的实现做了较详细的说明。
在整个系统的设计中,软硬件系统设计均采用了抗干扰措施,提高了系统的可靠性、稳定性和抗干扰能力。
在本文最后对所做的工作进行了总结,并提出本次设计需要改进之处及对汽车行驶记录仪未来的展望。
关键词:汽车行驶记录仪;单片机;C51;USB;固件编程
Vehicle traveling data recorder (VTDR) is a special digital electronic recorder which used to acquire and store vehicle's traveling speed, time, distance and other related status information, and then transmit data via USB and RS232 interface. The use of vehicle traveling data recorder can not merely halt the break in trafic rules and regulations, restrain the drivers from being drive at bad habit, and can prevent the traffic accident effectively, it can also offer scientific, faithful initial data for the tipstaffs carries on the accidents. So it plays a very important role in transportation management. Aimming at the actuality of the VTDR research, a VTDR is designed in this paper which bases on the 51 MCU. It also has some characteristics such as real-time, high dependability and less cost.
First, VTDR's background and reseach actuality are introducted in the pape. By analyzed the system requirement of VTDR, the system is consisted of data acquisition sub-system, data storage sub-system and correspondence interface sub-system.
And then, hard ware framework is introduced in this paper. And the methods in which every function units of the recorder is designed are also discussed. Those function units mainly include power supply, real-time clock, data collection, data store, data communication, human and machine interface.
At last, in the part of software design, the flow of every task's software is described in the paper, based on the functions of VTDR. It makes use of SL811HS to realize USB HOST function, gets the data from recorder conveniently and swiftly through U disk. Have done more detailed explanation in the key technology of USB Host. Such as enumerating device, Bulk-Onlyt ransmit protocol and FAT16 files ystem. Otherwise, several measures of anti-jamming are adopted in the process of hardware and software designing.
Finally, summarize the all design, point out that needed improvement the prospect of the future of The Vehicle Traveling Data Recorde.
Keywords: Vehicle Traveling Data Recorder; Single Chip Microcomputer; C51; USB; Firmware Programming.