SlideShare uma empresa Scribd logo
1 de 74
Baixar para ler offline
Prepared by: Radwa Tarek.
Automotive Bus Technologies
Agenda:
 Introduction to automotive embedded systems.
 Automotive Network.
 Network fundamentals.
 Review for Serial communication.
 Automotive bus protocols:
Local interconnect technology.
Controlled area network.
 Introduction to automotive embedded systems.
• Automotive is embedding systems consist of separated ECUs and
each ECU has its own functionality.
What is an ECU?
In the Automobile industry an electronic control unit (ECU) is an embedded
electronic device, basically a digital computer, that reads signals coming
from sensors placed at various parts and in different components of
the car and depending on this information controls various important units
e.g. engine and other automated operations within the car among many.
Electronic Control Unit(ECU)consists of:
Microcontroller(s).
Sensors.
Power switches.
Drivers.
Voltage regulator(s).
 Automotive ECUs:
 Automotive ECUs:
Dynamic stability control
https://www.youtube.com/watch?v=VvNP2d6MDQM
Air Bags and Seat Belts
https://www.youtube.com/watch?v=R4ekbB5EzZM&spfreload=10
Roll Stability Control
https://www.youtube.com/watch?v=6WjfRxtIMzo
 Automotive ECUs:
The automotive ECU market can be segmented on the basis of as application
into safety and security systems, chassis electronics, powertrain
electronics, communication & navigation systems and entertainment
systems.
 Automotive network
Whenever increase applications/technologies in cars will increase in
ECUs.
Each car now contains at least 30 computer system (ECU).
Each ECU in car need to interface with more than one ECU to perform its
own functionality.
 Network Fundamentals
The main network properties are:
Transmission medium
Transmission speed
Network topology
Data packets
 Network Fundamentals: Transmission medium
1. Twisted pair cables
2. Fiber optics cables
3. Wireless networks
 Network Fundamentals: Transmission speed
 Transmission speed can be measured by Bit rate
 Bit rate is number of bit that can be transmit in a fixed amount of time usually
Kbit/sec
 depend on time constrains and can be measured by bit rate.
 Engine control tasks: Critical
 Break system tasks: Critical
 Dashboard tasks: High
 Doors control tasks: Normal
 Air condition tasks: Low
 Network Fundamentals: Network topology
 A network topology is the arrangement of a network, including its nodes and
connecting lines.
 there are several common physical topologies:
1. bus network topology
2. Star network topology
3. Ring network topology
 Network Fundamentals: Data packets
packet is a unit of data is called a segment or a block or a cell or a frame
depending on the type of network.
Network protocol
 Network Protocol
Network protocol determine network fundamentals.
In network protocol define:
topology, Speed, transmission medium and data packet/frame.
In embedded Systems there are three basics serial communications
protocols:
UART, SPI and I2C.
 Network Protocol
Topology in serial communication protocols define Terminologies
Simplex Communication
Half Duplex Communication
Full Duplex Communication
 Network Protocol
Speed in serial communication protocols define Modes
data can be transferred in two modes:
Synchronous mode: data sampling with clock pulses.
Asynchronous mode: transmitter and receiver used the same data
rate.
 Network Protocol
Data packet format depend on network protocol for example :
Data size
Address
Start and End communication methods
Error detection method
Automotive bus protocols
• Network protocol classification:
Depend on message ID.
Depend on distention ID.
• Network protocols depend on message ID:
Controlled area network “CAN”.
Local interconnect network “LIN”.
• Network protocols depend on distention ID: I2C.
Local interconnect network
 Local interconnect network
 LIN protocol is single master multi slaves.
 LIN bus single wire connection->> half duplex> terminology.
 LIN bus speed 20 kbps and max length 40m>>speed.
 LIN is serial communication protocol used in low speed
applications.
 in automotive applications, LIN bus is connected
between(smart sensors, actuators and ECUs such as door
control ECU and air condition ECU).
 Local interconnect network
 LIN protocol depend on message ID:
from message ID each slave connected to lin bus
determine whether it needs to publish or subscribe.
 publish-subscribe: in a publish-subscribe system, senders
label each message with the name of a topic ("publish"), rather
than addressing it to specific recipients. The messaging system
then sends the message to all eligible systems that have asked
to receive messages on that topic ("subscribe").
 Local interconnect network
 Concept of operation:
 LIN is single master –multi slaves:
master node consists of slave task and master task.
slave node consists of slave task.
 Local interconnect network
Master task:
 Control over the whole Bus.
 Controls which message at what time is to be transferred over
the bus.
 Error handling.
 monitors Data Bytes and Check Byte, and evaluates them on
consistence.
 Receives Wakeup Break from slave nodes when the bus is
inactive.
 Defines the transmission speed.
 Switching slave nodes to sleep/wake up mode.
 Local interconnect network
 Slave task:
 One of 2-16 Members on the Bus.
 Receives or transmits Data when appropriate ID is sent .
 According to ID, slave determines:
receive data (subscribe), transmit data ( publish) ,do nothing.
 When transmitting : sends 1, 2, 4, or 8 Data Bytes + Check-Byte
 LIN message frame
 The LIN is a SCI/UART-based serial, the LIN protocol is byte
oriented.
 data is sent one byte at a time.
 One byte field contains a start bit (dominant), 8 data bits and a
stop bit (recessive).
 The data bits are sent LSB first.
 LIN message frame
 LIN frame consist of:
 Header which is provided by the master task
 Response which is provided by the slave task
 LIN message frame
 Header consists of: break field, synch field and identifier field.
 Response consists of: from 0 to 8 data fields and checksum.
 LIN frame structure:
 Break field:
 The break symbol is used to signal the beginning of a new frame.
 A break is always generated by the master task and it shall be at
least 13 bits of dominant value, including the start bit, followed by
a break delimiter
 Synch break ends with a “break delimiter” which should be at least
one recessive bit.
 LIN frame structure:
 Synch field: is the second field transmitted by the master task in
the header.
 LIN is self synchronization; has the synchronization mechanism
that allows the clock recovery by slave nodes.
 Sync is defined as the character x55.
 The sync field allows slave devices that perform automatic baud
rate detection to measure the period of the baud rate and adjust
their internal baud rates to synchronize with the bus.
 LIN frame structure:
 Protected Identifier
 The ID field is the final field transmitted by the master task in the
header.
 This field provides identification for each message on the
network and ultimately determines which nodes in the network
receive or respond to each transmission.
 All slave tasks continually listen for ID fields, verify their parities,
and determine if they are publishers or subscribers for this
particular identifier.
 LIN frame structure:
 Protected Identifier
1.Identifier:
 Six bits are reserved for the identifier (ID).
 Values in the range 0 to 63 can be used.
 The identifiers are split in four categories:
 Values 0 to 59 (0x3b) are used for signal• carrying frames.
 60 (0x3c) and 61 (0x3d) are used to carry diagnostic data.
 62 (0x3e) is reserved for user• defined extensions.
 63 (0x3f) is reserved for future protocol enhancements.
 LIN frame structure:
• Protected Identifier: the Identifier Field does not indicate
the destination of the message but describes the contents of the message
frame.
 LIN frame structure:
 Protected Identifier:
ID5:4
used to determine data length in bytes which transfer in response.
 LIN frame structure:
 Protected Identifier
2. Parity:
 The parity is calculated on the identifier bits.
 LIN frame structure:
 Data:
 A frame carries between one and eight bytes of data
 A data byte is transmitted in a byte field
 The data bytes field is transmitted by the slave task in the
response.
 LIN frame structure:
 Check sum:
 The checksum field is transmitted by the slave task in the
response.
 The LIN bus defines the use of one of two checksum algorithms to
calculate the value in the eight-bit checksum field:
 Classic checksum is calculated by summing the data bytes alone (V 1.3)
 enhanced checksum is calculated by summing the data bytes and the
protected ID. (V2.0)
 LIN Error Handling:
 Each LIN Slave monitors its operating state and creates a status
report.
 The status report is sent periodically to the LIN Master (LIN 2.0).
 Monitoring by error detection mechanisms
 Parity check
 Checksum
 LIN messages detected as corrupt are rejected
 Error handling is not part of the LIN specification and must be
defined separately
 LIN Frame types:
 There are three different ways of transmitting frames on the bus:
unconditional, event triggered, and sporadic frames.
 Unconditional Frame:
 This is the “normal” type of LIN communication.
 The master sends a frame header in a scheduled frame slot and
the designated slave node fills the frame with data.
 LIN Frame types:
 Event-triggered frame: collect statues of slaves
 The purpose of this method is to receive as much information from
slave nodes without overloading the bus with frames.
 An event triggered frame can be filled with data from more
than one slave node.
 A slave only updates the data in an event triggered frame when
the value has changed.
 If more than one slave wants to update data in the frame a
collision occurs. The master should then send unconditional
frames to each of the slaves starting with the one with the highest
priority.
 LIN Frame types:
 Sporadic Frame:
 This method provides some dynamic behavior to the otherwise
static LIN protocol.
 The header of a sporadic frame is only sent from the master when
it knows that a signal has been updated in a slave node.
 Usually the master fills the data bytes of the frame itself and the
slave nodes will be the receivers of the information.
 LIN Frame types:
 User-defined frames:
 have an ID of 62.
 carry any type of information.
 Diagnostic frame:
 Eight data bytes in length
 Carry diagnostic or configuration data.
 Their IDs are :
 60 for a master request frame.
 61 for a slave response frame.
 LIN Bus Timing
Theader = (NSync_Field + NSync_Byte + NPID_Byte) • TBit = 34 • Tbit
Tresponse = 10 • (NData + 1) • Tbit
Tframe = Theader + Tresponse
 LIN Bus Timing
A time reserve of up to 40% is given for transmission of a LIN
message TFrame_Max = THeader_Max + TResponse_Max = 1.4 • TFrame
Controlled Area Network
 Controlled Area Network: Features
 CAN protocol is Multi-Master Multi-Slave communication.
 CAN bus is two wires connections but still half
duplex>>terminology.
 CAN bus speed 1 Mbps and 40m max length>>speed.
 The Controller Area Network (CAN) is a serial communications
protocol widely used in automotive electronics for critical tasks
such as engine control tasks and break systems tasks.
 Controlled Area Network: CAN bus Connection
 Controlled area network: CAN properties
Prioritization of message:
 No node addressing, Message identifier specifies contents & priority.
 Depending on the importance of messages the priorities will be given to the
different messages.
 the highest priority message with the lowest ID in your network
 Controlled area network: CAN properties
 Multicast reception with time synchronization:
CAN is based on the “broadcast communication mechanism”
,simultaneously multiple nodes can receive the frame.
 Controlled area network: CAN properties
 Multi master: When the bus is free any unit may start to transmit
a message.
If two nodes need to transmit in the same time, the unit with the
message of higher priority to be transmitted gains bus access.
 Message Routing: An identifier names the content of a message.
The identifier does not indicate the destination of the message,
but describes the meaning of the data, so that all nodes in the
network are able to decide by message filtering whether the data
is to be acted upon by them or not [publish /subscribe].
 Controlled Area Network: CAN properties
 Bus values: The bus can have one of two complementary logical
values: ‘dominant’ (‘0’) or ‘recessive’ (‘1’). During simultaneous
transmission of ’dominant’ and ’recessive’ bits, the resulting bus
value will be ’dominant’.
 Automatic retransmission of corrupted messages as soon as
the bus is idle again.
 Controlled area network: CAN properties
 Synchronization:
 Hard Synchronization:
CAN synchronize the message transfer for each node with the
leading edge of SOF bit.
 Re-synchronize
With each recessive to dominant edge.
 Controlled area network: Different Types of CAN
 There are two types of CAN implementations depending in the
size of the identifier field.
1) STANDARD: 11-bit wide identifier field.
2) EXTENDED: 29-bit wide identifier field.
 Controlled area network: CAN message
1. Data frame:
 Description: - Carries data from a transmitter to the receivers.
 Fields: - Start of Frame, Arbitration Field, Control Field, Data
Field, CRC Field, ACK Field, End of Frame.
 Controlled area network: CAN message
1. Data frame:
 SOF: Start of frame bit. It is the indication of start of frame
when a dominant bit is detected after the bus idle condition.
 Controlled area network: CAN message
1. Data frame:
 The arbitration field is depending on the type of frame
 Controlled area network: CAN message
 The arbitration field contains:
 Identifier field: contains information’s about message.
In case of standard frame the length of this field is 11 bits.
In case of extended 18 more bits are added to it. So in case of
extended frame total size of identifier field it is 29 bits.
 RTR: It is the remote transmission request BIT
RTR = Dominant in the data frames
RTR = Recessive in the remote frames
 Controlled area network: CAN message
 The arbitration field contains:
 SRR: Substitute remote request (SRR)
one bit wide. Used in case of extended frame. SRR bit will be
recessive and in case standard frame this bit replaces the RTR bit. .
 IDE: Identifier extension bit (IDE)
IDE = Dominant in the standard frame
IDE = Recessive in the extended frame
 Controlled area network: CAN message
 The control field:
six bit wide. Two bits r0 and r1 are reserved. In standard frame r1 is
replaced by IDE bit. And remaining 4 bits called as data length
control (DLC) describes total length of data field.
 Controlled area network: CAN message
 Data field: contains the actual information within the limit of
{0…8} bytes.
 CRC field: (cyclic redundancy code )
16 bit wide. Divided into two parts:
 CRC sequence: 15 bit length. Calculated over SOF to data field.
 CRC delimiter: 1 bit recessive bit.
 Controlled area network: CAN message
 ACK field: 2 bit wide and contain two fields ACK flag and
ACK delimiter.
 ACK flag: being successful reception of frame the receiver
will indicate the transmitter by putting a dominant bit in this place,
otherwise recessive.
 ACK delimiter: A recessive bit.
 END OF FRAME: 7 bit wide. Consists of 7 recessive bits.
 Controlled area network: CAN message
2- Remote Frame
Description: -
Transmitted by a bus unit to request the transmission of the data
frame with the same identifier.
 Fields: - Start of Frame, Arbitration Field, Control Field,
CRC Field, ACK Field, End of Frame
 Controlled area network: CAN message
3- Error Frame:
Description: - Any unit on detecting a error transmits an
error frame.
Fields: - Error flag and Error delimiter.
 Controlled area network: CAN message
3- Error Frame:
There are two types of error frames are there in CAN:
Active Error Flag: six dominant bits, Transmitted by a node detecting an error on
the network that is in error state "error active“.
Passive Error Flag: six recessive bits, Transmitted by a node detecting an active
error frame on the network that is in error state "error passive".
 And in both the cases all the bits of error delimiter will be all recessive.
Depending on the node internal error count register condition the
respective type of error frame will be transmitted.
 Controlled area network: CAN message
4- Overload Frame:
 Description: Generated due to internal conditions of a receiver,
which requires a delay of the next DATA or REMOTE frame.
 Fields: - Overload flag and Overload delimiter.
 Controlled area network: CAN Error Detection:
 There are 5 error detection mechanisms:
 Bit error: During transmission the node transmits the bit at
transmit time region and receives the bit at receive time and
two bits are compared if they are not equal then that is
considered as bit error.
 Controlled area network: CAN Error Detection
CRC error:
 While receiving data or remote frame the CRC value will be
calculated and is compared with the received CRC values.
 In case of proper frame transmission both will be equal. Else
that will be considered as CRC error and error frame will be
transmitted.
 Controlled area network: CAN Error Detection
Acknowledgement error:
During the transmission of data or remote frame, in the ACK flag
field the transmitter will put recessive bit and expect dominant bit
from receive pin.
If dominant bit is observed then that is considered as proper
transmission. In other case it is acknowledgement error. The error
frame is transmitted if acknowledgment error is observed.
 Controlled area network: CAN Error Detection
Form error: Form error will be related to the error in forming the
frame. For e.g. delimiter (CRC, ACK) missing or improper end of
frame, these conditions are taken as form error and immediately
error frame is transmitted.
 Controlled area network: CAN Error Detection
Stuff error:
 In a frame if continuous 5 recessive or dominant bits are
transmitted, the sixth bit should be of opposite to that.
 While receiving if continuous 5 recessive or dominant bits are
received then the next incoming bit is of same value that of
previous then it will be considered as stuff error.
 Controlled area network: Bus Arbitration
 Controlled area network
 CAN Application:
 Motor vehicles
 Utility vehicles
 Industrial automation.
 Other applications for CAN are: trains, medical equipment,
building automation, household appliances, and office
automation.
CAN and LIN in AUTOSAR
• References:
http://www.ni.com/white-paper/9733/en/
https://www.kvaser.com/about-can/can-
standards/linbus/
http://electrosofts.com/can/

Mais conteúdo relacionado

Mais procurados

Overview of automotive network protocol
Overview of automotive network protocolOverview of automotive network protocol
Overview of automotive network protocolpoojashinde212
 
In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardRealTime-at-Work (RTaW)
 
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KController Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KHariharan Krishnan
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)nassim unused
 
Controller Area Network(CAN)
Controller Area Network(CAN)Controller Area Network(CAN)
Controller Area Network(CAN)Ashutosh Bhardwaj
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolAbhinaw Tiwari
 
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDS
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDSAutomotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDS
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDSIOSR Journals
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect NetworkJabez Winston
 
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...RealTime-at-Work (RTaW)
 

Mais procurados (20)

Can bus
Can busCan bus
Can bus
 
Overview of automotive network protocol
Overview of automotive network protocolOverview of automotive network protocol
Overview of automotive network protocol
 
Can Bus communication Protocol
Can Bus communication ProtocolCan Bus communication Protocol
Can Bus communication Protocol
 
Can Protocol For Automobiles
Can Protocol For AutomobilesCan Protocol For Automobiles
Can Protocol For Automobiles
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
CAN- controlled area network
CAN- controlled area networkCAN- controlled area network
CAN- controlled area network
 
Ca npp t
Ca npp tCa npp t
Ca npp t
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
In‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look ForwardIn‐Vehicle Networking: a Survey and Look Forward
In‐Vehicle Networking: a Survey and Look Forward
 
What is AUTOSAR Communiation Stack
What is AUTOSAR Communiation StackWhat is AUTOSAR Communiation Stack
What is AUTOSAR Communiation Stack
 
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan KController Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
Controller Area Network (CAN) Protocol || Automotive Electronics || Hariharan K
 
Controller area network (can bus)
Controller area network (can bus)Controller area network (can bus)
Controller area network (can bus)
 
Controller Area Network(CAN)
Controller Area Network(CAN)Controller Area Network(CAN)
Controller Area Network(CAN)
 
Canbus
CanbusCanbus
Canbus
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus Protocol
 
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDS
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDSAutomotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDS
Automotive Diagnostics Communication Protocols AnalysisKWP2000, CAN, and UDS
 
Local Interconnect Network
Local Interconnect NetworkLocal Interconnect Network
Local Interconnect Network
 
UDS PPT
UDS PPTUDS PPT
UDS PPT
 
Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...Time-Predictable Communication in Service-Oriented Architecture - What are th...
Time-Predictable Communication in Service-Oriented Architecture - What are th...
 

Destaque

Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -pptvelichetiphani
 
Automotive Electronics In Automobile | Electronic control unit
Automotive  Electronics In Automobile | Electronic control unitAutomotive  Electronics In Automobile | Electronic control unit
Automotive Electronics In Automobile | Electronic control unitjignesh parmar
 
Design flow for Controller Area Network systems
Design flow for Controller Area Network systemsDesign flow for Controller Area Network systems
Design flow for Controller Area Network systemsAlexios Lekidis
 
Silicon Low Pressure Sensors
Silicon Low Pressure SensorsSilicon Low Pressure Sensors
Silicon Low Pressure SensorsPremier Farnell
 
Practical Fieldbus, DeviceNet & Ethernet for Indusrty
Practical Fieldbus, DeviceNet & Ethernet for IndusrtyPractical Fieldbus, DeviceNet & Ethernet for Indusrty
Practical Fieldbus, DeviceNet & Ethernet for IndusrtyLiving Online
 
Controller area network
Controller area networkController area network
Controller area networksanaz nouri
 
Ethernet oam-tutorial srinath-beldona
Ethernet oam-tutorial srinath-beldonaEthernet oam-tutorial srinath-beldona
Ethernet oam-tutorial srinath-beldonaPuran Pangeni
 
Ppt on rs logix 5000
Ppt on rs logix 5000Ppt on rs logix 5000
Ppt on rs logix 5000Anil Maurya
 
Electronic Control Unit(ECU)
Electronic Control Unit(ECU)Electronic Control Unit(ECU)
Electronic Control Unit(ECU)Ankul Gupta
 

Destaque (14)

Controller area network -ppt
Controller area network -pptController area network -ppt
Controller area network -ppt
 
Technical Ethernet
Technical EthernetTechnical Ethernet
Technical Ethernet
 
Automotive Electronics In Automobile | Electronic control unit
Automotive  Electronics In Automobile | Electronic control unitAutomotive  Electronics In Automobile | Electronic control unit
Automotive Electronics In Automobile | Electronic control unit
 
Design flow for Controller Area Network systems
Design flow for Controller Area Network systemsDesign flow for Controller Area Network systems
Design flow for Controller Area Network systems
 
Silicon Low Pressure Sensors
Silicon Low Pressure SensorsSilicon Low Pressure Sensors
Silicon Low Pressure Sensors
 
Ppt devicenet
Ppt devicenetPpt devicenet
Ppt devicenet
 
Devicenet
DevicenetDevicenet
Devicenet
 
Practical Fieldbus, DeviceNet & Ethernet for Indusrty
Practical Fieldbus, DeviceNet & Ethernet for IndusrtyPractical Fieldbus, DeviceNet & Ethernet for Indusrty
Practical Fieldbus, DeviceNet & Ethernet for Indusrty
 
Controller area network
Controller area networkController area network
Controller area network
 
Ethernet oam-tutorial srinath-beldona
Ethernet oam-tutorial srinath-beldonaEthernet oam-tutorial srinath-beldona
Ethernet oam-tutorial srinath-beldona
 
Ppt on rs logix 5000
Ppt on rs logix 5000Ppt on rs logix 5000
Ppt on rs logix 5000
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
Electronic Control Unit(ECU)
Electronic Control Unit(ECU)Electronic Control Unit(ECU)
Electronic Control Unit(ECU)
 
Can bus
Can busCan bus
Can bus
 

Semelhante a Automotive bus technologies

Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSDr. SELVAGANESAN S
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdfssuser3aa461
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Can basics
Can basicsCan basics
Can basicscdackp
 
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksNode Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksEswar Publications
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxk2w9psdb96
 
The Design of an MVB Communication Controller Based on an FPGA
The Design of an MVB Communication Controller Based on an FPGAThe Design of an MVB Communication Controller Based on an FPGA
The Design of an MVB Communication Controller Based on an FPGAIJRESJOURNAL
 
Osi model detail description
Osi model  detail descriptionOsi model  detail description
Osi model detail descriptionBathshebaparimala
 
data link layer to print
data link layer to printdata link layer to print
data link layer to printBishalWosti1
 

Semelhante a Automotive bus technologies (20)

Unit 3 - Data Link Layer - Part A
Unit 3 - Data Link Layer - Part AUnit 3 - Data Link Layer - Part A
Unit 3 - Data Link Layer - Part A
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
unit2-210710110327.pdf
unit2-210710110327.pdfunit2-210710110327.pdf
unit2-210710110327.pdf
 
DLL
DLLDLL
DLL
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
Can basics
Can basicsCan basics
Can basics
 
Data link layer
Data link layer Data link layer
Data link layer
 
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor NetworksNode Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
Node Legitimacy Based False Data Filtering Scheme in Wireless Sensor Networks
 
datalinklayermukesh
datalinklayermukeshdatalinklayermukesh
datalinklayermukesh
 
Unit 2
Unit 2Unit 2
Unit 2
 
Data Link Control
Data Link ControlData Link Control
Data Link Control
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
 
Data link layer
Data link layerData link layer
Data link layer
 
The Design of an MVB Communication Controller Based on an FPGA
The Design of an MVB Communication Controller Based on an FPGAThe Design of an MVB Communication Controller Based on an FPGA
The Design of an MVB Communication Controller Based on an FPGA
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
Unit 2 ppt 3.ppt
Unit 2 ppt 3.pptUnit 2 ppt 3.ppt
Unit 2 ppt 3.ppt
 
Osi model detail description
Osi model  detail descriptionOsi model  detail description
Osi model detail description
 
III_UNIT.pptx
III_UNIT.pptxIII_UNIT.pptx
III_UNIT.pptx
 
III_UNIT.pptx
III_UNIT.pptxIII_UNIT.pptx
III_UNIT.pptx
 
data link layer to print
data link layer to printdata link layer to print
data link layer to print
 

Último

如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一fhjlokjhi
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...Health
 
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdf
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdfJohn Deere Tractors 5415 Diagnostic Repair Service Manual.pdf
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdfExcavator
 
Effortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension ServiceEffortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension ServiceSprinter Gurus
 
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国ezgenuh
 
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
Stacey+= Dubai Calls Girls O525547819 Call Girls In Dubai
Stacey+= Dubai Calls Girls O525547819 Call Girls In DubaiStacey+= Dubai Calls Girls O525547819 Call Girls In Dubai
Stacey+= Dubai Calls Girls O525547819 Call Girls In Dubaikojalkojal131
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...nirzagarg
 
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查huxs9sacp
 
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证62qaf0hi
 
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...Hyderabad Escorts Agency
 
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样wsppdmt
 
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVE
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVESEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVE
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVEZhandosBuzheyev
 
Why Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So LoudWhy Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So LoudRoyalty Auto Service
 
CELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides forCELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides foreuphemism22
 
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理ezgenuh
 
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一opyff
 
John deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair ManualJohn deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair ManualExcavator
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5Bavarian Workshop
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一ozave
 

Último (20)

如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
如何办理田纳西大学毕业证(UTK毕业证)成绩单原版一比一
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN ABUDHABI,DUBAI MA...
 
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdf
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdfJohn Deere Tractors 5415 Diagnostic Repair Service Manual.pdf
John Deere Tractors 5415 Diagnostic Repair Service Manual.pdf
 
Effortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension ServiceEffortless Driving Experience Premier Mercedes Sprinter Suspension Service
Effortless Driving Experience Premier Mercedes Sprinter Suspension Service
 
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国
一比一原版(UVic学位证书)维多利亚大学毕业证学历认证买留学回国
 
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Ranchi [ 7014168258 ] Call Me For Genuine Models We...
 
Stacey+= Dubai Calls Girls O525547819 Call Girls In Dubai
Stacey+= Dubai Calls Girls O525547819 Call Girls In DubaiStacey+= Dubai Calls Girls O525547819 Call Girls In Dubai
Stacey+= Dubai Calls Girls O525547819 Call Girls In Dubai
 
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Thrissur [ 7014168258 ] Call Me For Genuine Models ...
 
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
如何办理(爱大毕业证书)爱丁堡大学毕业证成绩单留信学历认证真实可查
 
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证一比一原版伯明翰城市大学毕业证成绩单留信学历认证
一比一原版伯明翰城市大学毕业证成绩单留信学历认证
 
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
Faridabad Call Girls ₹7.5k Pick Up & Drop With Cash Payment 8168257667 Call G...
 
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样
一比一原版西安大略大学毕业证(UWO毕业证)成绩单原件一模一样
 
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVE
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVESEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVE
SEM 922 MOTOR GRADER PARTS LIST, ALL WHEEL DRIVE
 
Why Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So LoudWhy Does My Porsche Cayenne's Exhaust Sound So Loud
Why Does My Porsche Cayenne's Exhaust Sound So Loud
 
CELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides forCELLULAR RESPIRATION. Helpful slides for
CELLULAR RESPIRATION. Helpful slides for
 
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
一比一原版(PU学位证书)普渡大学毕业证学历认证加急办理
 
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一
如何办理新西兰林肯大学毕业证(Lincoln毕业证书)成绩单原版一比一
 
John deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair ManualJohn deere 7200r 7230R 7260R Problems Repair Manual
John deere 7200r 7230R 7260R Problems Repair Manual
 
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
What Does The Engine Malfunction Reduced Power Message Mean For Your BMW X5
 
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
如何办理麦考瑞大学毕业证(MQU毕业证书)成绩单原版一比一
 

Automotive bus technologies

  • 1. Prepared by: Radwa Tarek. Automotive Bus Technologies
  • 2. Agenda:  Introduction to automotive embedded systems.  Automotive Network.  Network fundamentals.  Review for Serial communication.  Automotive bus protocols: Local interconnect technology. Controlled area network.
  • 3.  Introduction to automotive embedded systems. • Automotive is embedding systems consist of separated ECUs and each ECU has its own functionality.
  • 4. What is an ECU? In the Automobile industry an electronic control unit (ECU) is an embedded electronic device, basically a digital computer, that reads signals coming from sensors placed at various parts and in different components of the car and depending on this information controls various important units e.g. engine and other automated operations within the car among many. Electronic Control Unit(ECU)consists of: Microcontroller(s). Sensors. Power switches. Drivers. Voltage regulator(s).
  • 6.  Automotive ECUs: Dynamic stability control https://www.youtube.com/watch?v=VvNP2d6MDQM Air Bags and Seat Belts https://www.youtube.com/watch?v=R4ekbB5EzZM&spfreload=10 Roll Stability Control https://www.youtube.com/watch?v=6WjfRxtIMzo
  • 7.  Automotive ECUs: The automotive ECU market can be segmented on the basis of as application into safety and security systems, chassis electronics, powertrain electronics, communication & navigation systems and entertainment systems.
  • 8.  Automotive network Whenever increase applications/technologies in cars will increase in ECUs. Each car now contains at least 30 computer system (ECU). Each ECU in car need to interface with more than one ECU to perform its own functionality.
  • 9.  Network Fundamentals The main network properties are: Transmission medium Transmission speed Network topology Data packets
  • 10.  Network Fundamentals: Transmission medium 1. Twisted pair cables 2. Fiber optics cables 3. Wireless networks
  • 11.  Network Fundamentals: Transmission speed  Transmission speed can be measured by Bit rate  Bit rate is number of bit that can be transmit in a fixed amount of time usually Kbit/sec  depend on time constrains and can be measured by bit rate.  Engine control tasks: Critical  Break system tasks: Critical  Dashboard tasks: High  Doors control tasks: Normal  Air condition tasks: Low
  • 12.  Network Fundamentals: Network topology  A network topology is the arrangement of a network, including its nodes and connecting lines.  there are several common physical topologies: 1. bus network topology 2. Star network topology 3. Ring network topology
  • 13.  Network Fundamentals: Data packets packet is a unit of data is called a segment or a block or a cell or a frame depending on the type of network.
  • 15.  Network Protocol Network protocol determine network fundamentals. In network protocol define: topology, Speed, transmission medium and data packet/frame. In embedded Systems there are three basics serial communications protocols: UART, SPI and I2C.
  • 16.  Network Protocol Topology in serial communication protocols define Terminologies Simplex Communication Half Duplex Communication Full Duplex Communication
  • 17.  Network Protocol Speed in serial communication protocols define Modes data can be transferred in two modes: Synchronous mode: data sampling with clock pulses. Asynchronous mode: transmitter and receiver used the same data rate.
  • 18.  Network Protocol Data packet format depend on network protocol for example : Data size Address Start and End communication methods Error detection method
  • 19. Automotive bus protocols • Network protocol classification: Depend on message ID. Depend on distention ID. • Network protocols depend on message ID: Controlled area network “CAN”. Local interconnect network “LIN”. • Network protocols depend on distention ID: I2C.
  • 21.  Local interconnect network  LIN protocol is single master multi slaves.  LIN bus single wire connection->> half duplex> terminology.  LIN bus speed 20 kbps and max length 40m>>speed.  LIN is serial communication protocol used in low speed applications.  in automotive applications, LIN bus is connected between(smart sensors, actuators and ECUs such as door control ECU and air condition ECU).
  • 22.  Local interconnect network  LIN protocol depend on message ID: from message ID each slave connected to lin bus determine whether it needs to publish or subscribe.  publish-subscribe: in a publish-subscribe system, senders label each message with the name of a topic ("publish"), rather than addressing it to specific recipients. The messaging system then sends the message to all eligible systems that have asked to receive messages on that topic ("subscribe").
  • 23.  Local interconnect network  Concept of operation:  LIN is single master –multi slaves: master node consists of slave task and master task. slave node consists of slave task.
  • 24.  Local interconnect network Master task:  Control over the whole Bus.  Controls which message at what time is to be transferred over the bus.  Error handling.  monitors Data Bytes and Check Byte, and evaluates them on consistence.  Receives Wakeup Break from slave nodes when the bus is inactive.  Defines the transmission speed.  Switching slave nodes to sleep/wake up mode.
  • 25.  Local interconnect network  Slave task:  One of 2-16 Members on the Bus.  Receives or transmits Data when appropriate ID is sent .  According to ID, slave determines: receive data (subscribe), transmit data ( publish) ,do nothing.  When transmitting : sends 1, 2, 4, or 8 Data Bytes + Check-Byte
  • 26.  LIN message frame  The LIN is a SCI/UART-based serial, the LIN protocol is byte oriented.  data is sent one byte at a time.  One byte field contains a start bit (dominant), 8 data bits and a stop bit (recessive).  The data bits are sent LSB first.
  • 27.  LIN message frame  LIN frame consist of:  Header which is provided by the master task  Response which is provided by the slave task
  • 28.  LIN message frame  Header consists of: break field, synch field and identifier field.  Response consists of: from 0 to 8 data fields and checksum.
  • 29.  LIN frame structure:  Break field:  The break symbol is used to signal the beginning of a new frame.  A break is always generated by the master task and it shall be at least 13 bits of dominant value, including the start bit, followed by a break delimiter  Synch break ends with a “break delimiter” which should be at least one recessive bit.
  • 30.  LIN frame structure:  Synch field: is the second field transmitted by the master task in the header.  LIN is self synchronization; has the synchronization mechanism that allows the clock recovery by slave nodes.  Sync is defined as the character x55.  The sync field allows slave devices that perform automatic baud rate detection to measure the period of the baud rate and adjust their internal baud rates to synchronize with the bus.
  • 31.  LIN frame structure:  Protected Identifier  The ID field is the final field transmitted by the master task in the header.  This field provides identification for each message on the network and ultimately determines which nodes in the network receive or respond to each transmission.  All slave tasks continually listen for ID fields, verify their parities, and determine if they are publishers or subscribers for this particular identifier.
  • 32.  LIN frame structure:  Protected Identifier 1.Identifier:  Six bits are reserved for the identifier (ID).  Values in the range 0 to 63 can be used.  The identifiers are split in four categories:  Values 0 to 59 (0x3b) are used for signal• carrying frames.  60 (0x3c) and 61 (0x3d) are used to carry diagnostic data.  62 (0x3e) is reserved for user• defined extensions.  63 (0x3f) is reserved for future protocol enhancements.
  • 33.  LIN frame structure: • Protected Identifier: the Identifier Field does not indicate the destination of the message but describes the contents of the message frame.
  • 34.  LIN frame structure:  Protected Identifier: ID5:4 used to determine data length in bytes which transfer in response.
  • 35.  LIN frame structure:  Protected Identifier 2. Parity:  The parity is calculated on the identifier bits.
  • 36.  LIN frame structure:  Data:  A frame carries between one and eight bytes of data  A data byte is transmitted in a byte field  The data bytes field is transmitted by the slave task in the response.
  • 37.  LIN frame structure:  Check sum:  The checksum field is transmitted by the slave task in the response.  The LIN bus defines the use of one of two checksum algorithms to calculate the value in the eight-bit checksum field:  Classic checksum is calculated by summing the data bytes alone (V 1.3)  enhanced checksum is calculated by summing the data bytes and the protected ID. (V2.0)
  • 38.  LIN Error Handling:  Each LIN Slave monitors its operating state and creates a status report.  The status report is sent periodically to the LIN Master (LIN 2.0).  Monitoring by error detection mechanisms  Parity check  Checksum  LIN messages detected as corrupt are rejected  Error handling is not part of the LIN specification and must be defined separately
  • 39.  LIN Frame types:  There are three different ways of transmitting frames on the bus: unconditional, event triggered, and sporadic frames.  Unconditional Frame:  This is the “normal” type of LIN communication.  The master sends a frame header in a scheduled frame slot and the designated slave node fills the frame with data.
  • 40.  LIN Frame types:  Event-triggered frame: collect statues of slaves  The purpose of this method is to receive as much information from slave nodes without overloading the bus with frames.  An event triggered frame can be filled with data from more than one slave node.  A slave only updates the data in an event triggered frame when the value has changed.  If more than one slave wants to update data in the frame a collision occurs. The master should then send unconditional frames to each of the slaves starting with the one with the highest priority.
  • 41.  LIN Frame types:  Sporadic Frame:  This method provides some dynamic behavior to the otherwise static LIN protocol.  The header of a sporadic frame is only sent from the master when it knows that a signal has been updated in a slave node.  Usually the master fills the data bytes of the frame itself and the slave nodes will be the receivers of the information.
  • 42.  LIN Frame types:  User-defined frames:  have an ID of 62.  carry any type of information.  Diagnostic frame:  Eight data bytes in length  Carry diagnostic or configuration data.  Their IDs are :  60 for a master request frame.  61 for a slave response frame.
  • 43.  LIN Bus Timing Theader = (NSync_Field + NSync_Byte + NPID_Byte) • TBit = 34 • Tbit Tresponse = 10 • (NData + 1) • Tbit Tframe = Theader + Tresponse
  • 44.  LIN Bus Timing A time reserve of up to 40% is given for transmission of a LIN message TFrame_Max = THeader_Max + TResponse_Max = 1.4 • TFrame
  • 46.  Controlled Area Network: Features  CAN protocol is Multi-Master Multi-Slave communication.  CAN bus is two wires connections but still half duplex>>terminology.  CAN bus speed 1 Mbps and 40m max length>>speed.  The Controller Area Network (CAN) is a serial communications protocol widely used in automotive electronics for critical tasks such as engine control tasks and break systems tasks.
  • 47.  Controlled Area Network: CAN bus Connection
  • 48.  Controlled area network: CAN properties Prioritization of message:  No node addressing, Message identifier specifies contents & priority.  Depending on the importance of messages the priorities will be given to the different messages.  the highest priority message with the lowest ID in your network
  • 49.  Controlled area network: CAN properties  Multicast reception with time synchronization: CAN is based on the “broadcast communication mechanism” ,simultaneously multiple nodes can receive the frame.
  • 50.  Controlled area network: CAN properties  Multi master: When the bus is free any unit may start to transmit a message. If two nodes need to transmit in the same time, the unit with the message of higher priority to be transmitted gains bus access.  Message Routing: An identifier names the content of a message. The identifier does not indicate the destination of the message, but describes the meaning of the data, so that all nodes in the network are able to decide by message filtering whether the data is to be acted upon by them or not [publish /subscribe].
  • 51.  Controlled Area Network: CAN properties  Bus values: The bus can have one of two complementary logical values: ‘dominant’ (‘0’) or ‘recessive’ (‘1’). During simultaneous transmission of ’dominant’ and ’recessive’ bits, the resulting bus value will be ’dominant’.  Automatic retransmission of corrupted messages as soon as the bus is idle again.
  • 52.  Controlled area network: CAN properties  Synchronization:  Hard Synchronization: CAN synchronize the message transfer for each node with the leading edge of SOF bit.  Re-synchronize With each recessive to dominant edge.
  • 53.  Controlled area network: Different Types of CAN  There are two types of CAN implementations depending in the size of the identifier field. 1) STANDARD: 11-bit wide identifier field. 2) EXTENDED: 29-bit wide identifier field.
  • 54.  Controlled area network: CAN message 1. Data frame:  Description: - Carries data from a transmitter to the receivers.  Fields: - Start of Frame, Arbitration Field, Control Field, Data Field, CRC Field, ACK Field, End of Frame.
  • 55.  Controlled area network: CAN message 1. Data frame:  SOF: Start of frame bit. It is the indication of start of frame when a dominant bit is detected after the bus idle condition.
  • 56.  Controlled area network: CAN message 1. Data frame:  The arbitration field is depending on the type of frame
  • 57.  Controlled area network: CAN message  The arbitration field contains:  Identifier field: contains information’s about message. In case of standard frame the length of this field is 11 bits. In case of extended 18 more bits are added to it. So in case of extended frame total size of identifier field it is 29 bits.  RTR: It is the remote transmission request BIT RTR = Dominant in the data frames RTR = Recessive in the remote frames
  • 58.  Controlled area network: CAN message  The arbitration field contains:  SRR: Substitute remote request (SRR) one bit wide. Used in case of extended frame. SRR bit will be recessive and in case standard frame this bit replaces the RTR bit. .  IDE: Identifier extension bit (IDE) IDE = Dominant in the standard frame IDE = Recessive in the extended frame
  • 59.  Controlled area network: CAN message  The control field: six bit wide. Two bits r0 and r1 are reserved. In standard frame r1 is replaced by IDE bit. And remaining 4 bits called as data length control (DLC) describes total length of data field.
  • 60.  Controlled area network: CAN message  Data field: contains the actual information within the limit of {0…8} bytes.  CRC field: (cyclic redundancy code ) 16 bit wide. Divided into two parts:  CRC sequence: 15 bit length. Calculated over SOF to data field.  CRC delimiter: 1 bit recessive bit.
  • 61.  Controlled area network: CAN message  ACK field: 2 bit wide and contain two fields ACK flag and ACK delimiter.  ACK flag: being successful reception of frame the receiver will indicate the transmitter by putting a dominant bit in this place, otherwise recessive.  ACK delimiter: A recessive bit.  END OF FRAME: 7 bit wide. Consists of 7 recessive bits.
  • 62.  Controlled area network: CAN message 2- Remote Frame Description: - Transmitted by a bus unit to request the transmission of the data frame with the same identifier.  Fields: - Start of Frame, Arbitration Field, Control Field, CRC Field, ACK Field, End of Frame
  • 63.  Controlled area network: CAN message 3- Error Frame: Description: - Any unit on detecting a error transmits an error frame. Fields: - Error flag and Error delimiter.
  • 64.  Controlled area network: CAN message 3- Error Frame: There are two types of error frames are there in CAN: Active Error Flag: six dominant bits, Transmitted by a node detecting an error on the network that is in error state "error active“. Passive Error Flag: six recessive bits, Transmitted by a node detecting an active error frame on the network that is in error state "error passive".  And in both the cases all the bits of error delimiter will be all recessive. Depending on the node internal error count register condition the respective type of error frame will be transmitted.
  • 65.  Controlled area network: CAN message 4- Overload Frame:  Description: Generated due to internal conditions of a receiver, which requires a delay of the next DATA or REMOTE frame.  Fields: - Overload flag and Overload delimiter.
  • 66.  Controlled area network: CAN Error Detection:  There are 5 error detection mechanisms:  Bit error: During transmission the node transmits the bit at transmit time region and receives the bit at receive time and two bits are compared if they are not equal then that is considered as bit error.
  • 67.  Controlled area network: CAN Error Detection CRC error:  While receiving data or remote frame the CRC value will be calculated and is compared with the received CRC values.  In case of proper frame transmission both will be equal. Else that will be considered as CRC error and error frame will be transmitted.
  • 68.  Controlled area network: CAN Error Detection Acknowledgement error: During the transmission of data or remote frame, in the ACK flag field the transmitter will put recessive bit and expect dominant bit from receive pin. If dominant bit is observed then that is considered as proper transmission. In other case it is acknowledgement error. The error frame is transmitted if acknowledgment error is observed.
  • 69.  Controlled area network: CAN Error Detection Form error: Form error will be related to the error in forming the frame. For e.g. delimiter (CRC, ACK) missing or improper end of frame, these conditions are taken as form error and immediately error frame is transmitted.
  • 70.  Controlled area network: CAN Error Detection Stuff error:  In a frame if continuous 5 recessive or dominant bits are transmitted, the sixth bit should be of opposite to that.  While receiving if continuous 5 recessive or dominant bits are received then the next incoming bit is of same value that of previous then it will be considered as stuff error.
  • 71.  Controlled area network: Bus Arbitration
  • 72.  Controlled area network  CAN Application:  Motor vehicles  Utility vehicles  Industrial automation.  Other applications for CAN are: trains, medical equipment, building automation, household appliances, and office automation.
  • 73. CAN and LIN in AUTOSAR