Controller Area Network Projects


Book Description

The Controller Area Network (CAN) was originally developed to be used as a vehicle data bus system in passenger cars. Today, CAN controllers are available from over 20 manufacturers, and CAN is finding applications in other fields, such as medical, aerospace, process control, automation, and so on. This book is written for students, for practising engineers, for hobbyists, and for everyone else who may be interested to learn more about the CAN bus and its applications. The aim of this book is to teach you the basic principles of CAN networks and in addition the development of microcontroller based projects using the CAN bus. In summary, this book enables the reader to: Learn the theory of the CAN bus used in automotive industry; Learn the principles, operation, and programming of microcontrollers; Design complete microcontroller based projects using the C language; Develop complete real CAN bus projects using microcontrollers; Learn the principles of OBD systems used to debug vehicle electronics. You will learn how to design microcontroller based CAN bus nodes, build a CAN bus, develop high-level programs, and then exchange data in real-time over the bus. You will also learn how to build microcontroller hardware and interface it to LEDs, LCDs, and A/D converters. The book assumes that the reader has some knowledge on basic electronics. Knowledge of the C programming language will be useful in later chapters of the book, and familiarity with at least one member of the PIC series of microcontrollers will be an advantage, especially if the reader intends to develop microcontroller based projects using the CAN bus. The CD contains a special demo version of the mikroC compiler which supports the key microcontrollers including: PIC, dsPIC, PIC24, PIC32 and AVR. This special version additionally features an advanced CAN library of intuitive and simple-to-use functions to encourage programming with easy and comfortable development of CAN networks.




A Comprehensible Guide to Controller Area Network


Book Description

Controller Area Network (CAN) is a serial network technology that was originally designed for the automotive industry, but has also become a popular bus in industrial automation. The CAN bus is primarily used in embedded solutions and provides communication among microprocessors up to real-time requirements. A Comprehensible Guide To Controller Area Network represents a very thoroughly researched and complete work on CAN. It provides information on all CAN features and aspects combined with high level of readability. Book jacket.




Controller Area Network Prototyping with Arduino


Book Description

While the Arduino is not widely considered an industrial-strength solution, it provides, due to its low price and ease of programming, the perfect prototyping platform for all kinds of Controller Area Network (CAN) applications. This book, written by a leading expert on CAN technologies, guides the reader through the process of acquiring all necessary hardware and software components, the implementation of the CAN driver, and the implementation of programs (Arduino Sketches) to read, send, process, and display data from and to a CAN network. The collection of programming examples cumulates into a full-fledged USB-to-CAN Gateway communicating with a Windows/Linux PC. This book will enable you to achieve CAN functionality literally within only a few hours. The topics include: Introduction to Controller Area Network Prototyping Hardware and its Variants Arduino CAN Shields CAN Driver Implementation and Library Functions Simple CAN Test Programs CAN Network Monitoring, Simulation, and Diagnostics Program CAN Data Display via Windows/Linux GUI About the Author Wilfried Voss is the author of the "Comprehensible Guide" series of technical literature covering topics like Controller Area Network (CAN), SAE J1939, Industrial Ethernet, and Servo Motor Sizing. Mr. Voss has worked in the CAN industry since 1997 and before that was a motion control engineer in the paper manufacturing industry. He has a master's degree in electrical engineering from the University of Wuppertal in Germany. During the past years, Mr. Voss conducted numerous seminars on industrial fieldbus systems such as CAN, CANopen, SAE J1939, Industrial Ethernet, and more during various Real Time Embedded And Computing Conferences (RTECC), ISA (Instrumentation, Systems, and Automation Society) conferences and various other events all over the United States and Canada."




Embedded Networking with CAN and CANopen


Book Description

CAN (Controller Area Network) is a serial communication protocol that was originally developed for the automobile industry. CAN is far superior to conventional serial technologies such as RS232 in regards to functionality and reliability and yet CAN implementations are more cost effective. CANopen, a higher layer protocol based on CAN, provides the means to apply the ingenious CAN features to a variety of industrial-strength applications. Many users, for example in the field of medical engineering, opted for CANopen because they have to meet particularly stringent safety requirements. Similar requirements had to be considered by manufacturers of other equipment with very high safety or reliability requirements (e.g. robots, lifts and transportation systems). Providing a detailed look at both CAN and CANopen, this book examines those technologies in the context of embedded networks. There is an overview of general embedded networking and an introduction to the primary functionality provided by CANopen. Everything one needs to know to configure and operate a CANopen network using off-the-shelf components is described, along with details for those designers who want to build their own CANopen nodes. The wide variety of applications for CAN and CANopen is discussed, and instructions in developing embedded networks based on the protocol are included. In addition, references and examples using MicroCANopen, PCANopen Magic, and Vector's high-end development tools are provided.




Sae J1939 ECU Programming & Vehicle Bus Simulation with Arduino


Book Description

This book, written by a leading expert in the field of Controller Area Network (CAN) technologies, represents the perfect guide to implementing an SAE J1939 protocol stack for embedded systems. The book is filled with numerous C/C++ code examples and valuable documentation of the resulting J1939 vehicle network data traffic. It explains in great detail the inner workings of the protocol through designing and transmitting J1939 data frames, receiving and processing J1939 data frames, and simulating J1939 ECUs (Electronic Control Units). Other Arduino sketches (software projects) include a J1939 network scanner, and a simple SAE J1939 to USB Gateway application with associated Windows GUI (Visual Studio C# project). The collection of sketches is concluded by the ARD1939 project, a fully functional SAE J1939 protocol stack for the Arduino Uno and Mega 2560. As an added value, the included proof of concept explains (by means of code examples and bus traffic recordings) the details of the Transport Protocol (TP) according to SAE J1939/21 (BAM Session, RTS/CTS Session) and the Address Claim Procedure according to SAE J1939/81. In combination with the low-cost and high-level user-friendliness approach of the Arduino environment, this book represents the ideal platform to learning and implementing embedded applications with the SAE J1939 protocol stack.




MSP430 Microcontroller Basics


Book Description

The MSP430 microcontroller family offers ultra-low power mixed signal, 16-bit architecture that is perfect for wireless low-power industrial and portable medical applications. This book begins with an overview of embedded systems and microcontrollers followed by a comprehensive in-depth look at the MSP430. The coverage included a tour of the microcontroller's architecture and functionality along with a review of the development environment. Start using the MSP430 armed with a complete understanding of the microcontroller and what you need to get the microcontroller up and running! - Details C and assembly language for the MSP430 - Companion Web site contains a development kit - Full coverage is given to the MSP430 instruction set, and sigma-delta analog-digital converters and timers




FlexRay and its Applications


Book Description

An authoritative yet highly accessible guide to the design and operation of the FlexRay bus, the latest protocol for automotive network communications A translation of the French edition, originally published in January 2011, this work is the result of numerous training courses that Dominique Paret has given in companies, and it provides detailed explanations of the design and operation of the FlexRay bus. Comprised of five parts the book covers: the FlexRay concept and its communication protocol; the FlexRay physical layer; synchronization and global time and; architecture of a node, components and development aid tools for hardware and software. Provides comprehensive treatment of the FlexRay network, including its implementation through a real automotive application Includes the latest specifications (Version 3) concluded by the FlexRay consortium widely expected to become the industry standard Written by an author with in-depth experience of automotive electronics, including FlexRay, and presenter of specialist training courses to the industry Includes a review of industrial tools to help design and implement a FlexRay based distributor application




CAN System Engineering


Book Description

This book addresses the various challenges and open questions relating to CAN communication networks. Opening with a short introduction into the fundamentals of CAN, the book then examines the problems and solutions for the physical layout of networks, including EMC issues and topology layout. Additionally, a discussion of quality issues with a particular focus on test techniques is presented. Each chapter features a collection of illuminating insights and detailed technical information supplied by a selection of internationally-regarded experts from industry and academia. Features: presents thorough coverage of architectures, implementations and application of CAN transceiver, data link layer and so-called higher layer software; explains CAN EMC characteristics and countermeasures, as well as how to design CAN networks; demonstrates how to practically apply and test CAN systems; includes examples of real networks from diverse applications in automotive engineering, avionics, and home heating technology.




Innovations in Software-Defined Networking and Network Functions Virtualization


Book Description

The advancement of technology is a standard of modern daily life, whether it be the release of a new cellphone, computer, or a self-driving car. Due to this constant advancement, the networks on which these technologies operate must advance as well. Innovations in Software-Defined Networking and Network Functions Virtualization is a critical scholarly publication that observes the advances made in network infrastructure through achieving cost efficacy while maintaining maximum flexibility for the formation and operation of these networks. Featuring coverage on a broad selection of topics, such as software-defined storage, openflow controller, and storage virtualization, this publication is geared toward professionals, computer engineers, academicians, students, and researchers seeking current and relevant research on the advancements made to network infrastructures.




The Car Hacker's Handbook


Book Description

Modern cars are more computerized than ever. Infotainment and navigation systems, Wi-Fi, automatic software updates, and other innovations aim to make driving more convenient. But vehicle technologies haven’t kept pace with today’s more hostile security environment, leaving millions vulnerable to attack. The Car Hacker’s Handbook will give you a deeper understanding of the computer systems and embedded software in modern vehicles. It begins by examining vulnerabilities and providing detailed explanations of communications over the CAN bus and between devices and systems. Then, once you have an understanding of a vehicle’s communication network, you’ll learn how to intercept data and perform specific hacks to track vehicles, unlock doors, glitch engines, flood communication, and more. With a focus on low-cost, open source hacking tools such as Metasploit, Wireshark, Kayak, can-utils, and ChipWhisperer, The Car Hacker’s Handbook will show you how to: –Build an accurate threat model for your vehicle –Reverse engineer the CAN bus to fake engine signals –Exploit vulnerabilities in diagnostic and data-logging systems –Hack the ECU and other firmware and embedded systems –Feed exploits through infotainment and vehicle-to-vehicle communication systems –Override factory settings with performance-tuning techniques –Build physical and virtual test benches to try out exploits safely If you’re curious about automotive security and have the urge to hack a two-ton computer, make The Car Hacker’s Handbook your first stop.