R & D of High-performance CAN Bus Gateway Controller for Car Based on LPC2294

Author
LiJinLiang
Advisor
SongZhanWei
School
Jilin University
Major
Circuits and Systems
Classification
TP273 Automatic control,automatic control system
Degree
Master's thesis
Year
2010
Downloads
356
Citations
2

Request the full text

Abstract

With the continuous development of automotive electronics LPC2294 automotive performance CAN bus gateway controller-based R \u0026 D, the communication between interior automotive electronic control unit is no longer the traditional point-to-point communication, instead of using the CAN (Controller Area Network) bus for communication. CAN bus originally appeared in the automotive industry in the late 1980s, first proposed by the German Bosch company. CAN bus is a field bus, compared to other fieldbus (such as Lon Works, Foundation Fieldbus, HATR etc.), CAN bus has the following features: multi-master work, any time, on the bus node to the other nodes transmit data; also has robust error handling and detection mechanism, after the destruction of the information transmitted, automatic retransmission; in the node serious case of error, the node can automatically exit the bus, so does not affect the other nodes on the bus. It is CAN bus with the above characteristics, it is not only very suitable for applications in the automotive, and widely used in a variety of industrial control. In the car, a variety of electronic devices on the CAN bus transfer rate requirements are not exactly the same, some need a higher transfer rate (500Kbps), such as ABS anti-lock braking system; Some need a lower transmission rate (125Kbps ), such as the air-conditioned comfort system. Electronic unit for different rates, if the need for the information transmission, the CAN gateway. However, cars traveling on the road will inevitably collide, causing part of the conductor of the CAN bus disconnected, the car part of the electronic control unit can not run, even the vehicle can not travel. Therefore, this is also the stability of the CAN gateway requirements. This study is based on the LPC2294 automotive high-performance CAN bus gateway controller traditional CAN gateway (500Kbps) CAN network, the CAN gateway design in addition to a set of connected high-speed and low-speed (125Kbps) CAN outside the network of the CAN bus (called the master CAN network), there is another group of the same CAN bus (called auxiliary CAN network). When a the main CAN network failure, the gateway controller detects the failure to make the best analysis to decide whether to enable the auxiliary CAN network. In this way, it greatly improves the stability of the entire CAN bus system. This is exactly the innovation of this paper is to study purposes. In order to done, to achieve high-performance CAN gateway controller design, the paper mainly studied the following: First, a detailed account of the CAN bus protocols. CAN control device semiconductor company produced almost all support CAN2.0B specification 2.0B fully compatible with 2.0A This article only tells CAN2.0B. The differential signal transmission on the CAN bus, CAN communication is a point-to-multipoint transmission protocol is not based on the traditional point-to-point transmission protocol address. Other points on the bus when a point transmission data can be thought Recipient ID, they can make processing data transferred on the bus (receiver or discarded), and when the data is correctly received, the receiving convenient to make Acknowledge. The CAN protocol is a very useful feature, either on the bus node can request other nodes send data, this is called remote transmission request (RTR). In addition, CAN protocol there is an advantage, when the bus when adding a new node to communicate without changing the original program, and as long as the new node can know by the ID is to receive or discard the data. CAN bus has four frame types: data frame, remote frame, error frame and overload frame. Its powerful error detection mechanisms, so that it can be a good anti-jamming, greatly enhancing the stability of the transmission. Secondly, the hardware circuit design. Introducing hardware circuit, using the method described in sub-module. Introduces a central controller (LPC2294), it contains an internal 4-channel CAN controller is ideal for use as a gateway. The CAN transceiver PCA82C250, the CAN signal can be converted to a differential signal. In order to facilitate the expansion of the program and the operating system transplant, expanding outside SRAM and NORFLASH, external SD card circuit at the same time, be able to store some of the power-down volatile data. In order to be able to better human-computer interaction, LCD interface circuit and key circuit design. Of course, there are the ISP download serial circuit and JTAG interface circuit. Then, based on the hardware, the software block diagram of the entire system, and the specific function of the realization. In order to be able to complete the entire CAN communication, CAN controller initialization is critical, which requires solid on the CAN protocol master and a deep understanding of the CAN terminology. After initialization is complete, in order to further the completion of the the CAN transceiver program and the filter receiving program. Above successfully completed on the basis of the development of the the CAN gateway application layer protocol. On the system is powered up, the first to start the main CAN network, and then send a broadcast to see the number of nodes of the main CAN online, if the master node of the CAN online is less than the actual number, start the the auxiliary CAN network also sends a broadcast, if than actual fewer nodes, the CAN controller be two CAN nodes of the network, most analysis and decide whether to enable the auxiliary CAN network. Finally, in order to improve the real-time nature of the system, about the transplantation of u C/OS- Ⅱ operating system and applications. u C/OS- Ⅱ the famous embedded real-time operating system, is a preemptive kernel operating system. The successful transplant, it can make the user do not have to care about memory allocation, only need to create a task based on priority. The operating system can manage the memory of the task, and priority, and in accordance with the level of priority, real-time the operation of each task. The paper also describes some debugging method, as well as tips and ideas to debug hardware. Good debugging method can achieve a multiplier effect. The design is done under laboratory conditions. Simulated in the laboratory in order to be able to complete the CAN node information exchange multiple automotive node, respectively, connected to the the main CAN network and the auxiliary CAN network. The analog part of the node manually from the the main CAN network, however, to test the stability of the CAN gateway. Since the design is done under laboratory conditions, so there are a lot of deficiencies. Required in the future to further improve the the hardware PCB board and gateway application layer design, as much as possible the use of automotive electronics unit testing, the design will be completed so closer to reality.

Table of contents

Chapter 1 Introduction 8-17 1.1 research background and significance 8 1.2 Fieldbus Overview 8-11 1.2.1 Fieldbus development history 8-9 1.2.2 fieldbus types of 9-11 1.3 gateway Overview 11-12 1.3.1 gateway defined 11 1.3.2 automotive CAN Gateway Development Overview 11-12 1.4 system solution design and demonstration 12-14 1.4.1 several system programs demonstrate 12-13 1.4.2 central controller select 13 1.4.3 system overall scheme schematic diagram 13-14 1.5 The main content and innovation 14-15 main content of this article 1.5.1 14-15 1.5.2 of this article innovations 15 1.6 thesis chapters 15-16 1.7 This chapter Summary 16-17 Chapter 2 CAN bus protocol and principle 17-24 2.1 CAN bus differential signal 17-18 2.2 CAN bus packet transmission 18-21 2.2.1 frame format 18 2.2.2 frame type 18-21 2.3 CAN bus error handling 21-23 2.3.1 CAN bus error detection 21-22 2.3.2 CAN bus error defined 22-23 2.3.3 CAN bus error level divided 23 2.4 This chapter Summary 23-24 Chapter 3 system hardware schematics and circuit design 24-37 3.1 system hardware framework 24 3.2 central controller LPC2294 24-25 3.3 CAN transceiver 25-27 a 3.4 SRAM, and NORFLASH the peripheral circuits 27-29 3.4.1 LPC2294 external memory controller (EMC) 27-28 3.4.2 SRAM expansion 28 3.4.3 NORFLASH extended 28-29 3.5 EEPROM and SD card 29-31 3.6 LCD LCD circuit 31-33 3.6.1 T6963C LCD control drive 31-33 3.6.2 SMG240128A hardware connection diagram 33 3.7 power circuit 33-34 3.8 crystal oscillator and reset circuit 34-36 3.8.1 Crystal 34-35 a 3.8.2 reset the circuit 35-36 3.9 UART circuit 36 3.10 This chapter Summary 36-37 Chapter 4 system software design and gateway protocol to develop 37-63 4.1 development tools the Overview and used 37-38 4.1.1 Introduction to development tools 37-38 4.1.2 How to set up a project 38 4.2 software overall design 38-41 4.2.1 system software design diagram 39 4.2.2 software overall flow chart 39-41 4.3 software design 41-54 4.3.1 CAN bus initialization 41-44 4.3.2 CAN bus send program 44-48 4.3.3 CAN bus receiving program 48-50 4.3.4 CAN bus filter settings 50-54 4.4 gateway protocol to develop 54-62 4.4.1 CAN bus layered 55-56 the the 4.4.2 application layer protocol Profile 56-57 the the 4.4.3 Gateway Application layer protocol setting 57-58 4.4.4 high-performance the CAN gateway program design 58-62 4.5 of this chapter Summary 62-63 Chapter 5 transplant uC/OS- Ⅱ operating system and application 63-71 5.1 real-time operating system Introduction 63-65 5.1.1 non-preemptive kernel preemptive kernel 63-64 5.1.2 uC/OS- Ⅱ operating system Introduction 64-65 5.2 μC/OS- Ⅱ operating system transplant 65-67 5.3 μC/OS- II application 67-69 5.3.1 μC/OS- Ⅱ specific task to create 68-69 5.4 This chapter Summary 69-71 Chapter 6 system debugging and analysis 71-76 6.1 debugging tools About 71-72 6.1.1 JTAG debug 71 6.1.2 ISP download debugging 71-72 6.2 system debugging and analysis 72-74 6.2.1 hardware correctness confirmed 72-73 6.2.2 program debugging 73-74 6.3 This chapter Summary 74-76 Chapter 7 summarizes 76-77 the References 77-79 Appendix 79-82 Appendix 82-83 Appendix III 83-84 Acknowledgements 84-85 summary 85-87 ABSTRACT 87-89

Related dissertations

  1. Design of Vehicle Data Recorder Based on the Dual Bus
    LinGuoZheng ·University of North ·2012 ·Master's thesis
  2. Analysis of the Effect of IPO Lock-up Period Expiration in Chinese Stock Market
    WangYiMing ·Ningbo University ·2013 ·Master's thesis
  3. The Long-run Performance of IPOs in SME Board and the Vital Factors
  4. Empirical Study of Pead Phenomenon in the A-share Market
    ZhangKangKang ·Shanghai Jiaotong University ·2013 ·Master's thesis
  5. Research on Effect of New Capital Adequacy Ratio Supervision on Credit Behavior of Chinese Commercial Banks
    GongSaiYun ·Hunan University ·2012 ·Master's thesis
  6. Empirical Research of the Long-run Performance of IPO Stocks in A-Share Market of China
  7. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  8. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  9. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  10. Design and Application of the Distributed Monitoring System Based on Embedded Web
  11. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  12. Industrial Field Data Acquisition System Design Based on CAN Bus
  13. Design of the Hazard Source Monitoring System Based on CAN Bus
  14. The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
  15. Research on Data Acquisition System of Can Bus
  16. The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
    QianYiWei ·Hunan University ·2013 ·Master's thesis
  17. Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
    FeiYongYun ·Nanjing Agricultural College ·2013 ·Master's thesis
  18. Design and Implementation of Intelligent Wiring Hardness Detection System
  19. Research on Indoor Localization System for Intelligent Wheelchair
  20. Research on CAN Bus Communication and Application Experiments
    WangHuaWei ·Harbin Institute of Technology ·2012 ·Master's thesis