CAN bus signal monitoring using the DL850V

Slides:



Advertisements
Similar presentations
1 UNIT I (Contd..) High-Speed LANs. 2 Introduction Fast Ethernet and Gigabit Ethernet Fast Ethernet and Gigabit Ethernet Fibre Channel Fibre Channel High-speed.
Advertisements

Zhongxing Telecom Pakistan (Pvt.) Ltd
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 1 Embedded Computing.
FIGURE 11.1 Circuit for Example 11.1.
Exercises and Solutions Lecture 1
1 Chapter One Introduction to Computer Networks and Data Communications.
Contents Overview Data Information Frame Format Protocol
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
CANoe Basic Training Arturo Saracho Arturo Saracho.
Course Introduction Purpose
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
1 The SJA1000 CAN Controller and Linux Driver Cristiano Brudna Universität Ulm Fakultät für Informatik Abteilung Rechnerstrukturen.
Copyright © 2007 Heathkit Company, Inc. All Rights Reserved PC Fundamentals Presentation 35 – Buses.
Introduction to CANBUS
Figure 12–1 Basic computer block diagram.
Microprocessor Architecture Pipelined Architecture
Suite Suite 2 TPF Software – Overview Binary Editor Remote Scripts zTREX Add-Ins & Project Integration with Source Control Manager.
Chapter 1 Introduction to the Programmable Logic Controllers.
Local Area Networks - Internetworking
Fire Alarm Circuit Design and Fire Alarm Control Units
Module Ethernet Technology Module Ethernet Technology.
1 Chapter Overview Network Cables Network Interface Adapters Network Hubs.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
DAQmx下多點(Multi-channels)訊號量測
CAN © CiA Node 2 Node 3 Node 4 Node n Node 1 Ld Ld = Drop Length Lt Lt = Trunk Length ISO Topology.
Chapter 20 Network Layer: Internet Protocol
Jonathan Meed Alexander Basil. What is CAN (Controller Area Network) CAN is a multi-master serial bus Developed by Bosch for automotive applications in.
Benchmark Series Microsoft Excel 2013 Level 2
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
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.
1 Introduction to Network Layer Lesson 09 NETS2150/2850 School of Information Technologies.
X.25 PROTOCOL Presented by : EFA, Daniel Jr. G. VERGARA, Jonvon.
Connecting LANs, Backbone Networks, and Virtual LANs
Interfacing to the Analog World
Ethernet “dominant” LAN technology: cheap $20 for 100Mbs!
HIGH-LEVEL DATA LINK CONTROL (HDLC) HDLC was defined by ISO for use on both point-to-point and multipoint data links. It supports full-duplex communication.
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,
Slide 1 Industrial Automation - Customer View - Training PhW - CANopen_en 02/ 2002 CANopen QUIZ CANopen QUIZ.
Open System Interconnection (OSI) Model
Host Data Layer 7 Application Interacts with software requiring network communications; identifies partners, resources and synchronization Layer 6 Presentation.
Dave Mills CANbus: A brief introduction Incorporating: The Fujitsu status Dave Mills Queen Mary, University of London.
COMPUTER NETWORKS.
 What is a Controller Area Network?  History of CAN  CAN communication protocol  Physical layer  ISO  CiA  CANopen  DeviceNet  Applying.
EECS 373 Controller Area Networks Samuel Haberl Russell Kuczwara Senyuan Zhong.
SERIAL BUS COMMUNICATION PROTOCOLS
University of Tehran 1 Interface Design Vehicle Busses Omid Fatemi.
Protocol Architectures. Simple Protocol Architecture Not an actual architecture, but a model for how they work Similar to “pseudocode,” used for teaching.
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:
Wired LANs: Ethernet In Chapter 1, we learned that a local area network (LAN) is a computer network that is designed for a limited geographic area such.
Department of Electronic Engineering City University of Hong Kong EE3900 Computer Networks Introduction Slide 1 A Communications Model Source: generates.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Chapter 6 – Connectivity Devices
OSI Model. Topics What is the OSI Model? What is a Protocol? Why 7 Layers? The 7 Layers – Application – Presentation – Session – Transport – Network –
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose This training course provides an overview of Message Frames.
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.
William Stallings Data and Computer Communications
Controller Area Network (CAN) is a broadcast, differential serial bus standard, originally developed in the 1980s by Intel and Robert Bosch GmbH, for.
Protocol Layering Chapter 11.
Chapter 7 OSI Data Link Layer.
SYSTEM ADMINISTRATION Chapter 2 The OSI Model. The OSI Model was designed by the International Standards Organization (ISO) as a structural framework.
An Introduction to CAN CAN Basics 2 Renesas Interactive
1 Copyright © 2014 Tata Consultancy Services Limited Controller Area Network (CAN) By Renukacharya A. Thakare.
1 Device Controller I/O units typically consist of A mechanical component: the device itself An electronic component: the device controller or adapter.
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Controller Area Network
CAN Controller Area Network 29BIT ID
Controller Area Network (CAN Bus)
Click to edit Master subtitle style
Controller Area Networks (CAN)
Presentation transcript:

CAN bus signal monitoring using the DL850V Yokogawa Meters & Instruments Corporation

Leading-edge Technologies What is CAN? Controller Area Network Developed by BOSCH in 1983. It is a de facto standard protocol, being used for communication between ECUs in a vehicle. It is used for data communication such as speed, RPM, break status, diagnosis information. It is widely being used for not only for vehicle but also power, vessel, railroad, medical equipment, FA, elevator, etc. Master Slave Serial communication Leading-edge Technologies

Leading-edge Technologies Merit of using CAN Cutting Harness………low-cost, simple-design Cutting weight………..more economical Differential signal……noise reduction (safety) Error detection……….higher reliability Wire Harness Using CAN Simple Light weight complicated Leading-edge Technologies

Leading-edge Technologies (Reference) Example of in-vehicle network For Multi-Media For Fault-diagnosis (controlled legally) Fault-diagnosis “CAN” diagnosis tool Sub-Network For Power Train Chassis MD/CD changer Lamp Instrument panel Keyless Door Switch Sensor Squibb Air-bag Control For Safety For Body Control Gateway Tire Pressure Engine Steering The source: Renesas Electronics Corporation (Japan) Leading-edge Technologies

Leading-edge Technologies (Reference) CAN regulation Both datalink layer and Physical layer are defined. Application Layer Data Link Layer (ISO11898, ISO11519-2) Acceptance, Filtering (1:1, 1:n communication) Overload (not ready yet) Notice Resend when an error is occurred Presentation Layer LLC Session Layer Processed by CAN controller Frame Generation (Data, Remote, Error, Overload frame) Bus monitoring, Error detection and notice Acknowledgement Arbitration Transport Layer MAC Network Layer Data Link Layer Physical Layer (ISO11898, ISO11519-2) Physical Layer Bit, Timing, Synchronization, Resynchronization, Communication speed Processed by CAN Transceiver Bus characteristic, Driver, etc. Controlled by Software Controlled by Hardware OSI basic reference model In addition to ISO-defined standards, there are some other CAN-regulated standards such as SAE J2284, J2411. Leading-edge Technologies

Leading-edge Technologies CAN bus and Node(s) ECU CAN bus = Two wire Max. 30 nodes Leading-edge Technologies

Packet signal, called “FRAME”, carried and received. Signal flow in the CAN….1 ECU CAN bus FRAME Packet signal, called “FRAME”, carried and received. Leading-edge Technologies

Signal flow in the CAN….2 Multi-master ECU CAN bus FRAME Each node can send a frame freely, also can receive a frame freely. Multi-master Leading-edge Technologies

Leading-edge Technologies Features of CAN Differential Signal Multi-master Any node can send out a message when the bus is open. The order of priority for sending Identifier field in a message determines the order of priority. System flexibility Each node has no specific address, so easy for “adding” and “removing”. Flexibility for communication speed It can be set according as a scale of network, function of system. Advanced error handling Excellent in error detection, notice and recovery Data request Any node can generate data output request for the other node. Leading-edge Technologies

Leading-edge Technologies ECU (Node) connection Communicate via differential signal (CAN_H/CAN_L) Max. 30 nodes can be connected. Terminators must be placed at the end of bus line. It is classified into two type of standards, Hi-speed CAN and Low-speed CAN. The boundary is 125kbps. The figure below shows an example of Hi-speed CAN. (Terminated by 120 ohm) Each node is connected to CAN bus via the CAN Controller and CAN Transceiver. CPU CAN Controller TX0 TX1 RX0 RX1 Transceiver Node 1 Node 2 Node N (max.30) Terminator120 ohm CAN_H ∬ Terminator120 ohm CAN Bus Line ∬ CAN_L Differential signal Leading-edge Technologies

Leading-edge Technologies CAN Topology 1. Bus type The “Bus type” is typically being used. 3. Ring type 2. Star type Leading-edge Technologies

Leading-edge Technologies A variety of frames Data Frame  A DATA FRAME carries data from a transmitter to the receivers. Start of Frame Arbitration Field Control Field Data Field CRC Field ACK Field End of Frame The DL850V can monitor only a data frame. Remote Frame  A REMOTE FRAME is transmitted by a bus unit to request the transmission of the DATA FRAME with the same IDENTIFIER. Start of Frame Arbitration Field Control Field CRC Field ACK Field End of Frame Error Frame  An ERROR FRAME is transmitted by any unit on detecting a bus error. Overload Frame An OVERLOAD FRAME is used to provide for an extra delay between the preceding and the succeeding DATA or REMOTE FRAMEs. Leading-edge Technologies

Leading-edge Technologies Data Frame format (Packet structure) Arbitration Control Data CRC ACK Recessive Field Field SOF ID RTR r r DLC 0-64 EOF 1 11 Bit 1 1 1 4 (0-8 byte) 15 1 1 1 7 3 Dominant Start of Frame: Marks the beginning of DATA FRAMES and REMOTE FRAMEs. Identifier Field: Indicates the contents of message, also can be used for the order of priority for bus access. Standard format:11bit/Extended format:29bit (DL850V supports both.) RTR: Remote Transmission Request BIT. In DATA FRAMEs the RTR BIT has to be ’dominant’. Within a REMOTE FRAME the RTR BIT has to be ’recessive’. Control Field: It includes the DATA LENGTH CODE and two bits reserved for future expansion. Data Field: The DATA FIELD consists of the data to be transferred within a DATA FRAME. (Max. 8-byte(64-bit)) CRC Sequence & CRC Delimiter    : It is the frame check sequence. The CRC SEQUENCE is followed by the CRC DELIMITER which consists of a single ’recessive’ bit. Ack Slot & Ack Delemiter  : All nodes having received the matching CRC SEQUENCE report this within the ACK SLOT by superscribing the ’recessive’ bit of the TRANSMITTER by a ’dominant’ bit. End Of Frame: A flag sequence consisting of seven ’recessive’ bits. Leading-edge Technologies

Leading-edge Technologies CAN data frame and physical data With CAN data frames, multiple data (physical data) are carried and received under a single ID. Identifier Field Data Field Ex.) b0 - - - -15 16 17 32 - - 47 48 - - 63 142h 0006h 2468h 0302h 1 Integrating revolution counter Oil pressure RPM Air cond. ON/OFF High beam indicator Leading-edge Technologies

Leading-edge Technologies Tool lineup for CAN bus ECU CAN bus FRAME DLM2000 SB5000 CANalyzer (Vector) WE7000 DL850V Leading-edge Technologies

Mainly for CAN hardware design Mainly for CAN software design Measurement targets of the CAN tools Model Target ID DATA Mainly for CAN hardware design Mainly for CAN software design Leading-edge Technologies

Leading-edge Technologies The difference of observed “waveform” DLM2000, SB5000 “waveform” = Trend of “voltage signal” of the CAN bus DL850V “waveform” = Trend of “physical value(signal)” that is transmitted on the CAN bus Leading-edge Technologies

Leading-edge Technologies Simultaneous observation of CAN data and the analog signal(s) CAN bus Acceleration Sensor ECU ECU Engine ECU Strain gauge Transmission Pressure sensor Brake thermocouple CAN data Analog signals Analog Signals DL850V Leading-edge Technologies

CAN bus data monitoring Comparison and verification of actually measured signals and CAN bus signals You can check physical value trends of CAN bus data and the corresponding actually measured waveforms on the same screen at once. Multi kinds of data transmitted on the CAN bus can be monitored at the same time via a single wire. What is “CAN monitor” function? monitoring of CAN protocol communication data(signal) as an analog trend wafeform(s). 720240 CAN Frame Each signal(s) can be “extracted” from a single CAN bus line. Data Data E/G RPM Vehicle speed ECU1 ECU2 ECU3 CAN Trend of RPM Trend display Trend of speed Leading-edge Technologies

Leading-edge Technologies Sampled Data and Displayed Waveforms Extracted data is stored in memory at up to 100 ks/s while simultaneously being displayed on screen as trends. Sampled data (trend waveform data) can be saved into files. Leading-edge Technologies

Observed waveform example You can use Vector Informatik's CANdb database file (.dbc format) to indicate the field being monitored (acquired). CAN bus 1 frame Pressure sensor (analog) CAN signal (Physical layer) Current (CAN monitor waveform 1) The timing of analog signal and CAN communication signal can be checked. Pressure (CAN monitor waveform 2) Two signals transmitted by a single frame are trend-displayed as two waveforms. Leading-edge Technologies

Sub channel definition 720240 Sub channel(s) means the signal definitions of target item(s) 142h b0 - - - - - - - - - 31 00069012h 2468h 0302h 32 - - 47 48 - - 63 CH3 CH1 CH2 Up to 16CH(Signal)/port can be defined. (sub-CH) Number of sub CH ID Start bit Bit length (Note) 1 142 32 Integrating revolution counter 2 16 Oil pressure 3 48 RPM : Note: Up to 16 of bit length can be defined by 720240 module. Leading-edge Technologies

Leading-edge Technologies Sub channel definition display (Preliminary) Signal definition setting (see the previous page) Byte Count :Target byte length Start Bit :Position of the start bit (counted from LSB) Bit Count :Target bit length Byte Order : (Big): transmitted in “from upper byte to lower byte” order (Little): transmitted in “from lower byte to upper byte” order Note: The bit data in a byte is transmitted by MSB first. Port Setup (refer to the next page) Import of setup configuration file Factor, Offset, Unit: Scaling factor and unit for converting physical value. Leading-edge Technologies

Leading-edge Technologies Port Setup (Preliminary) Bit Rate: Communication speed of the bus Sample Point: Position for detecting dominant or recessive in a single bit. Setup configuration for 720240 input port Sync Jump Width: It can be used for correction of clock cycle in a single bit for re-synchronization. Bit Sample Num: It can be used for designating the number of sample point(s). Listen Only: When it turns to “ON”, any signal(Frame, Ack) is not outputted from the DL850V. Terminator: When it turn to “ON”, the module-built-in terminator is inserted between CAN_H and CAN_L. Leading-edge Technologies

Usage of CAN db database Signal labels can be imported from CANdb database*1 Using ”Symbol Editor” free software, a message and signal can be selected(imported) from CANdb, then export as the signal labels to the DL850V. Edits CAN db file imports **.dbc Drug & Drop Definition file for exporting to the DL850V. *1:The CANdb file(.dbc) is a signal definition database defined by CANdb or CANdb++ presented by Vector Informatik. **.sbl Leading-edge Technologies

Leading-edge Technologies Outputting Frame Data (Preliminary) Single specified (defined) data frames or remote frames can be output (manually, at desired timing). Setting the condition of frame output A designated frame is output when “Execute” is set. Leading-edge Technologies

Leading-edge Technologies Model 720240 CAN Bus Monitor module main specifications   There are some competitive memory recorders which has CAN monitoring capability. However, the DL850V has a certain advantages over them such as higher sampling rate, easy for handling and costs. Input ports: 2 (16 signals x 2 ports) Number of Channels : 16 signals/1port Connector type: D-sub 9 pin (male), Isolated (across port and main unit, across each port) Supported protocols: Physical layer: ISO-11898 (High Speed Communication) CAN in Automation: CAN2.0B (Standard & extended message format) Bit rates: 10 k, 20 k, 33.3 k, 50 k, 62.5 k, 66.7 k, 83.3 k, 125 k, 250 k, 500 k, 800 k, 1 Mbps Max. sampling rate: 100kS/s(when using 1signal/1port) Max. 2 modules can be installed for the specified slot(s) in a single DL850V main frame. Leading-edge Technologies