摘要CAN是控制器局域网络(Controller Area Network, CAN)的简称,是国际上应用最广泛的现场总线之一。本文对CAN总线的研究背景、发展现状及研究意义进行了论述,简单介绍了CAN总线相关技术规范,并且基于VC++设计了CAN通信软件。软件实现的功能包括:正确识别CAN设备并打开CAN通道;可封装CAN报文进行发送;可接收CAN数据帧,并能对接收的数据帧进行解析;具有过滤功能,可不显示指定的协议帧。最后,对软件功能进行测试并发布。67181
毕业论文关键词 CAN总线 VC++ 通信软件
毕业设计说明书(论文)外文摘要
Title Design of PC Communication Software Based on CAN bus Communication System
Abstract
CAN,which is short for Controller Area Network,is the world's most widely used field bus.CAN-bus is mostly used in network formation of industrial control systems and vechile control system.
This paper discussed the background,development status and the research significance of CAN bus, gave an outline of the CAN-bus relevant technical specifications,and designd the CAN communication software based on Visual C++.Functions implemented include:Correctly identify the CAN device and open the CAN channels;CAN messages can be sent encapsulated; CAN data frames can be received,and is able to parse the received data frames;Has a filtering function,do not display the specified protocol frame.At last,Tested and released the software.
Keywords CAN-bus VC++ Communication software
目 次
1 绪论 1
1.1 研究背景 1
1.2 研究目的和意义 1
1.4 论文结构安排 2
2 CAN总线协议分析 3
2.1 CAN-bus 规范V2.0 版本 3
2.2 CAN控制器SJA1000 6
2.3 本章小结 7
3 开发环境介绍 7
3.1 开发环境 7
3.2 CANUSB—Ⅰ/Ⅱ智能CAN接口卡 7
3.3 本章小结 9
4 CAN通信软件设计 9
4.1 驱动程序安装 9
4.2 CAN接口卡函数库说明 9
4.3 界面设计 12
4.4 软件功能实现 16
4.5 本章小结 23
5 测试及发布 23
5.1