Oneforall PDF
Oneforall PDF
9-Jul-18 Confidential 2
Controller Area Network (CAN) - History
• CAN is an Open International Standard
• Initial definition by Robert Bosch in 1980’s.
• Used in first automobile application in 1990.
• Selected as building block of SAE’s J1939 standards in 1993
9-Jul-18 Confidential 3
Multiplexing
Transmission of multiple signals over a single communication medium.
• Advantages of multiplexing:
• Reduction in overall system wiring, resulting in cost/weight savings.
• Reduction in wire harness size, simpler packaging.
• Elimination of redundant sensors/functions.
• Improved reliability
• Standardized engine interface
• Disadvantages of multiplexing:
• System diagnostics and service require more specialized training/knowledge
• system architecture more complex
9-Jul-18 Confidential 4
CAN Standards
• The CAN communication standard ISO 11898 describes how information is passed between the
nodes.
• CAN follow the OSI Seven Layer Model
• The Open Systems Interconnection (OSI) model defines a networking framework for
implementing protocols in seven layers.
• Control is passed from one layer to the next, starting at the application layer in one station,
proceeding to the bottom layer, over the channel to the next station and back up the hierarchy.
• Each layer exists to interact with the layer above and below it.
9-Jul-18 Confidential 5
Seven Layer Model
9-Jul-18 Confidential 6
Devices on the CAN
9-Jul-18 Confidential 7
Think Binary
CAN is a two-wire system
It has non-return-to-zero (NRZ) states
Has two States: Recessive and Dominant
Dominant State is a transmission of logical “0” (2 V differential). Recessive
State is a transmission of logical “1” (0 V differential)
There is no other neutral or rest condition. During idle time, bus is recessive.
Bit-stuffing is employed. The transmitting node inserts a complementary bit in
the transmitted bit stream after five consecutive message bits of the same
value
Vcan_H
9-Jul-18 Confidential 8
Carrier Sense Multiple Access with Collision
Detection
• Carrier Sense:
• Each node verifies the absence of other traffic before transmitting
• That is, it tries to detect the presence of a carrier wave from another station before attempting to
transmit.
• If a carrier is sensed, the station waits for the transmission in progress to finish before initiating
its own transmission.
• Multiple Access:
• Multiple stations send and receive on the medium.
• Transmissions by one node are generally received by all other stations connected to the medium.
• Collision Detection:
• The node terminates transmission as soon as a collision is detected, thus shortening the time
required before a retry can be attempted.
9-Jul-18 Confidential 9
CAN Attributes
• Plug and Play for add-on devices on the network (no pre-registration)
• Multi-master – no ‘Almighty’
• Auto prioritization by means of Bus Arbitration
•Provides a self-contained synchronization mechanism (independent devices can run on their
internal clocks)
• Broadcast type bus
• Fault tolerant – Detection and Recovery at multiple levels
• Guaranteed message delivery
9-Jul-18 Confidential 10
CAN Attributes
• Modules connect to the bus in a “wired-and” fashion.
• During periods of idle time the bus is in a recessive (logic 1) state.
• Uses non destructive bit wise arbitration for bus access. Non-destructive means that the node
winning arbitration just continues on with the message, without the message being destroyed or
corrupted by another node.
• Small message size.
• No explicit address within CAN; the contents of the message determine the address.
9-Jul-18 Confidential 11
Components of the CAN Network
• Data-link and Physical Layer
• CAN transceiver
• CAN controller
• CAN software application
9-Jul-18 Confidential 12
Physical Layer Specification
• Cable comprising of two parallel wires with an impedance of 120 ohms.
• Shielded twisted pair wire recommended
• Max. line length of 40 metres @ 1 Mbps
• Reflections in the transmission line should be kept as low as possible
• Reflections happen very quickly during and just after signal transmissions
• Can affect the determination of logic levels
• More cause for concern on longer networks
9-Jul-18 Confidential 13
Termination
• Both ends of the bus must be terminated so that any node can transmit
• There should be no more than 2 terminating resistors
• Integrating the terminating resistor into a node is not recommended
• Can cause the network to lose communication if the node with terminating resistor is
disconnected.
• Can create a situation of more than 2 terminating resistors on the bus
9-Jul-18 Confidential 14
Physical Filtering
• For enhanced signal quality, the terminating resistors on each side can be split into two and a
capacitor added to create a R-C network based high-frequency filtering
• Most transceivers with internal termination provide this filtering.
9-Jul-18 Confidential 15
Isolation
• The ground potentials at different nodes of the network can be different.
• The differential is called Common Mode Voltage
• A high differential should not cause intermittent reboots, lock-ups, bad data transfer or physical
damage to the transceiver
• This and other noise induced in the ground link need to be isolated
9-Jul-18 Confidential 16
Mis-wiring and Short Circuit
• In some CAN applications, 24V and common ground lines are routed along the 2 CAN lines
• The CAN inputs on the transceiver should be protected for miswiring and short circuit with up to
32 V
9-Jul-18 Confidential 17
CAN Bit Timing
• Each node in a CAN network has its own clock, and no clock is sent during data transmission.
• Nominal Bit Rate is the number of bits transmitted per second
• Nominal Bit Time = 1 / Nominal Bit Rate
• Bit divisions – the nominal time to transmit each bit is divided into four times segments.
• Sampling Mode typically one sample per bit.
• Resynchronization takes place when a node receives a data frame or remote frame.
9-Jul-18 Confidential 18
CAN Bit Divisions
• SYNC SEG - This part of the bit time is used to synchronize the various nodes on the bus. An
edge is expected to lie within this segment.
• PROP SEG - This part of the bit time is used to compensate for the physical delay times
within the network. It is twice the sum of the signal’s propagation time on the bus line, the
input comparator delay, and the output driver delay.
• PHASE SEG1, PHASE SEG2 - These Phase-Buffer-Segments are used to compensate for edge
phase errors. These segments can be lengthened or shortened by resynchronization.
• SAMPLE POINT - The SAMPLE POINT is the point of time at which the bus level is read and
interpreted as the value of that respective bit. It’s location is at the end of PHASE_SEG1.
9-Jul-18 Confidential 19
CAN Arbitration Collision
SOF
Idle
Tx
0 1 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1
Node A
Rx 0 1 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1
Tx
0 1 0 0 1 0 1 1 1
Node B
Rx 0 1 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1
Bus 0 1 0 0 1 0 1 1 0 1 0 1 1 1 1 0 1 1 0 1
9-Jul-18 Confidential 20
CAN Message Types
• Information on the bus is sent in fixed format messages of different but
limited length
• Data Frame
• Data Frame is the most common of the CAN Message types – used for sending
data between two controllers.
• Remote Frame
• Remote Frame is a truncated form of the Data Frame
• Error Frame
• A information frame transmitted by a node that detects an error within a
message
• Overload Frame
• Special Frame used to delay transmission of a CAN frame if the receiver circuitry
of a node is not ready
9-Jul-18 Confidential 21
CAN Data Frame Format
• The CAN Data Frame is composed of eight fields
• Start Of Frame (SOF)
• Identifier or Arbitration field
• Control Field
• Data Field
• Cyclic Redundancy Check (CRC) Field
• Acknowledge (ACK) field
• End Of Frame (EOF) Field
• Inter-frame Space
9-Jul-18 Confidential 22
CAN Message Formats
• A CAN can be configured to work with two different message formats:
a. The standard or base frame format (or CAN 2.0 A):
Supports a length of 11 bits for the identifier.
This provides for 2048 unique identifiers.
b. The extended frame format (or CAN 2.0 B) supports a length of 29 bits for the identifier
Made up of the 11-bit identifier (“base identifier”) and an 18-bit extension
(“identifier extension”).
This provides for 537 million unique identifiers
c. CAN controllers, which support extended frame format messages are also able to send and
receive messages in CAN base frame format. (but not vice versa, especially in case of older
controllers)
9-Jul-18 Confidential 23
CAN Standard Frame Format
Maximum frame length with bit stuffing = 127 bits
S R I
Identifier T D r DLC Data Field CRC ACK EOF
O
F R E 0 Field
1 11 1 1 1 4 0 - 64 15 1 2 7
Number
of Bits
Bit Stuffing No Bit Stuffing
9-Jul-18 Confidential 24
Frame Contents
• SOF - The single dominant start of frame (SOF) bit marks the start of a message, and is used to
synchronize the nodes on a bus after being idle.
• Identifier - The Standard CAN 11-bit identifier establishes the priority of the message. The lower
the binary value, the higher its priority.
• RTR – The single remote transmission request (RTR) bit is dominant when information is required
from another node. All nodes receive the request, but the identifier determines the specified
node. The responding data is also received by all nodes and used by any node interested
• IDE – A dominant single identifier extension (IDE) bit means that a standard CAN identifier with
no extension is being transmitted
9-Jul-18 Confidential 25
Frame Contents
• r0 – Reserved bit (for possible use by future standard amendment).
• DLC – The 4-bit data length code (DLC) contains the number of bytes of data being transmitted.
• Data – Up to 64 bits of application data may be transmitted.
• CRC – The 16-bit (15 bits plus delimiter) cyclic redundancy check (CRC) contains the checksum
(number of bits transmitted) of the preceding application data for error detection.
9-Jul-18 Confidential 26
Frame Contents
• ACK – Every node receiving an accurate message overwrites this recessive bit in the original
message with a dominate bit, indicating an error-free message has been sent. Should a receiving
node detect an error and leave this bit recessive, it discards the message and the sending node
repeats the message after re-arbitration. In this way, each node acknowledges (ACK) the integrity
of its data. ACK is 2 bits, one is the acknowledgment bit and the second is a delimiter
• EOF – This end-of-frame (EOF), 7-bit field marks the end of a CAN frame (message) and disables
bit-stuffing, indicating a stuffing error when dominant.
• IFS – This 7-bit inter-frame space (IFS) contains the time required by the controller to move a
correctly received frame to its proper position in a message buffer area.
9-Jul-18 Confidential 27
CAN Extended Frame Format
Maximum frame length with bit stuffing = 151 bits
Control CRC
Arbitration Field Data
Field
32 Bits
6 Bits
Field Delimiter
S S I R EE
Identifier
O Identifier R D T r r DLC Data Field CRC ACK O
Ext. 1 0
F R E R Field FF
Number
1 11 1 1 18 1 1 1 4 0 - 64 15 1 2 7
of Bits
No Bit
Bit Stuffing
Stuffing
9-Jul-18 Confidential 28
Frame Contents
• SRR – The substitute remote request (SRR) bit replaces the RTR bit in the standard message
location as a placeholder in the extended format.
• IDE – A recessive bit in the identifier extension (IDE) indicates that more identifier bits follow. The
18-bit extension follows IDE.
• r1 – Following the RTR and r0 bits, an additional reserve bit has been included ahead of the DLC
bit.
9-Jul-18 Confidential 29
Remote Frame
• The intended purpose of the remote frame is to solicit the transmission of data from another
node.
• The remote frame is similar to the data frame, with two important differences.
• First, this type of message is explicitly marked as a remote frame by a recessive RTR bit in the
arbitration field, and secondly, there is no data.
• The Remote Frame only consists of:
• START OF FRAME, ARBITRATION FIELD, CONTROL FIELD, CRC FIELD, ACK FIELD, END OF FRAME.
9-Jul-18 Confidential 30
Error Detection and Confinement
• CAN Network has very strong error detection and confinement capabilities, and it is fault
tolerant.
• Powerful error handling.
• Error detection is performed by all network devices.
All devices or no devices will process a given message.
• Errors are confined.
9-Jul-18 Confidential 31
Bit Level Error Detection
• Bit Monitoring
• Each bit is monitored by the transmitter
• Bit Stuffing
• If more than five bits in the same state are received a Stuff error is raised.
9-Jul-18 Confidential 32
Bit Monitoring
•Transmitter also reads transmitted signal.
•This feedback is also used to ensure that it is still ‘winning’ the bus state (for it to continue
transmitting)
•During the Identifier based arbitration, if the transmitter sent a ‘recessive’ bit and the state of the
bus is ‘dominant’, the transmitter should stop sending the signal and convert into a receiver. No
error is raised in this condition.
• There are two additional exceptions where an opposite bit level may be detected without error:
• The node sending the acknowledgement field detects the bus in a dominant state.
• The node sending a passive error flag detects the bus in a dominant state.
9-Jul-18 Confidential 33
Bit Stuffing
• A transmitting node should insert a complementary bit in the transmitted bit stream after five
consecutive message bits of the same value.
• This encoding is used for an entire CAN data or remote frame with the exception of fixed form bit
fields for the CRC delimiter, ACK field, and end of frame. CAN error or overload frames are also
fixed form.
• Any node receiving a message that breaks the bit stuffing rules will detect this as a receive error
9-Jul-18 Confidential 34
Message Level Error Detection
• Form Check
• CRC Check
• Acknowledge Check
9-Jul-18 Confidential 35
Form Check
• Certain bit fields in a CAN message frame are of fixed form, specifically the CRC delimiter field,
ACK field, and end of frame.
• Receiving nodes perform a form check to ensure these are correct.
9-Jul-18 Confidential 36
CRC Check
• The CRC is a sequence of bits that are calculated based on the first part of the CAN frame (up to
the data field).
• The transmitting node computes this sequence by dividing a generator polynomial into a
polynomial formed from the CAN data, to provide a remainder that serves as the CRC sequence.
• The generator-polynomial:
• X 15 + X 14 + X 10 + X 8 + X7 + X 4 + X 3 + 1.
• This CRC sequence is inserted into the CAN message in the CRC field.
• The receiving node divides the generator polynomial into a polynomial formed from the data and
CRC sequences together.
• In the event of no errors, the remainder should be zero.
9-Jul-18 Confidential 37
Acknowledge Check
• Although the acknowledgement field is transmitted as recessive, the transmitting node checks
for a dominant bit on the bus during this bit time.
• This dominant bit is an ACK bit is sent by any node receiving the message correctly.
• A transmit error occurs if no other node acknowledges the message.
9-Jul-18 Confidential 38
Error Detection
• Whenever a Bit Monitoring Error, Bit Stuffing Error, Form Error or an Acknowledgement Error is
detected by any station, it starts transmitting an ERROR FLAG at the next bit.
• When a CRC Error is detected, transmission of an ERROR FLAG starts at the bit following ACK
DELIMITER (unless an ERROR FLAG for another ERROR has already started)
9-Jul-18 Confidential 39
Error Frames
• The ERROR FRAME consists of two different fields. The first field is given by the superposition of
ERROR FLAGs contributed from different stations. The following second field is the ERROR
DELIMITER.
• There are 2 forms of an ERROR FLAG: an ACTIVE ERROR FLAG and a PASSIVE ERROR FLAG.
• The total length of this sequence varies between a minimum of six and a maximum of twelve
bits.
9-Jul-18 Confidential 40
Active Error Flag
• The ACTIVE ERROR FLAG is sent by all the nodes detecting the Error.
• It consists of six consecutive ’dominant’ bits.
• The resulting bit state of the bus is a super-imposition of the dominant bits (each node will feel
that it has won).
• The ERROR FLAG’s form violates the law of bit stuffing.
• As a consequence, all other stations (i.e. the ones that did not detect the error, including the
node that transmitted the faulty message) detect an error condition and on their part start
transmission of an PASSIVE ERROR FLAG
• After transmission of an ERROR FLAG each node sends ’recessive’ bits and monitors the bus until
it detects a ’recessive’ bit.
9-Jul-18 Confidential 41
Passive Error Flag
• The PASSIVE ERROR FLAG is sent by the nodes that did not detect the error
• It is sent in response to the ‘bit stuffing’ error that originates in the ACTIVE ERROR FLAG
• This is ideally meant to single out the faulty controller and take the control of the bus from it.
• It consists of six consecutive ’recessive’ bits unless it is overwritten by ’dominant’ bits from other
nodes that wants to send a new message.
• The node sending the PASSIVE ERROR FLAG regains control of the bus only if other controllers are
not sending anything.
9-Jul-18 Confidential 42
Error Feedback
• An ’error passive’ station detecting an error condition tries to signal this by transmission of a
PASSIVE ERROR FLAG.
• The ’error passive’ station waits for six consecutive bits of equal polarity, beginning at the start of
the PASSIVE ERROR FLAG.
• The PASSIVE ERROR FLAG is complete when these 6 equal bits have been detected.
• The ERROR DELIMITER consists of eight ’recessive’ bits.
9-Jul-18 Confidential 43
Too Many Error Frames
• An Error Frame is transmitted when a node detects an error in a message, and causes all other
nodes in the network to send an error frame as well.
• The original transmitter then automatically retransmits the message.
• An elaborate system of error counters in the CAN controller ensures that a node cannot tie up a
bus by repeatedly transmitting error frames.
9-Jul-18 Confidential 44
Fault Confinement
• For fault confinement two counts are implemented in every node:
• 1) TRANSMIT ERROR COUNT
• 2) RECEIVE ERROR COUNT
• A node is ’bus off’ when the TRANSMIT ERROR COUNT is greater than or equal to 256.
• A ‘bus off’ unit cannot have any further influence on the bus.
• An error count value greater than about 96 indicates a heavily disturbed bus. It may be of
advantage to provide means to test for this condition.
• Start-up / Wake-up:
• If during system start-up only 1 node is online, and if this node transmits some message, it will
get no acknowledgement, detect an error and repeat the message. It can become ’error passive’
but not ’bus off’ due to this reason.
9-Jul-18 Confidential 45
Fault Confinement
9-Jul-18 Confidential 46
Fault Confinement
9-Jul-18 Confidential 47
Inter-Frame Spacing
• DATA FRAMEs and REMOTE FRAMEs are separated from preceding frames by a bit field called
INTERFRAME SPACE. In contrast, OVERLOAD FRAMEs and ERROR FRAMEs are not preceded by
an INTERFRAME SPACE and multiple OVER-LOAD FRAMEs are not separated by an
INTERFRAME SPACE
• For stations which are not ‘error passive’ or have been RECEIVER of the previous message,
INTERFRAME SPACE, contains the bit fields INTERMISSION and BUS IDLE
• For ‘error passive’ stations, which have been TRANSMITTER of the previous message, the
INTERFRAME SPACE, contains the bit files, INTERMISSION, SUSPEND TRANSMISSION and BUS
IDLE.
9-Jul-18 Confidential 48
Inter-Frame Spacing
• INTERMISSION consists of three ’recessive’ bits.
• During INTERMISSION the only action to be taken is signalling an OVERLOAD
condition and no station is allowed to actively start a transmission of a DATA
FRAME or REMOTE FRAME.
• The period of BUS IDLE may be of arbitrary length. The bus is recognized to be
free and any station having something to transmit can access the bus.
• A message, which is pending for transmission during the transmission of another
message, is started in the first bit following INTERMISSION.
• The detection of a ’dominant’ bit on the bus is interpreted as START OF FRAME.
9-Jul-18 Confidential 49
Stand-by Mode
• As a lower-power opportunity, many transceivers provide the option to go into ‘stand-by’ or
‘listen only’ mode
• The transmitter is switched off while the receiver continues to monitor bus activity and pass it to
the CAN controller.
• CAN controllers can be programmed to “wake-up” the device upon the receipt of certain data.
9-Jul-18 Confidential 50
Sleep Mode
• In sleep mode both transmitter and receiver circuits can be switched off to create an extremely
low-power sleep mode.
• There is no bus monitoring.
9-Jul-18 Confidential 51
Message Filtering
• All messages broadcast on the CAN Network are received at each node.
• CAN controllers can be programmed to filter messages of interest.
• This is a recommended practice so that the transceiver decoder can only spend time and energy
to collect required information.
• Message filtering is based upon the whole identifier to map the messages into receive buffers.
9-Jul-18 Confidential 52
Message Validation - Transmitter
• The point of time at which a message is taken to be valid, is different for the transmitter and the
receivers of the message.
• Transmitter:
• The message is valid for the transmitter, if there is no error until the end of END OF FRAME. If a
message is corrupted, re-transmission will follow automatically and according to prioritization. In
order to be able to compete for bus access with other messages, retransmission has to start as
soon as the bus is idle.
• Receiver:
• The message is valid for the receivers, if there is no error until the last but one bit of END OF
FRAME. The value of the last bit of END OF FRAME is treated as ’dont care’, a dominant value
does not lead to a FORM ERROR
9-Jul-18 Confidential 53
Thanks
Automotive Electronics and Diagnostics
CAN – J1939
SAE J1939
• SAE J1939 is a series of data communication standards prescribed by the Society of Automotive
Engineers.
• It dictates both the physical and protocol interfaces to ensure plug and play operation.
• J1939 prescribes a CAN 2.0B network (extended frame format) that supports a length of 29 bits
for the identifier
• SAE J1939 specification numbering also follows the OSI 7-Layer Model
• SAE J1939 is used in all heavy-duty applications globally.
7/9/2018 Confidential 2
Vehicle Network
Vehicle
Onboard Traction
Engine
Computer Controller
7/9/2018 Confidential 3
Seven Layer Model
7/9/2018 Confidential 4
SAE J1939 Transport Layer Specifications
• J1939-11 Physical Layer, 250K bits/s, Twisted Shielded Pair
7/9/2018 Confidential 5
SAE J1939 Transport Layer Specifications
• J1939-21 Data Link Layer
• The heart of the J1939 set of specifications. It describes commonly used messages such as
Request, Acknowledgement, and Transport Protocol messages.
• Breaks up the 29-bit CAN identifier into sub-fields.
7/9/2018 Confidential 6
SAE J1939 Application Layer
• SAE J1939 defines application layer message sets with the following purposes:
• Powertrain Control
• Switch / Sensor Multiplexing
• Information Sharing
• Diagnostics Services
• Proprietary Communications
• Power Generation and Industrial Applications
7/9/2018 Confidential 7
SAE J1939 Application Layer Specifications
• J1939-71 Vehicle Application Layer
• Defines messages and parameters intended for light, medium, and heavy-duty vehicles used
on or off road as well as appropriate stationary applications which use vehicle derived
components
7/9/2018 Confidential 8
SAE J1939 Application Layer Specifications
• J1939-75 Application Layer—Generator Sets and Industrial
• Describes the parameters and parameter groups associated with monitoring and control for
power generation and industrial applications.
• J1939-82 Compliance
• Outlines the tests to assure that an ECU operates correctly as a node on a J1939 network.
7/9/2018 Confidential 9
SAE J1939-21 Standard Data Frame
CAN Standard Data Frame
Data CRC
Arbitration Control Field Delimiter
Field Field
CAN
S R I E
Identifier ACK
O T D r DLC Data Field CRC O
F R E 0 Field F
Bits 1 11 1 1 1 4 0 - 64 15 1 2 7
J1939 Bits 3 8 0 - 64
Priority Data
Source
Field
Address
7/9/2018 Confidential 10
SAE J1939-21 Extended Data Frame
CAN Extended Data Frame
CRC
Control Field Delimiter
Arbitration Field
S S I R D C E
O R D T r r L Data R ACK O
CAN F Identifier R E Identifier Ext. R 1 0 C Field C Field F
Bits 1 11 1 1 18 1 1 1 4 0 - 64 15 1 2 7
J1939 Bits 3 1 1 6 2 8 8 0 - 64
Data
Priority Source Data
Page
Extended Address Field
Data PDU PDU
Page Format Specific
7/9/2018 Confidential 11
SAE J1939 Protocol Data Unit (PDU)
The SAE J1939 PDU provides a framework for organizing the SAE J1939
specific information for each CAN frame.
The PDU only covers data that is uniquely required in a SAE prescribed
format (and not the lower level determined by CAN specification itself)
The PDU basically includes the 29-bit Identifier for the CAN frame and the
64-bit data.
7/9/2018 Confidential 12
SAE J1939 Messaging Basics
• Each pre-defined message in the SAE J1939 Application Layer specifications is a collection of:
1. Related parameters of the same type, sub-system and/or component
2. Parameters required as inputs for a control task
3. Parameters that originate in the same controller
7/9/2018 Confidential 13
29-bit Identifier
Bits (MSB to LSB) Significance Details
1 to 3 Priority (P) Highest (000), Lowest
(111)
4 Extended Data Page ‘0’ for all SAE J1939
(EDP) PGNs
5 Data Page (DP) ‘0’ for all Page 0 PGNs
6 to 13 PDU Format (PF) Prescribes whether the
message is destination
specific or not. PF is 1st
8-bits (MSBs) of PGN
14 to 21 PDU Specific (PS) Works in conjunction
with PF to form the PGN.
PS is the LSBs of PGN
21 to 29 Source Address (SA) J1939 Source Address of
the device sending the
message
7/9/2018 Confidential 14
Source Address
• The Source Address for a device on the network is awarded by J1939 in terms of the function
being performed by the controller/device
7/9/2018 Confidential 15
CAN vs. SAE – Numbering Difference
CAN Definition
Byte 0 Byte 1 Byte 2 Byte 7
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
SAE Definition
Byte 1 Byte 2 Byte 3 Byte 8
8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1
7/9/2018 Confidential 16
Multi-byte parameters
• Multi-byte parameters are placed with LSB first.
• E.g: If a 2-byte data is placed in bits 7 and 8, bit 7 contains the LSB and bit 8 the MSB
7/9/2018 Confidential 17
J1939 Source Address Determination
7/9/2018 Confidential 18
J1939-71
• Defines the “data dictionary” used to encode/ decode powertrain & info share message
• Appendix A – SLOTs (Scaling, Limit, Offset, and Transfer Function)
• Appendix B – SPNs (Suspect Parameter Numbers)
• provides a list of parameter definitions
• Appendix C – PGNs (Parameter Group Numbers)
• provides a list of messages definitions
• Appendix D – Supporting Information
• provides further definition for certain parameters
7/9/2018 Confidential 19
SPN Data Sizing - Transmitted Signal Ranges
Signal Type
7/9/2018 Confidential 20
Transmitted Values - Discrete
7/9/2018 Confidential 21
SPN Data Dictionary Example
7/9/2018 Confidential 22
PGN Example
7/9/2018 Confidential 23
SPN Example
7/9/2018 Confidential 24
PGN Example
7/9/2018 Confidential 25
Typical Standard Messages
Parameter Group Number Typical Communication
PGN 0 – Torque / Speed Control 1 Transmission to ECM
(TSC1)
PGN 256 - Transmission Control (TC1) ECM to Transmission
PGN 57344 – Cab Message 1 (CM1) Vehicle Cab to other devices
PGN 61441 – Electronic Brake ABS to other devices
Controller 1 (EBC1)
PGN 61442 – Electronic Transmission Transmission to other devices
Controller 1 (ETC1)
PGN 61444 – Electronic Engine ECM to other devices
Controller 1 (EEC1)
PGN 61445 – Electronic Transmission Transmission to other devices
Controller 2 (ETC2)
7/9/2018 Confidential 26
TSC1 Message
7/9/2018 Confidential 27
SAE J1939-21 Special Message Types
• There are five message types supported on the SAE J1939 link
• Command: Convey a command to global or specific destination
• Broadcasts/Response: This is a special mode of data transfer used when the data is more
than 8 bytes. These are also called as Transport Protocol messages
• Group Function: Used for groups of special functions – proprietary functions, network
management functions etc.
7/9/2018 Confidential 28
Proprietary Messages
• Provides point to point messages and point to multi-point messages.
• Manufacturers provide further definition of proprietary messaging in various internal
specifications.
• J1939 proprietary message definition allows:
• proprietary and standardized messages to co-exist.
• proprietary messages from multiple sources to co-exist.
7/9/2018 Confidential 29
Proprietary Message PGNs – Proprietary A
7/9/2018 Confidential 30
Proprietary Message PGNs – Proprietary A2
7/9/2018 Confidential 31
Proprietary Message PGNs – Proprietary B
7/9/2018 Confidential 32
Requests, Response and Acknowledgements
• Rules of operation to determine whether to send PGN to a global or specific destination:
• When the Request is sent to a global address the response is sent to a global address.
• When the Request is sent to a specific address the response is sent to a specific address.
• Exceptions may exist
7/9/2018 Confidential 33
Request Message
7/9/2018 Confidential 34
Response to a request message
• If the request made was to a specific destination:
• A response is always required from the destination, even if it is a NACK (negative
acknowledgement) indicating that the PGN value is not supported.
The Request message can be directed at specific destination address to find out whether a specific
PG is supported.
Each form of Acknowledgement includes an address acknowledge byte that contains the source
address of the originator.
Since the Acknowledgement of PGN is always directed to the Global Address, these parameters
allow the receiver to know the target being acknowledge.
7/9/2018 Confidential 35
Acknowledgement Message
7/9/2018 Confidential 36
Acknowledgement Message
7/9/2018 Confidential 37
Request and Response Examples
• Example 1:
• 18EA0308 AD FE 00
• 18FEAD03 87 89 84 D9 FF FF FF FF
• Example 2:
• 18EAFFF9 8E FE 00
• 18FE8E0B 01 D7 7F FF FF FF FF FF
• 18FE8E03 25 7F 9D FF FF FF FF FF
• 18FE8E00 20 F4 83 FF FF FF FF FF
• Example 3:
• 18EA03F9 AB FE 00
• 18E8FF03 01 FF FF FF F9 AB FE 00
7/9/2018 Confidential 38
Request 2 Message
• This is a special request message for distributed networks
• Provides the capability for the requestor to specify whether the responder should use the
Transfer PGN 51712
• By identifying that the responder should use the Transfer PGN, the responder reports the data
set for all devices it is tasked with reporting.
• Examples of PGNs usually requested through Request 2 Message are:
• Vehicle Identification
• Software Identification
7/9/2018 Confidential 39
Request 2 Message
7/9/2018 Confidential 40
Transfer PGN
• Used in conjunction with the Request2 message
• Provides a mechanism for reporting multiple data sets for a given PGN
• Each data set is labelled with four bytes from the J1939-81 device name.
• The information of the device itself is in the first data set, followed by other devices.
7/9/2018 Confidential 41
Transfer PGN format
7/9/2018 Confidential 42
Transport Protocol
• Used when a PG requires more than eight data bytes.
• Broadcast and Destination Specific connection sessions are defined.
• Each node may have at most one active Broadcast session at any time.
• The information is split in multiple messages called ‘packets’
• For the packets to be identified individually for reassembly, the first byte of the data field is
defined as the sequence number of the packet.
• Each packet includes 7 bytes of the original message.
• Sequence numbers start with one and continue until the entire message has be packetized and
transmitted.
• These messages are sent either as BAM (Broadcast Announce Message) or RTS.CTS (Request to
Send / Clear to Send)
7/9/2018 Confidential 43
Broadcast Messages
• The node first sends out a BAM to issue a large message warning to other nodes.
• This is done on Connection Management (TP.CM) PGN 60416 (ECXX)
• This message contains the size and number of packets and the associated PGN
• The packets are then sent on Data Transfer (TP.DT) PGN 60160 (EBXX)
7/9/2018 Confidential 44
BAM Example
• 18EAFFF9 DA FE 00
• 18ECFF0B 20 0E 00 02 FF DA FE 00
• 18ECFF03 20 15 00 03 FF DA FE 00
• 18ECFF00 20 33 00 08 FF DA FE 00
• 18EBFF0B 01 01 31 32 2E 30 36 2E
• 18EBFF00 01 06 30 37 37 34 35 32
• 18EBFF03 01 02 30 35 2E 30 30 2E
• 18EBFF00 02 32 37 2A 30 30 30 32
• 18EBFF03 02 30 30 2E 30 31 2A 31
• 18EBFF00 03 33 30 31 39 2A 31 32
• 18EBFF0B 02 32 34 2E 52 31 30 2A
• 18EBFF03 03 30 2E 31 32 2E 32 2A
• 18EBFF00 04 30 31 32 30 30 35 31
• 18EBFF00 05 38 31 32 2A 30 35 30
• 18EBFF00 06 34 30 30 31 32 2A 54
• 18EBFF00 07 53 2A 20 20 20 50 49
• 18EBFF00 08 44 2A FF FF FF FF FF
7/9/2018 Confidential 45
Request / Clear Messages
• A node transmits a request to send message to destination address with the size of message,
total number of packets, number of packets that can be sent against one ‘Clear to Send’ message
and the associated PGN.
• This is done using Connection Management (TP.CM) (ECXX) message.
• The receiver, i.e. the destination node can accept or reject the request. Acceptance is done by
issuing a ‘Clear to Send’
• This is done using Connection Management (TP.CM) (ECXX) message.
• Data Transfer begins once the originator receives the ‘Clear to Send’ message
• This is done using Connection Management (TP.DT) (EBXX) message.
• Once entire data is transferred, the receiver should issue an ‘End of Transfer’ acknowledgement.
• This is done using Connection Management (TP.CM) (ECXX) message.
7/9/2018 Confidential 46
Request / Clear Example
• 18EA00F9 E3 FE 00
• 18ECF900 10 22 00 05 FF E3 FE 00
• 18EC00F9 11 05 01 FF FF E3 FE 00
• 18EBF900 01 C0 12 A2 F0 41 C7 20
• 18EBF900 02 1C BC 80 25 D6 B8 33
• 18EBF900 03 D4 D8 45 FF FF 8E 0A
• 18EBF900 04 20 4E FF 1E DF 7D E1
• 18EBF900 05 D8 45 FF FF FF FF FF
• 18EC00F9 13 22 00 05 FF E3 FE 00
7/9/2018 Confidential 47
TP.CM Format
7/9/2018 Confidential 48
TP.CM for RTS
7/9/2018 Confidential 49
TP.CM for CTS
7/9/2018 Confidential 50
TP.CM for End of Message ACK
7/9/2018 Confidential 51
TP.CM for Connection Abort
7/9/2018 Confidential 52
TP.CM for BAM
7/9/2018 Confidential 53
TP.DT Format
7/9/2018 Confidential 54
SAE J1939 Diagnostics
• Defined in SAE J1939-73, uses the existing SPN definitions
• Diagnostics are not limited to emissions components – rather complete vehicle diagnostics are
provided
• Provides data for use by cab displays as well as generic scan tool support:
• Active and inactive trouble codes,
• Snapshot information,
• Clearing of trouble codes,
• Service interval information (i.e., time for oil change).
• Complete OBD support:
• Regulatory agencies (EPA, CARB, Euro 4, Euro 5) point to J1939-73 as an accepted OBD
interface for Heavy Duty vehicles.
7/9/2018 Confidential 55
Diagnostic Trouble Code
• Diagnostic Trouble Code (DTC) is the set of information required about a failure or fault in the
engine system to determine repair steps.
• A DTC is made up of four fields:
• Suspect Parameter Number (SPN) – 19 bits
• Failure Mode Identifier (FMI) – 5 bits
• Occurrence Count (OC) – 7 bits
• SPN Conversion Method (CM) – 1 bit
Diagnostic trouble codes are transmitted as 4 bytes per trouble code
7/9/2018 Confidential 56
Standard Diagnostic Messages
• DM1 – All Active DTCs (Diagnostic Trouble Codes)
• DM2 – All Previously Active DTCs
• DM3 – Clear Previously Active DTCs
• DM4 – Freeze Frame Parameters
• DM5 – Diagnostic Readiness 1
• DM6 – Pending DTCs
• DM12 – Emissions Related Active DTCs
• DM23 – Emissions Related Previously Active DTCs
• DM28 – Permanent DTCs
7/9/2018 Confidential 57
Active Diagnostic Trouble Codes (DM1)
DM1 is the most important diagnostic message
It indicates to the network the currently active Diagnostic Trouble Codes
(DTCs)
It includes emissions related and non-emissions related DTCs
Transmitted when a DTC becomes active/inactive otherwise at one second
rate
Provides information to driver display
When multiple DTCs are active the transport protocol messaging is required.
7/9/2018 Confidential 58
DM1 Structure
• Parameter Group Number: 65226 (00FECA16)
• Byte: 1
• bits 8-7 Malfunction Indicator Lamp Status
• bits 6-5 Red Stop Lamp Status
• bits 4-3 Amber Warning Lamp Status
• bits 2-1 Protect Lamp Status
• Byte: 2
• bits 8-7 Flash Malfunction Indicator Lamp
• bits 6-5 Flash Red Stop Lamp
• bits 4-3 Flash Amber Warning Lamp
• bits 2-1 Flash Protect Lamp
7/9/2018 Confidential 59
DM1 Structure
• The first two bytes of the DM1 message give the lamp status.
• From the third byte, a 4-byte per active DTC structure repeats.
• Total Length of DM1 message = 2 + (4 * n), where n is the number of active DTCs.
DTC
Byte 1 Byte 2 Byte 3 Byte 4
8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1 8 7 6 5 4 3 2 1
SPN FMI CM OC
64 00 0 3 0 03
7/9/2018 Confidential 60
FMI Definitions
FMI Description
0 DATA VALID BUT ABOVE NORMAL OPERATIONAL RANGE -
MOST SEVERE LEVEL
1 DATA VALID BUT BELOW NORMAL OPERATIONAL RANGE -
MOST SEVERE LEVEL
2 DATA ERRATIC, INTERMITTENT OR INCORRECT
7/9/2018 Confidential 61
FMI Definitions
FMI Description
8 ABNORMAL FREQUENCY OR PULSE WIDTH OR PERIOD
13 OUT OF CALIBRATION
14 SPECIAL INSTRUCTIONS
7/9/2018 Confidential 62
FMI Definitions
FMI Description
17 DATA VALID BUT BELOW NORMAL OPERATING RANGE - LEAST
SEVERE LEVEL
18 DATA VALID BUT BELOW NORMAL OPERATING RANGE -
MODERATELY SEVERE LEVEL
19 RECEIVED NETWORK DATA IN ERROR
7/9/2018 Confidential 63
Active Diagnostic Trouble Codes (DM1)
• ABS DM1 with zero active DTCs
• 18FECA0B 00 00 00 00 00 00 FF FF
7/9/2018 Confidential 64
Active Diagnostic Trouble Codes (DM1)
• Engine DM1 with two active DTCs
• 18ECFF00 20 0A 00 02 FF CA FE 00
• 18EBFF00 01 14 FF CE 03 04 01 30
• 18EBFF00 02 04 04 03 FF FF FF FF
7/9/2018 Confidential 65
Standards Across Industry
7/9/2018 Confidential 66
Relevant ISO Standards
• ISO 11898 – Controller Area Network
• ISO 14229-1 - Unified Diagnostic Services (UDS)
• ISO 15031 for OBD Communications
• ISO 15765 for Extended Diagnostic Communications
• ISO PAS 27145 Implementation of WWH-OBD communication requirements
7/9/2018 Confidential 67
ISO Protocol Evolution
7/9/2018 Confidential 68
ISO 7-Layer
Enhanced Emission-related (Legislated)
Diagnostics Diagnostics
Application ISO 14229-1 / ISO 15031-5
ISO 15765-3
Presentation None Specified
7/9/2018 Confidential 69
ISO and SAE in OSI Framework
7/9/2018 Confidential 70
Passenger Car vs Medium/Heavy Duty
7/9/2018 Confidential 71
ISO to SAE Mapping
7/9/2018 Confidential 72
ISO 14229
• ISO 14229 is a global, serial data link independent, diagnostic communication standard that was
created by a committee that included participation from all major OEMs.
• ISO 14229 describes a standard set of diagnostic messages available to diagnose any vehicle
module in service, and at End of Line.
• Another industry standard (ISO 15765-3) describes how to implement the ISO 14229 diagnostic
services on the CAN network, to help ensure consistency of implementation across OEMs.
7/9/2018 Confidential 73
ISO 14229 Document Set
• 14229-1 Unified diagnostic services (UDS)
• Specification and requirements
• General-purpose diagnostics protocol
• Replaces ISO 14230 (KWP)
• Does not know about CAN
• Defines diagnostic services
7/9/2018 Confidential 74
ISO 15031 Document Set
• Defines communication between vehicle and external equipment for emissions-related
diagnostics
• Requires additional standards to achieve emissions-related diagnostic needs
• Based on RP developed by SAE Motor Vehicle Council
7/9/2018 Confidential 75
ISO 15031 Document Set
• 15031-4 (SAE 1978) External test equipment
• Specifies a means of establishing communications between an OBD-
equipped vehicle and external test equipment
• Specifies a set of diagnostic services to be provided by the external test
equipment in order to exercise the services defined in ISO 15031-5,
• Specifies conformance criteria for the external test equipment.
• Analogous to J1939-84, J1939-03
7/9/2018 Confidential 76
ISO 15031 Document Set
• 15031-6 (SAE 2012) Diagnostic trouble code definitions
• Provides recommended uniformity for alphanumeric trouble codes
• Analogous to parts of J1939-73
• 15031-7 (SAE 2186) Data link security
• Provides guidelines for the protection of road vehicle modules from unauthorized intrusion
through a vehicle diagnostic data link
• Analogous to parts of J1939-73
7/9/2018 Confidential 77
ISO 15765 Document Set
• ISO 15765 Diagnostics on controller area network (CAN)
• Implementation specification
• Packages UDS for use on CAN
• Limits use of services
• Defines addressing schemes
• Defines transport protocol
• Defines timing requirements
• 15765-1 General information
• 15765-2 Network layer services
• 15765-3 Implementation of unified diagnostic services (UDS on CAN)
• 15765-4 Requirements for emissions-related systems
7/9/2018 Confidential 78
SAE vs ISO Diagnostics
• UDS Diagnostic Model
• Extended Diagnostics are manufacturer defined
• Emissions Related diagnostics are standardized
• Diagnostics are available only to off-board diagnostic tools
7/9/2018 Confidential 79
Thanks
Module 05: Powertrain and Vehicle Controls
• The braking force represents all internally generated force from the brake system.
10/7/2019 Confidential 2
Reducing Aerodynamic Drag
• As it is a force that opposes the vehicle propulsion, considerable amount of focus is laid on
the reduction of aerodynamic drag
• The aerodynamic drag can by underbody, wheel, wheel houses and vehicle shape
• The drag can be reduced substantially if the vehicle is travelling behind another vehicle.
Large fuel savings could be at hand if platooning is utilized commonly.
10/7/2019 Confidential 3
Reducing Rolling Resistance
• Tire properties are another source of driving resistance.
• A pneumatic vehicle tire in contact with the ground and supporting the weight of the
vehicle is neither round nor rolling.
• The tire is compressed by the weight of the vehicle and has an imbalance of forces due to
driving torque and slipping friction.
• Driven wheels do not roll. Instead they rotate faster (or slower) than the corresponding
longitudinal velocity. There is always a differential between what speed the wheel is being
commanded to rotate at and what it rotates at.
• This difference is called longitudinal slip.
10/7/2019 Confidential 4
2WD vs. 4 WD
• Consider, two cars where one is two-wheel drive and one is four-wheel drive, but they are
otherwise identical. The torque to overcome the driving resistance for the 2WD has to be
obtained from the driven two wheels, whereas for the 4 WD it requires half the value for
each of the driven wheels.
10/7/2019 Confidential 5
Simple Car Model
• Total forces acting on a vehicle= Fw – Fdr – Fb
• Where
• Fw is the propulsion force
• Fdr is the driving resistance = aerodynamic drag + rolling resistance
• Fb is the braking force
• In the simplest driver model, the perspective is that the driver has a desired velocity, vr in
mind, and adjusts the vehicle speed v, by operating the accelerator pedal, which results in a
force F, that is actuated as a propulsion force, or a braking force, depending on the sign.
10/7/2019 Confidential 6
Vehicle Requirements
A vehicle has to meet a complex set of requirements, and good design and good calibration is
very much about finding a good balance between them. Performance measures focus on the
mechanical performance of a vehicle.
• Top Speed
• Acceleration – Time 0 to 100 kmph
• Gradeability
• Responsiveness
• Driveability
10/7/2019 Confidential 7
Tradeoffs
• Noise and Vibration are undesired.
• There exist driveline and engine modes that are undesired but can be avoided or
attenuated by proper control.
• Fuel consumption and CO2 production need to be reduced.
10/7/2019 Confidential 8
Vehicle Efficiency
The overall fuel energy of the vehicle is either consumed or lost in other forms. The losses
are split as:
• 2 to 5% of the energy is lost in incomplete combustion
• 50 to 55% converts into exhaust heat loss
• 1 to 5% timing losses
• 1 to 15% heat transfer losses
• 4 to 10% pumping losses
• 5 to 10% friction losses
• 5 to 10% accessories
• 3 to 5% driveline
10/7/2019 Confidential 9
Vehicle Propulsion
Functions and goals of the vehicle propulsion control:
10/7/2019 Confidential 10
Driving Force
Most manufacturers use a torque-based control structure. One reason for choosing torque as
the key variable is that it is directly related to the force at the wheels, which can be
propagated through the powertrain components to the engine.
Key Functions in torque-based control structure are:
• Driver Interpretation – What is the driver asking for?
• Vehicle Demands – What is the vehicle asking for ?
• Driveline Management – What is the driveline limits ?
• Driveline Engine Integration
• External Torque Intervention
10/7/2019 Confidential 11
External Requests
Other control units need the engine to reduce/increase or limit the torque. These situations
can be short-term or long-term.
• Torque reduction during gear-shift
• AC Turned On
Long Term Torque Demands are met by increasing air flow or moving the turbocharger
Short Term Torque Demands need to be catered by additional fuel injections
10/7/2019 Confidential 12
Torque Control
At the core of the ‘Engine Management System’ is a Torque to Fuel strategy. The input to this
is the torque requirement origination from different external sources. These sources include:
• The Driver – by means of the Accelerator Pedal and/or Brake
• Transmission – semi-automated/automatic
• Electronic Stability Program (ESP)
• Anti-lock Braking System (ABS)
• Cruise Control system (by means of a speed command)
• Speed Limiter or Road Speed Governor (RSG)
10/7/2019 Confidential 13
Internal Torque Requests
Additionally, the engine itself has specific torque needs under the following conditions:
• Starting Torque
• Idle Control
• Engine Protection Mode (Torque and/or Speed limit imposed to protect the components)
• Furthermore, the On-Board Diagnostics (OBD) mandates the imposition of torque and/or
speed limits when faults exist in the engine’s emission management system (sensors,
algorithms etc.)
10/7/2019 Confidential 14
Torque Arbitration
The ‘Engine Management System’ has to evaluate all the torque needs on a priority basis and
then command the fueling in a way to deliver the required torque while accounting for all
parasitic elements which mostly includes:
• Fan
• Alternator
• AC and Climate Control
• Fuel Pump
• Coolant Pump
10/7/2019 Confidential 15
Power and Torque
The brake output of an engine is typically reported as a torque or power at a certain speed.
The relationship between power, torque, and speed is:
rev 2π kW T ( N m) N (rpm)
BP (kW ) = T (N m)*N * * =
sec rev 1000W 9550
Note that power output can be increased by increasing the engine speed at a constant load,
increasing the load at a constant engine speed or a combination of the two factors that yield
a greater product.
Engine
10/7/2019 Confidential 17
Engine Torque
10/7/2019 Confidential 18
Engine Speed Target
10/7/2019 Confidential 19
Key Tasks for Engine Control – Spark Ignition
Fundamental control tasks affect emissions, performance and fuel economy in spark ignition
engine:
• Air fuel ratio control (providing the correct ratio of air and fuel)
• Ignition Control – Firing the appropriate spark plug at the right time
• Fueling Control – Delivering the fuel in right quantities at the right time.
• Exhaust Gas Recirculation control
10/7/2019 Confidential 20
Air Fuel Ratio Control
• TWC require precise control of air fuel ratio to the stoichiometric value to be effective.
• The air fuel ratio is controlled by a feedback portion in which a signal related to air fuel
ratio from the exhaust gas oxygen sensor is fed back and a feed forward portion in which
the injector fuel flow is adjusted in response to a signal from an air flow meter.
• The feedback or closed loop control is fully effective only under steady state conditions and
when the EGO sensor has attained proper operating temperature
• The open loop is important when the engine is cold and during transient operation
10/7/2019 Confidential 21
Air
• Let P,V,T and m be the pressure in the intake manifold, volume of intake manifold,
temperature and mass of the air in the intake manifold.
• Ideal Gas Law….
• dP/Dt = RT/V [MAFa – Cyl(N,P,Tec,T1)]
• Where MAF is the actual mass air flow metered by the throttle.
• R is moral gas constant
• Cyl(N,P,Tec,T1) is the average instantaneous air flow pumped into the intake manifold by
the cylinders as a function of engine speed
• Air inlet temperature is T1 and engine coolant temperature is Tec
10/7/2019 Confidential 22
Air Fuel Ratio Control
• The variation in air flow commanded by the driver is treated as a disturbance to the
system.
• The Air Mass Flow rate upstream of the throttle and the throttle position is used to
calculate air charge estimate for predicting the air charge entering the cylinders
• This air charge estimate is used to form the base fueling calculation
10/7/2019 Confidential 23
Air Fuel Ratio - Feedback
• Even if the average air fuel ratio is controlled to stoichiometry, individual cylinders may be
operating rich or lean.
• Air Fuel ratio mal-distribution can result in increased emissions
• For the purpose of close loop control, the engine is equipped with a switching type Exhaust
Gas Oxygen sensor located at the confluence of the individual exhaust runners.
10/7/2019 Confidential 24
Fueling Control
• The base fueling calculation is then modified to account for any transients.
• A time invariant PI controller is used to correct for any persistent errors in the open loop
calculation by adjusting the average Air fuel ratio to perceived stoichiometry
10/7/2019 Confidential 25
Ignition Control
• The spark plug is fired near the end of the compression stroke, as the piston approaches
TDC.
• The optimal time during the compression stroke for ignition to occur is the point at which
maximum brake torque (MBT) is generated.
• Advance spark timing can damage the piston
• Retarded spark timing reduces the combustion pressure generated and more energy is lost
to the exhaust stream.
10/7/2019 Confidential 26
Ignition Timing
• Crankshaft position along with barometric pressure, engine coolant temperature and
throttle position is used
• Ignition timing may be used to modulate torque to improve shifting quality
• The ECM activates the induction coil in response to the sensed timing and routes the high
voltage to the spark plug.
10/7/2019 Confidential 27
EGR Control
• Exhaust gas recirculation (EGR) systems control emissions of NOx.
• The principle of EGR is to reduce NOx formation during the combustion process by diluting
the air fuel charge with inert exhaust gas.
• This is accomplished by a metering orifice in the exhaust manifold to enable a portion of
the exhaust gas to flow from the exhaust manifold through the valve into the intake
manifold.
• Feedback based on the difference between desired and measured pressure drop is
employed to modulate the regulator for controlling the EGR valve position.
• Manifold pressure and Torque are influenced by EGR and the dynamics of the system can
have significant effect on engine response and drivability
• There is an additional EGR transport delay – associated with the time required
10/7/2019 Confidential 28
Idle Speed Control
• The Idle Speed Control is to maintain constant engine RPM at closed throttle while
rejecting disturbances
10/7/2019 Confidential 29
Closed-Loop Controls in Automotive
10/7/2019 Confidential 30
Electronic Clutch Control
• Relieves pressing of clutch during gear change
• Throttle cable of accelerator pedal replaced by closed loop control system
• Accelerator Pedal position sensor and servomotor
• Connected to an ECU for gear change process
• ECU controls clutch engagement and disengagement
• Improved Safety
• Prevents engine starting when in gear
• Prevents inappropriate gear change
10/7/2019 Confidential 31
ECM – TCM Gear Change Interaction
• During gear up-shifts
• TCM indicates need to shift gears
• ECM cuts-off / Reduces fuel injection
• ECM signals TCM ‘OK’ to shift
10/7/2019 Confidential 32
Interlocks
• If the gear selector switch is not in either Park or Neutral when starting,
operation of the starter motor is inhibited
• If the gear selector switch is not in park, the key cannot be removed
• The hold switch on the selector level
• Instructs the ECU to hold the transmission in current gear ratio
• Useful in descending a hill
• The stoplight switch
• Does not allow transmission gear to change when brakes are applied
• Overdrive inhibit signal prevents the transmission from taking overdrive (fifth
gear) when cruise control is activated
10/7/2019 Confidential 33
Transmission - Ambient and Surroundings
• Automatic Transmission Fluid thermo-sensor
• Modifies line pressures at temperature extremes, to account for changes in fluid viscosity
• If the vehicle is at an altitude of above 1500 m, the gear change points are
modified (as engine develops less power at high altitudes)
10/7/2019 Confidential 34
Powertrain Control System
• Engine + Transmission control in a
single controller
10/7/2019 Confidential 35
Cruise Control
• The purpose of cruise control is to keep the velocity of a car constant
• The driver selects the set point for the desired speed using the cruise control ‘set’ switch
• The control system has to keep the speed constant
• The cruise control system measures the difference between the desired and actual velocity and
generates a control effort that attempts to keep the error small in spite of changes in the slope of
the road.
10/7/2019 Confidential 36
Cruise Control
• Speed is set by the driver
10/7/2019 Confidential 37
CC - Model Development
• The mathematical model needs to show how the velocity of the car is influenced by the throttle
and the slope of the road
• The momentum of the car determines how the slopes will affect it.
• Let θ be the slope of the road, then the momentum balance is given by:
• M dv/dt + cv = F - mg θ
• Where cv is the momentum loss due to changes in air resistance and rolling friction
• F is the force generated by the engine
10/7/2019 Confidential 38
CC - Controller
• The control effort generated by the cruise control system influences the accelerator pedal and
thus the torque generated by the engine
• The controller should be able to maintain constant speed during stable conditions.
• The control effort required is higher when the deviation from set speed is higher. Hence, a
proportional effort is needed
• The state of the system should catch up to the set-point. Hence, a controller with Integral effort is
chosen
10/7/2019 Confidential 39
Chassis Control Systems
• Anti Lock Braking System
• Traction Control System
• Electronic Stability Program
• Electronic Damping Control system
• Power Assisted Steering System
• Traction Control Systems
10/7/2019 Confidential 40
Detailed View of Vehicle Dynamics
• Apart from the driving force which is trying to move the vehicle
forward, there are plenty of other forces acting on the vehicle
• Tractive Force
• Brake Pressure
• Lateral Forces on the wheel
• Adhesion forces (Gravity and friction)
10/7/2019 Confidential 41
Moments
• Vehicles are also subjected to the following forces
• Yaw Moments – which try to rotate the vehicle about its vertical axis
• Pitch
• Roll
• Wheel moments – inertia or momentum of the wheels.
• Aerodynamic Drag
10/7/2019 Confidential 42
Anti-lock braking system (ABS)
• When the vehicle skids, the wheels lock and driving stability is lost
• In such conditions, the vehicle cannot be steered
• The braking distance increases due to skidding
• If a trailer or caravan is being pulled, it will swerve onto incoming traffic
• The tires may burst due to excessive friction and forces being concentrated at the points
where the locked wheels are in contact with the road surface.
10/7/2019 Confidential 43
ABS vs TCS
Inability to brake due to locked
wheel – ABS
10/7/2019 Confidential 44
ABS System
10/7/2019 Confidential 45
ABS
• Four-wheel ABS can control the brake force on each wheel
• Let Ffs and Frs be the braking force on the front and rear wheels and Rs is the desired response on
an icy road
• Find Ffs/Rs
10/7/2019 Confidential 46
ABS
10/7/2019 Confidential 47
Traction Control System
• Prevents drive wheels from wheel spinning during starting – or accelerating on a
wet or icy surface
• Controller needs to avoid loss or reduction in steering response in FWD vehicles
• Controller needs to ensure vehicle stability on RWD
• TCS will
• Increase adhesion to the road surface during acceleration
• Use fueling, ignition and wheel braking actions
10/7/2019 Confidential 48
Traction Control System
• Maintain the acceleration slip of the driven wheels equal to the mean rotational velocity of
the non-driven wheels + a specified speed difference known as slip threshold
• Driven wheels are kept at a faster speed than the non-driven wheels
• The vehicle accelerates at a constant rate proportional to the difference in the two speeds.
• Control depends on the road surface condition.
• On dry road surfaces, max. acceleration occurs at slip rates of 10 to 30%
• On ice, max traction is at slip rates of 2 to 5%
10/7/2019 Confidential 49
Traction Control System
• The system has to adapt to various
road surfaces
10/7/2019 Confidential 50
Electronic Stability Program
• Electronic Stability Program is another key driver assist system.
• The system’s task is to assist the driver in demanding driving situations:
• If an animal suddenly runs across the path of the vehicle, the driver will overreact
• Under such conditions the stability of the vehicle may be compromised.
• This is where ESP pitches in.
• ESP is based and closely dependent on the ABS, TCS, EDL, EBD and EBC
• It recognises when the vehicle is in danger of skidding and compensates
for the same.
• It significantly reduces the accident risk if the driver overreacts
10/7/2019 Confidential 51
All Terms Together
• ABS – Anti-lock Braking System
• TCS – Traction Control System
• EBD – Electronic Brake Distribution
• EDL – Electronic Differential Lock
• ESP – Electronic Stability Program
• EBC – Engine Braking Control
• ASMS – Automatic Stability Management System
• DSC – Dynamic Stability Control
• DDC – Driving Dynamic Control
• VSA – Vehicle Stability Assist
• ESA – Electronic Stability Assist
• VSC – Vehicle Stability Control
10/7/2019 Confidential 52
Electronic Stability Program
• In order to prevent skidding, the ESP must be able to control brake activation
within a fraction of a second.
• Also, there must be sufficient pre-pressure in the braking fluid to provide instant
braking.
10/7/2019 Confidential 53
When does ESP kick in
• Before ESP can respond to the driving situation, it has to determine in
what direction the driver is steering and in what direction the vehicle
is moving.
• This is done by the steering angle sensor and the speed sensors at
the wheels
• The steering angle sensor aids the determination of Yaw Rate and the
speed sensors provide the ability to determine lateral acceleration
• If the two, do not correlate, the ESP kicks in
10/7/2019 Confidential 54
Understeer and Oversteer
• If the vehicle is understeering – i.e. the lateral acceleration is more than the yaw rate, the
ESP system shall intervene
• It will selectively activate the rear brake on the inner wheel and prevent the vehicle from
overshooting.
• If the vehicle is oversteering – i.e. the yaw rate is more than the lateral acceleration, the
ESP system shall intervene
• It will selectively activate the front brake on the outer wheel and prevent the vehicle from
skidding
10/7/2019 Confidential 55
Obstacle Avoidance
• In vehicles without ESP, obstacle avoidance is an open loop system
with the driver in the loop.
• In order to avoid the obstacle the driver steers very quickly to the left
and then immediately to the right.
• The vehicle swerves and the wheel movements become
uncontrollable.
• A yaw motion is set due to the quick movements of the steering
wheel.
10/7/2019 Confidential 56
Obstacle Avoidance
• In the vehicle equipped with ESP, the loss of stability is detected
when the driver makes the quick movement.
• The system applies the brakes the outer wheel as a countermeasure.
• As the driver moves the steering back to the path of motion, the
system applies brakes on the inner wheel to balance it off.
• Thereby, no moments are caused and a yaw motion does not set in.
10/7/2019 Confidential 57
Components of ESP
10/7/2019 Confidential 58
ESP Controls
• The speed sensors provide a continuous data of the wheel speeds
• The steering angle sensor provides the steering angle information.
• The desired steering direction is determined.
• The actual state of the vehicle is determined by the lateral acceleration sensor and the yaw
rate sensor.
10/7/2019 Confidential 59
Electronic Damping Control
• The EDC system boosts the shock absorber.
• The shock absorber are controlling vehicle movement against roll and pitch.
• They also prevent vibrations caused by poor road surface
• EDC control does real-time altering of the characteristics of the spring and damper
arrangement.
• This can be done electronically using air, nitrogen gas and hydraulic oil as three separate suspension agents.
10/7/2019 Confidential 60
Damping Control
• The longitudinal and lateral forces acting on the vehicle are
determined
• The dampers provide three or four different settings
(normal, soft, super-soft and firm)
• Driver can choose sport or smooth ride mode
• Sport Mode – soft dampers are excluded
10/7/2019 Confidential 61
Electronically Assisted Power Steering
• The ports of a solenoid valve are
connected across the rack and pinion
steering hydraulic power cylinder
• With increasing vehicle speed, the
valve opening is extended
• Reduces the hydraulic pressure in the power
cylinder
• Increases the steering effort
10/7/2019 Confidential 62
Electric Power Steering
• Input to the rack and pinion steering system is from a
motor/gear reduction
• The torque is applied directly to either the pinion gear or to
the rack shaft
• The effort range is greater than with hydraulic systems.
• Power is only consumed when steering wheel moves.
10/7/2019 Confidential 63
Adaptive Cruise Control / Automatic Proximity
Control
• If a driver attempts to activate the Cruise Control in heavy traffic
scenario, he will soon have to brake and the cruise control feature
will quit.
• The ACC or APC combines the braking into the Cruise System while
trying to keep the distance with the vehicle in front at or above a
fixed threshold.
10/7/2019 Confidential 64
Body Controls
• Air Bag System
• AC Controls
10/7/2019 Confidential 65
Air Bag Control System
• Air bags are passive safety devices that are mandatory in many countries.
• Airbags are a critical part of the supplemental restraint system (SRS)
• The objective of the airbag, which is deployed when the vehicle suddenly decelerates (as in
a collision) is to prevent the vehicle occupants from hitting any rigid surfaces and cushion
the forces on their heads and upper or lower bodies
• Airbags are typically made of nylon fabric and are hidden behind panels at various locations
in the vehicle, including the steering wheel.
10/7/2019 Confidential 66
Sensors
• Accelerometers, Wheel Speed Sensors, Brake Pressure Sensor, Seat Occupancy Sensor
• CAN communication
10/7/2019 Confidential 67
Air bag Control
• Depending on the crash severity, the rate at which the airbags are employed is decided by
the airbag control unit.
• In the event of a crash, the crash sensor (an accelerometer) sends a signal to the airbag
control unit.
• This unit triggers the inflation device, which generates nitrogen gas by igniting a mixture of
sodium azide (NaN3) and potassium nitrate (KNO3).
• The time between crash detection and complete deployment of the airbag is approx. 0.05
seconds
• The airbag speed is about 200 mph, which itself can be harmful in certain cases.
• Adaptive air bag systems employ multiple inflators to produce low-level or high-level
deployments. The airbag pressure can be changed depending on factors such as seat
position, size of passenger, crash severity and seat belt use.
10/7/2019 Confidential 68
Air Bag Electronics
10/7/2019 Confidential 69
Air Bag
• Systems use a weight sensor in the front passenger seat to determine if the seat is
unoccupied.
• The US FMVSS requires airbag deployment systems to detect whether a child is seated in
the front passenger seat. Airbag deployment will be suppressed it the sensor identifies a
low-weight condition.
• Some systems may additionally detect the presence of child safety seats.
• If a low level impact is sensed i.e. with a pedestrian, the hood opens from the back and an
airbag is inflated over the windshield wiper area.
10/7/2019 Confidential 70
Air Bags
• GM uses airbags for side impact crashes. It inflates near the center console and provides
padding between the front passenger or support for the solo driver.
• The front airbag also includes a vent which opens when the passenger compresses the bag
10/7/2019 Confidential 71
Car Air-Conditioning
• The driver sets the desired interior temperature on a dashboard panel
10/7/2019 Confidential 72
Thanks
Module 02: Engine and Vehicle Basics
• No wonder – the process of drawing air into the engine is called ‘Engine Breathing’
• The more efficiently an engine breathes, the more efficiently it will produce power or deliver
torque.
• Volatility
• Volatility is a distillation characteristic of the blended components of the fuel
• The ability of a liquid to change to vapor
• A properly designed fuel has an optimum proportion of low boiling components for easy cold starting and fast
warm-up
• The volatility is provided as the temperature at which 10%, 50% and 90% fuel vaporisation occurs
• Fuel Lubricity:
• The lubricity of a substance is not a material property, and cannot be measured directly
• Lubricity is the measure of the reduction in friction and or wear by a lubricant
• Flash Point:
• Flash point is the lowest temperature at which vapours of the material will ignite, when given an ignition source
• Flash point test is usually undertaken to check the fuel for impurities & helps differentiate between types of fuels
• Sulfur Content:
• Sulfur content in fuel is detrimental to mechanical components. Sulfur also impacts emission reduction systems
used by the engines. Conversely, sulfur has lubricating properties
• Octane Number:
• A figure indicating the anti-knock properties of a fuel, based on a comparison with a mixture of isooctane
and heptane
• Isooctane is assigned an octane number of 100. It is a highly branched compound that burns smoothly,
with little knock
• On the other hand, heptane is given an octane rating of zero. It is an unbranched compound and knocks
badly
• Cracking, isomerization, and other processes can be used to increase the octane rating of gasoline to
about 90. Anti-knock agents may be added to further increase the octane rating. Tetraethyl lead,
Pb(C2H5)4, was one such agent, which was added to gas at the rate of up to 2.4 grams per gallon of
gasoline.
• The switch to unleaded gasoline has required the addition of more expensive compounds, such as
aromatics and highly branched alkanes, to maintain high octane numbers
)
100
CN = 58.33 - 0.483*ON
Gasolines
40
30
20
10
0
-20 -10 0 10 20 30 40 50 60 70 80 90 100110120
Octane Number (more resistant to auto-ignition )
E.M.Goodger, ‘Hydrocarbon Fuels’,
Halsted Press, 1975
• Link
Peak Power
Peak Torque
• Engine oils are either petroleum based or non-petroleum based synthetic oils.
• However, the viscosity based grading is not sufficient enough to ensure selection of the best
suitable oil for your engine.
• CO emission from petrol engines is higher than that from diesel engine.
• Nitrogen oxides are released into the atmosphere in the form of NO, which is readily oxidised to
NO2 by reaction with ozone.
• Elevated levels of NOx causes respiratory track irritation and can worsen asthma
• NO (Nitric Oxide) is colourless and forms up to 90% of the NOx content. NO2 (Nitrous Oxide) is
brown in colour
• TOMPs can cause a wide range of effects, from cancer to reduced immunity to nervous system
disorders.
• Note: Addition of the turbine in the exhaust flow path increases the exhaust back pressure and
make it tougher to rid the cylinder of exhaust gases post combustion.
Spl Bolt
Seal bearing
Flange
Spring – Spherical Joint
Gasket
Pre Muffler Mounting Rubber – 4 Qty
Nut
Spl Bolt
Seal bearing
Main Muffler
3-Oct-19 Confidential 2
Se Ref e he Ph ica W d Pa a e e
The world around us is full of various phsical parameters such as temperature, pressure, flow, mass, force,
speed, acceleration etc.
All animals are embedded with various sensors in various forms. We know about the five senses and the
sensory organs that a human body has.
All instruments that we use in our daily life are embedded with various sensors. E.g. cellphones, computer,
printer, AC etc.
Automation is all about controlling some physical parameter according to some laid down algorithm.
Controlling something without knowing or sensing it; is an impossible task.
That is where the need of the sensors arise.
Range: The range of the sensor is the maximum and minimum values of the applied parameter that can be measured.
Accuracy: The accuracy of the sensor is the maximum different that will exist between the actual value and the indicated
value at the output of the sensor. The accuracy is expressed either as a percentage of full range or in absolute terms.
Offset: The offset of a sensor is the output that will exist when it should be zero.
Linearity: Linearity is the extent to which the measured curve of a sensor departs from the ideal curve.
Response Time: The response time is the time required by the sensor output to change from its previous state to a final
settled value within a tolerance band of the new value.
Dynamic Linearity: The dynamic linearity of the sensor is a measure of its ability to follow rapid changes in the input
parameter.
Electrons go where the energy is lower and this transportation continues till an equilibrium is reached.
Seebeck coefficient S DV DT
Where DV and DT are voltage and temperature difference between the junctions respectively and the negative sign comes from the negative charge of
electron.
The thermo-emf of a Cu Fe couple is only 1.3 mV for a temperature difference of 100 Deg C between the hot and cold
junction.
3-Oct-19 Confidential 7
Thermistors - Introduction
Thermistors are temperature sensitive resistors and they exhibit change in resitance with the change in
temeprature
Thermistors are inexpensive, easily obtainable temperature sensors
Circuits with thermistors can have reasonable outout voltages not the millivolt outputs as the
thermocouples have
All resistors vary with temperature, but thermistors are constructed of semiconductor material with a
resistivity that is especially sensitive to temperature.
However, unlike most other resistive devices, the resistance of a thermistor may decrease with increasing
temperature.
Thermistors are made of semiconductor materials metallic compounds including oxides such as
manganese, copper, cobalt, and nickel, as well as single crystal semiconductors silicon and germanium .
3-Oct-19 Confidential 10
The i Ba ic E ai M de
Temperature coefficient
NTC Resistance decreases with temperature
PTC Resistance increases with temperature
Exponential relationship between temperature and resistance is interpreted by following
equation (which is simplified form of Stienhart-Hart Equation
β model: β Ln RT1/ RT2) / (1/T1 1/T2)
where
β coefficient in °K
RT1 = the resistance at temperature 1
RT2 = the resistance at temperature 2
T1 = Temperature one in °K
T2= Temperature two in °K
In another words: RT2=RT1 * e β T - T) / T0*T)]
The beta value of an NTC Thermistor is calculated using only two temperatures over a given range
and is not the most accurate
3-Oct-19 Confidential 12
Thermistor - Selection and Calculations for your
design
Thermistor choice is based on the nominal resistance you want at the operating temperature
range, on the size, and on the time constant response time .
Time constants are about seconds. Check this out with your thermistor datasheet
Use above table and try to find values of A,B and C using Steinhart Hart equation
Use three different and distinct values of temperature to get three simultaneous equations
Solve these equations to arrive at values of A, B and C
Now we know values of R Ω , A, B and C which can be used to find the temperature.
3-Oct-19 Confidential 15
RTDs - Introduction
RTD Resistance Temperature Dependent Detectors
Electrical resistance resistivity of the pure metal changes with the temperature. This principle is
used to detect the temperature by determining the change in resistivity that has occurred.
In place for many years now but the most expensive compared to Thermistors and
Thermocouples.
Platinum is the most widely specified RTD element though other metals like nickel, copper and
balco nickel iron are also in use.
Platinum is widely used due to its broad temperature range, stability and accuracy.
RTDs are characterized by linear positive change in resistance with rise in temperature.
3-Oct-19 Confidential 18
Mag e ic Se
Magnetic sensors are solid state devices that are becoming more and more popular because they
can be used in many different types of application such as sensing position, velocity or directional
movement.
They are also a popular choice of sensor for the electronics designer due to their non-contact
wear free operation, their low maintenance, robust design and as sealed hall effect devices are
immune to vibration, dust and water.
One of the main uses of Magnetic Sensors in automotive is for sensing the position, distance and
in turn speed.
For example, the angular position of the crank shaft for the firing angle of the spark plugs, the
position of the car seats and seat belts for air-bag control or wheel speed detection for the anti-
lock braking system, (ABS).
3-Oct-19 Confidential 23
Ha Effec Mag e ic Se Diag a f
e a d c di i e
The output voltage, called the Hall voltage, (VH) of the basic Hall Element is directly proportional
to the strength of the magnetic field passing through the semiconductor material (output α H).
This output voltage can be quite small, only a few microvolts even when subjected to strong
magnetic fields so most commercially available Hall effect devices are manufactured with built-in
DC amplifiers, logic switching circuits and voltage regulators to improve the sensors sensitivity,
hysteresis and output voltage.
This also allows the Hall effect sensor to operate over a wider range of power supplies and
magnetic field conditions.
Typical applications are measuring speed position of crank and camshaft. Wheel speed and
turbocharger speed.
Note that this relation can be used to determine the height of the column of liquid in a tank
by measuring the pressure.
3-Oct-19 Confidential 38
Pe e Se i g
Traditionally pressure is sensed by mechanical elements such as plates, shells, and tubes that are
designed and constructed to deflect when pressure is applied.
This is the basic mechanism converting pressure to physical movement. Next, this movement
must be transduced to obtain an electrical or other output.
Finally, signal conditioning may be needed, depending on the type of sensor and the application.
Thus traditional sensor includes sensing element, transduction element and optional signal
conditioner
3-Oct-19 Confidential 48
Pe e Se Pie e i i e B idge
A semiconductor may resistor may change its resistance when applied with stress or deformation.
Discovered by Lord Kelvin, this is called as piezoresistive effect.
This effect provides an easy and direct energy/signal transduction in mechanical and electrical domains.
It's used in MEMS field for wide variety of sensing needs e.g. pressure, acceleration, flow, gyro rate etc.
Peizoresistivity refers to the change in resistivity due to stress
If there is change in resistance due to stress or deformation then that's a strain guage. Stress is the cause
and strain is the effect.
The piezoresistors on the sensing element are four and connected together in a wheatstone bridge circuit.
Bulk microfabricated pressure sensors with thin deformable diaphragms made of singlecrystalsilicon are the
earliest products and still dominate the market today
Implanted Piezoresistor
Differential Gage
Absolute
Ga ge/Differential Absol te
Pie e i a ce
R=4900W
R W
Piezoresistance Change in electrical resistance with stress
W
Piezoresistor
Piezoresistor
Piezoresistor
R W
W
W
W
Piezoresistor
R W
The en or ha fo r
R R implan ed re i or in
ei her an open or clo ed
config ra ion
V
R4 R3 V1 = (Vin .R 4
R1+ R 4) V 2 = ( RVin2+.RR33)
Vo = V1 V 2
Vin.R4 Vin.R3
Vo =
( R4 + R1) ( R3 + R2)
T e fP e e Mea e e
Differen ial pre re mea remen
P2
P = P1-P2
P
T e fP e e Mea e e
2. Vented gage pressure Ambient Pressure
1 active port
Gage vent
P = P1-Ambient Pressure
Types of Pressure Measurement
Ab ol e pre re
active port
P1
nd port sealed with hard vacuum No vent
P
1
P P Vacuum
Sealed vacuum
Se C e ai
R1,R2: Offset TC
compensation resistors
R3, R4: Offset adj stment
resistors (balance
resistors)
R5: FSO TC
compensation resistors
3-Oct-19 Confidential 58
Pe e Se Pie e i i e B idge Diag a
3-Oct-19 Confidential 63
K ck Se
For each acceleration magnitude (m/sec2) or G Level (1 G = 9.8 m/sec2) and upper and lower
voltage threshold can be determined.
Knocking is discernible by its higher sound frequencies.
Knock sensors can typically capture accelerations in the frequency range of 1 to 25 kHz
In order to be functional, the ceramic element has to be heated to nearly Deg C. The heater
is integrated into the sensor element and controlled by a pulse width modulation signal.
A reference oxygen gas is sourced into a chamber. In older sensors, this oxygen was sourced
through the connecting electrical cable.
The latest Lambda sensors include a pumping cell which generates the reference gas within the
sensor with the aid of pumping current.
The pumping flow and the temperature of the ceramic element have to be maintained during the
operation.
Their function is quite complex and these sensors come with their own controllers.
From this cavity, a few ppm O and NOx enters into a second cavity
Gaseous oxygen is totally removed by an auxiliary pump
Oxygen is generated by the reduction of NO. This oxygen ions drive a current which is
proportional to the generated oxygen and the reduced NO.
3-Oct-19 Confidential 71
ACTUATOR BASIC UNDERSTANDING
Actuator is a unit that activates something physically.
A device that produces a force torque for some mechanical action to
happen in proportion to applied command.
Energy in conversion energy out where ‘Energy in’ may be
electrical, hydraulic pressure, flow or pneumatic pressure, flow and
‘Energy out’ is physical action displacement, force, torque etc.
In automotive we can treat the heating coils as “heating actuators
though these don’t actuate anything.
10/3/2019 72
Ac a or Linkage
Actuators provide motion displacement as an output
Thus actuators do have “linkage from input to output
Electrical: Where the input is passed on to the output as an electric signal. Thus
generally called as ‘drive by wire’ technology.eg. Electronic clutch, Electronic
Throttle
Hydraulic: Where the link is a column of an hydraulic fluid oil that has certain
pressure and flow e.g. Hydraulic brakes, hydraulic actuation of implements in
the construction and agri equipment.
Pneumatic: Where the link is a column of a compressed air e.g. Air brake where
the brake shoe is actuated by pneumatic pressure.
Combination Hybrid:
Electro Hydraulic: Where the force torque linkage is hydraulic while signal linkage is electric.
Electro pneumatic: Where the force torque linkage is pneumatic while signal linkage is electric.
10/3/2019 73
Ac a or Engine
Fuel System
. Fuel Injectors Electromagnetic and Piezoelectric actuators
. Fuel Pressure Limiting Valve Electromagnetic actuator
. Throttle Body Actuator Electromagnetic actuator
. Electronic Choke Actuator Heating actuator Electromagnetic actuator
. Fuel cut off valve Electromagnetic
Intake System
. Intake air throttle
. VGT actuator
Exhaust system
. EGR
. SCR system actuators such as injector, pump motor, metering valve
. DPF System actuators such as solenoid valve, metering valve.
10/3/2019 74
Ac a or Tran mi ion and Dri e line
S em
Electric Clutch Actuator
Electric brake drum actuator
Various on off solenoid valves
Oil pressure regulator
10/3/2019 75
Ac a or O her S em
Actuators for Climate Control System
. Clutch for compressor engagement control
. Coolant Refrigerant valve actuators
Vehicle systems
. Grill shutter actuator For actuating the radiation grills to reduce the aerodynamics losses.
. Electric power sterling
. Electric coolant fan
. Bus door actuator for passenger safety
. Power windows
. Central locking system actuators
. Headlight tilt actuator
. Windscreen headlight wipers and washers
. Seat adjustment
. Sunroof adjustment
Aftertreatment system actuators
. DEF injector
. Metering valves
10/3/2019 76
Ac a or Terminologie Ke ord and Spec
Input: Electrical or hydraulic: Based on what is the type of input energy required
Response time
. mm/msec, deg/msec
Absolute Maximum Ratings (V, I, F, T): This includes rated parameters such as rated force, torque, current and voltage.
10/3/2019 77
Ac a -T ,K
Environmental specifications : Temperature, Pressure, vibrations, electromagnetic and atmospheric.
Mounting specifications / Orientation
Physical specifications: Mass
Pull Force / Torque (On-Off Solenoids): Pulling force (ultimately current ) is required force for any electromechanical
actuator to start moving its core or rotor from standstill against the static friction, stiction and restoring force. This
may be - times of the holding force (current).
Holding Force / Torque (On-Off Solenoids): Holding force (ultimately current ) is a force necessary for any
electromechanical actuator core to maintain the current position against the restoring forces (usually restoring
spring)
Dither (Proportional solenoid): Dither is specified as much lower amplitude and higher frequency vibrations around
the current mean position achieved to reduce stiction so as to aid the fast response.
Bearings used
10/3/2019 78
Ac a -G P c
Electromagnetic:
. Faraday's law of electromagnetic induction
The voltage induced in a coil is proportional to the number of turns and rate of change of flux.
The induced current flows in the direction that opposes the changing flux. Flux has no source or
sink (What goes in comes out)
. Ampere's Law: The magneto-motive force (mmf) around a closed loop is
equal to net current enclosed by the loop. The objective of solenoid design is
to transfer the maximum amount of NI (energy) from the coil to the working
air gap.
. Flemings Left Hand Rule for direction of force (thumb), magnetic field and
current.
10/3/2019 79
Ac a or - Go erning Principles
Piezoelectric Effect: Piezoelectric Effect is the ability of certain materials
to generate an electric charge in response to applied mechanical stress.
The word Piezoelectric is derived from the Greek piezein, which means
to squeeze or press, and piezo, which is Greek for “push .
10/3/2019 80
N -Ac a a /H a
Ac a
The actuators are major power consumers in any embedded automotive
electronics
The non-actuating loads which don't really provide any physical motion or
displacement but provide other type of physical quantity such as heat.
The heaters, glow-plugs, defrosters etc are said to be non-actuating loads.
Since these also consume considerable power and have similar ways to
control the power delivery at output with respect to control system; they are
also considered as actuators in general.
The limiting factor of operating temperature of a solenoid is the insulation
material of the magnet wire used. Insulation classes:
. Class B- 0º C
. Class F- ºC
. Class H- 0º C
. Class C- 0º C
10/3/2019 81
R ac a
a b
Best reliability for use in automotive environment
Best efficiency in less size. (Power density)
Easy construction, servicing, driving.
Fit for environment
. Robust: ( Withstands Vibrations experienced in automobile)
. Temperature: (Exhaust gas and Engine compartment temperature)
. Dirt ingress protection
. Oil and fuel protection
10/3/2019 82
E c c Ac a - Va -M
Electric Motors
. AC
-ph and -ph
Synchronous Motors
DC
. Brushed DC motors
. Brush-less (Permanent Magnet Motors) / Stepper Motors
. Brush-less (No Magnet) BLDC motors
Motor terminology
. Stator and Rotor
. Armature and Field windings
. Series and Parallel connections
10/3/2019 83
DC Ac a -R a a L a
Rotary:
. Motors:
Starter Motor
PMDC Motor
Stepper Motor
. DC solenoid (Rotary)
Linear (Solenoids):
. DC solenoid (On-Off)
. DC solenoid (Proportional)
10/3/2019 84
E c c Ac a - Va -S
(O -O )
Solenoids - (On-Off)
. AC
. DC
Relays
Small stroke (Valve spool actuation, Fuel Injectors)
Large stroke (Lever actuation, Valve stem actuation, Pressure / Flow control)
10/3/2019 85
E c c Ac a -S ( Va ab
)
AC
DC
. Integrated actuator (e.g. EGR valve)
In this category the actuator is well integrated with the actuating part.
. Externally mounted Actuators (e.g. EGR, Throttle control Actuator)
In this category the actuator exists as a separate unit. The implementation of actuator
involves the calculation of force requirement based on the force and lever data of the
actuating part. Also the mounting and securing considerations are also of major
importance.
10/3/2019 86
R a
10/3/2019 87
DC S -L a - O -O
DC solenoid mainly comes with two windings or coils.
Pulling coil: This is high wattage coil to provide the initial force required to
move the plunger against the spring tension and lever load. This is activated
momentarily ( - secs) to enable the movement of the solenoid plunger.
Holding coil: This is comparatively low wattage coil which provides holding
force for the plunger against the spring tension and lever load. This coil is
activated as long as the plunger is expected to be in the extreme position.
Specifications:
. Stroke: The stroke of the plunger is specified in mm. e.g. mm
. Force: The maximum weight that can be pulled or pushed by the solenoid. Provided
in Gram or Kg.
The solenoids consume a lot of power and get heated with the continuous use.
The duty cycle of the operation should be optimized to limit heating to a safe
limit.
10/3/2019 88
DC S -L a -O - -
C c
10/3/2019 89
Solenoid - Linear - Variable Position -
Construction
10/3/2019 90
DC Solenoid (on-off) - Description
Housing: This is made up of a ferromagnetic material and acts as path
for magnetic flux.
Plunger: Plunger is a metallic rod of ferromagnetic core material
Return Spring: A spring against which the solenoid operates. Returns to
the original resting position when excitation is zero or lost.
The arrangement of the spring can make the solenoid to rest "in" or
"out".
These solenoids generally have two coils.
. Pulling coil: Which is a low resistance (high current) coil that is activated
for solenoid plunger originally at "rest". This is not a continuously rated
coil. Consumes at least - times of that of holding coil.
. Holding coil: Which is higher resistance coil that has to be activated when
the pulling is over. This provides the holding torque against the spring and
the lever to be actuated. Consumes less power than pulling coil.
10/3/2019 91
DC Solenoid-Rotary - On-Off
The rotary solenoid provides the rotary angle stroke e.g. deg.
The construction is little different than that of the linear solenoid
but the principle remains same.
The linear solenoid with properly designed pivot and lever
arrangement can also be used to achieve rotary actuation.
10/3/2019 92
Throttle Body Actuator
The throttle body actuator is an important part for engines
operating on gaseous fuel.
These are meant to control the air or air fuel mixture for these
engines.
The "throttle position feedback" sensor which is essentially a
potentiometer can be a integral part of this actuator.
This sensor provides the current angle of opening (deg) in terms of
resistance, R.
The actuators can be motorized or electromechanical solenoid type.
Application: Engine speed governor
10/3/2019 93
Throttle Body Actuator - Continuous
movement (GAC)
10/3/2019 94
S Ac a -L a -
C Va ab (W a )
Speed Range: 0- 00 Hz
. Input: . Vrms minimum speed signal
. Operating Voltage: Vdc or Vdc
. Maximum Linear Output Travel: 0. in. ( 0. mm)
DYNA 000:
. Maximum Stall Current: . amps @ Vdc; .0 amps @ Vdc
. Maximum Force Energized: . lbf. ( . N)
. Maximum Work Output: 0. ft. lbs. (0. joules)
DYNA 00:
. Maximum Stall Current: . amps @ Vdc; .0 amps @ Vdc
. Maximum Force Energized: .0 lbf. ( . N)
. Maximum Work Output: 0. 0 ft. lbs. (0. joules)
10/3/2019 95
S Ac a -L a -
C Va ab (W a )
10/3/2019 96
I c
10/3/2019 97
F I c
Most diesel engines and also gasoline direct injection (GDI) engines
inject fuel directly into the combustion chamber
Multi-port fuel Injection systems also use injectors but they inject
into a port instead of the hot cylinder
Fuel Injectors are small electromechanical devices that are used to
spray fuel into the ports or intake manifold or the combustion
chamber
The injectors have multiple holes The fuel also acts as a lubricating
agent.
Most injectors use the same basic design.
10/3/2019 98
I c W
High pressure fuel enters the
injector and reaches upto the
spray tip.
When the solenoid is engaged,
the plunger is pulled inwards,
thereby raising the pintle
This allows the fuel to be
injected into the cylinder
through the spray tip.
When the solenoid is
deenergized, the valve spring
reseats the plunger to its
original position.
10/3/2019 99
Starter Motor /Cranking Motor
10/3/2019 100
Sa M
A starter motor converts the electrical energy stored in the battery into mechanical
energy to crank the engine for starting
The starter motor is motor which has a field ( or PM field) and an armature. Armature
is always on the rotor and utilizes very high current in vary short time.
One end of the rotor is fitted with a pinion.
The pinion is actuated by a lever which is operated by a solenoid.
The solenoid also offers a high current ( 0- 00 Amp) contact for armature current.
The solenoid has separate pulling and holding coils
Based on whether the starter motor implements the reduction gear or not; there can
be two categories of this component available
Starter motors can be a available in two categories with respect to "field (magnetic)"
. Permanent magnet field
. Wound Field coils
10/3/2019 101
Sa M -C a
10/3/2019 102
Starter Motor - Gear Reduction Type
10/3/2019 103
Starter Motor - More Detailed
10/3/2019 104
Sa M -K
Voltage : The rated voltage of the motor ( / V)
Current: Maximum power current in A
Wattage : The consumption of power in kW
Torque : The torque produced at pinion. Usually the manufacturer
provides the curve.
RPM: The maximum rated RPM of starter
Operating Duty Cycle : Number of cranks per unit time.
Life : Usually specified in number cranks over the life time
10/3/2019 105
P a Ma DC M
10/3/2019 106
PMDC M (B M )
Permanent magnet DC brushed motors (PMDC motors) consist of permanent
magnets located in the stator.
Windings are located in the rotor.
The ends of the winding coils are connected to commutator segments, that make
slipping contact with the stationary brushes.
Brushes are connected to DC voltage supply across motor terminals.
Change of direction of rotation can be achieved by reversal of voltage polarity.
The current flow through the coils creates magnetic poles in the rotor, that
interact with permanent magnet poles.
In order to keep the torque generation in same direction, the current flow must
be reversed when the rotor north pole passes the stator south pole.
These motors can be usually available in or - pole versions
10/3/2019 107
PMDC C a a c
a c - 2-
10/3/2019 108
PMDC A b
10/3/2019 109
PMDC Assembly parts
10/3/2019 110
PMDC Pros and Cons
Simplest construction
Low cost
Simple driving scheme
Brush wear and tear
EMI
10/3/2019 111
S M
10/3/2019 112
Stepper Motor - Introduction
Stepper motor convert electrical energy in to a rotation
The name stepper suggests that the motor moves in discrete steps of angle (in degree)
A rotational stepper motor is an electromechanical device that can divide one full rotation ( 0 )
into a number of rotational steps
The linear stepper motor is similar to the rotational motor other than the shaft moves in a linear
or length ways fashion
The PM or "tin can" stepper motor is a low cost solution positioning applications with typical step
angles of . - .
Smaller step angles can be obtained trough Micro stepping.
The shaft of the motor moves in distinct step increments when electrical control pulses are
applied.
The current polarity and frequency of the applied pulses determines the direction and speed of
the shaft's movement.
One of the most significant advantages of a stepper motor is its ability to be accurately controlled
in an open loop system.
10/3/2019 113
Stepper Motor - Keywords
Detent, Holding, Pull-In and Pull-Out torque capabilities, speed (RPM)
and steps per revolution (step angle) characterize a stepper motor.
Detent torque defines the maximum torque that can be applied to a de-
energized motor without causing the motor to rotate.
Holding torque defines the maximum torque with which an energized
motor can be loaded without causing rotary movement.
Pull-In performance defines the motor's capability to start or stop. This
is the maximum frequency at which the motor can start or stop
instantaneously, with a load applied, without loss of synchronization.
Pull-Out torque defines the maximum torque when applying an
acceleration/deceleration ramp without loosing steps. It defines the
maximum frequency at which the motor can operate without losing
synchronism.
10/3/2019 114
Stepper Motor Types
Permanent-Magnet (PM)
. PM rotor & electromagnetic coil
Uni-polar : The windings have center tap The current is not reversed but the change in
magnetic polarity is achieved by operating winding half in turn.
Bipolar The windings don't have center tap Needs to reverse the polarity of the
applied voltage to the winding. Complex circuit for driving
10/3/2019 115
A Hybrid Stepper Motor - Stator and
Rotor
10/3/2019 116
H b S M -C c
10/3/2019 117
VR S M -C c a
c
10/3/2019 118
BLDC Motor
10/3/2019 119
BLDC - I c
Brushless DC electric motor (BLDC motors) also known as electronically
commutated motors (ECMs, EC motors) are synchronous motors that
are powered by a DC electric source via an integrated inverter /
switching power supply
As the name implies, BLDC motors do not use brushes for
commutation; instead, they are electronically commutated
Advantages of BLDC
1. Better speed versus torque characteristics
2. High dynamic response
3. High efficiency
4. Long operating life
5. Noiseless operation
6. Higher speed ranges
7. Ratio of torque delivered to the size of the motor is higher
10/3/2019 120
BLDC - Construction
Stator:
1. The stator of a BLDC motor consists of stacked steel laminations with
windings placed in the slots that are axially cut along the inner
periphery. Traditionally, the stator resembles that of an induction
motor; however, the windings are distributed in a different manner.
2. Most BLDC motors have three stator windings connected in star
fashion.
3. Each of these windings are distributed over the stator periphery to
form an even numbers of poles.
Rotor: The rotor is made of permanent magnet and can vary from
two to eight pole pairs with alternate North (N) and South (S)
poles.
10/3/2019 121
BLDC - C c c ..
Hall Sensors:
1. Unlike a brushed DC motor, the commutation of a BLDC motor is controlled electronically.
To rotate the BLDC motor, the stator windings should be energized in a sequence.
2. It is important to know the rotor position in order to understand which winding will be
energized following the energizing sequence.
3. Rotor position is sensed using Hall effect sensors embedded into thestator.
4. Most BLDC motors have three Hall sensors embedded into the stator on the nondriving
end of the motor.
5. Whenever the rotor magnetic poles pass near the Hall sensors, they give a high or low
signal, indicating the N or S pole is passing near the sensors. Based on the combination of
these three Hall sensor signals, the exact sequence of commutation can be determined.
Without Hall Effect Sensor:
1. Any motor winding has a back emf which is proportional to the motor's rpm apart from
the other parameters such as length, radius of rotor, number of winding turns for stator,
rotor magnetic field density.
2. The hall Effect Sensor is eliminated in some motors by sensing the back emf to know
which of the winding is to be commutated.
10/3/2019 122
BLDC - Construction contd..
10/3/2019 123
BLDC - Typical Control Block Diagram
10/3/2019 124
BLDC - T ca A ca
A
Diesel Air Valve
Intake Manifold Tuning Valves (ITV-IMTV)
Turbo Bypass Valve (TBVA)
Variable Vane Turbocharger (V V L)
Waste Gate Valve (VGT)
DPF Bypass Valve
Transmission Control
EGR Bypass Valve
Back pressure Valve
Electronic Throttle Control (ETC)
10/3/2019 125
BLDC A a a a D a a a
Advantages
. High efficiency ( )
. Variable speed
. Silent operation
. Reliable, long life
. High power/size ratio
. High start-up torque
Disadvantages
. Overall system cost high
. Complex control design
10/3/2019 126
D M - 6- M
10/3/2019 127
BLDC M c c a
10/3/2019 128
T ca BLDC Ac a - EGR a
VGT
10/3/2019 129
Torque Characteristics
10/3/2019 130
C a S c
10/3/2019 131
Tha k
Automotive Electronics and Diagnostics
3-Oct-19 Confidential 2
Sensor Refresher - Physical World Parameters
• The world around us is full of various phsical parameters such as temperature, pressure, flow, mass, force,
speed, acceleration etc.
• All animals are embedded with various sensors in various forms. We know about the five senses and the
sensory organs that a human body has.
• All instruments that we use in our daily life are embedded with various sensors. E.g. cellphones, computer,
printer, AC etc.
• Automation is all about controlling some physical parameter according to some laid down algorithm.
Controlling something without knowing or sensing it; is an impossible task.
• That is where the need of the sensors arise.
3-Oct-19 Confidential 3
Sensor Terminologies
• Sensitivity: The minimum input of physical parameter that will create a detectable output change is called as sensitivity.
• Range: The range of the sensor is the maximum and minimum values of the applied parameter that can be measured.
• Accuracy: The accuracy of the sensor is the maximum different that will exist between the actual value and the indicated
value at the output of the sensor. The accuracy is expressed either as a percentage of full range or in absolute terms.
• Offset: The offset of a sensor is the output that will exist when it should be zero.
• Linearity: Linearity is the extent to which the measured curve of a sensor departs from the ideal curve.
3-Oct-19 Confidential 4
Sensor Terminologies
• Hysteresis: A sensor should be capable of following the changes of the input parameter regardless of which direction the
change is made; hysteresis is the measure of this property.
• Response Time: The response time is the time required by the sensor output to change from its previous state to a final
settled value within a tolerance band of the new value.
• Dynamic Linearity: The dynamic linearity of the sensor is a measure of its ability to follow rapid changes in the input
parameter.
3-Oct-19 Confidential 5
Thermocouple
• Based on Seebeck Effect
• Discovered in 182 by scientist Thomas Seebeck in Germany
• When two different electrical conductors or semiconductors are kept at different temperatures, the system results in the
creation of electrical potential.
• The valence electrons in the warmer part of the metal are solely responsible for this and the thermal energy they gain is
converted into kinetic energy. They migrate rapidly towards the colder region.
• Electrons go where the energy is lower and this transportation continues till an equilibrium is reached.
3-Oct-19 Confidential 6
Thermocouples
• The magnitude of thermo-electric emf depends upon the nature of the two metals and on the temperature difference
between the terminals.
• Seebeck effect is reversible i.e. if the hot and cold junctions are reversed, the direction of thermoelectric current is also
reversed
• Seebeck investigated thermo-electric properties of a large number of metals and arranged them in a series known as
thermo-electric series or seebeck series
• The Seebeck series is given as - Bi, Ni, Co, Pt, Cu, Mn, Hg, Pb, Sn, Au, Ag, Zn, Cd, Fe, As, Sb, Te
• When two of these metals in the series are used to form a thermocouple, the thermos emf is greater when two metals
used are farther apart in the circuit.
• The thermo-emf of a Cu – Fe couple is only 1.3 mV for a temperature difference of 100 Deg C between the hot and cold
junction.
3-Oct-19 Confidential 7
Thermistors - Introduction
• Thermistors are temperature sensitive resistors and they exhibit change in resitance with the change in
temeprature
• Thermistors are inexpensive, easily-obtainable temperature sensors
• Circuits with thermistors can have reasonable outout voltages - not the millivolt outputs as the
thermocouples have
• All resistors vary with temperature, but thermistors are constructed of semiconductor material with a
resistivity that is especially sensitive to temperature.
• However, unlike most other resistive devices, the resistance of a thermistor may decrease with increasing
temperature.
• Thermistors are made of semiconductor materials (metallic compounds including oxides such as
manganese, copper, cobalt, and nickel, as well as single-crystal semiconductors silicon and germanium).
3-Oct-19 Confidential 8
Thermistors - Introduction
• Assume a simple linear relationship between resistance and temperature for the following discussion
• ΔR = k ΔT where
• ΔR = change in resistance
• ΔT = change in temperature
• k = first-order temperature coefficient of resistance
• Thermistors can be classified into two types depending on the sign of k.
• If k is positive, the resistance increases with increasing temperature, and the device is called a positive
temperature coefficient (PTC) thermistor, Posistor.
• If k is negative, the resistance decreases with increasing temperature, and the device is called a negative
temperature coefficient (NTC) thermistor.
• Resistors that are not thermistors are designed to have the smallest possible k, so that their resistance
remains almost constant over a wide temperature range.
3-Oct-19 Confidential 9
Thermistor - Basic Equations -Model 01
• The Steinhart-Hart equation gives the reciprocal of absolute temperature as a function of the resistance
of a thermistor.
• Using the Steinhardt-Hart equation, one can calculate the temperature of the thermistor from the
measured resistance.
• The Steinhart-Hart equation is:
• 1/T = A + B*ln(R) + C*(ln(R))3 where R in Ω, T in K
̊
• The constants, A, B and C can be determined from experimental measurements of resistance, or they
can be calculated from tabular data.
• This model is most accurate
3-Oct-19 Confidential 10
Thermistor - Basic Equations -Model 02
• Temperature coefficient
• NTC – Resistance decreases with temperature
• PTC – Resistance increases with temperature
• Exponential relationship between temperature and resistance is interpreted by following
equation (which is simplified form of Stienhart-Hart Equation
• β model: β = Ln(RT1/ RT2) / (1/T1 – 1/T2)
• where
• β = coefficient in °K
• RT1 = the resistance at temperature 1
• RT2 = the resistance at temperature 2
• T1 = Temperature one in °K
• T2= Temperature two in °K
• In another words: RT2=RT1 * e[β (T0 - T) / T0*T)]
• The beta value of an NTC Thermistor is calculated using only two temperatures over a given range
and is not the most accurate
3-Oct-19 Confidential 11
Thermistor - Typical Datasheet and specifications
3-Oct-19 Confidential 12
Thermistor - Selection and Calculations for your
design
• Thermistor-choice is based on the nominal resistance you want at the operating temperature
range, on the size, and on the time constant (response time).
• Time constants are about 5 - 10 seconds. (Check this out with your thermistor) datasheet
• Use above table and try to find values of A,B and C using Steinhart-Hart equation
• Use three different and distinct values of temperature to get three simultaneous equations
• Solve these equations to arrive at values of A, B and C
• Now we know values of R (Ω), A, B and C which can be used to find the temperature.
3-Oct-19 Confidential 13
Thermisotor - Advantages and Disadvantages
ADVANTAGES DISADVANTAGES
• High sensitivity • Initial accuracy drift
• Low cost and easily available • De-calibration if used outside the
specified temperature range
• Easy interfacing and no
compensation • Self-heating effect
• Rugged and reliable
• Tiny sensing element; thus offers
fast response time
3-Oct-19 Confidential 14
Thermistor - Applications
• NTC thermistors - Mostly temperature probes in varied areas. Industrial process control, Engine
parameters such as coolant, oil, Air intake, emission control, HVAC temperature parameters etc.
• PTC Thermistors - Mainly Temperature compensation, overcurrent protection and self regulating
heater
3-Oct-19 Confidential 15
RTDs - Introduction
• RTD - Resistance Temperature Dependent / Detectors
• Electrical resistance (resistivity) of the pure metal changes with the temperature. This principle is
used to detect the temperature by determining the change in resistivity that has occurred.
• In place for many years now but the most expensive compared to Thermistors and
Thermocouples.
• Platinum is the most widely specified RTD element though other metals like nickel, copper and
balco (nickel+iron) are also in use.
• Platinum is widely used due to its broad temperature range, stability and accuracy.
• RTDs are characterized by linear positive change in resistance with rise in temperature.
3-Oct-19 Confidential 16
RTDs - Introduction
• There are two main types of RTDs viz. wire-wound and thin-film (Like resistors !)
• Most RTDs are too fragile to use in their raw form so they are put under protective sheath and
have extension lead wires.
• The housing immobilizes the element while protecting it from mechanical stress and
environmental conditions.
• With various packaging for different applications the RTDs are used for -100 to 1000 C
̊
measurement range.
3-Oct-19 Confidential 17
RTD Terminology
• RTDs are generally characterized by their base resistance at 0 ̊C.
• Typical base resistance values for platinum thin film RTD are 100, 500 and 1000 Ω and called as
PT100, PT500 and PT1000.
• These have characteristic standard curve (ITS-90)
• (°C) Equation
• <0°C Rt = R0[ 1 + At + Bt2 + Ct3 (t – 100)]
• >0°C Rt = R0[ 1 + At + Bt2]
• Where:
• Rt = resistance at temperature t
• R0 = base resistance at 0°C
• A, B and C are constants of the equation
• t = temperature in accordance with ITS90
• Typical temperature coefficient or α for platinum is 0.003850 Ω / Ω / ̊C per DIN43760 ( The standard widely
used for industrial grade platinum RTD )
3-Oct-19 Confidential 18
Magnetic Sensors
• Magnetic sensors are solid state devices that are becoming more and more popular because they
can be used in many different types of application such as sensing position, velocity or directional
movement.
• They are also a popular choice of sensor for the electronics designer due to their non-contact
wear free operation, their low maintenance, robust design and as sealed hall effect devices are
immune to vibration, dust and water.
• One of the main uses of Magnetic Sensors in automotive is for sensing the position, distance and
in turn speed.
• For example, the angular position of the crank shaft for the firing angle of the spark plugs, the
position of the car seats and seat belts for air-bag control or wheel speed detection for the anti-
lock braking system, (ABS).
3-Oct-19 Confidential 19
Magnetic Sensors
• Magnetic sensors are designed to respond to a wide range of positive and negative magnetic
fields in a variety of different applications and one type of magnet sensor whose output signal is
a function of magnetic field density around it is called the Hall Effect Sensor.
• The output signal from a Hall effect sensor is the function of magnetic field density around the
device.
• When the magnetic flux density around the sensor exceeds a certain pre-set threshold, the
sensor detects it and generates an output voltage called the Hall Voltage, VH.
3-Oct-19 Confidential 20
Hall Effect
• If an electric current flows through a conductor placed in a magnetic field, the magnetic field
exerts a transverse force on the moving charge carriers which tends to push them to one side of
the conductor.
• This is most evident in a thin flat conductor as illustrated.
• A buildup of charge at the sides of the conductors will balance this magnetic influence, producing
a measurable voltage between the two sides of the conductor.
• The presence of this measurable transverse voltage is called the Hall effect after E. H. Hall who
discovered it in 1879.
• The basic physical principle underlying the Hall effect being Lorentz force.
3-Oct-19 Confidential 21
Hall Effect - Diagram
3-Oct-19 Confidential 22
Hall Effect - Explanation
• Hall Effect Sensors consist basically of a thin piece of rectangular p-type semiconductor
material such as gallium arsenide (GaAs), indium antimonide (InSb) or indium arsenide (InAs)
passing a continuous current through itself.
• While placed in a magnetic field, the magnetic flux lines exert a force on the semiconductor
material which deflects the charge carriers, electrons and holes, to either side of the
semiconductor slab.
• This movement of charge carriers is a result of the magnetic force they experience passing
through the semiconductor material.
• As these electrons and holes move side wards a potential difference is produced between the
two sides of the semiconductor material by the build-up of these charge carriers.
• The movement of electrons through the semiconductor material is affected by the presence of
an external magnetic field which is at right angles to it and this effect is greater in a flat
rectangular shaped material.
• To generate a potential difference across the device the magnetic flux lines must be
perpendicular, (90̊) to the flow of current and be of the correct polarity, generally a south pole.
3-Oct-19 Confidential 23
Hall Effect Magnetic Sensor- 01 - Diagram of
sensor and conditioner
• The output voltage, called the Hall voltage, (VH) of the basic Hall Element is directly proportional
to the strength of the magnetic field passing through the semiconductor material (output α H).
• This output voltage can be quite small, only a few microvolts even when subjected to strong
magnetic fields so most commercially available Hall effect devices are manufactured with built-in
DC amplifiers, logic switching circuits and voltage regulators to improve the sensors sensitivity,
hysteresis and output voltage.
• This also allows the Hall effect sensor to operate over a wider range of power supplies and
magnetic field conditions.
3-Oct-19 Confidential 24
Hall Effect Magnetic Sensor - Diagram - Typical Hall Effect Switch
3-Oct-19 Confidential 25
Hall Effect Magnetic Sensor Diagram - Typical Hall Effect how it works?
3-Oct-19 Confidential 26
Hall Effect Magnetic Sensor - Types
• Hall Effect Sensors are available with either linear or digital outputs.
• The output signal for linear (analogue) sensors is taken directly from the output of the operational amplifier
with the output voltage being directly proportional to the magnetic field passing through the Hall sensor.
• This output Hall voltage is given as: VH = RH*[(I/t)*B]
• Where
• VH = Hall Voltage in Volts
• Rh = Hall Coefficient ( Ωm/Tesla)
• I = Current in Amps
• t - thickness of sensor plate in mm
• B = Magnetic flux density in Tesla
3-Oct-19 Confidential 27
Hall Effect Magnetic Sensor - Types
• Linear or analog sensors give a continuous voltage output that increases with a strong magnetic
field and decreases with a weak magnetic field.
• Digital output sensors on the other hand have a Schmitt-trigger with built in hysteresis connected
to the op-amp.
• When the magnetic flux passing through the Hall sensor exceeds a pre-set value the output from
the device switches quickly changes without any type of contact bounce.
3-Oct-19 Confidential 28
Hall Effect Magnetic Sensor - Types
• There are two basic types of digital Hall effect sensor, Bipolar and Unipolar.
• Bipolar sensors require a positive magnetic field (south pole) to operate them and a negative
field (north pole) to release them while unipolar sensors require only a single magnetic south
pole to both operate and release them as they move in and out of the magnetic field.
3-Oct-19 Confidential 29
Hall Effect Sensor - Application
• Most Hall effect devices can not directly switch large electrical loads as their output drive
capabilities are very small around 10 to 20mA.
• For larger loads current sinking open collector NPN transistor is added as an output stage.
• This transistor operates in its saturated region as a NPN sink switch which shorts the output
terminal to ground whenever the applied flux density is higher than that of the “ON” pre-set
point
• The output switching transistor can be either an open emitter transistor, open collector transistor
configuration or both providing a push-pull output type configuration that can sink enough
current to directly drive many loads, including relays, motors, LEDs, and lamps.
• Typical required gap between sensor face and target is 1mm
3-Oct-19 Confidential 30
Inductive (VR) Sensor
• Inductive (magnetic reluctance) speed sensors are lightweight and very robust, which makes
them particularly suited to demanding motorsport applications.
• In an inductive sensor, the magnetic field around a permanent magnet changes if a ferrous target
(e.g. a toothed wheel) is moved in front of the sensor.
• The change is sensed by the voltage generated in a coil of wire in the magnetic field.
• The coil and magnet are integrated in the sensor body for ease of installation.
• The magnitude of the induced voltage increases with the speed of movement of the ferrous
object (i.e. the target wheel speed). The voltage decreases as the distance (air gap) between the
end of the sensor and the moving target gets larger.
• Typical applications are measuring speed / position of crank and camshaft. Wheel speed and
turbocharger speed.
3-Oct-19 Confidential 31
Inductive (VR) Sensor - Construction and output
3-Oct-19 Confidential 32
Inductive (VR) Sensor
• These circuits trigger when the voltage output crosses a threshold (typically 200mV).
• The detection level can be set lower, but the sensor would be more susceptible to noise.
• The output of the sensor has to exceed the detection voltage before motion can be detected.
• Since this voltage depends on the speed of the target, inductive sensors are unable to detect very
low speeds.
3-Oct-19 Confidential 33
Pressure Sensing - Basic Physics
• Static Pressure. Pressure, P, is defined as force, F, per unit area, A and P = F/A
• The measurement of pressure is generally associated with fluids, either liquids or gases. A
container filled with a liquid (visualize a water tank) has a pressure (due to the weight of the
liquid) at certain point in the liquid of:
• P = ΔF / ΔA = hw where
• h = distance from the surface to the point
• w = weight of the liquid (most liquids are nearly non-compressible)
• The weight per unit volume, V, is given by w = mg/V where -
• m = mass
• g = gravitational acceleration
• Note that this relation can be used to determine the height of the column of liquid in a tank
by measuring the pressure.
3-Oct-19 Confidential 34
Pressure Sensing - Basic Physics
• The density of the liquid is given by density (ρ) = mass (m) / volume (V)
• Thus, the density of a liquid determines the pressure, P, exerted for a given height
• Mercury is 13.6 times denser than water, so would exert a pressure 13.6 times that of water for a
column of the same height
• It should be noted that the pressure due to the height of a column of liquid is in addition to the
atmospheric pressure acting on the surface of the liquid
3-Oct-19 Confidential 35
Pressure - Types of Measurement
• Absolute pressure is measured relative to a perfect vacuum. An example is atmospheric pressure. A
common unit of measure is pounds per square inch absolute (psia).
• Differential pressure is the difference in pressure between two points of measurement. This is commonly
measured in units of pounds per square inch differential (psid).
• Gauge pressure is measured relative to ambient pressure. Blood pressure is one example. Common
measurement units are pressure per square inch gauge (psig). Intake manifold vacuum in an automobile
engine is an example of a vacuum gauge measurement (vacuum is negative gauge pressure).
• The three types of measurements are shown in Figure on the next slide.
• Note that the same sensor may be used for all three types; only the reference is different.
• Differential pressures may be measured anywhere in the range—above, below, and around atmospheric
pressure.
3-Oct-19 Confidential 36
Pressure - Types of Measurement
3-Oct-19 Confidential 37
Pressure - Units
• Pressure is force per unit area and historically a great variety of units have been used, depending
on their suitability for the application. For example, blood pressure is usually measured in mmHg
because mercury manometers were used originally.
• Atmospheric pressure is usually expressed in inHg for the same reason. Other units used for
atmospheric pressure are bar, Pascal and psi.
• Following are some units for pressure and their conversion values:
3-Oct-19 Confidential 38
Pressure Sensing
• Traditionally pressure is sensed by mechanical elements such as plates, shells, and tubes that are
designed and constructed to deflect when pressure is applied.
• This is the basic mechanism converting pressure to physical movement. Next, this movement
must be transduced to obtain an electrical or other output.
• Finally, signal conditioning may be needed, depending on the type of sensor and the application.
• Thus traditional sensor includes sensing element, transduction element and optional signal
conditioner
3-Oct-19 Confidential 39
Pressure Sensing Elements - Traditional
3-Oct-19 Confidential 40
Pressure Sensing Element - Bourdon Tube
3-Oct-19 Confidential 41
Pressure Guages - Traditional
• In mechanical gauges, the motion created by the sensing element is read directly by a dial or
pointer. These devices are typically seen in low-performance applications, including blood
pressure measurement and automotive pressure gauges. The mechanical approach used to
couple the sensing element to the readout can introduce repeatability errors. The mechanical
mass of the gauges also limits the frequency response and makes these sensors suitable only for
slowly changing measurements.
• Electromechanical pressure sensors convert the applied pressure to an electrical signal. A wide
variety of materials and technologies has been used in these devices, resulting in performance
vs. cost tradeoffs and suitability for applications. The electrical output signal also provides a
variety of choices for various applications.
3-Oct-19 Confidential 42
Pressure Sensor Technologies (Modern /
Prevailing)
• Potentiometric Pressure Sensors
• Inductive Pressure Sensors
• Capacitive Pressure Sensors
• Piezoelectric Pressure Sensors
• Strain Gauge Pressure Sensors
• Piezoresistive Integrated Semiconductor
3-Oct-19 Confidential 43
Pressure Sensor - Potentiometric
• These use a Bourdon tube, capsule, or
bellows to drive a wiper arm on a resistive
element. For reliable operation the wiper
must bear on the element with some
force, which leads to repeatability and
hysteresis errors.
• These devices are very low cost and are
used in low-performance applications
3-Oct-19 Confidential 44
Pressure Sensor - Inductive
• Several configurations based on varying
inductance or inductive coupling are used in
pressure sensors. They all require AC excitation of
the coil(s) and, if a DC output is desired,
subsequent demodulation and filtering. The linear
variable differential transformer (LVDT) types have
a fairly low frequency response due to the
necessity of driving the moving core of the
differential transformer
• The LVDT uses the moving core to vary the
inductive coupling between the transformer
primary and secondary.
3-Oct-19 Confidential 45
Pressure Sensor - Capacitive
• Capacitive pressure sensors typically use a thin diaphragm as one plate of a capacitor. Applied
pressure causes the diaphragm to deflect and the capacitance to change.
• This change may or may not be linear and is typically on the order of several picofarads out of
a total capacitance of 50-100 pF.
• The change in capacitance may be used to control the frequency of an oscillator or to vary the
coupling of an AC signal through a network.
• The electronics for signal conditioning should be located close to the sensing element to
prevent errors due to stray capacitance.
• The capacitance of two parallel plates is given by: C = µA/d where µ = dielectric constant of
the material between the plates, A = area of the plates, d = spacing between the plates
• Capacitive absolute pressure sensors with a vacuum between the plates are ideal in this
respect. Because the capacitance of this sensor depends only on physical parameters, sensors
with good performance can be constructed using materials with low coefficients of thermal
expansion. These sensors exhibit acceleration and vibration sensitivity due to the necessity for
a large, thin diaphragm.
3-Oct-19 Confidential 46
Pressure Sensor - Piezoelectric
• Piezoelectric elements are bi-directional transducers
capable of converting stress into an electric potential
and vice versa.
• They consist of metallized quartz or ceramic
materials.
• One important factor to remember is that this is a
dynamic effect, providing an output only when the
input is changing. This means that these sensors can
be used only for varying pressures.
• The piezoelectric element has a high-impedance
output and care must be taken to avoid loading the
output by the interface electronics. Some
piezoelectric pressure sensors include an internal
amplifier to provide an easy electrical interface
3-Oct-19 Confidential 47
Pressure Sensor - Strain Guage Type
• Strain gauge sensors originally used a metal
diaphragm with strain gauges bonded to it. A strain
gauge measures the strain in a material subjected
to applied stress.
• Consider a strip of metallic material (see Figure )
with electrical resistance given by: R0 = ρL / WT
where ρ,L,W and T are resistivity, length, width
and thickness.
• Metallic strain gauges depend only on dimensional
changes to produce a change in resistance. A stress
applied to the strip causes it to become slightly
longer, narrower, and thinner, resulting in a
resistance of: R = ρ(L + ΔL) / (W - ΔW)(T - ΔT), or R
approx. = R0(1 + 3Δ)
3-Oct-19 Confidential 48
Pressure Sensors – Piezo-resistive Bridge
• A semiconductor may resistor may change its resistance when applied with stress or deformation.
• Discovered by Lord Kelvin, this is called as piezoresistive effect.
• This effect provides an easy and direct energy/signal transduction in mechanical and electrical domains.
• It's used in MEMS field for wide variety of sensing needs e.g. pressure, acceleration, flow, gyro rate etc.
• Peizoresistivity refers to the change in resistivity due to stress
• If there is change in resistance due to stress or deformation then that's a strain guage. Stress is the cause
and strain is the effect.
• The piezoresistors on the sensing element are four and connected together in a wheatstone bridge circuit.
• Bulk microfabricated pressure sensors with thin deformable diaphragms made of singlecrystalsilicon are the
earliest products and still dominate the market today
3-Oct-19 Confidential 49
Piezoresistivity
Implanted Piezoresistor
R=5000W
Piezoresistance – Change in electrical resistance with stress
W
Piezoresistor
Piezoresistor
Piezoresistor
R=5000W
W
W
W
Piezoresistor
R=5100W
Vin.R4 Vin.R3
Vo = −
( R4 + R1) ( R3 + R2)
Types of Pressure Measurement
1. Differential pressure measurement
P2
P = P1-P2
P1
Types of Pressure Measurement
2. Vented gage pressure Ambient Pressure
• 1 active port
Gage vent
P = P1-Ambient Pressure
Types of Pressure Measurement
3. Absolute pressure
• 1 active port
P1
• 2nd port sealed with hard vacuum No vent
P
1
P = P1-Vacuum
Sealed vacuum
Sensor Compensation
• R1,R2: Offset TC
compensation resistors
• R3, R4: Offset adjustment
resistors (balance
resistors)
• R5: FSO TC
compensation resistors
3-Oct-19 Confidential 58
Pressure Sensors – Piezo-resistive Bridge Diagram
3-Oct-19 Confidential 59
Mass Air Flow Sensor
• The ECM especially on gasoline engines requires precise information about the mass and other
characteristics of the intake air.
• This information is supplied by the air mass flow sensors.
• The Hot Film (or Hot Wire) mass air flow sensor directly measures the engines air intake.
3-Oct-19 Confidential 60
Mass Air Flow sensor
• The sensor element consists of a heated sensor membrane over which the intake air flows.
• A small passage inside the sensor directs part of the air flow to the heated element.
• More the air passing, more is the heat carried away by the passing air
• The temperature of two defined areas on the membrane is measured.
• The more air is flowing over the membrane, the higher the temperature difference between the
measuring areas.
3-Oct-19 Confidential 61
Mass Air Flow Sensor
• Therefore the resulting difference in temperature is a measure of the air mass flow.
• An electronics circuit evaluates the measurement data and provides precise recording of the air
volume, including the direction of the flow.
• The sensor element only detects part of the air mass flow
• The total air mass flowing through the tube is determined by calibration
3-Oct-19 Confidential 62
Knock Sensor
• Knocking occurs when the air-fuel mixture self-ignites prematurely
• Knocking can cause damage to the engine.
• The knocking can be reduced by moving the ignition point
• The knock sensor is mounted on the crankcase or engine block and measures the structure born
noise using a piezoceramic measuring element
• The sensor moves in correlation to the engine block vibration; this motion results in a
compressive force at the element which is converted to a voltage signal.
3-Oct-19 Confidential 63
Knock Sensor
• For each acceleration magnitude (m/sec2) or G Level (1 G = 9.8 m/sec2) and upper and lower
voltage threshold can be determined.
• Knocking is discernible by its higher sound frequencies.
• Knock sensors can typically capture accelerations in the frequency range of 1 to 25 kHz
3-Oct-19 Confidential 64
Lambda Sensor
• At the stoichiometric point (lambda = 1, one part of fuel in 14.7 parts of air), the oxygen content
of the exhaust gas is ideal for the catalytic converter.
• The lambda sensor provides the ECM with the basis for appropriate mixture formation.
• These sensors are also referred to as Oxygen Sensors
3-Oct-19 Confidential 65
Lambda Sensor - Readiness
• A ceramic element of zirconium oxide (ZrO2) is placed in a steel enclosure.
• The element is protected to prevent it from wetness and coarse particles
• In order to be functional, the ceramic element has to be heated to nearly 800 Deg C. The heater
is integrated into the sensor element and controlled by a pulse width modulation signal.
• A reference oxygen gas is sourced into a chamber. In older sensors, this oxygen was sourced
through the connecting electrical cable.
• The latest Lambda sensors include a pumping cell which generates the reference gas within the
sensor with the aid of pumping current.
3-Oct-19 Confidential 66
Lambda Sensor - Operation
• Owing to the high temperature the ceramic becomes conductive to ions and because of different
oxygen concentrations, an ion exchange takes place between the reference gas and exhaust gas.
• The actual measurement of the different oxygen concentrations is undertaken in the Nernst cell
(named after Prof. Nernst)
• The ion exchange develops a potential difference in the Nernst cell, which enables a current
flow.
• The higher the ion exchange, the higher is the potential difference.
• The pumping flow and the temperature of the ceramic element have to be maintained during the
operation.
3-Oct-19 Confidential 67
Narrow band of Switching Type Lambda Sensor
• The switching type lambda sensor generates a switching signal during the transition from lean to
rich operation.
• The stoichiometric point is identified precisely
• The sensor only has a narrow window
3-Oct-19 Confidential 68
Wideband Lambda Sensor
• The wideband lambda sensor provides a continuous measurement signal of lambda = 0.65 (rich
mixture) to air.
• It allows for more precise control arrangements not just with lambda = 1
3-Oct-19 Confidential 69
Nitrogen Oxide Sensor
• NOx sensor is typically a high-temperature device build to detect nitrogen oxides in the exhaust
gas.
• The NOx sensor is an evolution of the widerange oxygen sensor
• It contains an additional chamber that allows the determination of NOx concentration.
• Their function is quite complex and these sensors come with their own controllers.
3-Oct-19 Confidential 70
NOx Sensor - Operation
• The oxygen entering from exhaust gas is pass through a diffusion barrier into a cavity by applying
a voltage to the pumping electrodes.
• The oxygen concentration in the cavity is controlled by pumping current to the constant
concentration of a few ppm NOx.
• The pumping current is directly proportional to the amount of oxygen in the cavity.
• From this cavity, a few ppm O2 and NOx enters into a second cavity
• Gaseous oxygen is totally removed by an auxiliary pump
• Oxygen is generated by the reduction of NO. This oxygen ions drive a current which is
proportional to the generated oxygen and the reduced NO.
3-Oct-19 Confidential 71
ACTUATOR - BASIC UNDERSTANDING
• Actuator is a unit that activates something physically.
• A device that produces a force/torque for some mechanical action to
happen in proportion to applied command.
• Energy in>>conversion>>energy out where ‘Energy in’ may be
electrical, hydraulic (pressure, flow) or pneumatic(pressure, flow) and
‘Energy out’ is physical action(displacement, force, torque etc.)
• In automotive we can treat the heating coils as “heating actuators”
though these don’t actuate anything.
10/3/2019 72
Actuators Linkages
• Actuators provide motion/displacement as an output
• Thus actuators do have “linkage” from input to output
▪ Electrical: Where the input is passed on to the output as an electric signal. Thus
generally called as ‘drive by wire’ technology.eg. Electronic clutch, Electronic
Throttle
▪ Hydraulic: Where the link is a column of an hydraulic fluid(oil) that has certain
pressure and flow e.g. Hydraulic brakes, hydraulic actuation of implements in
the construction and agri equipment.
▪ Pneumatic: Where the link is a column of a compressed air e.g. Air-brake where
the brake shoe is actuated by pneumatic pressure.
▪ Combination/Hybrid:
▪ Electro-Hydraulic: Where the force torque linkage is hydraulic while signal linkage is electric.
▪ Electro-pneumatic: Where the force torque linkage is pneumatic while signal linkage is electric.
10/3/2019 73
Actuators - Engine
• Fuel System
1. Fuel Injectors(Electromagnetic and Piezoelectric actuators)
2. Fuel Pressure Limiting Valve (Electromagnetic actuator)
3. Throttle Body Actuator(Electromagnetic actuator)
4. Electronic Choke Actuator (Heating actuator/Electromagnetic actuator)
5. Fuel cut-off valve (Electromagnetic)
• Intake System
1. Intake air throttle
2. VGT actuator
• Exhaust system
1. EGR
2. SCR system actuators such as injector, pump motor, metering valve
3. DPF System actuators such as solenoid valve, metering valve.
10/3/2019 74
Actuators-Transmission and Drive-line
System
• Electric Clutch Actuator
• Electric brake drum actuator
• Various on-off solenoid valves
• Oil pressure regulator
10/3/2019 75
Actuator - Other Systems
• Actuators for Climate Control System
1. Clutch for compressor engagement control
2. Coolant/Refrigerant valve actuators
• Vehicle systems
1. Grill shutter actuator - For actuating the radiation grills to reduce the aerodynamics losses.
2. Electric power sterling
3. Electric coolant fan
4. Bus door actuator for passenger safety
5. Power windows
6. Central locking system actuators
7. Headlight tilt actuator
8. Windscreen/headlight wipers and washers
9. Seat adjustment
10. Sunroof adjustment
• Aftertreatment system actuators
1. DEF injector
2. Metering valves
10/3/2019 76
Actuator-Terminologies, Keywords and Specs
•Input: Electrical or hydraulic: Based on what is the type of input energy required
• Response time
1. mm/msec, deg/msec
• Absolute Maximum Ratings (V, I, F, T): This includes rated parameters such as rated force, torque, current and voltage.
10/3/2019 77
Actuator - Terminologies, Keywords
• Environmental specifications : Temperature, Pressure, vibrations, electromagnetic and atmospheric.
• Mounting specifications / Orientation
• Physical specifications: Mass
Pull Force / Torque (On-Off Solenoids): Pulling force (ultimately current ) is required force for any electromechanical
actuator to start moving its core or rotor from standstill against the static friction, stiction and restoring force. This
may be 2-5 times of the holding force (current).
Holding Force / Torque (On-Off Solenoids): Holding force (ultimately current ) is a force necessary for any
electromechanical actuator core to maintain the current position against the restoring forces (usually restoring
spring)
Dither (Proportional solenoid): Dither is specified as much lower amplitude and higher frequency vibrations around
the current mean position achieved to reduce stiction so as to aid the fast response.
Bearings used
10/3/2019 78
Actuator - Governing Principles
•Electromagnetic:
1. Faraday's law of electromagnetic induction
• The voltage induced in a coil is proportional to the number of turns and rate of change of flux.
The induced current flows in the direction that opposes the changing flux. Flux has no source or
sink (What goes in comes out)
2. Ampere's Law: The magneto-motive force (mmf) around a closed loop is
equal to net current enclosed by the loop. The objective of solenoid design is
to transfer the maximum amount of NI (energy) from the coil to the working
air gap.
3. Flemings Left Hand Rule for direction of force (thumb), magnetic field and
current.
10/3/2019 79
Actuator - Governing Principles
• Piezoelectric Effect: Piezoelectric Effect is the ability of certain materials
to generate an electric charge in response to applied mechanical stress.
The word Piezoelectric is derived from the Greek piezein, which means
to squeeze or press, and piezo, which is Greek for “push”.
10/3/2019 80
Non-Actuating loads /Heating
Actuators
• The actuators are major power consumers in any embedded automotive
electronics
• The non-actuating loads which don't really provide any physical motion or
displacement but provide other type of physical quantity such as heat.
• The heaters, glow-plugs, defrosters etc are said to be non-actuating loads.
• Since these also consume considerable power and have similar ways to
control the power delivery at output with respect to control system; they are
also considered as actuators in general.
• The limiting factor of operating temperature of a solenoid is the insulation
material of the magnet wire used. Insulation classes:
1. Class B- 130º C
2. Class F- 155º C
3. Class H- 180º C
4. Class C- 220º C
10/3/2019 81
Requirements for actuators in
automobiles
• Best reliability for use in automotive environment
• Best efficiency in less size. (Power density)
• Easy construction, servicing, driving.
• Fit for environment
1. Robust: ( Withstands Vibrations experienced in automobile)
2. Temperature: (Exhaust gas and Engine compartment temperature)
3. Dirt ingress protection
4. Oil and fuel protection
10/3/2019 82
Electric Actuators - Variety - Motors
• Electric Motors
1. AC
• 1-ph and 3-ph
• Synchronous Motors
• DC
1. Brushed DC motors
2. Brush-less (Permanent Magnet Motors) / Stepper Motors
3. Brush-less (No Magnet) BLDC motors
• Motor terminology
1. Stator and Rotor
2. Armature and Field windings
3. Series and Parallel connections
10/3/2019 83
DC Actuators - Rotary and Linear
• Rotary:
1. Motors:
• Starter Motor
• PMDC Motor
• Stepper Motor
2. DC solenoid (Rotary)
• Linear (Solenoids):
1. DC solenoid (On-Off)
2. DC solenoid (Proportional)
10/3/2019 84
Electric Actuators - Variety - Solenoid
(On-Off)
• Solenoids - (On-Off)
1. AC
2. DC
• Relays
• Small stroke (Valve spool actuation, Fuel Injectors)
• Large stroke (Lever actuation, Valve stem actuation, Pressure / Flow control)
10/3/2019 85
Electric Actuator - Solenoids ( Variable
output)
• AC
• DC
1. Integrated actuator (e.g. EGR valve)
• In this category the actuator is well integrated with the actuating part.
2. Externally mounted Actuators (e.g. EGR, Throttle control Actuator)
• In this category the actuator exists as a separate unit. The implementation of actuator
involves the calculation of force requirement based on the force and lever data of the
actuating part. Also the mounting and securing considerations are also of major
importance.
10/3/2019 86
Relay
10/3/2019 87
DC Solenoid - Linear - On-Off
• DC solenoid mainly comes with two windings or coils.
• Pulling coil: This is high wattage coil to provide the initial force required to
move the plunger against the spring tension and lever load. This is activated
momentarily (1-3 secs) to enable the movement of the solenoid plunger.
• Holding coil: This is comparatively low wattage coil which provides holding
force for the plunger against the spring tension and lever load. This coil is
activated as long as the plunger is expected to be in the extreme position.
• Specifications:
1. Stroke: The stroke of the plunger is specified in mm. e.g. 15 mm
2. Force: The maximum weight that can be pulled or pushed by the solenoid. Provided
in Gram or Kg.
• The solenoids consume a lot of power and get heated with the continuous use.
The duty cycle of the operation should be optimized to limit heating to a safe
limit.
10/3/2019 88
DC Solenoid -Linear- On-off -
Construction
10/3/2019 89
Solenoid - Linear - Variable Position -
Construction
10/3/2019 90
DC Solenoid (on-off) - Description
• Housing: This is made up of a ferromagnetic material and acts as path
for magnetic flux.
• Plunger: Plunger is a metallic rod of ferromagnetic core material
• Return Spring: A spring against which the solenoid operates. Returns to
the original resting position when excitation is zero or lost.
• The arrangement of the spring can make the solenoid to rest "in" or
"out".
• These solenoids generally have two coils.
1. Pulling coil: Which is a low resistance (high current) coil that is activated
for solenoid plunger originally at "rest". This is not a continuously rated
coil. Consumes at least 3- 4 times of that of holding coil.
2. Holding coil: Which is higher resistance coil that has to be activated when
the pulling is over. This provides the holding torque against the spring and
the lever to be actuated. Consumes less power than pulling coil.
10/3/2019 91
DC Solenoid-Rotary - On-Off
• The rotary solenoid provides the rotary angle stroke e.g. 45 deg.
• The construction is little different than that of the linear solenoid
but the principle remains same.
• The linear solenoid with properly designed pivot and lever
arrangement can also be used to achieve rotary actuation.
10/3/2019 92
Throttle Body Actuator
• The throttle body actuator is an important part for engines
operating on gaseous fuel.
• These are meant to control the air or air fuel mixture for these
engines.
• The "throttle position feedback" sensor which is essentially a
potentiometer can be a integral part of this actuator.
• This sensor provides the current angle of opening (deg) in terms of
resistance, R.
• The actuators can be motorized or electromechanical solenoid type.
• Application: Engine speed governor
10/3/2019 93
Throttle Body Actuator - Continuous
movement (GAC)
10/3/2019 94
Solenoid Actuator - Linear -
Continuously Variable (Woodward)
• Speed Range: 250 - 9500 Hz
1. Input: 2.5 Vrms minimum speed signal
2. Operating Voltage: 12 Vdc or 24 Vdc
3. Maximum Linear Output Travel: 0.8 in. (20.3 mm)
• DYNA 2000:
1. Maximum Stall Current: 5.4 amps @ 12 Vdc; 3.0 amps @ 24 Vdc
2. Maximum Force Energized: 6.5 lbf. (28.9 N)
3. Maximum Work Output: 0.25 ft. lbs. (0.34 joules)
• DYNA 2500:
1. Maximum Stall Current: 5.9 amps @ 12 Vdc; 3.0 amps @ 24 Vdc
2. Maximum Force Energized: 13.0 lbf. (57.8 N)
3. Maximum Work Output: 0.50 ft. lbs. (0.68 joules)
10/3/2019 95
Solenoid Actuator - Linear -
Continuously Variable (Woodward)
10/3/2019 96
Injector
10/3/2019 97
Fuel Injectors
• Most diesel engines and also gasoline direct injection (GDI) engines
inject fuel directly into the combustion chamber
• Multi-port fuel Injection systems also use injectors but they inject
into a port instead of the hot cylinder
• Fuel Injectors are small electromechanical devices that are used to
spray fuel into the ports or intake manifold or the combustion
chamber
• The injectors have multiple holes The fuel also acts as a lubricating
agent.
• Most injectors use the same basic design.
10/3/2019 98
Injector Working
• High pressure fuel enters the
injector and reaches upto the
spray tip.
• When the solenoid is engaged,
the plunger is pulled inwards,
thereby raising the pintle
• This allows the fuel to be
injected into the cylinder
through the spray tip.
• When the solenoid is
deenergized, the valve spring
reseats the plunger to its
original position.
10/3/2019 99
Starter Motor /Cranking Motor
10/3/2019 100
Starter Motors
• A starter motor converts the electrical energy stored in the battery into mechanical
energy to crank the engine for starting
• The starter motor is motor which has a field ( or PM field) and an armature. Armature
is always on the rotor and utilizes very high current in vary short time.
• One end of the rotor is fitted with a pinion.
• The pinion is actuated by a lever which is operated by a solenoid.
• The solenoid also offers a high current (150-200 Amp) contact for armature current.
• The solenoid has separate pulling and holding coils
• Based on whether the starter motor implements the reduction gear or not; there can
be two categories of this component available
• Starter motors can be a available in two categories with respect to "field (magnetic)"
1. Permanent magnet field
2. Wound Field coils
10/3/2019 101
Starter Motor - Conventional
10/3/2019 102
Starter Motor - Gear Reduction Type
10/3/2019 103
Starter Motor - More Detailed
10/3/2019 104
Starter Motor - Keywords
• Voltage : The rated voltage of the motor (12/24 V)
• Current: Maximum power current in A
• Wattage : The consumption of power in kW
• Torque : The torque produced at pinion. Usually the manufacturer
provides the curve.
• RPM: The maximum rated RPM of starter
• Operating Duty Cycle : Number of cranks per unit time.
• Life : Usually specified in number cranks over the life time
10/3/2019 105
Permanent Magnet DC Motor
10/3/2019 106
PMDC Motor (Brushed Motor)
• Permanent magnet DC brushed motors (PMDC motors) consist of permanent
magnets located in the stator.
• Windings are located in the rotor.
• The ends of the winding coils are connected to commutator segments, that make
slipping contact with the stationary brushes.
• Brushes are connected to DC voltage supply across motor terminals.
• Change of direction of rotation can be achieved by reversal of voltage polarity.
• The current flow through the coils creates magnetic poles in the rotor, that
interact with permanent magnet poles.
• In order to keep the torque generation in same direction, the current flow must
be reversed when the rotor north pole passes the stator south pole.
• These motors can be usually available in 2 or 4 - pole versions
10/3/2019 107
PMDC Commutation and current
reversal in coil - 2- pole
10/3/2019 108
PMDC Assembly
10/3/2019 109
PMDC Assembly parts
10/3/2019 110
PMDC Pros and Cons
• Simplest construction
• Low cost
• Simple driving scheme
• Brush wear and tear
• EMI
10/3/2019 111
Stepper Motor
10/3/2019 112
Stepper Motor - Introduction
• Stepper motor convert electrical energy in to a rotation
• The name stepper suggests that the motor moves in discrete steps of angle (in degree)
• A rotational stepper motor is an electromechanical device that can divide one full rotation (360°)
into a number of rotational steps
• The linear stepper motor is similar to the rotational motor other than the shaft moves in a linear
or length ways fashion
• The PM or "tin can" stepper motor is a low cost solution positioning applications with typical step
angles of 7.5° - 15°.
• Smaller step angles can be obtained trough Micro stepping.
• The shaft of the motor moves in distinct step increments when electrical control pulses are
applied.
• The current polarity and frequency of the applied pulses determines the direction and speed of
the shaft's movement.
• One of the most significant advantages of a stepper motor is its ability to be accurately controlled
in an open loop system.
10/3/2019 113
Stepper Motor - Keywords
• Detent, Holding, Pull-In and Pull-Out torque capabilities, speed (RPM)
and steps per revolution (step angle) characterize a stepper motor.
• Detent torque defines the maximum torque that can be applied to a de-
energized motor without causing the motor to rotate.
• Holding torque defines the maximum torque with which an energized
motor can be loaded without causing rotary movement.
• Pull-In performance defines the motor's capability to start or stop. This
is the maximum frequency at which the motor can start or stop
instantaneously, with a load applied, without loss of synchronization.
• Pull-Out torque defines the maximum torque when applying an
acceleration/deceleration ramp without loosing steps. It defines the
maximum frequency at which the motor can operate without losing
synchronism.
10/3/2019 114
Stepper Motor Types
• Permanent-Magnet (PM)
1. PM rotor & electromagnetic coil
• Uni-polar : The windings have center tap The current is not reversed but the change in
magnetic polarity is achieved by operating winding half in turn.
• Bipolar The windings don't have center tap Needs to reverse the polarity of the
applied voltage to the winding. Complex circuit for driving
10/3/2019 115
A Hybrid Stepper Motor - Stator and
Rotor
10/3/2019 116
Hybrid Stepper Motor - Construction
10/3/2019 117
VR Stepper Motor - Construction and
control
10/3/2019 118
BLDC Motor
10/3/2019 119
BLDC - Introduction
• Brushless DC electric motor (BLDC motors) also known as electronically
commutated motors (ECMs, EC motors) are synchronous motors that
are powered by a DC electric source via an integrated inverter /
switching power supply
• As the name implies, BLDC motors do not use brushes for
commutation; instead, they are electronically commutated
• Advantages of BLDC
1. Better speed versus torque characteristics
2. High dynamic response
3. High efficiency
4. Long operating life
5. Noiseless operation
6. Higher speed ranges
7. Ratio of torque delivered to the size of the motor is higher
10/3/2019 120
BLDC - Construction
• Stator:
1. The stator of a BLDC motor consists of stacked steel laminations with
windings placed in the slots that are axially cut along the inner
periphery. Traditionally, the stator resembles that of an induction
motor; however, the windings are distributed in a different manner.
2. Most BLDC motors have three stator windings connected in star
fashion.
3. Each of these windings are distributed over the stator periphery to
form an even numbers of poles.
• Rotor: The rotor is made of permanent magnet and can vary from
two to eight pole pairs with alternate North (N) and South (S)
poles.
10/3/2019 121
BLDC - Construction contd..
• Hall Sensors:
1. Unlike a brushed DC motor, the commutation of a BLDC motor is controlled electronically.
To rotate the BLDC motor, the stator windings should be energized in a sequence.
2. It is important to know the rotor position in order to understand which winding will be
energized following the energizing sequence.
3. Rotor position is sensed using Hall effect sensors embedded into thestator.
4. Most BLDC motors have three Hall sensors embedded into the stator on the nondriving
end of the motor.
5. Whenever the rotor magnetic poles pass near the Hall sensors, they give a high or low
signal, indicating the N or S pole is passing near the sensors. Based on the combination of
these three Hall sensor signals, the exact sequence of commutation can be determined.
• Without Hall Effect Sensor:
1. Any motor winding has a back emf which is proportional to the motor's rpm apart from
the other parameters such as length, radius of rotor, number of winding turns for stator,
rotor magnetic field density.
2. The hall Effect Sensor is eliminated in some motors by sensing the back emf to know
which of the winding is to be commutated.
10/3/2019 122
BLDC - Construction contd..
10/3/2019 123
BLDC - Typical Control Block Diagram
10/3/2019 124
BLDC - Typical Applications in
Automotive
• Diesel Air Valve
• Intake Manifold Tuning Valves (ITV-IMTV)
• Turbo Bypass Valve (TBVA)
• Variable Vane Turbocharger (V V L)
• Waste Gate Valve (VGT)
• DPF Bypass Valve
• Transmission Control
• EGR Bypass Valve
• Back pressure Valve
• Electronic Throttle Control (ETC)
10/3/2019 125
BLDC Advantage and Disadvantages
• Advantages
1. High efficiency (98%)
2. Variable speed
3. Silent operation
4. Reliable, long life
5. High power/size ratio
6. High start-up torque
• Disadvantages
1. Overall system cost high
2. Complex control design
10/3/2019 126
Drive Mode - 6-step Mode
10/3/2019 127
BLDC Motor control design flowchart
10/3/2019 128
Typical BLDC Actuator - for EGR and
VGT
10/3/2019 129
Torque Characteristics
10/3/2019 130
Commutation Sequence
10/3/2019 131
Thanks
Module 04: Advanced Embedded Electronics
10/7/2019 Confidential 2
Physical Systems
• A physical system is a device or a collection of devices existing in the real
world.
10/7/2019 Confidential 3
Physical Systems
• In order to understand to design a controller for any system it is imperative to:
• Understand the Physical Model
• Develop a Mathematical Model
• Analyze
• Design and Optimize
• Once the process or physical quantity to be controlled is selected, the next step is to apply
various physical laws to develop mathematical equations to describe the system
10/7/2019 Confidential 4
Systems
• A system with only one input terminal and only one output terminal is called a single input single
output (SISO) system
• A system with two or more inputs and multiple outputs is called a multi input multi output
(MISO) system
10/7/2019 Confidential 5
Systems
• A system is called a continuous time system if it accepts continuous time signals at its input and
generates continuous time signals at its outputs
• A system is called a discrete time system if it accepts discrete time signals as its inputs and
generates discrete time signals at its output.
• All discrete-time signals in a system usually have the same sampling period T
• Discrete data take particular values, while continuous data are not restricted to separate
values. Discrete data are distinct and there is no grey area in between,
while continuous data occupy any value over a continuous data value
10/7/2019 Confidential 6
Systems
• A system is called a memoryless system if its output at any given time sample depends only on
the input applied at that time sample and is independent of the input applied before or after
this time sample.
• Most systems have memory
• A system is called a causal or non-anticipatory system if its current output depends only on the
current and past inputs but not on future input
• All physical systems are causal
10/7/2019 Confidential 7
State of a Model
• The state of a model of a dynamic system is a set of independent physical quantities, the
specification of which (in the absence of excitation) completely determines the future evolution
of the system
• There may be many choices of variables, yet independent, that can be chosen as the state
10/7/2019 Confidential 8
States of the system
• The states of the system at a given time is the information that along with the input can
determine the output
• A system is said to be lumped if its number of state variables is finite or its state is a finite vector
• A system is said to be distributed if its state has infinitely many state variables
• E.g.: Transmission line
10/7/2019 Confidential 9
Linear Systems
• Linear systems follow additivity
• Linear systems follow homogeneity
• Linear systems follow superposition property – The net response produced by the simultaneous
application of two different forcing functions is the sum of the two individual responses
10/7/2019 Confidential 10
Linear Time Invariant Systems
• Time-invariant systems are systems where the output does not depend on when an input
was applied
• If the initial state and the input are the same, no matter what time they are applied, the output
waveform will always be the same
• In addition, LTI systems are also memory systems, invertible, casual, real, and stable. That
means they have memory, they can be inverted, they depend only on current and past
events, they have fully real inputs and outputs, and they produce bounded output for
bounded input
Reality
• Most physical systems are non-linear and time varying
• Some nonlinear equations, can be approximated by linear equations under certain conditions
10/7/2019 Confidential 11
Automotive Domain
• Cars are increasingly being provided with more and more control systems.
• Most cars are provided with a system for cruise control.
• More advanced systems like adaptive cruise control are also used
• The system is called adaptive as it keeps the distance to the car in front at a constant value.
• The distance is measured by radar
• Anti-lock braking and traction control are also common features
10/7/2019 Confidential 12
ECU Architecture
10/7/2019 Confidential 13
Engine Management System
• The engine management system ensures that the operator request is implemented.
• It converts the acceleration / deceleration requests into a corresponding engine output
• Furthermore, it has the responsibility to minimize exhaust emissions, reduce fuel
consumption, provide optimal driveability for all operating conditions.
• It also needs to provide system diagnosis when malfunctions occur.
10/7/2019 Confidential 14
Function Based Approach
• In order to meet the objectives, the engine management system is organized in different
functions
• Each function manages a specific engine activity and is in charge to accomplish some
definite target.
• The engine operating conditions are supervised by a finite state machine that defines
engine states and manages the transition between these states
10/7/2019 Confidential 15
Basic Functions
• The engine management system was invented for the specific function of fuel injection
management.
• However, with the advent of new fast controllers, they do a wide variety of tasks.
10/7/2019 Confidential 16
FUNCTIONAL MAP
10/7/2019 Confidential 17
Inputs
• A wide variety of sensors exist in the engine management system
• Throttle Position Sensor
• Temperature and Pressure Sensors
• Flow Sensors
• Speed / Position Sensors
• Oxygen and NOx Sensors
10/7/2019 Confidential 18
Outputs
• A wide variety of actuators exist in the engine management system
• Exhaust Gas Recirculation
• Engine Brake
• Variable Valve Timing
• Turbo Wastegate
• Fuel Metering Valve
• Fuel Injectors
• Fuel Return Valve
10/7/2019 Confidential 19
Other Interfaces
• The Engine Management System includes
• Starting and Charging System
• Battery
• Alternator
• Starter Motor
• Driver Interface
• Instrument Cluster
• Switches
10/7/2019 Confidential 20
Typical Gasoline DI System
10/7/2019 Confidential 21
Diesel Engine System
10/7/2019 Confidential 22
Technical Specs of an ECU
• Power Supply : 12 V / 24 V
• Operating Temperature : -40 Deg C to 125 Deg C
• Vibration Level: ~5 g
• Microcontroller: 32 bit
• Clock Frequency: ~128 MHz
• Boost Power Supply: 50 to 85 V
• Analog Inputs: 30 x
• Switch Inputs: 17 x
• Speed Sensors: 4 to 6 x
• Output Drivers: 20 x
• Injector Drivers: 6 x
• Ignition Coil Drivers: 6 x
• CAN: 2 x
10/7/2019 Confidential 23
Sensors Interfacing
• Most sensors require +5 V power
• Sensors that require the power to operate are called active sensors while those don’t need
any power are called passive sensors
• Ex: Thermostat (passive) vs radar (active)
• Active sensors can further be divided into two categories – general and smart
• Smart sensors interface with the ECU on a communication medium like CAN, I2C.
10/7/2019 Confidential 24
Reference Voltage
• Active sensors need the +5 V supply from within the ECU.
• The generic pressure sensor may have Wheatstone bridge
followed by an electronic conditioner
• The supply must be a regulated and stable supply as in most
cases the sensor output is fully dependent on this power quality
• The collective consumption of sensors and power supply
capacity has to be looked at.
• Sensor supplies need to be protected against shorting to battery
ground and positive
10/7/2019 Confidential 25
Sensor Interfacing - Thermistor
• The thermistor is simply interfaced to analog input pin while the pin being pulled up by a fixed resistor
from within ECU
• The pull-up is selected to prevent any damage to the sensor supply due to short with battery positive or
ground
• The pull-up or pull-down is normally a part of ECU board and is not accessible to the user.
• The user might be able to select from certain available set of pull-ups in few ECU settings
• The sensor during its condition of very low resistance has the highest chance of getting damaged.
10/7/2019 Confidential 26
Selection of pull-up / pull-down
• The proper pin selection for the thermistor is done based on looking at the
thermistors resistance, temperature range, resolution and diagnostic thresholds.
• The output of the thermistor is non-linear. The co-relation of the output is done
by having a multi-point 2-D table and thus implement a piece-wise linearization.
• Such calibration table offers flexibility for replacement of sensor.
• Implementing the Steinhart Hart equation or the beta model can also be done,
but it a laborious means of achieving the same result.
10/7/2019 Confidential 27
Anti-Aliasing
• Temperatures do not change rapidly, however, pressures do.
• Thermistors therefore can be sampled at lower rates while pressures may be sampled at
higher rates.
• The anti-aliasing theorem states that the sampling frequency must be at least double the
frequency of the change of input so at to reproduce the input faithfully.
10/7/2019 Confidential 28
Diagnositcs
• An automotive environment is prone to wiring issues and mis-connections.
• The ECU interface pins can go through a short circuit
• The pins and the connected circuit elements need to be protected against such incidents
• Also the notification of such faults/failures need to be indicated to the operator / driver /
service technician
• Several protection schemes such as PTC over-voltage protection, Zener diodes are
incorporated in the internal circuit of the ECU.
10/7/2019 Confidential 29
Digital Inputs
• The digital inputs are normally active low inputs
• Active low inputs are the ones that are activated when pulled low to ground.
• These inputs arise from various single pole elements of the engine management system.
E.g. Cruise Control ON switch
• The microcontroller port pins with internal pull-ups are used to interface these switches.
• The switches can also be interfaced on analog input lines.
10/7/2019 Confidential 30
Frequency Inputs
• Why are Frequency inputs used:
• Frequency inputs measure repetitious signals.
• Two different measures can be taken.
• The period (frequency) of the signal
• The duty cycle of the signal
10/7/2019 Confidential 31
Frequency Inputs
• Variable Reluctance (VR) sensor
• A toothed wheel pass across the sensor creating an AC signal
• Location is determined by a rapid transition through zero volts.
• Voltage peak varies with the speed of the wheel (higher speed = higher voltage)
10/7/2019 Confidential 32
Frequency Inputs
Hall Effect Sensors
The sensor and target can be split by a tone wheel but we typically use the wheel as the
target.
The sensor provides an open-collector output that requires a pull-up either in the sensor or
the ECM.
10/7/2019 Confidential 33
Frequency Inputs
• Hall Effect Sensor
10/7/2019 Confidential 34
Frequency Inputs
• Engine Speed/Position
• Hall
• Two sensors, one for speed, one for position – wheels are 60-2 and 12-1 (crank and
cam).
• Losing the crank signal significantly degrades the information available to the ECM.
• Because of the two wheels and the fact that hall sensors can detect lower speeds, we
get faster engine sync and engine starts.
10/7/2019 Confidential 35
Frequency Inputs
• Vehicle Speed
Some applications use a single ended (hall-like) signal that is input on one side
(typically negative) of the VR input
10/7/2019 Confidential 36
Frequency Inputs
• Other Applications
• Most speed applications (fan, etc.) are using hall effect sensors.
• Frequency Throttles
• Some industrial applications use a frequency signal for throttle as opposed to an A/D
10/7/2019 Confidential 37
Crank Configurations
• Crank Sensor
• Number of teeth on wheel
• Width of each tooth, in degrees
• Number of tooth which triggers an event.
• 1st tooth after the missing tooth is number 1.
• NOTE: On 60-2, the first tooth after the missing teeth is number 2
• Hall Effect Sensor
• Rising Edge Trigger
• Falling Edge Trigger
• Entire engine cycle is 720 degrees (2 revolutions for a 4-stroke
engine)
• Angular width of each tooth = 720 / (2 * 60) = 6
10/7/2019 Confidential 38
Coolant Temperature Sensor
• Calibration
• Resistance to Deg C characteristics
• Test
• 3-point test
• Ambient room temperature (close to thermometer reading)
• Boiling water (~100 Deg C)
• Ice Water (~ 0 Deg C)
10/7/2019 Confidential 39
Intake Air Temperature
• Very prone to ‘Heat Soaking’
• The sensor is exposed to high engine temperatures and so it cannot
faithfully measure the temperature of the air entering the engine
• Placement is very critical
• Can we compensate based on coolant temperature sensor
10/7/2019 Confidential 40
Throttle Position Sensor
• Calibration
• Fully Closed Count
• Fully Open Count
10/7/2019 Confidential 41
Manifold Air Pressure
• Range
• 0 – 250 kPA (non-boosted systems)
• 0 – 450 kPA (boosted systems)
• Calibration
• Highest ADC count
• Lowest ADC count
• Limp home value
• Test
• Blower
10/7/2019 Confidential 42
Output Types and Need for Power Stages
• The ECU outputs are expected to deliver commanded power to certain actuators
• The actuators could be
• On-Off power loads – (relay, valve, injector)
• Continuously variable power loads (motor, regulating valves etc)
• The ECU processor can provide the outputs via port pins but it cannot cater to the current
requirements of these devices
• This calls for power stages referred to as ‘driver’ stage which handles the extra power
needed to drive the actuator
• The drivers depend on the way the load and driver is connected and can be divided into
“high” side and “low” side
10/7/2019 Confidential 43
Digital Methods
Counters used to handle transition
10/7/2019 Confidential 44
Basic Theory
• The device you want to activate requires power and
return.
• Therefore, to turn it on and off, you can either connect and
disconnect power, return, or both.
• High side drivers disconnect power and low side drivers
disconnect return.
• Some drivers supply a signal, not power
10/7/2019 Confidential 45
Low Side Driver configuration
• The switch is between the load and the ground.
• Often used for powertrain-related loads such as motors, solenoids, and
heaters
• To turn on the Low Side Driver, the MOSFET ( metal–oxide–
semiconductor field-effect transistor / metal–oxide–silicon transistor)
driver is pulled low
• Current flows and the load ‘turns-on’
10/7/2019 Confidential 46
High Side Driver Configuration
• The switch is between the load and the supply
• To turn the High Side Driver, The MOSFET gate is pulled high
• The drain and gate are assumed to be at the same potential causing Vgs=
Vds.
• The high value of Vds puts the device into saturation region and results
in a small Ioad current.
10/7/2019 Confidential 47
Drivers
• Functions
Primary drivers for most modules are the fuels system drivers.
10/7/2019 Confidential 48
Topology Choice
High Side Driver Advantages
Nearly the entire vehicle is a return path. Disconnecting a return wire does not guarantee you have eliminated all return paths.
In an automobile, a short-to-ground fault is more likely to occur than a short-to-supply fault, given that grounded sheet metal is
everywhere to be found. For a low-side driver, a short-to-ground condition will turn the load permanently on. With a high-side driver, it
will short the driver output to ground, so the driver will need protection circuitry.
The opposite condition will apply for a short-to-supply fault: the low-side driver will be shorted to the supply and need protection, while
the high-side load will be permanently on.
This differing response is what determines the use of one driver over the other; in a fuel pump with a low-side driver, for example, a
short-to-ground as a result of a crash may turn on the fuel pump with potentially catastrophic consequences.
Providing current recirculation paths when an inductive driver is turned off is easier with high side drivers.
10/7/2019 Confidential 49
Topology Choice
• High Side Driver Disadvantages
• High side drivers increase ECM cost.
• For high side drivers, the source voltage when the device is on is battery, for low side drivers,
the source voltage is ground (or very close to it).
• Therefore, high side drivers require a voltage higher than battery for operation.
10/7/2019 Confidential 50
Topology Choice
• Low Side Drivers
If the low side shorts and the device sticks on, the impact is minimal.
Some OEMs like to use key switch for lamps, others prefer battery.
10/7/2019 Confidential 51
Other Choices
• Several other choices remain both for the ECM and the system.
• On/Off or PWM?
• Return to block or return to ECM (high side only)?
• Drive the device directly or drive a relay?
• Current sense required or not?
10/7/2019 Confidential 52
On/Off vs. PWM
• Why PWM?
Is a technique for getting analog results with digital means
Actuator requires it, usually because it will draw too much current if left on
continually.
To use a lower voltage actuator (i.e. one designed for 12 volt battery systems) with
higher voltage (i.e. 24 volt battery systems).
• Reduces part numbers
• Simplifies manufacturing process
10/7/2019 Confidential 53
Return Path
• Driver Current Return Paths
• Returning driver current through the ECM requires more return
pins at higher current ratings.
10/7/2019 Confidential 54
Relay
• Why use a relay?
• The primary reason to use a relay is for high currents that you do not want to
route through the ECM.
10/7/2019 Confidential 55
Drivers for Control
• PWM Signals
10/7/2019 Confidential 56
Diagnostics
• General
• Drivers should be “self protecting” meaning they should shut themselves off
in the event of a significant fault (e.g. shorting a high side driver to ground).
10/7/2019 Confidential 57
Diagnostics
• High Side Drivers
10/7/2019 Confidential 58
Diagnostics
• Low Side Drivers
10/7/2019 Confidential 59
Injectors
• Both the current and voltage
applied to the solenoid injector
has to be precisely controlled.
• A fully configurable, boosted,
peak and hold waveforms are
shown here
10/7/2019 Confidential 60
Thanks
Automotive Electronics and Diagnostics Training
Introduction
• Your Name
• # Days, Months or Years at KPIT
• Awareness level @ Automotive Diagnostics
• Area that you are working in
Where do we start
• At Ground Zero
• Let us re-calibrate ourselves
• Why is it needed
• Basics
• Seven Layer Model
• Attributes of CAN
• Message Types and Data Frames
• Errors, Confinement and Recovery
• Data Conversion
• SAE J1939 / ISO 14230
• Diagnostic Trouble Codes – SPN/FMI and P-Codes
• Multi-frame messages
• Introduction
• Tool Chain View – Diagnostic System Architecture
• XML and Schema
• ODX Components
• Variant Management
• Flashing
• Data Management
• Why is it needed
• Basics
• Seven Layer Model
• Attributes of CAN
• Message Types and Data Frames
• Errors, Confinement and Recovery
• Data Conversion
• SAE J1939 / ISO 14230
• Diagnostic Trouble Codes – SPN/FMI and P-Codes
• Multi-frame messages
8/12/2018 Confidential 2
ISO 15765
• ISO 15765 details Diagnostics on Controller Area Networks for Road Vehicles
• ISO 15765 has been established in order to define common requirements for vehicle diagnostic
systems implemented on a CAN communication link as specified in ISO 11898
• ISO 15765 is based on the Oepn Systems Interconnection (OSI) Basic Reference Model specified
in ISO/IEC 7498 and ISO/IEC 10731
8/12/2018 Confidential 3
OSI
8/12/2018 Confidential 4
OSI View of UDS
8/12/2018 Confidential 5
OSI Model
• The purpose of each layer is to provide services to the layer above.
• The application layer provides services to the diagnostic application.
• The active parts of each layer, implemented in software, hardware or any combination, are called
entities
• In the OSI model, communication takes place between entities of the same layer in deiffernt
nodes.
• Such communicating entities of the same layer are called peer entities
• The services provided by one layer are available at the Service Access Point of that layer. The
layer above can use them by exchanging data parameters.
8/12/2018 Confidential 6
ISO 15765
• The application layer services in ISO 15765 are defined in compliance with diagnostic services
defined in ISO 14229-1 and ISO 15031-5
• The network layer services have been defined to be independent of the physical layer
impletemented
• A physical layer is only specified for legislated on-board diagnostics. For all other applications ISO
15765 can be used with any physical layer
• ISO 15765 distinguishes between the services provided by a layer to the layer above it and the
protocol used by the layer to send a message between peer entities of that layer
• This makes the services, reusable also for other types of networks other than CAN.
• The protocol is hidden from the service user and change of protocol will not make the user
confused.
8/12/2018 Confidential 7
Diagnostic Architecture
• The diagnostic network contains all clients and servers that communicate with each other
• A diagnostic network can range from a simple point-to-point connection between a client and a
server to a complex distributed network architecture with several physical sub-networks inter-
connected by diagnostic gateways
• All clients and servers of a sub-network are connected to the same physical communication link.
• For ISO 15765 all clients and servers of a sub-network are connected to the same physical CAN
network and are able to communicate with each other directly
8/12/2018 Confidential 8
Diagnostic Gateway
• A diagnostic gateway is a node in the network that is physically connected to two or more sub-
networks and has the ability to transfer diagnostic messages between the sub-networks.
8/12/2018 Confidential 9
ISO 15765-2
• ISO 15765 specifies an unconfirmed network layer communication protocol for the exchange of
data between network nodes
• If the data to be transferred does not fit into a single CAN frame, a segmentation method is
provided
8/12/2018 Confidential 10
Network Layer Services - Communication
• The service interface defines a set of services that are needed to access the functions offered by
the network layer.
• Communication Services
• These services enable the transfer of up to 4095 bytes of data
• N_USData.request – This service is used to request the transfer of data. If necessary the network layer segments the
data
• N_USData_FF.indication – This service is used to signal the beginning of a segmented message reception to the
upper layer
• N_USData.indication – This service is used to provide received data to the higher layers
• N_USData.cconfirm – This service confirms to the higher layers that the requested service has been carried out.
8/12/2018 Confidential 11
Network Layer Services - Protocol
• These services enable the dynamic setting of protocol parameters
• N_ChangeParameter.request – This service is used to request the dynamic setting of specific
internal parameters
• N_ChangeParameter.confirm – This service confirms to the upper layer that the request to
change a specific protocol has been carried out
8/12/2018 Confidential 12
Network Layer – Internal Operation
• The internal operation of the network layer provides segmentation, transmission with flow
control and reassembly.
• The main purpose of the network layer is to transfer messages that might not fit in a single CAN
frame
8/12/2018 Confidential 13
Segmented and Unsegmented Message
8/12/2018 Confidential 14
Flow Control
• Flow control is used to adjust the sender to the network layer capabilities of the receiver.
• This flow control scheme allows the use of diagnostic gateways and sub-networks
8/12/2018 Confidential 15
Network Layer Services - structure
• All network layer services have the same general structure.
• Three types of primitives are specified
• Service Request Primitive – It is used by higher communication layers or the application to pass
control information and data required to be transmitted to the network layer
• Service Indication Primitive – It is used by the network layer to pass status information and
received data to upper communication layers or the application.
• Service Confirmation Primitive – It is used by the network layer to pass status information to
higher communication layers or the applciation
8/12/2018 Confidential 16
Network Layer Services - Structure
• All network layer have the same format.
8/12/2018 Confidential 17
Service Primitive: N_USData.request
• Requests transmission of <MessageData> with <Length> from the sender to the receiver.
• Each time the N_USData.request service is called, the network layer shall signal the completion
of the message transmission to the service user by means of an N_USData.confirm service call
8/12/2018 Confidential 18
Service Primitive: N_USData.confirm
• N_USData.confirm service is issued by the network layer.
• This confirms the completion of an N_USData.request service
• It contains the results of the service request
8/12/2018 Confidential 19
Service Primitive: N_USData_FF.indication
• The N_USData_FF.indication service is issued by the network layer to indicated to the upper layer
of arrival of a first frame of a segmented message
• This takes places upon reception of the first frame (FF) of a segmented message
• The N_USData_FF.indication service shall always be followed by an N_USData.indication service
call
8/12/2018 Confidential 20
Service Primitive: N_USData.indication
• The N_USData.indication service is issued by the network layer to the upper layer.
• The parameters <MessageData> and <Length> and only valid if <N_Result> is negative
• The N_USData.indication is issued after the reception of a single frame message or as an
indication of the completion (or failure) of a segmented message reception.
8/12/2018 Confidential 21
Service Primitive: N_ChangeParameters. request
• The service primitive is used to request the change of an internal parameter’s value on the local
protocol entity
• The <Parameter_Value> is assigned to the <Parameter>
• A parameter change is always possible, except after reception of the first frame and unlit the end
of the reception of the corresponding message.
8/12/2018 Confidential 22
Service Primitive: N_ChangeParameter. confirm
• The service primitive confirms the completion of a change request
8/12/2018 Confidential 23
Service Data Unit – Message Type
• The parameter Mtype is used to identify the type and range of address information parameters
included in a service call.
• If Mtype = diagnostics, then the address information N_AI shall consist of N_SA, N_TA and
N_TAtype
• If Mtype = remote diagnostics, then the address information N_AI shall consist of parameters
N_SA, N_TA, N_TAtype and N_AE
8/12/2018 Confidential 24
N_AI – Address Information
• This gives the addressing information and includes:
• N_SA – Source Address
• N_TA – Target Address
• N_Tatype
• N_AE – Optional address extention
8/12/2018 Confidential 25
N_Tatype, Network Target Address
• The parameter N_Tatype is an extension parameter. It is used to encode the communication
model.
• Physical addressing gives 1 to 1 communication. It is supported for all types of nework layer
messages
• Functional addressing gives 1 to n communication, It is supported for Single Frame messages
8/12/2018 Confidential 26
N_AE, Network Address Extension
• N_AE parameter is used to exted the available address range for larger networks.
• It encoes both sending and receiveing network layer entities of subnets other than the local
network where the communication takes place.
• N_AE is only part of the addressing information if Mtype is set to remote diagnostics
8/12/2018 Confidential 27
N_Result
• N_result gives the status relating to the outcome of the service execution.
• If two or more errors are discovered, then the parameter value first found in the list is used
• N_OK – Service execution completed successfully
• N_TIMEOUT_A – The Timer N_Ar or N_As has passed its timeout
• N_TIMEOUT_Bs – The timer N_Bs has passed its time-out value
• N_TIMEOUT_Cr – The timer N_Cr has passed its time-out value
• N_WRONG_SN – This value is issued upon reception of an unexpected sequence number.
• N_INVALID_FS – This value is issued when an unknown FlowStatus value has been received in a
N_PDU
8/12/2018 Confidential 28
N_Result
• N_UNEXP_PDU – This is issued upon reception of an unexpected protocol data unit
• N_WFT_OVRN – This is issued upon reception of flow control WAIT frame that exceeds the
maximum counter
• N_BUFFER_OVFLW – This is issued upon reception of a flow control N_PDU with FlowStatus =
OVFLW.
• N_ERROR – This is a general error value. It is issued when an error has been detected by the
network layer which cannot be described by the above
8/12/2018 Confidential 29
Result_ChangeParameter
• N_OK – The service execution has completed successfully
• N_RX_ON – The service did not execute since a reception of the message was taking place.
• N_WRONG_PARAMETER – The service did not execute due to an undefined parameter
• N_WRONG_VALUE – The service did not execute due to an out of range parameter value.
8/12/2018 Confidential 30
Network Layer Functions
• The network layer protocol performs the following functions:
8/12/2018 Confidential 31
Single Frame Transmission
• Transmission of messages up to 7 data bytes is performed through single frame structure
8/12/2018 Confidential 32
Multiple Frame Transmission
• Transmission of longer messages is performed via segmentation of the message and transmission
of multiple N_PDUs.
• Reception of longer messages is performed via reception of multiple N_PDUs and reassembly of
the received data bytes
• The multiple N_PDUs are called FirstFrame and ConsecutiveFrame
• The receiver of a multiple N_PDU message has the possibility of adapting the transmission
throughput to its capability by means of the flow control mechanism using the FlowControl FC
N_PDU
• All Consecutive Frame N_PDUs are numbered by the sender to help the receiver re-assemble
them in the same order
8/12/2018 Confidential 33
Segmentation
8/12/2018 Confidential 34
Flow Control
• The receiver can inform the sender about its capabilities by Flow Control. These capabilities are:
• Block Size (BS) – The maximum number of N_PDUs the receiver allows the sender to send before
waiting for an authorization to continue the transmission
• Separation Time Min (Stmin) – The minimum time the sender is to wait between the
transmissions of two consecutive frame N_PDUs
8/12/2018 Confidential 35
Flow Control
• Using Flow Control N_PDUs, the receiver has the possibility of authorizing transmission of the
following CF N_PDUs, to delay transmission or to deny the reception of a segmented message
• There is a maximum limit to the number of FC.WAIT a receiver is allowed to send in a row.
8/12/2018 Confidential 36
N_PDU
• The SF N_PDU includes a single frame protocol control information SF N_PCI.
• It is used to send out a service data unit that can be transferred via a single service request to the
data link layer, and to transfer unsegmented messages.
8/12/2018 Confidential 37
FC N_PDU
• The FC N_PDU is identified by the flow control protocol control information (FC N_PCI)
• It instructs the sending node to start, stop or resume transmission of CF N_PDUs.
• It is sent by the receiver upon
• Reception of an FF N_PDU
• The last CF N_PDU of a block of consecutive frames
• Pause or abort transmission
8/12/2018 Confidential 38
N_PDU Format
• All N_PDU consist of
• Address Information N_AI: It identifies the peer entity using N_SA, N_TA, N_Tatype, N_AE. N_AI identifies the type
of message exchanged, and the recipient and sender between whom data exchange takes place.
• Protocol Control Information N_PCI – The field identifies the type of N_PDU exchanged.
• Data Field N_Data – The N_Data is used to transmit the data <Message Data>. The size of N_Data depends on the
N_PDU type and the address format chosen
8/12/2018 Confidential 39
N_PCI
• The size and format of the N_PCI changes with different type of N_PDU
8/12/2018 Confidential 40
SF N_PCI
8/12/2018 Confidential 41
FF N_PCI
8/12/2018 Confidential 42
CF N_PCI
• The SN starts with 0 for all segmented messages. The SN of the first CF is 1. SN wraps around at
15.
8/12/2018 Confidential 43
FC N_PCI
8/12/2018 Confidential 44
Block Size
• The block size gives the absolute number of CF N_PDUs per block
• If BS = 20 (decimal), then the block will consist of twenty CF N_PDUs
• Only the last block of consecutive frames in a segmented data transmission may have less than
the BS number of frames
8/12/2018 Confidential 45
STmin
• The Stmin specifies the minimum time gap allowed between the transmission of consecutive
frame protocol data units
8/12/2018 Confidential 46
Network Layer Timing
8/12/2018 Confidential 47
Network Layer Timeouts
8/12/2018 Confidential 48
Addressing
• The exchange of network layer data is supported by 3 addressing formats: Normal, Extended and
Mixed addressing
• The number of data bytes transported within a single CAN frame depends on the type of
addressing format used
8/12/2018 Confidential 49
Normal Addressing
• For each combination of N_SA, N_TA, N_Tatype and Mtype, a unique CAN identifier is assigned.
• N_PCI and N_data is placed in the CAN data field
8/12/2018 Confidential 50
Normal Fixed Addressing
• Sub-format of normal addressing for 29 bit CAN identifiers where the CAN identifier will change
based on the Address Information
8/12/2018 Confidential 51
Extended Addressing
• For each combination of N_SA, N_Tatype and Mtype, a unique CAN identifier is assigned.
• N_TA is placed in the first byte of the CAN frame data field.
• N_PCI and N_data is placed in the remaining bytes
8/12/2018 Confidential 52
Mixed Addressing: 29-bit
• Mixed Addressing is used if Mtype is set to remote diagnostics
• The N_AE becomes the first byte of the CAN frame.
8/12/2018 Confidential 53
Mixed Addressing : 11-bit
• For each combination of N_SA, N_TA and N_Tatype, a unique CAN identifier is assigned.
• N_AE is placed in the first byte of the CAN frame data field
8/12/2018 Confidential 54
CAN Frame
• The DLC is always set to 8
• If the N_PDU is shorter than 8 bytes, padding of unused data bytes is done.
• The DLC can be optimized by shortening (no padding) for single frame, flow control or last
consecutive frame message
• Depending on the N_PCI value, the receiver determines the minimum data bytes to be seen in
the message. If the CAN frame is smaller, it is ignored.
8/12/2018 Confidential 55
ISO 15765-3
• ISO 15765-3 specifies the implementation of a common set of UDS on CAN in road vehicles
• It gives the diagnostic services and server memory programming requirements for all in-vehicle
servers connected to a CAN network and external test equipment
• The services as defined in ISO 14229-1 are used for client-server based systems to perform
functions such as test, inspection, monitoring, diagnosis or programming of on-board vehicle
servers
• It does not specify any requirement for the in-vehicle CAN bus architecture.
8/12/2018 Confidential 56
Communication Scenarios
• Physical Communication
• Default Session
• Non-Default Session – session handling required
• Functional Communication
• Default Session
• Non-Default Session – session handling required
• For all cases, the possibility of requesting an enhanced response-timing window by the server via
a negative response message, including a response code 78 hex, is considered
8/12/2018 Confidential 57
Default
Session
8/12/2018 Confidential 58
Timing
• The timing considers any system network design-dependent delays such as delays introduced by
gateways and bus bandwidth plus a sagety margin.
• This worst-case scenario is the transmission time necessary for one “round trip” from client to
server and back from server to client is dependent upon:
• The number of gateways involved
• CAN frame transmission time
• CAN bus utilization
• CAN device driver implementation
8/12/2018 Confidential 59
Round trip Timing
8/12/2018 Confidential 60
Session Layer Timing
• The server might change its application layer timings when it is in a non-default session. This is
done in order to achieve a certain performance or to compensate restrictions which might apply
during a non-default diagnostic session.
8/12/2018 Confidential 61
Tester Present
• For a client a periodically transmitted functionally addressed TesterPresent (3E) request message
shall be distinguished from a sequentially transmitted physically addressed Tester Present
request message, which is only transmitted in case of the absence of any other diagnostic
request message.
8/12/2018 Confidential 62
Client Timing
8/12/2018 Confidential 63
Server Timing
8/12/2018 Confidential 64
Timer Needs – Default session
8/12/2018 Confidential 65
Timer Needs – Non-default session
8/12/2018 Confidential 66
Physical Communication – default Session
8/12/2018 Confidential 67
Physical Communication – Enhanced Timing
8/12/2018 Confidential 68
Functionally Addressed Tester Present
8/12/2018 Confidential 69
Physically Addressed Tester Present
8/12/2018 Confidential 70
Functional Communication – Default Session
8/12/2018 Confidential 71
Minimum Time between request
messages
• The minimum time between request messages transmitted by the client is required in order to
allow for a polling driven service data interpretation in the server
• In the case of physical communication, the client can transmit the next request immediately after
the complete reception of the last response message
• For functionally addressed requests and physically addressed requests with positive response
surpresed, the client no longer knows whether the server is ready.
8/12/2018 Confidential 72
Minimum Timing
8/12/2018 Confidential 73
Unsolicited Messages
• Unsolicited messages are those transmitted by the server based on a periodic scheduler or a
configured trigger such as change of a DTC status
• Any unsolicited transmitted response message shall not reset the server timer.
• This avoids a diagnostic session keep-alive latch-up effect in the server
8/12/2018 Confidential 74
Client Error Handling
8/12/2018 Confidential 75
Server Error Handling
8/12/2018 Confidential 76
A_PDU and N_PDU
8/12/2018 Confidential 77
CAN Identifiers
• The 11 bit CAN identifiers for legislated OBD can also be used for enhanced diagnostics
• If the 11 bit CAN identifiers are re-used then:
• Network layer timing parameters for OBD also apply for enhanced diagnostics
• The DLS shall be set to 8 and the CAN frame shall include eight bytes (with unused bytes padded).
• ISO 15765-4 allows for max. 8 OBD related servers, therefore 11 bit CAN identifier for 8 servers are defined.
8/12/2018 Confidential 78
CAN Identifiers
• 29 bit CAN identifiers for legislated OBD can also be used for enhanced diagnostics.
8/12/2018 Confidential 79
SAE vs ISO Addressing
8/12/2018 Confidential 80
Need for Diagnostic Communication
• Measure and collect the data to ensure that the ECU is able to fulfil its controlling functionality
• Continuous observation of the control unit
• Check reactions of the control unit
• Check its ability to treat inputs
• Check its ability to detect and log errors
• Read out error codes present in the ECU
• Clear Memory after error is fixed
• Read and write configurable parameters
• Protect from stealing/manipulation
• Reprogram the control unit SW
8/12/2018 Confidential 81
Diagnostic Services
• Simple Services – These consists of one Request and one Response
• Cyclic Services – The client can configure the server, with one request to provide cyclic response
periodically. This periodic response will continue till it is not stopped by the client (or detected to
be timed out by the server)
• Event Driven Services – The client can configure the server to respond whenever an event occurs.
After one initial response the next response will only happen whenever the event occurs. The
time between responses in not predictable.
8/12/2018 Confidential 82
Response Required Handling
• All services, which have a Sub-Function support the Response Required Handling
• A service, which uses just the suppressPosRespMsgIndicationBit of the Sub-Function Byte, must
set the other bits of the Sub-Function Byte to 0.
• For functional requests, some negative responses are always suppressed, regardless of the
suppression bit
• NRC $11 Service Not Supported
• NRC $12 Subfunction Not Supported
8/12/2018 Confidential 83
Diagnostic and Communication Management
• $10 DiagnosticSessionControl (DSC)
• $11 ECUReset (ER)
• $27 Security Access (SA)
• $28 CommunicationControl (CC)
• $3E TesterPresent (TP)
• $83 AccessTimingParameter (ATP)
• $84 SecuredDataTransmission (SDT)
• $85 ControlDTCSetting
• $86 ResponseOnEvent
• $87 LinkControl
8/12/2018 Confidential 84
DiagnosticSessionControl
8/12/2018 Confidential 85
Service $10 – Request Response
Byte 1a 1b 2 3
Request PCI # Bytes DSC Service ID diagnosticSessionType
MESSAGE 02 10 02
MESSAGE 02 50 02
MESSAGE 03 7F 10 88
8/12/2018 Confidential 86
SessionParameterRecord
8/12/2018 Confidential 87
Programming Session
• The Programming Session enables all Services of the ECU that are needed to program the
memory
• The Programming Session will quit if,
• $11 ECUReset is sent by the Tool
• $10 DSC with requeste for defaultSession is sent by the tool
• A Time-out occurs in the ECU
8/12/2018 Confidential 88
Extended Diagnostic Session
• Allows the tool to write control values to the ECU and run Input/Output checks and Routines
8/12/2018 Confidential 89
Diagnostics of Safety Systems
• Used for safety relevant diagnostic services, like triggering of Airbags
8/12/2018 Confidential 90
$11 ECU Reset
• Sub-functions
8/12/2018 Confidential 91
$28 Communication Control
• Activate / Deactivate sending and receiving CAN Frames from other ECUs
• Increases bandwidth for flash programming; prevents CAN timeout errors
• Does not deactivated diagnostic CAN channel
8/12/2018 Confidential 92
$3E Tester Present
8/12/2018 Confidential 93
$84 Secured Data Transmission
• This service encapsulates another service
• Security SubLayer of the transmitter encodes the encapsulated service
• Security SubLayer of the receiver decodes the encapsulated service
8/12/2018 Confidential 94
$85 ControlDTCSetting
• Activate / Deactivate storing of errors into error memory
• Used during flash programming and development
8/12/2018 Confidential 95
$ 86 Response on Event
• Configures the ECU to send a response without a request in case of a pre-defined event
• The following services can be configured to Respond on Event
• ReadDataByIdentifier ($22)
• ReadDTCInformation ($19)
• RoutineControl ($31)
• InputOutputControlByIdentifier ($2F)
8/12/2018 Confidential 96
Response on Event
8/12/2018 Confidential 97
$87 Link Control
• Configures communication speed, if the medium is configurable
8/12/2018 Confidential 98
Data Transmission
• $22 ReadDataByIdentifier
• $23 ReadMemoryByAddress
• $24 ReadScalingDataByIdentifier
• $2A ReadDataByPeriodicIdentifier
• $2C DynamicallyDefineDataIdentifier
• $2E WriteDataByIdentifier
• $3D WriteMemoryByAddress
8/12/2018 Confidential 99
$22 ReadDataByIdentifier
• ECU parameters are given Id’s which are 2 bytes in length
• ECU information can be requested by using multiple identifers at the same time
• Transmission Modes:
• $1 Slow
• $2 Medium
• $3 Fast
• $4 stopSending
• The response received (typically ASCII string) is checked by the tool against a reference value.
• If the match is successful, this surely is the ECU that needs to be flashed.
• The tool generates a DSC for programming mode
• At the end of programming, the tool resets the ECU using $11ECUReset with the ResetType $81
(End of Programming)
• Drivetrain: Drivetrain consists of the parts of the powertrain excluding the engine and
transmission. It is the part of the powertrain, after the transmission, that changes depending on
whether the vehicle is front wheel, rear wheel or four wheel drive.
• The driveline can provide forward (or backward) motion at the wheel.
• The driveline is composed of:
• Driveshaft or Propeller Shaft
• Transmission
• Clutch
• Torque Converter
• Axle Half Shafts
• For most vehicles that have a clutch and transmission mounted directly on the engine, the main
longitudinal shaft is leading to the final drive in the rear axle.
• In other cases, this is mostly referred to as the propeller shaft.
• When the vehicle is stationary, the drive shaft does not rotate.
• Transmission does this job of establishing this connection through a series of gears, referred to as
Gearbox
• In a Manual Transmission, disengagement of engine and transmission is required every time the
gear is to the be changed.
• This disengagement is achieved by depressing the clutch pedal.
• Note: The transmission does not stop rotating during a gear change, there is no torque
transmitted through it.
• Most suspensions use passive springs to absorb impacts and dampers (shock absorbers) to
control spring motions
• The designs of the front and rear suspensions may be different
• Springs do the job of absorbing energy, but take a long time to dissipate it. This job is
undertaken by the damper or shock absorber
• The damper controls unwanted spring motion and slows down the magnitude of vibratory
motion by converting part of the kinetic energy into heat that is dissipated in a hydraulic fluid.
• The most conventional steering arrangement is to turn the front wheels using a steering wheel
• For the car to turn smoothly, each wheel follows a different curvature.
• The inside wheels need to turn more as compared to the outer wheels
• The geometry of steering linkage makes this possible.
• If both the sources may operate in parallel, simultaneously delivering power at all times, it is
called a parallel hybrid
• If one of the source is only use as an augmenting source, and not delivering power at all times, it
is called series hybrid
• Parallel hybrids can be further categorized depending upon how balanced the different portions
are at providing the motive power.
• Parallel hybrids rely on regenerative braking and recharging provided by the internal combustion
engine, they are more efficient on the highways
• This system allows the decoupling of the power supplied by the engine
• Batteries or ultra-capacitors are used to recover kinetic energy otherwise wasted when braking,
known as ‘regenerative braking’
• The high-voltage integrated starter/generator of a hybrid can spin the engine at speeds in
excess of 900 RPM. This provides an almost instantaneous restart
• The DC electricity from the battery is fed into an inverter where it is converted into alternating
current
• Some applications like forklifts, small electric cars still employ DC motors.
• However, proper charging, discharging and balancing of the lithium ion batteries is critical