Research and Implementation of In-vehicle Gateway Switching Protocols Between IPv6 and CAN Based on Virtual Devices

Author
WangZuo
Advisor
WeiDa
School
Jilin University
Major
Software Engineering
Classification
TN929.5 Mobile Communications
Degree
Master's thesis
Year
2011
Downloads
61
Citations
1

Request the full text

Abstract

With the birth of IPv6, as well as the rapid development of the Internet of things, more and more material will have its own independent IPv6 address, and connected to each other through the network, to form a things and things connected to the Internet. As the Internet of Things, an example of a typical application, the system in the vehicle's electrical node will become the object network node unit. And due to the popularity of Ethernet, each node via the Internet to get information requirements has become increasingly urgent. In order to address this need, the design and development of the vehicle gateway is particularly important. The model through the CAN node virtualization in-vehicle gateway design, shielding and unified access of the CAN node design and achieve a higher throughput and higher maintainability vehicle gateway. China's automotive electronics industry level also belong to the lower level, and still no car network and services connected to the remote host. The implementation of the vehicle gateway will fill the blank in this field in China. Existing CAN bus and Ethernet communication gateway, some gateways in the design of the hardware interface that changes, which increases the difficulty of the design and the cost of implementation; some gateway implementation and can not achieve the operating mode of the bidirectional path. Work under the Linux operating system, for example, the original CAN bus driver access through the serial device to interact with the operating system, so when the data frame on the CAN bus passed into the operating system kernel, the operating system is just the The data is copied to the user space frame, and then waits for the user space of a process scheduler then encapsulated into IP datagrams sent. This will not only increase the burden on the operating system, and also make the data transmission delay, will produce unpredictable errors in large datagram forwarding. In order to solve the problem of the remote host in the Internet and in-car system network interconnection, designed and implemented a IPv6-CAN protocol conversion vehicle gateway. Through in-vehicle gateway the CAN node device virtualization, and for each CAN node virtualization assign IPv6 addresses to the remote host can manipulate the CAN node. Due to the use of IPv6, unified remote host access to the CAN node. Change CAN bus access, the traditional file read and write access to the CAN device driver rewrite the network device drivers, greatly enhance the performance of such gateways. Finally, an example to prove the feasibility of the method. Virtualization design of CAN node, so that each CAN node has its own independent IPv6 address, address management and maintenance by the gateway. Linux virtual devices, not only the effect of the analog part of the real device, and also shields the many low-level details, and provides a unified access interface for the application layer. In the design and implementation of the model, the gateway for each CAN node maintains an IPv6 address, so for outside access, each node in the CAN bus can be accessed through the IPv6 address. The car between the gateway and the remote host via the CDMA network interconnection, in-vehicle gateway CDMA receiving device receives the datagram is first placed in a protocol stack of the Linux kernel, after Packet module intercepted Packet module runs on the Linux network system between the network layer and the data link layer of the architecture, it implements routing datagrams when found from the IP datagram is send virtual CAN node on the data reported passed to the CAN_MODULE module. CAN_MODULE module is one of the core part of the car gateway, which includes the initialization of the CAN bus, software reset, Registered CAN controller interrupt function, but also has its own independent receiver through the the simulation Ethernet card device driver, and Send datagram functions, and the datagram special processing. Through the management of virtual CAN node, the corresponding actual node and virtual CAN node on the CAN bus. The virtual CAN node effective analog part of the work of a real device effects, and save the real equipment, shielding the differences of different real devices to access the gateway. Due to the preservation of some of the properties of the real device, so that the CAN frame package targeted at the gateway, in order to achieve a CAN node access to the remote host.

Table of contents

Abstract 4-6 Abstract 6-11 Chapter 1 Introduction 11-13 1.1 Background and Significance 11-12 1.2 The main work 12 1.3 The paper is organized 12-13 Chapter 2 describes the knowledge structure and protocol 13-20 2.1 IPv6 introduces 13-14 2.1.1 IPv4 limitations 13 2.1.2 IPv6 features 13-14 2.2 Linux kernel network interface analysis 14-15 2.3 Linux network device driver analysis 15-18 2.3.1 Linux network driver briefly 15 2.3.2 Linux network driver architecture 15-16 2.3.3 on Linux network drive two important data structures 16-18 2.4 CAN bus 18-19 2.4.1 CAN bus characteristics 18-19 2.5 Chapter Summary 19-20 Chapter 3, the overall project design 20-25 3.1 Project Overview 20 3.2 wireless network application routines 20-21 3.3 Car gateway routine 21-22 3.4 CAN bus network routines 22 3.5 overall project software and hardware description 22-24 3.5.1 remote host software and hardware description 22 3.5.2 -vehicle gateway software and hardware description 22-23 3.5.3 CAN node hardware description 23-24 3.6 Summary 24-25 Chapter 4 Vehicle Gateway detailed design 25-47 4.1 gateway overall overview 25-26 4.2 Packet module 26-29 4.2.1 Packet module overall introduction 26 4.2.2 Netfilter firewall application routines 26-29 4.3 CAN_MODULE module 29-33 4.3.1 CAN_MODULE module overall introduction 29-30 4.3.2 IPv6 datagram CAN frame conversion 30-31 4.3.3 CAN frames to IPv6 datagram conversion 31-33 4.4 Tasklet 33-36 4.4.1 Tasklet review 33-34 4.4.2 Tasklet in the project application 34-36 4.5 virtual CAN node design and implementation 36-39 4.5.1 Virtual CAN node overview 36 4.5.2 CAN node model based on virtual design 36-37 4.5.3 virtual CAN node implementation 37-39 4.6 CAN 39-47 4.6.1 CAN bus hierarchy 39-41 4.6.2 CAN bus topology 41-42 4.6.3 CAN node design 42-43 4.6.4 Command frame format 43-44 4.6.5 CAN node control command and return information 44-47 Chapter 5 Test 47-51 5.1 test content 47 5.2 test environment 47 5.3 testing program 47-50 5.3.1 connectivity test 48 5.3.2 Performance Test 48-50 5.4 test results 50-51 Chapter 6 summarizes 51-52 References 52-55 Author and research 55-56 Thanks 56

Related dissertations

  1. Design and Realization of Multi-bus Gateway for Integrated Bridge System
    RenKangJian ·Harbin Engineering University ·2013 ·Master's thesis
  2. Design and Research of Cabin Monitoring System Based on CAN Bus
    HuangChengWei ·Wuhan University of Technology ·2013 ·Master's thesis
  3. Design of Mine Underground Personnel Positioning System Based on CAN Bus
  4. Implementation of Vehicle Control System Credibility Based on CAN Bus and IPV6
    LiuJiaQiao ·Jilin University ·2012 ·Master's thesis
  5. Design and Implementation of Multimodal Traffic Signal Controller
    XuZuoLong ·South China University of Technology ·2012 ·Master's thesis
  6. Research and Implementation of CAN Bus and Ethernet Communication Based on ARM7Embedded System
    HuangBing ·Anhui University ·2012 ·Master's thesis
  7. Design of Vehicle Data Recorder Based on the Dual Bus
    LinGuoZheng ·University of North ·2012 ·Master's thesis
  8. The Design of Small Coal Mine Remote Monitoring System Based on ARM
    XuJin ·Northeastern University ·2011 ·Master's thesis
  9. The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
  10. Design of Remote Control System Based on Ethernet
    YaoGaoHua ·South China University of Technology ·2013 ·Master's thesis
  11. The Design of Monitoring System for the Photovoltaic Plant Based on DSP
  12. Design and Application of the Distributed Monitoring System Based on Embedded Web
  13. The Design of Hybrid Electric Bus Data Acquisition and Test System
    LiHuiXian ·Hunan University ·2012 ·Master's thesis
  14. Design of Remote Strain Measurement System Based on FGPA
    LiuNanNan ·Harbin Engineering University ·2013 ·Master's thesis
  15. Industrial Field Data Acquisition System Design Based on CAN Bus
  16. Design of the Hazard Source Monitoring System Based on CAN Bus
  17. Design and Implementation of Multi-channel Data Acquisition System
  18. The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
  19. Research on Data Acquisition System of Can Bus
  20. The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
    QianYiWei ·Hunan University ·2013 ·Master's thesis