Monitoring data acquisition system based on USB-CAN Bus vehicles

Author
WangHaiShan
Advisor
LiYi
School
University of Electronic Science and Technology
Major
Computer System Architecture
Classification
TP274.2 Data collection and processing systems
Degree
Master's thesis
Year
2011
Downloads
193
Citations
3

Request the full text

Abstract

With the integrated circuits and embedded systems are widely used in the automotive industry, the increasing number of electronic controller on Hyundai Motor, the connection and communication between the various system modules and more complex. CAN bus with its high reliability, openness, communication rate is high, and strong expansion capability to become the most important way of the car's internal network communication. CAN bus between various electronic control units in the car by mutual exchange of information and resources, external devices can also be mounted to the CAN bus and CAN communication capabilities, real-time data acquisition via the CAN bus system of the vehicle's internal data communication and monitoring. Most of the CAN bus with the PC-side connection to the traditional old-fashioned interface, RS-232, RS-485 interface has connection cumbersome, slow transfer rate. USB Universal Serial Bus has a plug-and-play, compact, high transfer rate many advantages, and has become the standard expansion interface of the PC. USB bus can be used as a PC with CAN bus communication interface, PC machines connected via the USB interface CAN bus, each node on the CAN bus data acquisition and status monitoring, which greatly expands the application of CAN bus range. The specifications on the basis of in-depth study of USB and CAN bus technology, USB, and CAN bus technology, give full play to the advantages of the two proposed data acquisition system based on USB-CAN Bus vehicle monitoring hardware and software design. Part in the hardware design, the first starting from the chip selection, and then sub-module design a microprocessor peripheral circuits, USB and CAN hardware interface circuit. The firmware also modular design concept, the main monitoring program is divided according to the system as a whole, CAN software part and USB software part. Which take the main program interrupt plus polling processing greatly improve the response speed and throughput of the system in this way. PC-side software to achieve a USB device drivers, communication between the PC and the device provides the underlying security, and application layer software to provide users with a friendly interface, real-time processing and analysis of data collected from the CAN bus display or storage, and also can send control commands to the CAN bus, the corresponding operation of the vehicle system. After debugging reliable operation, the system reached the initial design requirements. The hardware part of the system is compact, low cost, high reliability of the whole system, and good scalability, can be applied to other network systems based on CAN bus, its internal network monitoring and data acquisition.

Table of contents

Summary 4-5 ABSTRACT 5-11 first chapter 11-14 1.1 topics based on research significance 11-12 1.2 research status 12 the 1.3 major work and chapters arrangements 12-14 USB and CAN bus technology research 14-27 2.1 USB bus technology the 14-20 2.1.1 USB characteristics 14 the 2.1.2 USB system structure 14 -16 2.1.3 endpoints and pipes 16-17 2.1.4 USB data transfer type 17-19 2.1.5 USB devices connected Disconnect 19-20 2.1.5.1 USB device connection process 19 2.1.5.2 USB devices disconnect 19-20 2.2 CAN bus technology 20-26 2.2.1 fieldbus technology 20 2.2.2 CAN bus characteristics 2.2.3 CAN 20-21 protocol layer 21-22 2.2.4 CAN bus frame structure 22-24 2.2.5 CAN arbitration mechanism 24-25 2.2 .6 SAEJ1939 agreement 25-26 2.2.6.1 J1939, protocol frame format 25-26 2.2.6.2 is present on the data transfer protocol 26 2.3 of this chapter Summary 26-27 Chapter System Architecture 27-31 3.1 System Description 27-28 3.2 system overall composition 28-30 3.3 Chapter Summary 30-31 Chapter Hardware Design and Implementation the 31-44 4.1 core component selection and introduction to 31-35 4.1.1 microprocessor chip 31-32 4.1.2 USB interface chip 32-33 4.1.3 independence CAN, controller the 33-34 4.1.4 CAN bus transceiver 34-35 4.2 USB interface circuit design 35-37 4.3 CAN interface circuit design 37-39 4.4 microprocessor peripheral circuit design the 39-42 4.4.1 power circuit 39-40 4.4.2 the reset circuit 40-41 4.4.3 crystal oscillator circuit 41 4.4.4 programmer circuit 41-42 4.5 Chapter Summary 42-44 Chapter firmware design the 44-56 5.1 development environment introduced 44 5.2 The main program flow 44-45 < br /> 5.3 Watchdog program design 45-46 5.4 USB firmware design 46-49 5.4.1 USB initialization 46-48 5.4.2 USB packets downstream nbsp the 48 5.4.3 USB packets upload; 48-49 5.5 the CAN firmware design design nbsp ; 49-55 5.5.1 CAN initialization the 50-52 5.5.2 CAN packet receiving 52-53 5.5.3 CAN messages text send 53-55 5.6 Chapter Summary 55-56 Chapter VI PC software design 56-70 6.1 USB driver Design 56-62 6.1.1 WDM driver model 56-57 6.1.2 driver routines designed 57-62 6.1.2.1 DriverEntry routine 57-58 6.1.2.2 plug and play routine 58-61 6.1.2.3 distribution routines 61 6.1.2.4 power management routines 61-62 6.1.2.5 uninstall routine 62 6.2 application layer software design 62-69 <br / 6.2.1 The overall structure the 62-63 6.2.2 Equipment operating the 63-66 6.2.2.1 Open Equipment 64-65 6.2 2.2 Equipment control 65-66 6.2.2.3 Close equipment are found; 66 6.2.3 Data Acquisition 66-68 6.2.4 data send 68 6.2.5 Data Storage 68-69 6.3 Chapter Summary 69-70 Chapter VII system validation and debug 70-77 7.1 firmware programming 70-71 7.2 USB driver installed 71-72 7.3 system debugging 72-76 7.4 Chapter Summary 76-77 Chapter VIII summarizes 77-78 Acknowledgements 78-79 Reference 79 -81

Related dissertations

  1. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  2. Research on Data Acquisition System of Can Bus
  3. The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
    QianYiWei ·Hunan University ·2013 ·Master's thesis
  4. Design of Multi-Sensor Data Acquisition System Based on CAN-BUS
    ZhangZongHang ·Tianjin University ·2012 ·Master's thesis
  5. The Design and Implementation of the Equivalent Test System Integrated Multiple Bus
    SuHuPing ·University of North ·2013 ·Master's thesis
  6. Realization of Data Acquisition and Monitoring Systerm Based on Can Bus in Production Line
    JiangLiLi ·Inner Mongolia University ·2012 ·Master's thesis
  7. The Design and Realization of Bar Code Identification System Based on USB Bus
    SongLiHua ·Shenyang Ligong University ·2012 ·Master's thesis
  8. Research of CAN_USB Conversion System Based on FPGA
    WangShengXing ·Beijing Jiaotong University ·2012 ·Master's thesis
  9. Research on the Reform of Taxation Information Management Mechanism in China
    ZhangYiXiang ·Huaqiao University ·2013 ·Master's thesis
  10. The Ningbo Public Transit Circuit Capacity Model and Practical Research
    XuBin ·Ningbo University ·2013 ·Master's thesis
  11. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  12. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  13. Optical Fiber Perimeter Alarm System Based on DSP and FPGA
  14. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  15. Design and Implementation of Alarming Management System about Fireproof and Burglar
  16. Design and Application of the Distributed Monitoring System Based on Embedded Web
  17. Research on Mechanical Vibration Testing System
    YaoFeiZhao ·Dalian Polytechnic University ·2008 ·Master's thesis
  18. Study on Embedded Data Acquisition System Application
    ZhangDong ·Dalian Polytechnic University ·2009 ·Master's thesis
  19. The Data Acquisition and Monitoring System of Gas-liquid Two-phase Flow Based on Data Acquisition Card and Kingview
    LiJian ·China University of Petroleum Hua Dong. ·2012 ·Master's thesis
  20. Development of ATE Signals On-line Monitoring Equipment
    QianKeWei ·Harbin Institute of Technology ·2012 ·Master's thesis