Research of CAN/LIN Protocol Converting Gateway Based on FPGA

Author
HouDianHua
Advisor
ChenXing
School
Dalian University of Technology
Major
Industrial Engineering
Classification
TP393.05 Network equipment
Degree
Master's thesis
Year
2008
Downloads
272
Citations
0

Request the full text

Abstract

With the development of field bus technology,multi-bus networking technology is widely applied.The CAN/LIN networking application is most widespread.There are many advantages to apply of CAN/LIN networking technology.Firstly,compared to CAN Bus node, the biggest advantage of LIN-Bus is cost savings of nodes.In particular,when there are many nodes,the total cumulative cost savings of nodes is very significant.Secondly,internal communications of LIN-bus network can greatly reduce the burden of the backbone network of CAN-bus,and reduce the possibility of data blocking in the CAN-bus.This is important to a real-time control system.Therefore,CAN/LIN networking technology is widely applied in many fields for its low-cost and outstanding features.Generally CAN/LIN protocol converting gateway is applied to realizing the CAN/LIN networking technology.This paper designs a CAN/LIN protocol conversion gateway based on detailed analysis and research on CAN-bus and LIN-bus protocol.The gateway structurally divides into the CAN controller module,the LIN controller module and the protocol converting module.The basic thinking is to integrate the CAN controller and the LIN controller to a chip,and realize the data transformation through the protocol converting module.The Gateway allows the transparent transmission of message between the CAN network and LIN network.After receiving a L1N frame,gateway will convert LIN ID into CAN ID,then transmits as the CAN data frame in the CAN network.Aider receiving a CAN frame,gateway will convert CAN ID into LIN ID,then transmits as the LIN frame in the LIN network.This paper emphatically discusses the design methods of the related modules in the gateway,as well as the main implementing procedure of the modules.Some related simulation wave forms are also included.Altera’s QuartusⅡis selected as the design platform to realize the programming of the function modules in the gateway with the VerilogHDL hardware description language.The FPGA development board is used as the hardware platform to carry on the system verification.The gateway with major function block in one chip has high reliability,and is more compact and easier to use,will certainly be applied widely.

Table of contents

Abstract 4-5 Abstract 5-9 1 Introduction 9-13 1.1 Fieldbus review 9-10 1.1.1 CAN bus Review and Features 9 1.1.2 LIN bus Review and Features 9-10 1.2 protocol conversion gateway review 10-11 1.3 research background and work content 11-13 1.3.1 research background 11-12 1.3.2 issue work content 12-13 2 CAN and LIN bus protocol specification analysis 13-23 2.1 CAN bus protocol specification 13-18 2.1.1 CAN basic concepts 13 2.1.2 packet transmission and frame format 13-18 2.2 LIN bus protocol specification 18-22 2.2.1 LIN basic concepts 18-19 2.2.2 packet transmission and frame format 19-22 2.3 Chapter Summary 22-23 3 protocol conversion gateway overall design 23-30 3.1 introduces the key technologies designed 23-24 3.2 QuartusII -based FPGA design flow 24-25 3.3 protocol conversion gateway function structure 25-27 3.3.1 protocol conversion gateway overall structure 25-26 3.3.2 protocol conversion gateway interface design 26-27 3.4 protocol conversion gateway -related conventions 27-28 3.5 protocol conversion gateway works 28-29 3.6 Summary 29-30 4 CAN controller module design and simulation 30-49 4.1 CAN controller module structure and working process 30-31 4.2 registers control module 31-35 4.3 bit timing logic module 35-39 4.3.1 Bit timing requirements 35-36 4.3.2 sampling points and sending point 36-37 4.3.3 Synchronization 37-39 4.4 receiver buffer FIFO 39-41 4.5 Acceptance Filter 41-42 4.5.1 single filter method 41 4.5.2 Dual Filter mode 41-42 4.6 Bit Stream Processor 42-47 4.6.1 receive data state machine 42-44 4.6.2 Data Receive 44-45 4.6.3 data transmission 45-46 4.6.4 Bit stuffing mechanism 46-47 4.7 Error Management Logic Modules 47-48 4.8 Chapter Summary 48-49 5 LIN controller module design and simulation 49-62 5.1 LIN controller module structure and working model 49-52 5.1.1 LIN controller module structure refinement 49-50 5.1.2 LIN bus controller working model 50-52 5.2 Registers management module 52-55 5.3 serial receiver module 55-57 5.4 received frame processing module 57-58 5.4.1 identifier ID handling 57-58 5.4.2 Data field data processing 58 5.5 Transmit frame processing module 58-59 5.6 serial transmission module 59-60 5.7 clock generator module 60-61 5.7.1 Slave Mode bit computing 60 5.7.2 Host Mode bit computing 60-61 5.8 Chapter Summary 61-62 6 protocol conversion module design 62-73 6.1 protocol conversion module of the overall structure 62-63 6.2 internal register initialization 63-65 6.3 IIC bus master interface design 65-68 6.4 CAN interface processing module design 68-70 6.5 LIN interface processing module design 70-72 6.6 Data Buffer set of modules 72 6.7 Chapter Summary 72-73 7 CAN / LIN protocol conversion gateway system debug 73-78 Conclusion 78-80 References 80-82 papers published during the master's degree case 82-83 Thanks 83-84

Related dissertations

  1. Design and Implementation of LBT in JPEG XR Image Compression Based on FPGA
    LiJianMing ·Northeastern University ·2013 ·Master's thesis
  2. Design of Environment Monitoring System for Power Supply in Mobile Communication Base Station of Hunan Telecom
    XuZuoFang ·Hunan University ·2013 ·Master's thesis
  3. Optical Fiber Perimeter Alarm System Based on DSP and FPGA
  4. Design and Implementation of the Engineering Machinery Color Monitor System Based on FPGA+MCU
    LiuWen ·Xiangtan University ·2013 ·Master's thesis
  5. Digital Electrical Impedance Tomography Hardware System Design Based on FPGA
  6. Study on Magnetic Flux Leakage Testing System of Rail Based on FPGA
  7. Digital Cross Section Data Acquisition System Based on Industrial Standard System Bus
    ZhangZhiQiang ·Tianjin University ·2009 ·Master's thesis
  8. Research of Dual Chanel High Speed Data Acquisition Card
    DanGuangXing ·Harbin Institute of Technology ·2012 ·Master's thesis
  9. Design and Implementation of FPGA-Based Six-Channel Non-Crosstalk Sonar System
    ZuoJiaLin ·Tianjin University ·2012 ·Master's thesis
  10. The Realization of Quality Detection System of Cataplasm Coating Based on FPGA
    LiuRongPeng ·Tianjin University ·2012 ·Master's thesis
  11. Design of Remote Strain Measurement System Based on FGPA
    LiuNanNan ·Harbin Engineering University ·2013 ·Master's thesis
  12. The Design of Digital Ultrasonic Nondestructive Testing System
  13. Design and Implementation of High Speed Data Recorder Based on FPGA
  14. Design of the High-speed Data Acquisition System Based on USB Interface
    LiuYu ·Harbin Engineering University ·2013 ·Master's thesis
  15. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  16. Design and Application of Linear Array Image Acquisition System Based on Compressed Sensing
    XieJiaZu ·Tianjin Normal University ·2013 ·Master's thesis
  17. The Design and Research of PCI Data Acquisition Card Based on FPGA
  18. Usb Without Invasive Data Collection Technology Research
  19. Research on On-line Diameter Measurement System Based on FPGA
  20. Design of High Speed Data Acqusition and Storage System Based on FPGA
    QinJianJun ·Harbin Engineering University ·2013 ·Master's thesis