Design and Study of Protocol Converter for CAN/Ethernet Base on LwIP Stack

Author
LvZuoHui
Advisor
GongYiMin
School
Jilin University
Major
Radio Physics
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2013
Downloads
88
Citations
0

Request the full text

Abstract

Can bus can realize all kinds of instrument communication between each other,But its remote communication ability is weak. And as today’s mainstreamnetwork, Ethernet has strong ability of remote communication. For the fusion ofthese two kinds of network technology advantages, through the Ethernet remotemonitoring industry control system based on CAN bus, CAN bus network andEthernet data interconnection, must design CAN/Ethernet converter. This paperdesigned a CAN/Ethernet protocol converters. TCP/IP transport layer Protocolselection of UDP (User Datagram Protocol) Protocol, choose STM32F107as themain controller, realize CAN and UDP Protocol conversion between.This paper puts forward a method of design of CAN/Ethernet protocol converter,due to the transport layer protocol is a UDP against, therefore, is actually designthe CAN bus protocol and UDP protocol conversion gateway.System as long as the CAN communication module, Ethernet communicationmode and protocol conversion module three parts constitute, CANcommunication module is mainly used for acquisition of off-the-shelf instrumentdata and protocol conversion module, the data transmission between the Ethernetcommunication module is mainly responsible for protocol conversion moduleand Ethernet data transmission between the protocol conversion module is theCAN protocol packet and UDP packet for conversion.When field instrument has data to transmit to the Ethernet in the industrialcontrol, CAN communication module of CAN node data, into the data buffer,protocol conversion done by STM32, it converts data buffer CAN protocol datapackets into the UDP protocol packets, and finally by the Ethernetcommunication module sent to Ethernet, when the control commands or datafrom the Ethernet to the field instruments, Ethernet communication modulereceives the packet from the Ethernet, and put it in the data buffer, then theprotocol conversion module is received from Ethernet UDP packet into the CANprotocol, and finally through the CAN communication module, the packet is sentto the corresponding field instruments, so as to realize the remote control of thefield instruments.So far, has been set up in the whole system, the basic function of the required system has a good application prospect, if successful a wide range ofapplications to the production practice.

Table of contents

Summary 4-6 Abstract 6-10 Chapter 1 Introduction 10-13 1.1 System Overview 10 <br / > Application background and Significance 1.2 system 10-11 1.3 fieldbus control system is to (FCS) direction 11-13 chapter overall design 13-15 2.1 converter Profile 13-14 2.2 overall design 14 2.3 Summary 14-15 <br / > the third chapter describes the CAN protocol LwIP and 15-30 3.1 TCP / IP implementations generally 15 3.2 protocol stack select 15-17 3.3 LwIP protocol describes 17-18 3.4 UDP processing 18-24 3.5 CAN protocol describes 24-30 3.5.1 CAN bus arbitration mechanism 24-25 types and structures nbsp 3.5.2 frame ; 25-28 3.5.3 CAN bus main features 28-30 <br / > Chapter IV hardware circuit design 30-37 4.1 each module is designed 30-33 4.1.1 power Management 30-31 4.1 .2 LwIP control 31-32 4.1.3 CAN communication module 32-33 4.1.4 isolation Module 33 4.2 MPU each module is designed 33-35 4.2.1 hardware circuit 34-35 4.2.2 STM32 port applications 35 4.3 PCB design 35-36 4.4 hardware debugging basic steps 36 4.5 Summary 36-37 Chapter V software design 37-39 5.1 software part of the overall design 37 5.2 software to achieve the objectives and application environment software design nbsp 37 5.3 each module ; 37-38 <br / > 5.4 summary 38-39 sixth chapter summarizes 39-41 6.1 dissertation tasks 39 6.2 development environment 39 6.3 add features 39-41 References About 41-43 Author 43-44 Thanks 44

Related dissertations

  1. A Study on the Principles of Communication between Secretaries and Leaders
    WangZhuo ·Jinan University ·2013 ·Master's thesis
  2. Cross-cultural Communication Management of Chinese Overseas Investments Projects
  3. Group Enterprise Management in the Communication Problems Probing
    WangZhanZhong ·Henan University ·2012 ·Master's thesis
  4. An Empirical Study on IS Outsourcing Enterprises’ Boundary Expansion and Outsourcing Performance
  5. Analysis of telecom broadband service ability of NN city and promotion strategy research
  6. Research on Customer Satisfaction of DZMCC
  7. Impact of Industry-University Cooperative Organizations’Interactive Behavior on Firms’ Innovative Performance
  8. Research on the Impact Mechanism of International Team Performance
    WangSong ·Zhejiang University ·2014 ·Master's thesis
  9. Study on human resources management system of chuanrun chemicals sales team.
  10. Research on Efficient Team Building of a Machinery Manufacturing Co.,Ltd
  11. Case Study on the Communication Skills of the SD Project Land Requisition
  12. Sign effect brand columns
    ShiKeXin ·Jilin College of the Arts ·2013 ·Master's thesis
  13. Study on Urban Culture’s Communication on Metropolis Daily
    PengPei ·Jiangxi Normal University ·2013 ·Master's thesis
  14. Strategy for Propagation of Tourism Destination Image in Picture-Sharing Networks
  15. A Study on the Dissemination of Tourism Information in "Mi Yilu Valley" of Yunnan Province
  16. To Explore the Marketing and Communication Strategies about How to Use Cartoon Image in Commercial Advertising
  17. Problems and Countermeasures Related to Public Opinions on Microblogs in China
    ZhangZuo ·Central South University ·2013 ·Master's thesis
  18. Analysis of the Celebrities’ Fling Abuses on Weibo from the Perspective of Communication
    LiuMingHui ·Central South University ·2013 ·Master's thesis
  19. Building construction culture communication space in Xi'an city building as an example
    LiuZuo ·Shaanxi Normal University ·2013 ·Master's thesis
  20. A Research of Red Tourism Communication in Jiangxi from the Perspective of Political Economics
    YangDan ·Zhejiang University of Technology ·2013 ·Master's thesis