Escolar Documentos
Profissional Documentos
Cultura Documentos
9
Sensors and Actuators
Solenoid Valve
A- Input side
B- Diaphragm
C- Pressure
chamber
D- Pressure
relief conduit
E- Solenoid
F- Output side
Physical Arrangement
Electronics Injectors
Web and Automotive
Electronics and software represent a substantial
and increasing part of a car's cost. How can
automakers and their OEM's keep control of
the costs while satisfying demands for
differentiation, and fulfilling user demands for
up to date applications and services that work
seamlessly across all of the devices they own?
An increasing number of people believe that
HTML5 and open Web standards will be an
important part of the solution.
Applications
This is a sampling of some of the applications we may expect
more:
• Media player for local and streamed media
• News and weather -- local, national, international, sports,
business, arts, ...
• SatNav with live traffic data and parking information
• Location based search and advertising
• Games -- for passengers
• Social network apps -- tweets, posts, photos, location, ...
• Mobile office apps -- contacts, email, phone, to-do lists,
calendar, ...
• Custom enterprise apps
• Car status -- fuel efficiency, servicing info, ...
Web-enabled Vs Web Based Systems
Web-based systems
Web-based system generally it a term that usually is used to
refer to software that lives on a web server and you access
the software over the internet, thru your browser. If your
internet connection goes down, you can't connect to the
service or use the software. Also, your data lives on the
server. Sometimes this is a good thing - if they have automatic
backups then your data is more secure than if you have it
locally and you don't back it up. On the other hand, you are
100% at the mercy of the other company - if they fold up shop
there goes all your data. I tend to advise people to avoid using
a service like this unless there is a way to regularly get a
backup copy of the server data so that you also have a copy
on your local computer system.
Web-enabled systems
• Web-enabled software generally means the software is
designed to work "with" some web application, but
that the software doesn't need an internet connection
to work. All the data would be kept locally unless/until
you upload it to another server. You need to have a
good backup system.
optics bus
Roadmap of in-vehicle networks
source: www.lin-subbus.org
Protocol Comparison
Protocol Comparison
• Class A (<20 kbit/s) : LIN, CAN
• Class B (50-500 kbit/s) : CAN, J1850
• MMedia (> 20 Mbit/s) : MOST, Firewire
• Wireless : GSM, Bluetooth
• Safety : Byteflight, TTP/C, Flexray
Overview of In-Vehicle Networks
• D2B (Domestic Data Bus )
– Matsushita and Philips jointly developed
– Has promoted since 1992
– D2B was designed for audio-video
communications, computer peripherals, and
automotive media applications
• The Mercedes-Benz S-class vehicle uses the D2B optical
bus to network the car radio, autopilot and CD systems
• The Tele-Aid connection, cellular phone, and
Linguatronic voice-recognition application
Overview of In-Vehicle Networks
• Media-Oriented Systems Transport (MOST)
– It was initiated in 1997
– Supports both time-triggered and event-triggered
traffic with predictable frame transmission at
speeds of 25Mbps
– Using plastic optic fiber as communication
medium
Overview of In-Vehicle Networks
– The interconnection of telematics and
infotainment such as video displays, GPS
navigation systems, active speaker and digital
radio
– More than 50 firms—including Audi, BMW,
Daimler-Chrysler, Becker Automotive, and Oasis
Silicon Systems—developed the protocol under
the MOST Cooperative
Overview of In-Vehicle Networks
• Time-triggered protocol (TTP)
– It was released in 1998
– It is a pure time-triggered TDMA protocol
– Frames are sent at speeds of 5-25Mbps depending
on the physical medium
– Designed for real-time distributed systems that
are hard and fault tolerant
– It is going on to reach speeds of 1Gbps using an
Ethernet based star architecture
Overview of In-Vehicle Networks
• FlexRay
– FlexRay is a fault-tolerant protocol designed for
high-data-rate, advanced-control applications,
such as X-by-wire systems (high-speed safety-
critical automotive systems)
– Provides both time-triggered and event-triggered
message transmission
– Messages are sent at 10Mbps
Overview of In-Vehicle Networks
– Both electrical and optical solutions are adopted
for the physical layer
– The ECUs are interconnected using either a
passive bus topology or an active star topology
– FlexRay complements CAN and LIN being suitable
for both powertrain systems and XBW systems
Overview of In-Vehicle Networks
• Byteflight
– Developed from 1996 by BMW
– A flexible time-division multiple access (TDMA)
protocol using a star topology for safety-related
applications
– Messages are sent in frames at 10Mbps support
for event-triggered message transmission
Overview of In-Vehicle Networks
– Guarantees deterministic (constant) latencies for a
bounded number of high priority real-time
message
– The physical medium used is plastic optical fiber
– Byteflight can be used with devices such as air
bags and sear-belt tensioners
– Byteflight is a very high performance network with
many of the features necessary for X-by-wire
Overview of In-Vehicle Networks
• Bluetooth
– An open specification for an inexpensive, short-
range (10-100 meters), low power, miniature radio
network.
– Easy and instantaneous connections between
Bluetooth-enabled devices without the need for
cables
• vehicular uses for Bluetooth include hands-free phone
sets; portable DVD, CD, and MP3 drives; diagnostic
equipment; and handheld computers
Overview of In-Vehicle Networks
• Controller area network (CAN)
– Was initiated in 1981 and developed by Bosch
developed the controller
– Message frames are transmitted in an event-
triggered fashion
– Up to 1Mbps transmission speed
– It is a robust, cost-effective general control
network, but certain niche applications demand
more specialized control networks.
Overview of In-Vehicle Networks
• The SAE J1850 Standard
– supports two main alternatives, a 41.6 kbps PWM
approach (dual wires), and a 10.4kbps VPW (single
wire) approach.
Overview of In-Vehicle Networks
• Local interconnect network (LIN)
– A master-slave, time-triggered protocol
– As a low-speed (20kbps), single-wire
– LIN is meant to link to relatively higher-speed
networks like CAN
– LIN reveals the security of serial networks in cars
Overview of In-Vehicle Networks
– network is used in on-off devices such as car seats,
door locks, sunroofs, rain sensors, and door
mirrors
Future Needs for Networking
Multimedia
Data Rate
X-by-wire
Sub-Bus
Safety/Reliability
Strategic Technical Considerations
MOST
1 Mbits/s
CAN
20 Kbits/s
LIN
Lock Lock
Window Lift
Universal Light
CAN Light
Seat
Htng
Instruments
Htng Wiper
Power Train Central WHtg
ITS Body Ctrl Roof Interior
Light
Htng Trunk
Climate
x6
Seat
Light Seat
Htng
St-Wheel Panel CAN
Universal Motor
Lock Lock
1 backbone, 13 nodes
8 subnets, 1-8 local nodes Sub-Bus Universal Panel
52 nodes total
Mirror
Seat:
many Seat Position Motors,
Occupancy Sensor,
Control Panel
•Door/window/seat:
Mirror,Central ECU,
Mirror, Switch, Window Climate:
Lift, many Small Motors
Seat Control Switch, Control Panel
Door Lock, etc.
MUX Standards (Costs and Speeds)
time triggered
fault tol, dependable
2x2 wire
1M
CAN-C
event triggered
dual wire
125K
CAN-B
event triggered
fault tolerant
dual wire
20K
LIN
master-slave
single wire bus
no quartz
1 2 4.5 10
incremental cost per node [$]
LIN Consortium
Operating System
Network Configuration
Communication Manager LIN Config. Language
Generator (LCFG)
Bus Analyzer
Hardware Bus Transceiver
(LINSpector)
Level
LIN Physical Layer Spec. LIN Physical Layer Spec.
Vehicle Network
Hierarchical Network
Structure
Flat Network
Hierarchical Network
• Master Task
– Determines order and priority of messages.
– Monitors Data and check byte and controls the error handler.
– Serves as a reference with its clock base (stable clock necessary)
– Receives Wake- Up Break from slave nodes
• Slave Task
– Is one of 2-16 members on the bus
– Receives or transmits data when an appropriate ID is sent by the master.
– The node serving as a master can be slave, too!
Master / Slave Protocol
• Master
– has control over the whole Bus and Protocol
The master controls which message at what time is to be transferred over the
bus. It also does the error handling.
To accomplish this the master
• sends Sync Break
• sends Sync Byte
• sends ID-Field
• monitors Data Bytes and Check Byte, and evaluates them on consistance
• receives WakeUp Break from slave nodes when the bus is inactive and
they request some action.
• serves as a reference with it’s clock base (stable clock necessary)
Master/Slave Protocol
• Slave
– Is one of 2-16 Members on the Bus and receives or transmits Data when an
appropriate ID is sent by the master.
• Slave snoops for ID.
• According to ID, slave determines what to do.
– either receive data
– or transmit data
– or do nothing.
• When transmitting the slave
– sends 1, 2, 4, or 8 Data Bytes
– sends Check-Byte
• The node serving as a master can be slave, too!
LIN protocol offers message timing predictability
master task
slave task slave task slave task
inter-frame
13 bit synch identifier
spacing field field next synch
Next 13 field
bit break
Break
$55
Master Task
time
2 byte 1 byte
response
spacing data block parity
Slave Task
time
Further information
- Consortium
http://www.lin-subbus.org
LIN Development Flow
Database
Manager Database
LIN
Configuration
Tool
LIN API
LIN LIN
Bus-Analyzer LIN Application
Bus-Emulator ECU Application
& Configuration
Code
Code
LIN-Bus
Compiler / Linker
Target
ECU ECU ECU Image
LIN Configuration Description File
• Includes all essential information of network signals, latency periods,
cycle times, nodes affected
• Input file serves as a development interface for a node
• LIN Application Generator
– LIN-Emulator
– LIN Analyser
The Workflow
• Data Input
– Definition of objects
– Definition of relations between the objects
• Data Processing
– Signal Packing (Frame Editor/Frame Compiler)
– Timing Analysis
• Data Output
– Configuration file generation
– Various optional customer-defined post-operations
Introduction to
CANBUS
70
Before CAN
71
With CAN
The solution to this problem was the connection of the control systems via a
serial bus system. This bus had to fulfill some special requirements due to its
usage in a vehicle. With the use of CAN, point-to-point wiring is replaced by
one serial bus connecting all control systems. This is accomplished by adding
some CAN-specific hardware to each control unit that provides the "rules" or
the protocol for transmitting and receiving information via the bus.
72
The CAN bus
74
Presentation Goals
1. CANBUS Introduction
What is CANBUS?
Who uses CANBUS?
CANBUS history
CANBUS timeline
2. CANBUS Characteristics
OSI Model
Physical Layer
Transmission Characteristics
3. Message Oriented Communication
4. Message Format
5. Bus Arbitration
75
What is CANBUS?
CANBUS or CAN bus – Controller Area Network bus
Low cost
76
Who uses CANBUS?
• Designed specifically for automotive applications
• Today - industrial automation / medical equipment
90%
80%
70%
60%
50%
40%
30%
20%
10%
0%
Automotive Medical / Industrial
Markets
77
CANBUS History
78
CANBUS Timeline
79
CANBUS and the OSI Model
• CAN is a closed network
– – no need for security, sessions or logins.
– - no user interface requirements.
• Physical and Data Link layers in silicon.
80
CANBUS Physical Layer
Physical medium – two wires terminated at both ends by resistors.
Differential signal - better noise immunity.
Benefits:
Reduced weight, Reduced cost
vs.
http://canbuskit.com/what.php
81
What is CAN ?
• Controller – Area – Network
• Developed in 1983 by Robert Bosch
– To solve the networking issues in automotive
• Main Benefits
– Economical
– Reliable
– Real Time response
– Scalable
• Standards
– CAN 2.0A (ISO11519)
– Can 2.0B(ISO11898)
82
CAN-Leading Choice for Embedded
Networking
• The main Reasons are
– Economical
• Low Wiring Cost
• Low Hardware Cost
– Reliability
• Error Free Communication
• Immune to EMI/EMS
– Availability
• Several 8/16/32 bit MCU available in the market
• Standard development tools
– Scalability
83
Features and Benefits of CAN
84
CAN and the 7-layer
ISA/OSI Reference Model
model
7. Application Layer
6. Presentation Layer
Partially
implemented by
5. Session Layer
higher-level CAN
4. Transport Layer protocols
(CANOpen)
3. Network Layer
Standard CAN
2. Data Link Layer
implementation Managed in
1. Physical Layer Hardware.
Dramatic Real-time
advantage to
System Design
85
Data Flow in CAN
Node Configured to Node not Configured to
Transmitting Node receive identifier receive identifier
MCU Firmware MCU Firmware MCU Firmware
Identifier [id_n] Identifier [id_n]
Data [values_x] Data [values_x]
86
Data Frame
Rem Req
ID extend
S Identifier Control Data C A E
O (Bytes) R C O
F C K F
87
Message Format
• Each message has an ID, Data and overhead.
• Data –8 bytes max
• Overhead – start, end, CRC, ACK
88
Transmission Characteristics
Up to 1 Mbit/sec.
Common baud rates: 1 MHz, 500 KHz and 125 KHz
All nodes – same baud rate
Max length:120’ to 15000’ (rate dependent)
90
Example of Message Transaction
91
Bus Arbitration
• Arbitration – needed when multiple nodes try to transmit at the same time
• Only one transmitter is allowed to transmit at a time.
• A node waits for bus to become idle
• Nodes with more important messages continue transmitting
92
Bus Arbitration
• Message importance is encoded in message ID.
Lower value = More important
• As a node transmits each bit, it verifies that it sees the same bit
value on the bus that it transmitted.
• A “0” on the bus wins over a “1” on the bus.
• Losing node stops transmitting, winner continues.
93
Summary
94
Bus arbitration
A “0” (low voltage) on the bus by 1 node wins over a
“1” (high voltage) on the bus.
95
Bus Arbitration Flowchart
96
Introduction of FlexRay
97 of 41
Summary
• General Background
• Performance Analysis of FlexRay-based ECU Networks
– Motivations
– Basic framework
– Modeling FlexRay
– Case Study
– Conclusion
99 of 41
General Background
FlexRay Controller Area Network(CAN)
• 10Mbps x 2 bandwidth • Bandwidth up to 1Mbps
• Time-triggered for real-time • Contention resolved by
transmission priority.
• Event-triggered for low- • Asynchronous
priority data • Acknowledgment and
• Synchronous retransmission when
• Deterministic system design message is corrupted
100 of 41
General Background
• Who developed FlexRay?
101 of 41
General Background
• How does it work?
– Dual channel - scalable system fault-
tolerance
– Bus Guardian
– Interconnect topologies: centralized or
bus
102 of 41
General Background
• Macrotick- the node’s own internal clock or
timer.
• Microtick- a cluster wide synchronized clock.
• NIT is stand for Network Idle Time which time
corrections.
103 of 41
Motivation
• In a high-end car there are up to 70 electronic control
units (ECUs) exchanging up to 2500 signals.
• Commonly used protocols include CAN, local
interconnection network(LIN).
• Previous implementations of FlexRay using only static
segment, with the dynamic segment being unutilized.
• Dynamic part of protocol is more complex.
• The potential messages for dynamic segment is more
irregular.
• Techniques for analyzing the static segment are
known(TDMA scheme).
104 of 41
FlexRay Communication cycles
• The first cycle T1, T3,T5, T6, and T7 have
messages to send.
• The Second cycle T2 have messages to send.
105 of 41
Difficulties in Modeling FlexRay
• A message cannot straddle two
communication cycles.
• Once a task misses in the dynamic segment,
it will wait till the next cycle.
• A task can send at most one message in
each dynamic segment, where the
maximum length of the message can be
equal to the length of the dynamic segment.
• One minislot is consumed from the available
service when a task is not ready to transfer
a message.
106 of 41
Modeling FlexRay
• Step 1: Extract k1 minislots
of service during each
communication cycle from l .
• Step 2: Discretize the service
bound obtained from step 1.
• Step 3: The resulting service
bound is shifted by d time
units.
• Step 4:A minislot is lost even
when a task does not
transmit any message.
107 of 41
Modeling FlexRay
• The service available to the lower priority
tasks (i.e. T2 …)is made up of two components
– The service that was unavailable to T1.
– The service that was unutilized by T1.
• The procedure is remaining for the rest tasks.
108 of 41
Case Study
• Adaptive Cruise Control application.
• Implemented framework using Matlab as a front-end.
• Using Java to handle all the function transformation.
m1 m2 m3 m4
109 of 41
Results
110 of 41
Conclusion
• Present a compositional performance
model for a network of ECUs
communicating via FlexRay bus.
• Formal model of the protocol governing the
dynamic segment of FlexRay.
• The framework can also be used for
deriving the parameters of the FlexRay
protocol.
• Help in resource dimensioning and
determining optimal scheduling policies for
multitasking ECUs.
111 of 41
Drive By Wire
• Drive-by-wire, DbW, by-wire, or x-by-wire
technology in the automotive industry replaces the
traditional mechanical control systems with
electronic control systems using electromechanical
actuators and human-machine interfaces such as
pedal and steering feel emulators. Hence, the
traditional components such as the steering
column, intermediate shafts, pumps, hoses, belts,
coolers and vacuum servos and master cylinders are
eliminated from the vehicle. Examples include
electronic throttle control , steer by wire and brake-
by-wire.
Why Drive by Wire
Through the use of electronics and software in drive by
wire systems we can offer our customers new functions
and improved attributes:
– Fuel economy
– Ride and handling
– Driveability
– Interaction with the environment and
vehicle surroundings
113
Drive by Wire Considerations
114
Advantages
• Safety can be improved by providing computer
controlled intervention of vehicle controls with
systems such as Electronic Stability Control (ESC),
adaptive cruise control and Lane Assist Systems.
• Ergonomics can be improved by the amount of
force and range of movement required by the
driver and by greater flexibility in the location of
controls. This flexibility also significantly expands
the number of options for the vehicle's design.
• Parking can be made easier with reduced lock-to-
lock steering wheel travel
Disadvantages
• The cost of DbW systems is often greater than
conventional systems. The extra costs stem
from greater complexity, development costs
and the redundant elements needed to make
the system safe. Failures in the control system
could theoretically cause a runaway vehicle
Electronic Throttle Control (Drive By
Wire or Fly By Wire)
Throttle pedal sensor
Potentiometer type
accelerator pedal
sensor , the heart of
this sensor is the
potentiometer across
which a voltage is
developed which is
function of accelerator
pedal setting.
Servo Mechanism
Block Diagram of ETC
There are several reasons why electronic
throttle actuation is preferable to a conventional
throttle cable:
• The vehicle’s on board electronic systems are able to
control all of the engine’s operation with the exception of
the amount of incoming air.
• The use of throttle actuation ensures that the engine only
receives the correct amount of throttle opening for any
give situation
• The optimisation of the air supply will also ensure that
harmful exhaust emissions are kept to an absolute
minimum and drivability is maintained, regardless of the
circumstances. Coupling the electronic throttle actuation
to the adaptive cruise control, traction control, idle speed
control and vehicle stability control systems also means
finer control can be achieved.
The use of such a system has advantages
over the conventional cable version
• Eliminating the mechanical element of a throttle
cable and substituting it with fast responding
electronics, reduces the number of moving parts
(and associated wear) and therefore requires
minimum adjustment and maintenance.
• Greater accuracy of data improves the
driveability of the vehicle, which in turn provides
better response and economy.
What is Steer-by-Wire?
Unlike the conventional steering system where
a hand-operated steering wheel is used to
turn the front wheels through the steering
column, steer-by-wire technology removes the
mechanical and physical links between the
driver (steering wheel) and the front wheels,
and replace them with electronic actuators
and other components.
Steering System
Conventional Steering System Steer-by-Wire System
• A yaw-rate sensor is a gyroscopic device that
measures a vehicle’s angular velocity around
its vertical axis
• Sensors :Torque sensor (Torque applied by the
driver on steering shaft), steering angle
sensors, yaw sensor, wheel speed sensor
(rotation speed of vehicle wheel), and wheel
angle sensor
• Actuators : Steering actuator, feedback
actuator, pinion actuator
Steer-by-Wire
The aim of steer-by-wire technology is to completely do away with
as many mechanical components (steering shaft, column, gear
reduction mechanism, etc.) as possible. Completely replacing
conventional steering system with steer-by-wire holds several
advantages, like:
• Fuel Cell
156 of 41