Communication Iwan Sonjaya, MT © Springer, 2010

Slides:



Advertisements
Similar presentations
Lecture 2 Operational Amplifiers
Advertisements

CHAPTER 3: SPECIAL PURPOSE OP-AMP CIRCUITS
Lecture 4: Signal Conditioning
COMMUNICATION TECHNOLOGY by Shashi Bhushan School of Computer and Information Sciences.
Fakultät für informatik informatik 12 technische universität dortmund Communication Peter Marwedel Informatik 12 TU Dortmund Germany 2009/11/23.
- 1 - Embedded Systems – sensors-comm Simplified design flow for embedded systems.
PH4705/ET4305: A/D: Analogue to Digital Conversion
Medium Access Control Sublayer
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
Ch.3 Part A: Embedded System Hardware Input/Output EECE **** Embedded System Design.
- 1 -  P. Marwedel, Univ. Dortmund, Informatik 12, 04/05 Universität Dortmund Simplified design flow for embedded systems.
1 Chapter 2: LAN Standards, Physical Connectivity, and Media Access.
Inverting Amplifier. Introduction An inverting amplifier is a type of electrical circuit that reverses the flow of current passing through it. This reversal.
Ch.3 Part B: Communication EECE **** Embedded System Design.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Fundamentals of Electric Circuits Chapter 5 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
5: DataLink Layer 5a-1 Multiple Access protocol. 5: DataLink Layer 5a-2 Multiple Access Links and Protocols Three types of “links”: r point-to-point (single.
THE MEDIUM ACCESS CONTROL SUBLAYER 4.1 THE CHANNEL ALLOCATION PROBLEM 4.2 MULTIPLE ACCESS PROTOCOLS.
ARUN MUCHHALA ENGINEERING COLLEGE- DHARI [ ] ANALOG ELECTRONICS Prajapati Omprakash rd ELECTRICAL DEPARTMENT ANALOG ELECTRONICS.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Data and Computer Communications Digital Data Communications Techniques + Error Control+ Digital Data Communications Techniques + Error Control+Multiplexing.
COMPUTER NETWORKS Data-link Layer (The Medium Access Control Sublayer) MAC Sublayer.
Chapter 18 Direct Current Circuits. Electric Circuits Electric circuits control the flow of electricity and the energy associated with it. Circuits are.
Network Topology and LAN Technologies
Network Access and Transmission Methods
A Taxonomy of Mechanisms for Multi-Access
Multiple Access Methods
Basic Block Diagram of Op-Amp
Electronic Devices Ninth Edition Floyd Chapter 14.
Interconnection Structures
TrueTime.
Electronic Devices Ninth Edition Floyd Chapter 13.
Intro to MIS – MGS351 Network Basics
Data link layer divided into two functionality-oriented sublayers
Fundamentals of Electric Circuits Chapter 5
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Chapter 5 Link Layer and LANs
EI205 Lecture 13 Dianguang Ma Fall 2008.
Chapter 12 Multiple Access
Part III Datalink Layer 10.
Medical electronics II
Multiple Access Mahesh Jangid Assistant Professor JVW University.
Channel Allocation (MAC)
Chapter 4: Network Access
Net301 lecture9 11/5/2015 Lect 9 NET301.
Physical Layer (Part 2) Data Encoding Techniques
Physical Layer – Part 2 Data Encoding Techniques
تقویت کننده های عملیاتی
Operational Amplifiers in Chemical Instrumentation
Нови помак Временско окидање
THE IEEE MAC SUB-LAYER – chapter 14
لجنة الهندسة الكهربائية
Vehicle Informatics (Vehicle System Informatics)
Multiple Access Methods
Direct Current Circuits
Embedded System Hardware
Channel Allocation Problem/Multiple Access Protocols Group 3
Link Layer and LANs Not everyone is meant to make a difference. But for me, the choice to lead an ordinary life is no longer an option 5: DataLink Layer.
Channel Allocation Problem/Multiple Access Protocols Group 3
Medical electronics II
Fundamentals of Electric Circuits Chapter 5
Physical Layer – Part 2 Data Encoding Techniques
Multiple Access Methods
Chapter 5 Operational Amplifiers
Chapter 7 Converters.
Dr. John P. Abraham Professor UTPA
Part III Datalink Layer 10.
Chapter 12 Media Access Control (MAC)
Chapter 12 Media Access Control (MAC)
Lecture 2 Electrical and Electronics Circuits. After you study, and apply ideas in this Lecture, you will: Understand differences among resistance, capacitance,
Presentation transcript:

Communication Iwan Sonjaya, MT © Springer, 2010 These slides use Microsoft clip arts. Microsoft copyright restrictions apply.

Embedded System Hardware Embedded system hardware is frequently used in a loop (“hardware in a loop“):  cyber-physical systems © Photos: P. Marwedel, 2011/2

Communication - Requirements - Real-time behavior Efficient, economical (e.g. centralized power supply) Appropriate bandwidth and communication delay Robustness Fault tolerance Diagnosability Maintainability Security Safety © Photos: P. Marwedel, 2011/2

Basic techniques: Electrical robustness Single-ended signals ground e.g.: RS-232 Voltage at input of Op-Amp positive  '1'; otherwise  '0' Differential signals Local ground Local ground Combined with twisted pairs; Most noise added to both wires. © Photos: P. Marwedel, 2012

Evaluation Advantages: Disadvantages: Applications: Subtraction removes most of the noise Changes of voltage levels have no effect Reduced importance of ground wiring Higher speed Disadvantages: Requires negative voltages Increased number of wires and connectors Applications: High-quality analog audio signals (XLR) differential SCSI Ethernet (STP/UTP CAT 5/6/7 cables) FireWire, ISDN, USB © Photos: P. Marwedel, M. Engel, 2012

Communication - Requirements - Real-time behavior Efficient, economical (e.g. centralized power supply) Appropriate bandwidth and communication delay Robustness Fault tolerance Diagnosability Maintainability Security Safety © Photos: P. Marwedel, 2011/2

CSMA/CD vs. CSMA/CA Carrier-sense multiple-access/collision- detection (CSMA/CD, variants of Ethernet): collision  retries; no guaranteed response time. Alternatives: Carrier-sense multiple-access/collision-avoidance (CSMA/CA) WLAN techniques with request preceding transmission Each partner gets an ID (priority). After bus transfer: partners try setting their ID; Detection of higher ID  disconnect. Guaranteed response time for highest ID, others if given a chance. token rings, token busses © Photo: P. Marwedel, 2012

Priority-based arbitration of communication media Example: bus Device 0 Device 1 Device 2 Device 3 Bus arbitration (allocation) is frequently priority-based Communication delay depends on communication traffic of other partners No tight real-time guarantees, except for highest priority partner

Time division multiple access (TDMA) busses Each communication partner is assigned a fixed time slot. Example: http://www.ece.cmu.edu/~koopman/jtdma/jtdma.html#classical Slice n-1 Frame Sync Frame Gap Slice 0 Slice 1 Message & gap Guard time time slice frame period … Master sends sync Some waiting time Each slave transmits in its time slot  variations (truncating unused slots, >1 slots per slave) TDMA resources have a deterministic timing behavior TDMA provides QoS guarantees in networks on chips [E. Wandeler, L. Thiele: Optimal TDMA Time Slot and Cycle Length Allocation for Hard Real-Time Systems, ASP-DAC, 2006]

FlexRay Developed by the FlexRay consortium (BMW, Ford, Bosch, DaimlerChrysler, …) Specified in SDL Meets requirements with transfer rates >> CAN standard High data rate can be achieved: initially targeted for ~ 10Mbit/sec; design allows much higher data rates Improved error tolerance and time-determinism TDMA protocol Cycle subdivided into a static and a dynamic segment.

TDMA in FlexRay Exclusive bus access enabled for short time in each case. Dynamic segment for transmission of variable length information. Fixed priorities in dynamic segment: Minislots for each potential sender. Bandwidth used only when it is actually needed. http://www.tzm.de/FlexRay/FlexRay_Introduction.html Node A Node B Node C Node D Node E Node F Channel 1 Channel 2 Single communication cycle Static part Dynamic part A1 A2 B1 C1 D1 A3 E1 F1 B2 F2 E2 D2 A4 Channel 1 Channel 2 Minislots

Time intervals in Flexray Cycle [2m+0] Cycle [2m+1] Cycle [2m+2] Simplified version of diagram by Prof. Form, TU Braunschweig, 2007 static segment dynamic segment symbol window NIT static segment dynamic segment symbol window NIT static segment dynamic segment symbol window NIT slot 1 slot 2 … Slot n n + 1 2 3 dynamic slot n+4 5 dynamic slot n+6 .. x Symbol (optional) Network idle time Microtick (µt) = Clock period in partners, may differ between partners Macrotick (mt) = Basic unit of time, synchronized between partners (=riµt, ri varies between partners i) Slot=Interval allocated per sender in static segment (=pmt, p: fixed (configurable)) Minislot = Interval allocated per sender in dynamic segment (=qmt, q: variable) Short minislot if no transmission needed; starts after previous minislot. Cycle = static segment + dynamic segment + symbol window/network idle time show flexray animation from dortmund

Structure of Flexray networks Bus guardian BG protects the system against failing processors, e.g. so-called “babbling idiots” Host (µC) Communication Controller BG BD Host (µC) Communication Controller BG http://www.ixxat.de/index.php?seite=introduction_flexray_en&root=5873& system_id=5875&com=formular_suche_treffer&markierung=flexray BD BD Device 1 Device 2 Channel 1 Channel 2

Communication: Hierarchy Inverse relation between volume and urgency quite common: 10y s Sensor/actuator busses 10-x s

Other busses IEEE 488: Designed for laboratory equipment. CAN: Controller bus for automotive LIN: low cost bus for interfacing sensors/actuators in the automotive domain MOST: Multimedia bus for the automotive domain (not a field bus) MAP: bus designed for car factories. Process Field Bus (Profibus): used in smart buildings The European Installation Bus (EIB): bus designed for smart buildings; CSMA/CA; low data rate. Attempts to use Ethernet. Timing predictability an issue.

Wireless communication: Examples IEEE 802.11 a/b/g/n UMTS; HSPA; LTE DECT Bluetooth ZigBee Timing predictability of wireless communication? Energy consumption e.g. of Wimax devices?  chapter 5

Peter Marwedel Informatik 12 TU Dortmund Germany D/A-Converters Peter Marwedel Informatik 12 TU Dortmund Germany © Springer, 2010 These slides use Microsoft clip arts. Microsoft copyright restrictions apply.

Embedded System Hardware Embedded system hardware is frequently used in a loop (“hardware in a loop“): …  cyber-physical systems © Photos: P. Marwedel, 2011

Kirchhoff‘s junction rule Kirchhoff‘s Current Law, Kirchhoff‘s first rule Kirchhoff’s Current Law: At any point in an electrical circuit, the sum of currents flowing towards that point is equal to the sum of currents flowing away from that point. (Principle of conservation of electric charge) Example: i1 + i2+ i4 = i3 Formally, for any node in a circuit: i1+i2-i3+i4=0 This knowledge should be available among students, but in practice it isn’t. [Jewett and Serway, 2007]. Count current flowing away from node as negative.

Kirchhoff's loop rule Kirchhoff‘s Voltage Law, Kirchhoff's second rule Example: The principle of conservation of energy implies that: The sum of the potential differences (voltages) across all elements around any closed circuit must be zero [Jewett and Serway, 2007]. Formally, for any loop in a circuit: V1-V2-V3+V4=0 This knowledge should be available among students, but in practice it isn’t. V3=R3I3 if current counted in the same direction as V3 Count voltages traversed against arrow direction as negative V3=-R3I3 if current counted in the opposite direction as V3

Operational Amplifiers (Op-Amps) Operational amplifiers (op-amps) are devices amplifying the voltage difference between two input terminals by a large gain factor g Supply voltage Vout=(V+ - V-) ∙ g - op-amp High impedance input terminals  Currents into inputs  0 + V- Vout V+ Op-amp in a DIL package ground For an ideal op-amp: g   (In practice: g may be around 104..106) © Photo: P. Marwedel, 2012

Op-Amps with feedback I - V1 V- + Vout Vout = - g ∙V- (op-amp feature) In circuits, negative feedback is used to define the actual gain: I R1 Due to the feedback to the inverted input, R1 reduces voltage V-. To which level? loop R - op-amp V1 V- + Vout ground Vout = - g ∙V- (op-amp feature) I∙R1+Vout-V-=0 (loop rule)  I∙R1+ - g ∙V- -V-=0  (1+g) ∙V- = I∙R1 V- is called virtual ground: the voltage is 0, but the terminal may not be connected to ground

Digital-to-Analog (D/A) Converters Various types, can be quite simple, e.g.:

Current I proportional to the number represented by x Loop rule:  In general: Junction rule:  I ~ nat (x), where nat(x): natural number represented by x;

Output voltage proportional to the number represented by x Loop rule*: Junction rule°: ° *  From the previous slide Hence: Op-amp turns current I ~ nat (x) into a voltage ~ nat (x)

Output generated from signal e3(t) * * Assuming “zero-order hold” Possible to reconstruct input signal?

Sampling Theorem © Springer, 2010 These slides use Microsoft clip arts. Microsoft copyright restrictions apply.

Possible to reconstruct input signal? Assuming Nyquist criterion met Let {ts}, s = ...,−1,0,1,2, ... be times at which we sample g(t) Assume a constant sampling rate of 1/ps (∀s: ps = ts+1−ts). According sampling theory, we can approximate the input signal as follows: Weighting factor for influence of y(ts) at time t [Oppenheim, Schafer, 2009] © Graphics: P. Marwedel, 2011

Weighting factor for influence of y(ts) at time t No influence at ts+n © Graphics: P. Marwedel, 2011

Contributions from the various sampling instances © Graphics: P. Marwedel, 2011

(Attempted) reconstruction of input signal * * Assuming 0-order hold © Graphics: P. Marwedel, 2011

How to compute the sinc( ) function? Filter theory: The required interpolation is performed by an ideal low-pass filter (sinc is the Fourier transform of the low-pass filter transfer function) ! fs fs /2 Filter removes high frequencies present in y(t) © Graphics: P. Marwedel, 2011

How precisely are we reconstructing the input? Sampling theory: Reconstruction using sinc () is precise However, it may be impossible to really compute z(t) as indicated …. !

Limitations Actual filters do not compute sinc( ) In practice, filters are used as an approximation. Computing good filters is an art itself! All samples must be known to reconstruct e(t) or g(t).  Waiting indefinitely before we can generate output! In practice, only a finite set of samples is available. Actual signals are never perfectly bandwidth limited. Quantization noise cannot be removed.

Output Output devices of embedded systems include Displays: Display technology is extremely important. Major research and development efforts Electro-mechanical devices: these influence the environment through motors and other electro-mechanical equipment. Frequently require analog output. © Photos: P. Marwedel, 2011/2

Embedded System Hardware Embedded system hardware is frequently used in a loop (“hardware in a loop“):  cyber-physical systems © Graphics: P. Marwedel, 2011

Peter Marwedel Informatik 12 TU Dortmund Germany Actuators Peter Marwedel Informatik 12 TU Dortmund Germany © Springer, 2010 These slides use Microsoft clip arts. Microsoft copyright restrictions apply.

Actuators Huge variety of actuators and output devices, impossible to present all of them. Motor as an example

Actuators (2) Courtesy and ©: E. Obermeier, MAT, TU Berlin http://www.piezomotor.se/pages/PWtechnology.html http://www.elliptec.com/fileadmin/elliptec/User/Produkte/Elliptec_Motor/Elliptecmotor_How_it_works.h

Secure Hardware measurements of the supply current or Security needed for communication & storage Demand for special equipment for cryptographic keys To resist side-channel attacks like measurements of the supply current or Electromagnetic radiation. Special mechanisms for physical protection (shielding, sensor detecting tampering with the modules). Logical security, using cryptographic methods needed. Smart cards: special case of secure hardware Have to run with a very small amount of energy. In general, we have to distinguish between different levels of security and knowledge of “adversaries” © Photo: P. Marwedel,2012

Summary Hardware in a loop Sensors Discretization Information processing Importance of energy efficiency, Special purpose HW very expensive, Energy efficiency of processors, Code size efficiency, Run-time efficiency Reconfigurable Hardware Communication D/A converters Sampling theorem Actuators (briefly) Secure hardware (briefly)

THANK YOU