基于arm系列(lpc1788)的can总线通讯实现以及j1939协议的研究.doc

  
约38页DOC格式手机打开展开

基于arm系列(lpc1788)的can总线通讯实现以及j1939协议的研究,基于arm系列(lpc1788)的can总线通讯实现以及j1939协议的研究 15700字自己原创的毕业设计,今年最新的,仅在本站独家提交,大家放心使用摘要 研究can总线在工业上的优点,调试can总线自收发以及双节点收发的程序。将lpc1788can控制器的读入与输出连接在一起,并通过keil平台烧录can总线自收发...
编号:80-480493大小:905.11K
分类: 论文>通信/电子论文

内容介绍

此文档由会员 小花仙66 发布

基于ARM系列(LPC1788)的CAN总线通讯实现以及J1939协议的研究

15700字
自己原创的毕业设计,今年最新的,仅在本站独家提交,大家放心使用


摘要 研究CAN总线在工业上的优点,调试CAN总线自收发以及双节点收发的程序。将lpc1788CAN控制器的读入与输出连接在一起,并通过keil平台烧录CAN总线自收发的程序,程序中对CAN总线进行了初始化并设置了接收中断。打开串口显示可以看到CAN总线发送成功以及接收到数据的显示,完成CAN总线的自收发通讯的实现。再将lpc1788与CAN控制器连接在一起,并使用二根总线串行接入到另一个带有CAN控制器的节点上,烧录CAN总线双节点收发的程序,程序对CAN总线以及CAN控制器进行了初始化并设置了发送时钟中断以及接收中断,同时打开串口显示观看是否发送并接收到数据,完成CAN总线双节点收发的实现。CAN总线双节点通讯的程序中改变传输的字节数,来查看传输周期的改变。最后对J1939所定义的物理层、数据链路层、网络层、应用层及错误检测的研究,来熟悉CAN总线的上层协议并切身了解CAN总线在工业应用上的传输
优点。
关键词:CAN总线 lpc1788 J1939协议 keil平台 通讯



Abstract Research the advantages of CAN bus in industry and debug the program of CAN bus selftransceiver . Connect the input and the output of controller lpc1788 CAN together and burn the program of CAN bus selftransceiver by keil platform . The program initializes the CAN bus and set the receive interrupt . Open the serial display ,the signl of CAN bus sendding information succeessfully and the recivering data can be displayed ,complete the self-communication of CAN bus transceiver implementations . Then ,connect the lpc1788 and CAN controller , using two roots to put in another node with CAN controller ,burn the program of CAN bus dual hode transeiver. The program initializes the CAN bus and CAN controller and set the transmit clock interrupt and receive interrupt.At the same time,open the sereial port display to see whether it has sent or receeived data. Finally completing CAN bus dual node transceiver.In the program of CAN bus dual node communication .Change of transmission cyscle.Finally,by the rescarch of defined physical layer,data link layer network layer and application layerand error detection of J1939,to become familiar with the upper layer protocol of CAN and its transfer advantage in industrial application..
Keyword CAN bus lpc1788 J1939 protocol keil platform Communication


目 录
引 言 1
第一章 CAN总线的基本概念及特点 2
1.1 CAN总线的基本概念 2
1.2 CAN总线的产生及发展 2
1.3 CAN总线的特点及优势 3
1.3.1 编码方式 3
1.3.2 信息传输方式 3
1.3.3 位仲裁 3
1.3.4 检错 4
第二章 CAN总线硬件的实现 6
2.1 七层网络结构 6
2.1.1 CAN总线物理层 6
2.1.2 CAN总线驱动层 6
2.1.3 CAN总线协议层 6
2.2 CAN总线硬件结构 6
2.2.1 CAN总线驱动器 7
2.2.2 CAN总线控制器 8
第三章 CAN总线的软件实现 11
3.1 CAN总线传输信息的格式 11
3.1.1 CAN总线的帧类型 11
3.1.2 CAN总线的帧格式 11
3.2 CAN总线线上信息传输方式 14
3.3 CAN总线功能的实现 14
3.3.1 单节点自收发功能的实现 14
3.3.2 双节点收发功能的实现 20
3.4 CAN总线协议层功能的研究 23
3.4.1 J1939网络协议的基本描述 23
3.4.2 J1939协议物理层 23
3.4.3 J1939协议数据链路层 24
3.4.4 J1939协议网络层 28
3.4.5 J1939协议应用层 28
3.4.6 J1939协议故障诊断 29
结 论 32
致 谢 33
参考文献 34