SlideShare una empresa de Scribd logo
1 de 18
Real-time Embedded  Systems Lecture 6  Embedded Communication Part I Prof. Dr. Amitava Gupta Department of Power Engineering Jadavpur University, India Real-time  Embedded Systems- Lecture 06
Real-time  Embedded Systems- Lecture 06 ,[object Object],[object Object],[object Object],[object Object],[object Object]
Real-time  Embedded Systems- Lecture 06 Flow Control: Explicit and Implicit Explicit Flow Control: The sender and the receiver , each has a client associated with it. The sender sends a message and awaits an acknowledgement from the receiver after starting a timeout counter and a retry counter. If the acknowledgement is received within the timeout  value, it informs its client and the send task is assumed to have been complete. Else, it checks if the maximum number of retry attempts have been exceeded or not and attempts another send. A failure is intimated to the client once the max. number of retries is exceeded. The receiver , on receiving a message, first checks if the message has already been received or  not. If it has been received, it sends an acknowledgement to the sender only. Otherwise, it sends the message to its client and sends an acknowledgement to the sender. Thus, the error detection is at the sender end only.
Real-time  Embedded Systems- Lecture 06 Flow Control: Explicit and Implicit contd.. Implicit Flow Control: The receiver is programmed to receive messages from the sender at some pre-designated instants only. No explicit acknowledgment is sent.  Reliability is ensured by sending the message through multiple links. Thus, the error detection is at the receiver end only. Q. Which flow control do you think is more suited for RT communication requirements?
Real-time  Embedded Systems- Lecture 06 Media Access Control Binary Countdown CSMA/CD TDMA Protocol Implementations High Level Standards Representative Applications CAN Automotive Fieldbus Profibus, Modbus Ethernet, LonTalk Building Automation Factory Automation DATAC Real-time communication abstractions Token Passing Device Net
Real-time  Embedded Systems- Lecture 06 Media Access: Basic coding techniques for data transmission Manchester Coding: 0 is encoded by a transition from Hi to Lo 1 is encoded by a transition from Lo to Hi 0 1 Q. How would the Byte 11010001 be encoded?
Real-time  Embedded Systems- Lecture 06 Media Access: Basic coding techniques for data transmission contd.. Non-return to zero encoding Send a 0 as Lo Send a 1 as Hi Uses a end bit and a sync bit – having opposite signs Thus 11010001 shall be coded as: END SYNC 1 1 0 1 0 0 0 1 END SYNC
Media Access  Polling: Master polls the slave nodes which send messages when polled. Slaves communicate amongst one another through the master TDMA: Master synchronizes the clocks of all slaves. Each node transmits during a pre-designated time slot.  Master Node 1 Node 2 Node 3 Node 4 time slots 1 2 3 4 5 Real-time  Embedded Systems- Lecture 06
Token passing- Explicit and Implicit Explicit Token Passing: A token or a signal is passed from node to node across the  network (forming a virtual  ring). Only the owner (token holder) can transmit at any given instant. Tokens are piggy-backed on data bearing messages. Message prioritization is possible. A token could be a number indicating which node should transmit next. Recovery mechanism has to be devised- node bearing the token goes down. Node#1 Node#2 Node#3 2 3 Advantages: Determinism (bounded latency), Easy re-configurability  Real-time  Embedded Systems- Lecture 06
Token passing- contd… Implicit Token Passing:  TDMA is a typical example of this. Another example is CSMA/CA( Collision Sense  Multiple Access/Collision Avoidance) CSMA/CA Real-time  Embedded Systems- Lecture 06
Media Access contd.. CSMA/CD (Collision Sense Multiple Access/ Collision Detect) ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],More on this in the section: Ethernet as a communication protocol for RT systems. Real-time  Embedded Systems- Lecture 06
Media Access contd.. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Real-time  Embedded Systems- Lecture 06
Media Access contd.. Binary Countdown Explained Lets say that nodes 4 and 5 start competing for the network at the same instant. This is what happens: Node 4 transmits a 1 (Hi) & Node 5 transmits a 1 (Hi) The bus is now in a recessive state and both are xmitting 1, so this goes through Node 4 transmits a 0(Lo) & Node 5 transmits a 0(Lo) The bus is now in a dominant state and none of the nodes xmit 1, so this goes through Node 4 transmits a 0(Lo) & Node 5 transmits a 1(Hi) The bus is now in the dominant state as node 4 xmits a 0, and therefore, node 5 fails to xmit a 1 (recessive bit) and hence opts out. Real-time  Embedded Systems- Lecture 06
Central issues in Embedded Networking ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Real-time  Embedded Systems- Lecture 06
Message Latency It is the time interval from the instant the message is enqueued for transmission to the instant the last bit is received. The message has to be enqueued before the arbitration slot i.e. before the node starts transmitting. Latency reduction techniques: Queue the messages just in time. Schedule tasks in the order of priority of their output messages. Real-time  Embedded Systems- Lecture 06
Efficiency Message Efficiency : How many messages are actually useful at protocol level? Total number of useful messages Total number of messages sent Bit-wise Efficiency: ( Total number of useful data bits including portions of header used for identifying )/(Total nos. bits transmitted) Clearly both are protocol dependent Q. Which of the two protocols viz. token passing and CAN has a higher message  efficiency? Q. What is channel efficiency and how are these related to it? Real-time  Embedded Systems- Lecture 06
Real-time  Embedded Systems- Lecture 06 Controller Area Network Physical Layer Data Link Application Layer Transceiver CAN Controller Host Controller Application CAN Bus  Twisted pair with differential drivers & 120 ohm terminators Uses NRZ coding with bit stuffing SOF 11 BIT IDENTIFIER RTR IDE r0 DLC PAYLOAD 0-8 BYTES CRC ACK EOF IFS Indicates priority. Lower value, higher priority
Real-time  Embedded Systems- Lecture 06 Physical Medium: Differential Drivers with Twisted pairs(120 ohm terminators) Fibre Optic cables Optical isolators Media access: Uses NRZ coding and binary countdown (bit dominance) Uses bit stuffing for long messages ( an opposite stuff bit every 5 identical bits) Q. How does the bit string 1111 1111  0000 0000 get coded with stuff bits? Q. Why is bit stuffing necessary? Data stuffing impairs error detection. Controller Area Network contd.

Más contenido relacionado

La actualidad más candente

Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architectureishapadhy
 
Lecture 3
Lecture 3Lecture 3
Lecture 3Mr SMAK
 
Computer Organozation
Computer OrganozationComputer Organozation
Computer OrganozationAabha Tiwari
 
Pipeline and data hazard
Pipeline and data hazardPipeline and data hazard
Pipeline and data hazardWaed Shagareen
 
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...Instruction Level Parallelism Compiler optimization Techniques Anna Universit...
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...Dr.K. Thirunadana Sikamani
 
Instruction pipelining
Instruction pipeliningInstruction pipelining
Instruction pipeliningTech_MX
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building andcseij
 
Instruction level parallelism
Instruction level parallelismInstruction level parallelism
Instruction level parallelismdeviyasharwin
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInteX Research Lab
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.Piyush Rochwani
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Sudhanshu Janwadkar
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSvtunotesbysree
 
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processingvishal choudhary
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classificationNarayan Kandel
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD) Ali Raza
 
Usage of Moving Average
Usage of Moving AverageUsage of Moving Average
Usage of Moving AverageKwanghee Choi
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System AchitectureYashiUpadhyay3
 

La actualidad más candente (20)

Computer arithmetic in computer architecture
Computer arithmetic in computer architectureComputer arithmetic in computer architecture
Computer arithmetic in computer architecture
 
Lecture 3
Lecture 3Lecture 3
Lecture 3
 
Computer Organozation
Computer OrganozationComputer Organozation
Computer Organozation
 
Pipeline and data hazard
Pipeline and data hazardPipeline and data hazard
Pipeline and data hazard
 
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...Instruction Level Parallelism Compiler optimization Techniques Anna Universit...
Instruction Level Parallelism Compiler optimization Techniques Anna Universit...
 
Instruction pipelining
Instruction pipeliningInstruction pipelining
Instruction pipelining
 
CO Module 5
CO Module 5CO Module 5
CO Module 5
 
Parallel Algorithms
Parallel AlgorithmsParallel Algorithms
Parallel Algorithms
 
A survey of paradigms for building and
A survey of paradigms for building andA survey of paradigms for building and
A survey of paradigms for building and
 
Instruction level parallelism
Instruction level parallelismInstruction level parallelism
Instruction level parallelism
 
Instruction pipeline: Computer Architecture
Instruction pipeline: Computer ArchitectureInstruction pipeline: Computer Architecture
Instruction pipeline: Computer Architecture
 
Pipelining and co processor.
Pipelining and co processor.Pipelining and co processor.
Pipelining and co processor.
 
Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &Run time, frequently, non-frequently reconfigurable system &
Run time, frequently, non-frequently reconfigurable system &
 
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERSVTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
VTU 5TH SEM CSE OPERATING SYSTEMS SOLVED PAPERS
 
Unit 3-pipelining & vector processing
Unit 3-pipelining & vector processingUnit 3-pipelining & vector processing
Unit 3-pipelining & vector processing
 
Feng’s classification
Feng’s classificationFeng’s classification
Feng’s classification
 
Pipelining
PipeliningPipelining
Pipelining
 
Parallel Processors (SIMD)
Parallel Processors (SIMD) Parallel Processors (SIMD)
Parallel Processors (SIMD)
 
Usage of Moving Average
Usage of Moving AverageUsage of Moving Average
Usage of Moving Average
 
Pipelining in Computer System Achitecture
Pipelining in Computer System AchitecturePipelining in Computer System Achitecture
Pipelining in Computer System Achitecture
 

Destacado

Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded SystemsHimanshu Ghetia
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded systemmanish katara
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-developmentJoão Moreira
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayVijay Kumar
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic conceptsStudent
 
Real-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsAJAL A J
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System ConceptsSanjiv Malik
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applicationsDr.YNM
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating SystemTech_MX
 

Destacado (15)

Real Time OS For Embedded Systems
Real Time OS For Embedded SystemsReal Time OS For Embedded Systems
Real Time OS For Embedded Systems
 
ppt on embedded system
ppt on embedded systemppt on embedded system
ppt on embedded system
 
S emb t2-definition
S emb t2-definitionS emb t2-definition
S emb t2-definition
 
S emb t10-development
S emb t10-developmentS emb t10-development
S emb t10-development
 
Embedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijayEmbedded System Real Time Operating System (ERTS) I unit by vijay
Embedded System Real Time Operating System (ERTS) I unit by vijay
 
Embedded System
Embedded SystemEmbedded System
Embedded System
 
Real time scheduling - basic concepts
Real time scheduling - basic conceptsReal time scheduling - basic concepts
Real time scheduling - basic concepts
 
Real-Time Scheduling Algorithms
Real-Time Scheduling AlgorithmsReal-Time Scheduling Algorithms
Real-Time Scheduling Algorithms
 
Embedded system
Embedded systemEmbedded system
Embedded system
 
RTOS - Real Time Operating Systems
RTOS - Real Time Operating SystemsRTOS - Real Time Operating Systems
RTOS - Real Time Operating Systems
 
Real Time Operating System Concepts
Real Time Operating System ConceptsReal Time Operating System Concepts
Real Time Operating System Concepts
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
Real Time Systems
Real Time SystemsReal Time Systems
Real Time Systems
 
Unit 1 embedded systems and applications
Unit 1 embedded systems and applicationsUnit 1 embedded systems and applications
Unit 1 embedded systems and applications
 
Real time Operating System
Real time Operating SystemReal time Operating System
Real time Operating System
 

Similar a Real time-embedded-system-lec-06

2.communcation in distributed system
2.communcation in distributed system2.communcation in distributed system
2.communcation in distributed systemGd Goenka University
 
Direct Link Lan
Direct Link LanDirect Link Lan
Direct Link Lanyanhul
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol conceptsRaji Lakshmi
 
Some Ccna basic detail
Some Ccna basic detailSome Ccna basic detail
Some Ccna basic detailmuneebalisyed
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3Ankur Rastogi
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologiesRadwa Tarek
 
Comparison of mqtt and coap protocol
Comparison of mqtt and coap protocolComparison of mqtt and coap protocol
Comparison of mqtt and coap protocolYUSUF HUMAYUN
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxk2w9psdb96
 
Can basics
Can basicsCan basics
Can basicscdackp
 
Jaimin chp-3 - data-link layer- 2011 batch
Jaimin   chp-3 - data-link layer- 2011 batchJaimin   chp-3 - data-link layer- 2011 batch
Jaimin chp-3 - data-link layer- 2011 batchJaimin Jani
 

Similar a Real time-embedded-system-lec-06 (20)

LIN protocol description
LIN protocol descriptionLIN protocol description
LIN protocol description
 
Canbus
CanbusCanbus
Canbus
 
2.communcation in distributed system
2.communcation in distributed system2.communcation in distributed system
2.communcation in distributed system
 
Direct Link Lan
Direct Link LanDirect Link Lan
Direct Link Lan
 
Data link control & protocol concepts
Data link control & protocol conceptsData link control & protocol concepts
Data link control & protocol concepts
 
transport layer
transport layertransport layer
transport layer
 
Some Ccna basic detail
Some Ccna basic detailSome Ccna basic detail
Some Ccna basic detail
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Can network development using arm cortex m3
Can network development using arm cortex m3Can network development using arm cortex m3
Can network development using arm cortex m3
 
Role of CAN BUS in automotives
Role of CAN BUS in automotivesRole of CAN BUS in automotives
Role of CAN BUS in automotives
 
CS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKSCS6551 COMPUTER NETWORKS
CS6551 COMPUTER NETWORKS
 
Automotive bus technologies
Automotive bus technologiesAutomotive bus technologies
Automotive bus technologies
 
Comparison of mqtt and coap protocol
Comparison of mqtt and coap protocolComparison of mqtt and coap protocol
Comparison of mqtt and coap protocol
 
Data link layer
Data link layerData link layer
Data link layer
 
DLL
DLLDLL
DLL
 
IJSTEV2I12120
IJSTEV2I12120IJSTEV2I12120
IJSTEV2I12120
 
Shubham chakravarty ppt_wcan
Shubham chakravarty ppt_wcanShubham chakravarty ppt_wcan
Shubham chakravarty ppt_wcan
 
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptxU2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
U2CH1Data Link Layerxxxxxxxxxxxxxxxxx.pptx
 
Can basics
Can basicsCan basics
Can basics
 
Jaimin chp-3 - data-link layer- 2011 batch
Jaimin   chp-3 - data-link layer- 2011 batchJaimin   chp-3 - data-link layer- 2011 batch
Jaimin chp-3 - data-link layer- 2011 batch
 

Más de University of Computer Science and Technology

Más de University of Computer Science and Technology (15)

Real time-embedded-system-lec-02
Real time-embedded-system-lec-02Real time-embedded-system-lec-02
Real time-embedded-system-lec-02
 
12 software maintenance
12 software maintenance12 software maintenance
12 software maintenance
 
11 software testing_strategy
11 software testing_strategy11 software testing_strategy
11 software testing_strategy
 
10 software testing_technique
10 software testing_technique10 software testing_technique
10 software testing_technique
 
09 coding standards_n_guidelines
09 coding standards_n_guidelines09 coding standards_n_guidelines
09 coding standards_n_guidelines
 
08 component level_design
08 component level_design08 component level_design
08 component level_design
 
07 interface design
07 interface design07 interface design
07 interface design
 
06 architectural design_workout
06 architectural design_workout06 architectural design_workout
06 architectural design_workout
 
05 architectural design
05 architectural design05 architectural design
05 architectural design
 
04 design concepts_n_principles
04 design concepts_n_principles04 design concepts_n_principles
04 design concepts_n_principles
 
03 requirement engineering_process
03 requirement engineering_process03 requirement engineering_process
03 requirement engineering_process
 
02 software process_models
02 software process_models02 software process_models
02 software process_models
 
01 software engineering_aspects
01 software engineering_aspects01 software engineering_aspects
01 software engineering_aspects
 
14 software technical_metrics
14 software technical_metrics14 software technical_metrics
14 software technical_metrics
 
13 software metrics
13 software metrics13 software metrics
13 software metrics
 

Último

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxdhanalakshmis0310
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 

Último (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Magic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptxMagic bus Group work1and 2 (Team 3).pptx
Magic bus Group work1and 2 (Team 3).pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Real time-embedded-system-lec-06

  • 1. Real-time Embedded Systems Lecture 6 Embedded Communication Part I Prof. Dr. Amitava Gupta Department of Power Engineering Jadavpur University, India Real-time Embedded Systems- Lecture 06
  • 2.
  • 3. Real-time Embedded Systems- Lecture 06 Flow Control: Explicit and Implicit Explicit Flow Control: The sender and the receiver , each has a client associated with it. The sender sends a message and awaits an acknowledgement from the receiver after starting a timeout counter and a retry counter. If the acknowledgement is received within the timeout value, it informs its client and the send task is assumed to have been complete. Else, it checks if the maximum number of retry attempts have been exceeded or not and attempts another send. A failure is intimated to the client once the max. number of retries is exceeded. The receiver , on receiving a message, first checks if the message has already been received or not. If it has been received, it sends an acknowledgement to the sender only. Otherwise, it sends the message to its client and sends an acknowledgement to the sender. Thus, the error detection is at the sender end only.
  • 4. Real-time Embedded Systems- Lecture 06 Flow Control: Explicit and Implicit contd.. Implicit Flow Control: The receiver is programmed to receive messages from the sender at some pre-designated instants only. No explicit acknowledgment is sent. Reliability is ensured by sending the message through multiple links. Thus, the error detection is at the receiver end only. Q. Which flow control do you think is more suited for RT communication requirements?
  • 5. Real-time Embedded Systems- Lecture 06 Media Access Control Binary Countdown CSMA/CD TDMA Protocol Implementations High Level Standards Representative Applications CAN Automotive Fieldbus Profibus, Modbus Ethernet, LonTalk Building Automation Factory Automation DATAC Real-time communication abstractions Token Passing Device Net
  • 6. Real-time Embedded Systems- Lecture 06 Media Access: Basic coding techniques for data transmission Manchester Coding: 0 is encoded by a transition from Hi to Lo 1 is encoded by a transition from Lo to Hi 0 1 Q. How would the Byte 11010001 be encoded?
  • 7. Real-time Embedded Systems- Lecture 06 Media Access: Basic coding techniques for data transmission contd.. Non-return to zero encoding Send a 0 as Lo Send a 1 as Hi Uses a end bit and a sync bit – having opposite signs Thus 11010001 shall be coded as: END SYNC 1 1 0 1 0 0 0 1 END SYNC
  • 8. Media Access Polling: Master polls the slave nodes which send messages when polled. Slaves communicate amongst one another through the master TDMA: Master synchronizes the clocks of all slaves. Each node transmits during a pre-designated time slot. Master Node 1 Node 2 Node 3 Node 4 time slots 1 2 3 4 5 Real-time Embedded Systems- Lecture 06
  • 9. Token passing- Explicit and Implicit Explicit Token Passing: A token or a signal is passed from node to node across the network (forming a virtual ring). Only the owner (token holder) can transmit at any given instant. Tokens are piggy-backed on data bearing messages. Message prioritization is possible. A token could be a number indicating which node should transmit next. Recovery mechanism has to be devised- node bearing the token goes down. Node#1 Node#2 Node#3 2 3 Advantages: Determinism (bounded latency), Easy re-configurability Real-time Embedded Systems- Lecture 06
  • 10. Token passing- contd… Implicit Token Passing: TDMA is a typical example of this. Another example is CSMA/CA( Collision Sense Multiple Access/Collision Avoidance) CSMA/CA Real-time Embedded Systems- Lecture 06
  • 11.
  • 12.
  • 13. Media Access contd.. Binary Countdown Explained Lets say that nodes 4 and 5 start competing for the network at the same instant. This is what happens: Node 4 transmits a 1 (Hi) & Node 5 transmits a 1 (Hi) The bus is now in a recessive state and both are xmitting 1, so this goes through Node 4 transmits a 0(Lo) & Node 5 transmits a 0(Lo) The bus is now in a dominant state and none of the nodes xmit 1, so this goes through Node 4 transmits a 0(Lo) & Node 5 transmits a 1(Hi) The bus is now in the dominant state as node 4 xmits a 0, and therefore, node 5 fails to xmit a 1 (recessive bit) and hence opts out. Real-time Embedded Systems- Lecture 06
  • 14.
  • 15. Message Latency It is the time interval from the instant the message is enqueued for transmission to the instant the last bit is received. The message has to be enqueued before the arbitration slot i.e. before the node starts transmitting. Latency reduction techniques: Queue the messages just in time. Schedule tasks in the order of priority of their output messages. Real-time Embedded Systems- Lecture 06
  • 16. Efficiency Message Efficiency : How many messages are actually useful at protocol level? Total number of useful messages Total number of messages sent Bit-wise Efficiency: ( Total number of useful data bits including portions of header used for identifying )/(Total nos. bits transmitted) Clearly both are protocol dependent Q. Which of the two protocols viz. token passing and CAN has a higher message efficiency? Q. What is channel efficiency and how are these related to it? Real-time Embedded Systems- Lecture 06
  • 17. Real-time Embedded Systems- Lecture 06 Controller Area Network Physical Layer Data Link Application Layer Transceiver CAN Controller Host Controller Application CAN Bus Twisted pair with differential drivers & 120 ohm terminators Uses NRZ coding with bit stuffing SOF 11 BIT IDENTIFIER RTR IDE r0 DLC PAYLOAD 0-8 BYTES CRC ACK EOF IFS Indicates priority. Lower value, higher priority
  • 18. Real-time Embedded Systems- Lecture 06 Physical Medium: Differential Drivers with Twisted pairs(120 ohm terminators) Fibre Optic cables Optical isolators Media access: Uses NRZ coding and binary countdown (bit dominance) Uses bit stuffing for long messages ( an opposite stuff bit every 5 identical bits) Q. How does the bit string 1111 1111 0000 0000 get coded with stuff bits? Q. Why is bit stuffing necessary? Data stuffing impairs error detection. Controller Area Network contd.