In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO 11783 BAE 5030 Fall 2001 Instructor: Marvin Stone BAE 5030 Fall 2001 Instructor:

Slides:



Advertisements
Similar presentations
Contents Overview Data Information Frame Format Protocol
Advertisements

Introduction to CANBUS
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
Arctic IEC-104 Gateway Jari Lahti, CTO.
Setha Pan-ngum. History of CAN [1] It was created in mid-1980s for automotive applications by Robert Bosch. Design goal was to make automobiles more reliable,
1 Data Link Protocols Relates to Lab 2. This module covers data link layer issues, such as local area networks (LANs) and point-to-point links, Ethernet,
Layer 1 of the TCP/IP protocol stack: Network Access Layer (NAL). Functions, performed on the layer. МАС address in Ethernet networks. Layer 1 of the TCP/IP.
Chapter 7 Data Link Layer
SAE J1939 / ISO Tractor ECU Lecture 7 Tractor ECU
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
Multiplexing NACAT 2005 Sean Bennett Centennial College Toronto.
Control Area Network (CAN) Bus. 2 Overview  CAN is an important embedded protocol  Primarily automotive, but used in many other places  CAN specifies:
What is the CAN Bus ? A two wire electronic communication data bus between ‘processors’ – i.e. computer computer controllers Developed by Robert Bosch.
Chapter 2 Network Models.
CprE 458/558: Real-Time Systems (G. Manimaran)1 CprE 458/558: Real-Time Systems Controller Area Network: Overview (Updated by: Ki-sung Koo, CprE 458/558.
1 Chapter 9 Computer Networks. 2 Chapter Topics OSI network layers Network Topology Media access control Addressing and routing Network hardware Network.
Control Area Network CAN Developed by Bosch in 1983 as an automotive protocol, it was adopted by the Society of Automotive Engineers (SAE) in As.
EEC-484/584 Computer Networks Lecture 2 Wenbing Zhao
EEC-484/584 Computer Networks Lecture 2 Wenbing Zhao
EE 4272Spring, 2003 Chapter 14 LAN Systems Ethernet (CSMA/CD)  ALOHA  Slotted ALOHA  CSMA  CSMA/CD Token Ring /FDDI Fiber Channel  Fiber Channel Protocol.
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
EEC-484/584 Computer Networks Lecture 2 Wenbing Zhao
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
Intro to Controller Area Networks (CAN) Part 1 of 2, E. Zivi, April 1, 2015 References: 1.A CAN Physical Layer Discussion Microchip Application Note AN00228a.
Computer Communication & Networks
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
SERIAL BUS COMMUNICATION PROTOCOLS
Caleb Walter. iPhone style charger Malware channel Exploit Vehicle CAN network Create Covert Channel at Public Charging Stations Custom Arduino CAN EVSE.
The Ethernet Prepared by: Amer Al-Qadri Ahmad Abdul-Rahman Ismail khistah
January 9, 2008BAE In-Vehicle Networking Lecture 1 Introduction to CAN (Controller Area Network) BAE 5030 – 363 Spring 2009 Instructors: Marvin.
IP Network Basics. For Internal Use Only ▲ Internal Use Only ▲ Course Objectives Grasp the basic knowledge of network Understand network evolution history.
January 9, 2008BAE In-Vehicle Networking Lecture 2 CAN Physical Layers ISO 11898, ISO Part 2, J ,12,13 Physical Layers BAE
University of Tehran 1 Interface Design Vehicle Busses Omid Fatemi.
ECE 371 Controller Area Network (CAN) Overview. Controller Area Network The development of CAN began when more and more electronic devices were implemented.
Tecnologie Informatiche ed Elettroniche per le Produzioni Animali (corso TIE) CORSO LAUREA MAGISTRALE IN SCIENZE E TECNOLOGIE DELLA PRODUZIONE ANIMALE.
1 Chapter 2: LAN Standards, Physical Connectivity, and Media Access.
In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO Network Management ISO Part 5 J Network Management ISO
SDP 2.0 System Data Protocol. Overview What is SDP? Provider/Subscriber Pattern SDP Components– Part 1 SDP Simple Usage SDP Messaging SDP Components–
Basic LAN techniques IN common with all other computer based systems networks require both HARDWARE and SOFTWARE to function. Networks are often explained.
Advanced Embedded Systems Design Lecture 13 RISC-CISC BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
ECGR 6185 Advanced Embedded Systems Controller Area Network University Of North Carolina Charlotte Bipin Suryadevara.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Gigabit Ethernet.
CSCI 465 D ata Communications and Networks Lecture 19 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Networks. Common Xmit Media Shared Media Networks are a shared communication resource Only one user can access at a time.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
In-Vehicle Networking
Network Protocols n ISO OSI 7-layer model n TCP/IP suite l TCP/UDP l IP l Ethernet/Token Ring l ICMP.
Section 3 - Slide 1/19 P&T - GPS - Formation PhW - CANopen_lev1_en - 01/2004 History CANopen and the ISO model Physical layer Link layer Application layer.
Design of Technical Condition Monitoring System of Vehicle Based on CAN Bus Authors : Ruili Zeng, Yunkui Xiao Department of Automobile Engineering Academy.
SAE J1939 / ISO Network Management
Ch 13. Wired LANs: Ethernet IEEE Standards Project 802 launched in 1985 – To set standards to enable intercommunication among equipment from a variety.
1 Lecture Controller Area Networks Dr. Tony Grift
Network design Topic 2 Existing network infrastructure.
Controller Area Network (CAN) is a broadcast, differential serial bus standard, originally developed in the 1980s by Intel and Robert Bosch GmbH, for.
IEEE 802.X Standards The Institute of Electrical and Electronics Engineers (IEEE) has developed a series of networking standards to ensure that networking.
Chapter 7 OSI Data Link Layer.
Renesas Electronics America Inc. © 2010 Renesas Electronics America Inc. All rights reserved. Overview of Ethernet Networking A Rev /31/2011.
1 May-2014 Automotive Protocols & Standards. 2 CAN (Controller Area Network)  Overview Controller Area Network is a fast serial bus designed to provide.
An Introduction to CAN CAN Basics 2 Renesas Interactive
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
Data Link Protocols Relates to Lab 2.
Controller Area Network
CAN ( Controller Area Network )
CAN Controller Area Network 29BIT ID
Controller Area Network (CAN) Training
شبکه محلی کنترلر Controller Area Network (CAN)
Controller Area Networks (CAN)
Requirements Definition
Presentation transcript:

In-Vehicle Networking for Heavy Duty Systems Review of CAN / SAE J1939/ ISO BAE 5030 Fall 2001 Instructor: Marvin Stone BAE 5030 Fall 2001 Instructor: Marvin Stone

General overview of CAN based networking Is it a worldwide standard? Is it a worldwide standard? Is it really a standard? Is it really a standard? Where did it come from? Where did it come from? Why? Why? Vehicles covered? Vehicles covered? How many flavors are there? How many flavors are there? Is it a worldwide standard? Is it a worldwide standard? Is it really a standard? Is it really a standard? Where did it come from? Where did it come from? Why? Why? Vehicles covered? Vehicles covered? How many flavors are there? How many flavors are there? FAQFAQ

What is “It” CAN CAN – Controller Area Network ISO ISO – Network standard for Ag / Forestry SAE J1939 SAE J1939 – Network standard for Heavy Duty Vehicles On-highway Trucks / Buses On-highway Trucks / Buses Off-highway Off-highway – Construction – Ag and Forestry - See ISO CAN CAN – Controller Area Network ISO ISO – Network standard for Ag / Forestry SAE J1939 SAE J1939 – Network standard for Heavy Duty Vehicles On-highway Trucks / Buses On-highway Trucks / Buses Off-highway Off-highway – Construction – Ag and Forestry - See ISO 11783

(See

To form a complete communications system you need more than CAN ISO 7498

CANCAN – CAN = Controller Area Network Serial data communications protocol for real-time application using a multiple access bus Serial data communications protocol for real-time application using a multiple access bus – Messages have assignable priority most critical can dominate during heavy load most critical can dominate during heavy load – Messages are short (controlled length) opportunities to insert a new message come often opportunities to insert a new message come often – Serial communications – Serial point-to-point vs. bus Reduction in wiring complexity Reduction in wiring complexity Better information sharing Better information sharing – Low probability of an undetected error 4.7 x x message error rate 4.7 x x message error rate – For a message error rate of 25/sec: 1 undetected error per 10,000 hours operation – CAN = Controller Area Network Serial data communications protocol for real-time application using a multiple access bus Serial data communications protocol for real-time application using a multiple access bus – Messages have assignable priority most critical can dominate during heavy load most critical can dominate during heavy load – Messages are short (controlled length) opportunities to insert a new message come often opportunities to insert a new message come often – Serial communications – Serial point-to-point vs. bus Reduction in wiring complexity Reduction in wiring complexity Better information sharing Better information sharing – Low probability of an undetected error 4.7 x x message error rate 4.7 x x message error rate – For a message error rate of 25/sec: 1 undetected error per 10,000 hours operation

Communications Bus

T Bus Topology Constraints – Constraints NO “T” Connections NO “T” Connections No bus extension without a bridge No bus extension without a bridge – Constraints NO “T” Connections NO “T” Connections No bus extension without a bridge No bus extension without a bridge

CAN - continued Developed by Bosch GmBh (See Developed by Bosch GmBh (See – About 1986, Version 2.0 in 1991 for auto apps. Version 1.2 (Equivalent to 2.0A) Version 1.2 (Equivalent to 2.0A) – 11 bit ID (not interoperable with 29 bit 2.0b) Version 2.0 (2.0A + 2.0B) Version 2.0 (2.0A + 2.0B) – 2.0B - 11 and 29 bit ID 11 and 29 are compatible on same bus 11 and 29 are compatible on same bus 11 bit only 2.0B is called 2.0B passive 11 bit only 2.0B is called 2.0B passive 29 bit (and 11bit) 2.0B called 2.0B active 29 bit (and 11bit) 2.0B called 2.0B active – CAN provides only Data Link functions Media access control Media access control Logical link control Logical link control Developed by Bosch GmBh (See Developed by Bosch GmBh (See – About 1986, Version 2.0 in 1991 for auto apps. Version 1.2 (Equivalent to 2.0A) Version 1.2 (Equivalent to 2.0A) – 11 bit ID (not interoperable with 29 bit 2.0b) Version 2.0 (2.0A + 2.0B) Version 2.0 (2.0A + 2.0B) – 2.0B - 11 and 29 bit ID 11 and 29 are compatible on same bus 11 and 29 are compatible on same bus 11 bit only 2.0B is called 2.0B passive 11 bit only 2.0B is called 2.0B passive 29 bit (and 11bit) 2.0B called 2.0B active 29 bit (and 11bit) 2.0B called 2.0B active – CAN provides only Data Link functions Media access control Media access control Logical link control Logical link control

An overview of CAN based networking CAN - Elements CAN - Elements – CSMA/CA Bitwize priority access strategy Bitwize priority access strategy Non-destructive collisions Non-destructive collisions – Message components Identifier / Data Identifier / Data – Bus Access - Arbitration / Prioritization – Error Detection / Error Confinement – Filtering – Other features In Frame Acknowledgement In Frame Acknowledgement RTR RTR CAN - Elements CAN - Elements – CSMA/CA Bitwize priority access strategy Bitwize priority access strategy Non-destructive collisions Non-destructive collisions – Message components Identifier / Data Identifier / Data – Bus Access - Arbitration / Prioritization – Error Detection / Error Confinement – Filtering – Other features In Frame Acknowledgement In Frame Acknowledgement RTR RTR

Other options for electronic controls Just don’t do it Just don’t do it Central CPU - Central CPU - Earlier protocols in Heavy Duty Equipment Earlier protocols in Heavy Duty Equipment CCD (Bus) - Chrysler Collision Detection - Deere and Co. CCD (Bus) - Chrysler Collision Detection - Deere and Co. 1708/1587 (RS485 based Bus) - Cat., DICKEYjohn, Flexicoil 1708/1587 (RS485 based Bus) - Cat., DICKEYjohn, Flexicoil Automotive busses Automotive busses J1850 J1850 Echelon Lonworks Echelon Lonworks Proprietary CAN protocols Proprietary CAN protocols Just don’t do it Just don’t do it Central CPU - Central CPU - Earlier protocols in Heavy Duty Equipment Earlier protocols in Heavy Duty Equipment CCD (Bus) - Chrysler Collision Detection - Deere and Co. CCD (Bus) - Chrysler Collision Detection - Deere and Co. 1708/1587 (RS485 based Bus) - Cat., DICKEYjohn, Flexicoil 1708/1587 (RS485 based Bus) - Cat., DICKEYjohn, Flexicoil Automotive busses Automotive busses J1850 J1850 Echelon Lonworks Echelon Lonworks Proprietary CAN protocols Proprietary CAN protocols

Conventional Wiring (No Bus) Serial Communication Links

A Simple CAN Application (Serial Bus)

Typical ECU Components

ECU Connection to the bus ECU 1ECU 2 CAN_H CAN_L TBC_PWR Terminator TBC_RTN CAN_H CAN_L CAN_H

CAN Frame Components 11 bits or 29 bits IdentifierData 0 to 8 bytes (0 to 64 bits) CAN Frame (up to 134 bits) Serial bit streamStart

CAN Frame Format - CAN 2.0B

CAN Arbitration Lower numbered identifiers assume higher priority

Error Detection 5 Error Types Detected 5 Error Types Detected – Bit Error (Sent bit doesn’t match monitored bit) – Stuff Error (more than 6 successive in one state) – CRC error – Form Error – Acknowledge Error Probability of an undetected error Probability of an undetected error – 4.7 x x message error rate for a message error rate of 25/sec, 1 undetected error per 10,000 hours operation for a message error rate of 25/sec, 1 undetected error per 10,000 hours operation 5 Error Types Detected 5 Error Types Detected – Bit Error (Sent bit doesn’t match monitored bit) – Stuff Error (more than 6 successive in one state) – CRC error – Form Error – Acknowledge Error Probability of an undetected error Probability of an undetected error – 4.7 x x message error rate for a message error rate of 25/sec, 1 undetected error per 10,000 hours operation for a message error rate of 25/sec, 1 undetected error per 10,000 hours operation

Message Filtering - Example MASK MATCH 1 = Care, 0= Don’t Care Accept if: (ID AND MASK) XOR MATCH = IDENTIFIER ID AND MASK = (ID AND MASK) XOR MATCH = Pattern must match

Essence of ISO an Electronics communications protocol standard – Allows manufacturers to build electronic components that communicate with each other Examples: Examples: – Instrument cluster and engine Electronic Control Unit (ECU) – Tractor ECU and Implement ECU – Grain Flow ECU and Virtual Terminal ECU – Uses multiplexed wiring ECUs communicate across a shared four wire cable ECUs communicate across a shared four wire cable Bit serial communications Bit serial communications – Based on CAN protocol Robert Bosch GmbH protocol for automotive use Robert Bosch GmbH protocol for automotive use – Allows manufacturers to build electronic components that communicate with each other Examples: Examples: – Instrument cluster and engine Electronic Control Unit (ECU) – Tractor ECU and Implement ECU – Grain Flow ECU and Virtual Terminal ECU – Uses multiplexed wiring ECUs communicate across a shared four wire cable ECUs communicate across a shared four wire cable Bit serial communications Bit serial communications – Based on CAN protocol Robert Bosch GmbH protocol for automotive use Robert Bosch GmbH protocol for automotive use

Network Structural Model

CAN based Ag related standards ISO uses pieces of J1939 and DIN ISO uses pieces of J1939 and DIN At the CAN level J1939 and use the same 29 bit CAN 2.0b At the CAN level J1939 and use the same 29 bit CAN 2.0b ISO uses pieces of J1939 and DIN ISO uses pieces of J1939 and DIN At the CAN level J1939 and use the same 29 bit CAN 2.0b At the CAN level J1939 and use the same 29 bit CAN 2.0b Mention NMEA 2000

Standards Bodies Relationships ISO 11783SAE J1939

J1939 Document numbering

Document Status

ISO Characteristics Attempts to Attempts to Standardize communications to the extent that ECUs built by different manufacturers can communicate. Standardize communications to the extent that ECUs built by different manufacturers can communicate. Allows Allows Ag Implement applications (precision farming apps.) Ag Implement applications (precision farming apps.) Powertrain/Braking/Lighting/Instrument Panel apps. Powertrain/Braking/Lighting/Instrument Panel apps. Standardized and proprietary information exchange Standardized and proprietary information exchange Control loops across net (10 ms repetition) Control loops across net (10 ms repetition) Data rate 5.6k 30% load, bursts to 16k bytes/sec. Data rate 5.6k 30% load, bursts to 16k bytes/sec. 30 nodes per subnet, 254 nodes per system 30 nodes per subnet, 254 nodes per system Attempts to Attempts to Standardize communications to the extent that ECUs built by different manufacturers can communicate. Standardize communications to the extent that ECUs built by different manufacturers can communicate. Allows Allows Ag Implement applications (precision farming apps.) Ag Implement applications (precision farming apps.) Powertrain/Braking/Lighting/Instrument Panel apps. Powertrain/Braking/Lighting/Instrument Panel apps. Standardized and proprietary information exchange Standardized and proprietary information exchange Control loops across net (10 ms repetition) Control loops across net (10 ms repetition) Data rate 5.6k 30% load, bursts to 16k bytes/sec. Data rate 5.6k 30% load, bursts to 16k bytes/sec. 30 nodes per subnet, 254 nodes per system 30 nodes per subnet, 254 nodes per system

Capacity Comparison

Capacity and Performance Use of bus bandwidth by messages Use of bus bandwidth by messages – 100 messages per second (10 ms repetition) =5% Torque/Speed control on engine Torque/Speed control on engine Hitch control Hitch control – 10 messages per second (100 ms repetition) =0.5% Throttle position Throttle position GPS Lat/Lon data GPS Lat/Lon data Implement application rate control (process data) Implement application rate control (process data) – 1 message per second (1s repetition) =0.05% Display updates Display updates System status System status Use of bus bandwidth by messages Use of bus bandwidth by messages – 100 messages per second (10 ms repetition) =5% Torque/Speed control on engine Torque/Speed control on engine Hitch control Hitch control – 10 messages per second (100 ms repetition) =0.5% Throttle position Throttle position GPS Lat/Lon data GPS Lat/Lon data Implement application rate control (process data) Implement application rate control (process data) – 1 message per second (1s repetition) =0.05% Display updates Display updates System status System status

Message latency 134 bit message 134 bit message 4  s per bit = 536  s = 0.5 ms per message max Highest priority message Highest priority message – must wait no more than ~0.5 ms Low priority messages Low priority messages – must wait till higher priority messages clear – latency may be long at high bus loads 134 bit message 134 bit message 4  s per bit = 536  s = 0.5 ms per message max Highest priority message Highest priority message – must wait no more than ~0.5 ms Low priority messages Low priority messages – must wait till higher priority messages clear – latency may be long at high bus loads