CAN Bus Explained - A Simple Intro (2019)
CAN Bus Explained - A Simple Intro (2019)
CAN Bus Explained - A Simple Intro (2019)
com
10-12 menit
So what's an ECU?
SOF: The Start of Frame is a 'dominant 0' to tell the other ECUs
that a message is coming
To log this CAN data, you'll need a CAN bus data logger. This lets
you "listen" to broadcasted raw CAN messages and record these
to an SD card for further analysis.
In your car, for example, you'll find an OBD2 connector under the
steering wheel - connecting your logger to this lets you record raw
CAN data incl. OBD2 data.
Below is an example raw OBD2 log file from a car (Audi A4),
logged using the CL2000.
Note that the car data sample contains vehicle speed data (OBD2
PID 0D) - as well as proprietary raw CAN protocol messages:
The CLX000 CAN logger lets you record raw CAN data from any
vehicle. Simply connect it to e.g. your car or truck and record
weeks of data to the 8GB SD card.
Further, with CANvas, you can easily decode the data using our
built-in OBD2 database or *.DBC files (more on this below).
For each ID (e.g. "34d" in HEX in the above sample), you'll need to
know what parameters (or CAN signals) are included.
For example, in the 64 bits of data in 34d there may be CAN data
from 3 parameters, each with a specific bit start and bit length.
For each CAN signal, you then take the decimal value of the data
bits and "scale" this (typically as below):
In other words, you'll need for each parameter the offset and
scale values.
Most often, these "conversion rules" are proprietary and not easily
available. So, if you e.g. want to convert raw CAN protocol data
from your car, you'd need to reverse engineer the CAN bus data -
which is not always easy.
This means that you can use the J1939 parameter conversion
rules on practically any heavy-duty vehicle to convert a large share
of your data. To make this practical, you'll need a format for
storing the conversion rules. Here, the *.DBC format is the
industry standard - and is supported by most CAN bus software
incl. CANvas.
We also offer a low cost J1939 DBC file, which you can purchase
as a digital download. With this, you can get quickly from raw
J1939 data to human-readable form:
LEARN MORE
What is the Link Between CAN bus and
J1939, OBD-II & CANopen?
For example, the CAN standard does not specify how to handle
messages larger than 8 bytes - or how to decode the raw data.
SAE J1939
J1939 is the standard in-vehicle network for heavy duty vehicles
(e.g. trucks & buses). J1939 messages use the 29 bits CAN ID.
Further, J1939 data (e.g. RPM, speed, ...) are identified by a
suspect parameter number (SPN), which are grouped in
parameter group numbers (PGN).
J1939 intro
J1939 vehicle telematics
OBD2
On-board diagnostics (OBD) is a self-diagnostic and reporting
capability that e.g. mechanics use to identify what is wrong with
your car. OBD2 specifies diagnostic trouble codes (DTCs) and
real-time data (e.g. speed, RPM), which can be logged by e.g. an
OBD2 data logger.
OBD2 intro
OBD2 data logging
CAN FD
CAN bus with flexible data-rate (CAN FD) is an extension of the
classic CAN protocol. It increases the payload from 8 to 64 bytes
and allows for a higher data bit rate. This makes it a key enabler
for increasingly data-intensive use cases like electric vehicles.
CAN FD intro
Want to log data from your car, truck or other CAN application?
Then learn more about our CLX000 CAN logger below!