摘要
为了对汽车内部的总线数据传输进行有效的测试和监控,设计了基于微控制器PIC16F877和CAN控制器MCP2510的汽车CAN总线和LIN总线的数据采集模块,该模块接收CAN总线和LIN总线上的数据,经过缓冲后,转化为串口数据发送到计算机,通过计算机上的虚拟仪器软件接收并加以处理,讨论了数据采集模块在与PC的通讯过程中串口失效问题,分析了失效问题的原因,给出了具体传输方案,该方案成功解决了串口可靠性和通讯速率之间的矛盾,对其它串口设备与PC的通讯,也具有很好的借鉴作用。
Data acquisition module based on PIC16F877 microcontroller and MCP2510 CAN controller is designed to test and monitor the vehicle CAN and LIN bus activities. The module is used to transmit the data from vehicle CAN bus and LIN bus to the PC serial port through data buffer, and the data is accepted by the VI software, Failure in serial port communication has been analyzed and the improving method has been given which can solve the mentioned problem successfully and can be an applicable method to other serial port device.
出处
《计算机测量与控制》
CSCD
2007年第2期268-270,共3页
Computer Measurement &Control
基金
国家自然科学基金资助项目(50175057)
关键词
数据采集
串口
失效
汽车总线
data acquisition
serial port failure
vehicle Bus