Professional Documents
Culture Documents
Vehicle Bus Standards. Basics of Can & Its Interface With Labview
Vehicle Bus Standards. Basics of Can & Its Interface With Labview
Vehicle Bus Standards. Basics of Can & Its Interface With Labview
1
Agenda
Introduction to Vehicle bus
Various Bus Standards
Introduction to CAN
Details about CAN Protocol Architecture
CAN Interface & Classification
NI LabVIEW CAN Interface Required Items
Benefits of CAN
Sources
2
Introduction to Vehicle bus
• A vehicle bus is a specialized internal communications network that
interconnects components inside a vehicle.
• Radio
• ECU (Engine Control Unit)
• TCU (Transmission Control Unit)
• ABS Control Unit
• BCM (Body Control Module)
3
Reason Behind vehicle Network
Electronic control module typically gets its input from sensors
(speed, temperature, pressure, etc.) that it uses in its
computation.
4
The automotive industry quickly realized the complexity of wiring
each module to every other module.
5
Various Bus Standards/Protocols
Avionics Data Bus ARNIC 429
MVB (Multifunction Vehicle Bus)
Train Communication Network
Byte Flight
CAN (Controller Area Network)
Basic Automobile Data Bus D2B (Domestic Digital Bus)
FlexRay
LIN (Local Interconnect Network)
MOST (Media Oriented Systems Transport)
J1939 and ISO 11783
Heavy Vehicles Automobile Data Bus J1708 and J1587
Keyword Protocol 2000 (KWP2000)
VAN (Vehicle Area Network)
SPI (Serial Peripheral Interface)
DC-BUS
Other Automobile Data Bus IDB-1394
IE BUS- (Inter Equipment Bus
I2C
J1850
6
Avionics Data Bus
ARINC 429 - Aeronautical Radio INC avionics data bus used on most
higher-end commercial and transport aircraft.
7
Basic Automobile Data Bus
10
IE BUS- (Inter Equipment Bus) is a two-wire vehicle bus used in the
automotive industry as a communications bus between various devices
(usually multimedia devices).
11
Introduction to CAN (Controller Area Network)
CAN is a Vehicle Bus standard which is used to communicate with
various Electronic Devices like ECU, TCU, Light Control, etc.
Protocols are basically two types:-
Address based protocol- The data packets contain the address
of the destination device for which the message is intended.
Message based protocol- In a message based protocol every
message is identified by a predefined unique ID rather than the
destination addresses.
CAN is a message based protocol, originally designed for automobile
industry but now it has been used in various other industries.
Development of CAN bus started at 1983 but officially released in
1986 by Robert Bosch.
12
Why CAN?
13
Reason
Standard UART(RS232, RS422/RS485) did not support
multi domain communications but CAN facilitates it.
14
Every electronic device
(also known as the
node) which needs to
communicate using the
CAN protocol is
connected with each
other via a common
serial bus to transmit
and receive messages.
CAN does not follow the master-slave architecture which means every
nodes has the access to read and write data on the CAN bus.
When the node is ready to send data, it checks availability of the bus
and writes a CAN frame onto the network.
All nodes on CAN receive the CAN frame and depending on ID on the node
CAN decides whether to accept it or not. (Watsapp group or turning on TV
and watching different channels).
15
CAN Architecture
CAN protocol uses the lower two layers of OSI(Open Systems
Interconnection) model.
16
For data exchange to
happen among the
nodes they must have
the necessary
hardware and the
software embedded
inside them.
17
18
Every node has a Host controller also known as microcontroller
which is a small and low cost computer .Host controller implements
application layer of OSI model.
20
NI CAN Classification
It can be classified based on cable impedance, max baud rate, signal levels, etc.
The main classification is as follows:-
Single wire CAN 33.3kBit/s , High SAE-J2411, CAN A, Mirror and seat
Speed upto 88.3 and GMLAN adjusters
kBit/s
Software selectable Flexibility to choose any of the above 3 transceiver types through
CAN software.
21
High Speed/FD CAN
24
Required items to communicate with LabVIEW
25
CAN Database Files
CAN database files are text files that contain scaling information for
CAN frames and signal definitions.
National Instruments NI-XNET database editor software recognizes
FIBEX database files (.xml), Vector database files (*.dbc), and
National Instruments CAN database files (*.ncd).
CAN database files may contain frame and signal definitions for an
entire vehicle. Every network has its own unique database file.
Additionally, these database files are vendor-specific and usually
confidential.
By using a database file for many frames on the CAN network, many
CAN APIs (like NI-XNET) can automatically convert the frame
information directly to a real-world value. This simplifies application
development because you never need to worry about the raw frame
values.
26
For each signal, CAN databases define rules for conversion to engineering units.
The following data is stored in databases:
Channel name
Location (start bit) and size (number of bits) of the channel within a given message
Byte order (Intel/Motorola)
Data type (signed, unsigned, and IEEE float)
Scaling and units string
Range
Default value
Comment
You can use this information to easily convert the "raw" frame information (usually bytes) to a
"real world" value.
27
NI Software Drivers
The NI-CAN driver provides high-level, easy-to-use functions to help
you develop entire CAN applications quickly, saving you both time
and money.
NI X-Net Drivers
The NI-XNET platform combines a series of high-performance CAN,
LIN, and FlexRay interfaces with the NI-XNET API, a common set of
easy-to-use functions for reading and writing CAN, LIN, and FlexRay
frames and signals.
28
Benefits of CAN
• Low cost
• Reliable Because of excellent error detection and error
handling mechanisms used by CAN, it offers high reliability
transmission.
• Flexibility CAN Nodes can be easily connected / disconnected.
Also, the number of nodes is not limited by the protocol.
• Good Speed CAN supports data rate of 1 MBit/s @ 40m bus
length.
• Multi-master communication Any node can access the bus
• Fault Confinement Faulty nodes do not disturb the
communication.
• Broadcast capability Messages can be sent to one /many/all
nodes.
29
SOURCES
30
THANK YOU
31