SlideShare uma empresa Scribd logo
1 de 87
Baixar para ler offline
Team Emertxe
Communication Protocols 1
Communication
Protocols I
● Introduction
● UART
● SPI
● I²C
● CAN
● USB
Introduction
Introduction
● What do mean by Communication?
● Mode of Communications
● Type of Communications
● Why Protocols?
Introduction
Modes of Communication
● Simplex
● Half Duplex
● Duplex
UART
UART
Serial Peripheral Interface
SPI
● Introduction
● Interface
● Hardware Configurations
● Data Transmission
– Data Propagation
– Data Validity
SPI
Introduction
● Synchronous
● Full Duplex
● Master / Slave
SPI
Interface
● SCLK
● MOSI
●
MISO
●
nSS
SPI
Hardware Configuration
SPI
Hardware Configuration
SPI
Hardware Configuration
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Transmission
SPI
Data Validity
Inter Integrated Circuits
● Introduction to I²C
● I²C Bus Features
● The I²C Bus Protocol
● Bus Speeds
I2
C
● Synchronous
● Half Duplex
● Multi Master / Slave
I2
C
Introduction
● Two Line Interface
● Software Addressable
● Multi Master with CD
● Serial, 8 bit Oriented, Bidirectional with 4 Modes
● On Chip Filtering
I2
C
Bus Features
● Example
● Signals
● A Complete Data Transfer
I2
C
Protocol
I2
C
Example
● Two-wired Interface
– SDA
– SCL
● Wired-AND
● Conditions and Data Validity
● Transmission
I2
C
Signals
I2
C
Signals – Wired-AND
I2
C
Signals – Conditions and Data Validity
I2
C
Signals – Transmission
● Data on SDA
● Clocking on SCL
● Clock Synchronization
● Data Arbitration
I2
C
Signals – Data on SDA
I2
C
Signals – Data on SDA
I2
C
Signals – Data on SDA
I2
C
Signals – Data on SDA
I2
C
Signals – Data on SDA
I2
C
Signals – Clocking on SCL
I2
C
Signals – Clock Synchronization
I2
C
Signals – Data Arbitration
I2
C
A Complete Data Transfer
I2
C
Bus Speeds
● Bidirectional Bus
– Standard Mode - 100 Kbit/s
– Fast Mode - 400 Kbits/s
– Fast Mode Plus - 1 Mbits/s
– High Speed Mode - 3.4 Mbits/s
● Unidirectional Bus
– Ultra Fast Mode – 5 Mbits/s
● Uses Push-Pull Drivers (No Pullups)
Controller Area Network
●
Introduction to CAN
●
Basic Concepts
●
Message Transfer
●
Message Filtering
●
Message Validation
●
Coding
●
Error Handling
●
Fault Confinement
●
Oscillator Tolerance
●
Bit Timing Requirement
Controller Area Network
●
Asynchronous
●
Half Duplex
●
Multi Master / Slave
CAN
Introduction
● Example
● Versions
● Absence of node addressing
– Message identifier specifies contents and priority
– Lowest message identifier has highest priority
● Non-destructive arbitration system by CSMA with collision
detection
● Simple Transmission Medium
– Twisted pair – CAN H and CAN L
● Properties
● Layered Architecture
CAN
Basic Concepts
CAN
Basic Concepts - Example
CAN
Basic Concepts - Versions
NOMENCLATURE STANDARD
MAX SIGNALING
RATE
IDENTIFIER
Low Speed CAN ISO 11519 125 kbps 11 bit
CAN 2.0A ISO 11898:1993 1 Mbps 11 bit
CAN 2.0B ISO 11898:1995 1 Mbps 29 bit
● Prioritization of Messages
● Guarantee of Latency Times
● Configuration of Flexibility
● Multicast Reception with Time Synchronization
● System wide Data Consistency
● Multi master
● Error Detection and Error Signaling
● Automatic Retransmission
● Distinction between temporary errors and permanent failures
of nodes and autonomous switching off of defect nodes
CAN
Basic Concepts - Properties
CAN
Basic Concepts - Layered Architecture
CAN
Basic Concepts - Layered Architecture
CAN
Basic Concepts - Layered Architecture
CAN
Message Transfer
● Frame Formats
– Standard Frame - 11 bits Identifiers
– Extended Frame - 29 bits Identifiers
● Frame Types
– Data Frame
– Remote Frame
– Error Frame
– Overload Frame
● Frame Fields
CAN
Message Transfer - Frame Formats
CAN
Message Transfer – Data Frame
● A data frame consists of seven fields: start-of-frame, arbitration,
control, data, CRC, ACK, and end-of-frame.
CAN
Message Transfer – Remote Frame
● Used by a node to request other nodes to send certain
type of messages
● Has six fields as shown in above figure
– These fields are identical to those of a data frame
with the exception that the RTR bit in the arbitration
field is recessive in the remote frame.
CAN
Message Transfer – Error Frame
● This frame consists of two fields.
– The first field is given by the superposition of error flags
contributed from different nodes.
– The second field is the error delimiter.
● Error flag can be either active-error flag or passive-error flag.
– Active error flag consists of six consecutive dominant bits.
– Passive error flag consists of six consecutive recessive bits.
● The error delimiter consists of eight recessive bits.
CAN
Message Transfer – Overload Frame
● Consists of two bit fields: overload flag and overload delimiter
● Three different overload conditions lead to the transmission of the
overload frame:
– Internal conditions of a receiver require a delay of the next data frame or
remote frame.
– At least one node detects a dominant bit during intermission.
– A CAN node samples a dominant bit at the eighth bit (i.e., the last bit) of an
error delimiter or overload delimiter.
● Format of the overload frame is shown in above fig
● The overload flag consists of six dominant bits.
● The overload delimiter consists of eight recessive bits.
● Control Field
● Arbitration Field
● Data Field
● CRC Field
● ACK Field
CAN
Message Transfer – Frame Fields
● The first bit is IDE bit for the standard format but is
used as reserved bit r1 in extended format.
● r0 is reserved bit.
● DLC3…DLC0 stands for data length and can be from
0000 (0) to 1000 (8).
CAN
Frame Fields – Control Field
●
The identifier of the standard format corresponds to the base ID in the
extended format.
● The RTR bit is the remote transmission request and must be 0 in a data
frame.
● The SRR bit is the substitute remote request and is recessive.
● The IDE field indicates whether the identifier is extended and should
be recessive in the extended format.
● The extended format also contains the 18-bit extended identifier.
CAN
Frame Fields – Arbitration Field
● May contain 0 to 8 bytes of data
CAN
Frame Fields – Data Field
● It contains the 16-bit CRC sequence including CRC
delimiter.
● The CRC delimiter is a single recessive bit.
CAN
Frame Fields – CRC Field
●
Consists of two bits
●
The first bit is the acknowledgement bit.
●
This bit is set to recessive by the transmitter,
but will be reset to dominant if a receiver
acknowledges the data frame.
●
The second bit is the ACK delimiter and is
recessive.
CAN
Frame Fields – Ack Field
CAN
Error Handling
● Error Detection
– Bit Error
– Stuff Error
– CRC Error
– Form Error
– Acknowledgment Error
● Error Signaling
CAN
Fault Confinement
●
Counters
– Transmit Error Counter & Receive Error Counter
Universal Serial Bus
● Introduction
● Technical Overview
● Interfaces
● Architecture
● Power Managment
● Communication Overview
● Extensions
– OTG
– Wireless
Universal Serial Bus
● Asynchronous
● Half Duplex
● Master / Slave
● Offers simple connectivity
● Low cost
● Ease of use
● Manages power efficiently
● Supports all kinds of Data
USB
Introduction
● Upstream Connection and Downstream Connection
● Device Speeds
– Low Speed cables at 1.5 Mbps
– Full Speed cables at 12 Mbps and
– High Speed cables at 480 Mbps
– Super Speed upto 5.0 Gbps (Raw throughput)
● Two types of Connectors
– Type A and Type B
– Sizes
●
Standard, Mini, Micro
USB
Technical Overview
● USB 1.X and 2.0
– Vcc
– D-
– D+
– GND
● USB 3.0
– Older USB interface line plus
– SSTX+/-
– SSRX+/-
USB
Interfaces
● Follows a Tiered star Topology and consists of
– Host controller
– Hubs
– Peripherals
USB
Architecture
USB
Architecture - Bus Topology
● Host recognizes the peripheral through a process called
Enumerations
● Host communicates with the peripheral to learn its
identity and identifies which device driver is required
● Host supplies the peripheral with an address
● Host is the controller of the entire network. e.g. PC
USB
Architecture - Host
● Allows many USB devices to share a single USB port
● USB devices with some incorporated intelligence
● Increase the logical and physical fan out
●
Single upstream connection and one-many down stream
connection
●
Smart wire passing data between the peripheral and Host
●
Direct connection exists between host and peripherals
●
Two kinds of Hubs:
– Bus Powered Hub: Draws power from the host computers
USB interface
– Self Powered Hub: Has a built in power supply.
USB
Architecture - Hubs
● Receive and respond to the commands from the host. E.g.
Mice, Keyboard, Joysticks
●
Two types of Peripherals
– Standalone
– Compound Device
USB
Architecture - Peripherals
● Peripherals connected regardless of the power state
● A pair of wires to supply power to the peripherals
● Manage power by enabling and disabling power to
devices
● Removes electrically ill behaved systems from the
network
USB
Power Management
● End point is a unique point in the device which is the
source or the receiver of the data
● End point has a definite address associated with it
● Codes indicate the type of transfer
● 16 end points within each device each end point has a
4 bit address
● End point “0” reserved for control transfers
USB
Communication Overview
● Transactions between the host and end point take
place through virtual pipes
● Pipes are logical channels which connect the host to
the end points
● Once the communication is established the end points
return a descriptor
● Descriptor is a data structure tells the host about the
end points configuration and expectations
USB
Communication Overview
USB supports four transfer types of data:
●
Control Transfers:
– Exchange information such as configuration, command
information , set up between host and end point
●
Bulk Transfers:
– Supports bulk amounts of data when timely delivery isn’t critical.
– e.g. Printers and Scanners
●
Isochronous transfers:
– Handle transfers like streaming data
●
Interrupt transfers:
– Poll devices to see if they need service
USB
Communication Overview
● USB 2.0
● PictBridge Standard to communicate imaging devices
● Microsoft X box console
● IBM Ultraport
● USB 1.0 OTG
● USB 1.0a supplement OTG
● Wireless USB
USB
Extensions
● USB On-The-Go Technology is used to provide dual
role to the peripherals
● Enables direct communication between the hosts
without involving the processor
● Incorporates Mini A , Mini B, Mini AB plugs and
receptacles
● Highly complex design
USB
OTG
Advantages:
● Provides Dual Role Devices
● Introduces new connector types, Mini A, Mini B, Mini
AB
● Provides with Aggressive Power Management
On the Go Functionality of the USB can be implemented:
● Using a Full solution Approach
● Using a USB microcontroller
● Designing a custom IC
USB
OTG
● A Paradigm developed by Cypress that allows devices
to be connected but appear as if they are connected
to the host over normal USB connectivity
● Addresses many of the Design issues of Wireless
networking
● An evolution that relies on familiar and existing
technologies
● Desirable for point to point devices
● Features of Wireless USB are its Ease of use, simple
connectivity and conservation of the battery power
USB
Wireless
Thank You

Mais conteúdo relacionado

Mais procurados

I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolAnkur Soni
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
I2C Bus (Inter-Integrated Circuit)
I2C Bus (Inter-Integrated Circuit)I2C Bus (Inter-Integrated Circuit)
I2C Bus (Inter-Integrated Circuit)Varun Mahajan
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Dhaval Kaneria
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O portsanishgoel
 
Serial Communication & Embedded System Interface
Serial Communication & Embedded System InterfaceSerial Communication & Embedded System Interface
Serial Communication & Embedded System InterfaceKUET
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...NimeshSingh27
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adcPRADEEP
 

Mais procurados (20)

I2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication ProtocolI2c protocol - Inter–Integrated Circuit Communication Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Ethernet
EthernetEthernet
Ethernet
 
ARM CORTEX M3 PPT
ARM CORTEX M3 PPTARM CORTEX M3 PPT
ARM CORTEX M3 PPT
 
PPT ON Arduino
PPT ON Arduino PPT ON Arduino
PPT ON Arduino
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
I2C Bus (Inter-Integrated Circuit)
I2C Bus (Inter-Integrated Circuit)I2C Bus (Inter-Integrated Circuit)
I2C Bus (Inter-Integrated Circuit)
 
Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)Serial Peripheral Interface(SPI)
Serial Peripheral Interface(SPI)
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O ports
 
Serial Communication & Embedded System Interface
Serial Communication & Embedded System InterfaceSerial Communication & Embedded System Interface
Serial Communication & Embedded System Interface
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Modbus protocol
Modbus protocolModbus protocol
Modbus protocol
 
Communication protocols
Communication protocolsCommunication protocols
Communication protocols
 
Embedded System Basics
Embedded System BasicsEmbedded System Basics
Embedded System Basics
 
SPI Bus Protocol
SPI Bus ProtocolSPI Bus Protocol
SPI Bus Protocol
 
Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...Interfacing with peripherals: analog to digital converters and digital to ana...
Interfacing with peripherals: analog to digital converters and digital to ana...
 
I2C Protocol
I2C ProtocolI2C Protocol
I2C Protocol
 
ARM Processor
ARM ProcessorARM Processor
ARM Processor
 
Interfacing adc
Interfacing adcInterfacing adc
Interfacing adc
 

Semelhante a Communication protocols - Embedded Systems

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
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networkingArul Kumar
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolAbhinaw Tiwari
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxVairaPrakash2
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacingRAMPRAKASHT1
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Fleurati
 
One-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfOne-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfshamtekawambwa1
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocolsNitesh Singh
 
Can Protocol Based Health Monitoring
Can Protocol Based Health MonitoringCan Protocol Based Health Monitoring
Can Protocol Based Health Monitoringpitchaimuthu
 
Controller area network (CAN bus) ppt
Controller area network (CAN bus) pptController area network (CAN bus) ppt
Controller area network (CAN bus) pptRaziuddin Khazi
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfcisco49
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemsRaghunath reddy
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERVarun Kambrath
 
FAR/MARS Avionics CDR
FAR/MARS Avionics CDRFAR/MARS Avionics CDR
FAR/MARS Avionics CDRCade Walton
 

Semelhante a Communication protocols - Embedded Systems (20)

Control Area Network
Control Area NetworkControl Area Network
Control Area Network
 
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
 
Embedded networking
Embedded networkingEmbedded networking
Embedded networking
 
Chapter 3 esy
Chapter 3 esy Chapter 3 esy
Chapter 3 esy
 
CAN Bus
CAN BusCAN Bus
CAN Bus
 
CAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus ProtocolCAN (Controller Area Network) Bus Protocol
CAN (Controller Area Network) Bus Protocol
 
CONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptxCONNECTED vehicle ECU.pptx
CONNECTED vehicle ECU.pptx
 
Peripherals and interfacing
Peripherals  and interfacingPeripherals  and interfacing
Peripherals and interfacing
 
Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)Switched networks (LAN Switching – Switches)
Switched networks (LAN Switching – Switches)
 
One-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdfOne-Wire-Serial-Communication.pdf
One-Wire-Serial-Communication.pdf
 
New framing-protocols
New framing-protocolsNew framing-protocols
New framing-protocols
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Can Protocol Based Health Monitoring
Can Protocol Based Health MonitoringCan Protocol Based Health Monitoring
Can Protocol Based Health Monitoring
 
UNIT 2b.pptx
UNIT 2b.pptxUNIT 2b.pptx
UNIT 2b.pptx
 
Controller area network (CAN bus) ppt
Controller area network (CAN bus) pptController area network (CAN bus) ppt
Controller area network (CAN bus) ppt
 
ccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdfccna-day4-switching_1234567890123456.pdf
ccna-day4-switching_1234567890123456.pdf
 
communication interfaces-Embedded real time systems
communication interfaces-Embedded real time systemscommunication interfaces-Embedded real time systems
communication interfaces-Embedded real time systems
 
FPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLERFPGA IMPLIMENTATION OF UART CONTTROLLER
FPGA IMPLIMENTATION OF UART CONTTROLLER
 
FAR/MARS Avionics CDR
FAR/MARS Avionics CDRFAR/MARS Avionics CDR
FAR/MARS Avionics CDR
 

Mais de Emertxe Information Technologies Pvt Ltd

Mais de Emertxe Information Technologies Pvt Ltd (20)

premium post (1).pdf
premium post (1).pdfpremium post (1).pdf
premium post (1).pdf
 
Career Transition (1).pdf
Career Transition (1).pdfCareer Transition (1).pdf
Career Transition (1).pdf
 
10_isxdigit.pdf
10_isxdigit.pdf10_isxdigit.pdf
10_isxdigit.pdf
 
01_student_record.pdf
01_student_record.pdf01_student_record.pdf
01_student_record.pdf
 
02_swap.pdf
02_swap.pdf02_swap.pdf
02_swap.pdf
 
01_sizeof.pdf
01_sizeof.pdf01_sizeof.pdf
01_sizeof.pdf
 
07_product_matrix.pdf
07_product_matrix.pdf07_product_matrix.pdf
07_product_matrix.pdf
 
06_sort_names.pdf
06_sort_names.pdf06_sort_names.pdf
06_sort_names.pdf
 
05_fragments.pdf
05_fragments.pdf05_fragments.pdf
05_fragments.pdf
 
04_magic_square.pdf
04_magic_square.pdf04_magic_square.pdf
04_magic_square.pdf
 
03_endianess.pdf
03_endianess.pdf03_endianess.pdf
03_endianess.pdf
 
02_variance.pdf
02_variance.pdf02_variance.pdf
02_variance.pdf
 
01_memory_manager.pdf
01_memory_manager.pdf01_memory_manager.pdf
01_memory_manager.pdf
 
09_nrps.pdf
09_nrps.pdf09_nrps.pdf
09_nrps.pdf
 
11_pangram.pdf
11_pangram.pdf11_pangram.pdf
11_pangram.pdf
 
10_combinations.pdf
10_combinations.pdf10_combinations.pdf
10_combinations.pdf
 
08_squeeze.pdf
08_squeeze.pdf08_squeeze.pdf
08_squeeze.pdf
 
07_strtok.pdf
07_strtok.pdf07_strtok.pdf
07_strtok.pdf
 
06_reverserec.pdf
06_reverserec.pdf06_reverserec.pdf
06_reverserec.pdf
 
05_reverseiter.pdf
05_reverseiter.pdf05_reverseiter.pdf
05_reverseiter.pdf
 

Último

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Último (20)

04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

Communication protocols - Embedded Systems

  • 2. Communication Protocols I ● Introduction ● UART ● SPI ● I²C ● CAN ● USB
  • 4. Introduction ● What do mean by Communication? ● Mode of Communications ● Type of Communications ● Why Protocols?
  • 5. Introduction Modes of Communication ● Simplex ● Half Duplex ● Duplex
  • 9. SPI ● Introduction ● Interface ● Hardware Configurations ● Data Transmission – Data Propagation – Data Validity
  • 10. SPI Introduction ● Synchronous ● Full Duplex ● Master / Slave
  • 26. ● Introduction to I²C ● I²C Bus Features ● The I²C Bus Protocol ● Bus Speeds I2 C
  • 27. ● Synchronous ● Half Duplex ● Multi Master / Slave I2 C Introduction
  • 28. ● Two Line Interface ● Software Addressable ● Multi Master with CD ● Serial, 8 bit Oriented, Bidirectional with 4 Modes ● On Chip Filtering I2 C Bus Features
  • 29. ● Example ● Signals ● A Complete Data Transfer I2 C Protocol
  • 31. ● Two-wired Interface – SDA – SCL ● Wired-AND ● Conditions and Data Validity ● Transmission I2 C Signals
  • 33. I2 C Signals – Conditions and Data Validity
  • 34. I2 C Signals – Transmission ● Data on SDA ● Clocking on SCL ● Clock Synchronization ● Data Arbitration
  • 41. I2 C Signals – Clock Synchronization
  • 42. I2 C Signals – Data Arbitration
  • 44. I2 C Bus Speeds ● Bidirectional Bus – Standard Mode - 100 Kbit/s – Fast Mode - 400 Kbits/s – Fast Mode Plus - 1 Mbits/s – High Speed Mode - 3.4 Mbits/s ● Unidirectional Bus – Ultra Fast Mode – 5 Mbits/s ● Uses Push-Pull Drivers (No Pullups)
  • 46. ● Introduction to CAN ● Basic Concepts ● Message Transfer ● Message Filtering ● Message Validation ● Coding ● Error Handling ● Fault Confinement ● Oscillator Tolerance ● Bit Timing Requirement Controller Area Network
  • 48. ● Example ● Versions ● Absence of node addressing – Message identifier specifies contents and priority – Lowest message identifier has highest priority ● Non-destructive arbitration system by CSMA with collision detection ● Simple Transmission Medium – Twisted pair – CAN H and CAN L ● Properties ● Layered Architecture CAN Basic Concepts
  • 50. CAN Basic Concepts - Versions NOMENCLATURE STANDARD MAX SIGNALING RATE IDENTIFIER Low Speed CAN ISO 11519 125 kbps 11 bit CAN 2.0A ISO 11898:1993 1 Mbps 11 bit CAN 2.0B ISO 11898:1995 1 Mbps 29 bit
  • 51. ● Prioritization of Messages ● Guarantee of Latency Times ● Configuration of Flexibility ● Multicast Reception with Time Synchronization ● System wide Data Consistency ● Multi master ● Error Detection and Error Signaling ● Automatic Retransmission ● Distinction between temporary errors and permanent failures of nodes and autonomous switching off of defect nodes CAN Basic Concepts - Properties
  • 52. CAN Basic Concepts - Layered Architecture
  • 53. CAN Basic Concepts - Layered Architecture
  • 54. CAN Basic Concepts - Layered Architecture
  • 55. CAN Message Transfer ● Frame Formats – Standard Frame - 11 bits Identifiers – Extended Frame - 29 bits Identifiers ● Frame Types – Data Frame – Remote Frame – Error Frame – Overload Frame ● Frame Fields
  • 56. CAN Message Transfer - Frame Formats
  • 57. CAN Message Transfer – Data Frame ● A data frame consists of seven fields: start-of-frame, arbitration, control, data, CRC, ACK, and end-of-frame.
  • 58. CAN Message Transfer – Remote Frame ● Used by a node to request other nodes to send certain type of messages ● Has six fields as shown in above figure – These fields are identical to those of a data frame with the exception that the RTR bit in the arbitration field is recessive in the remote frame.
  • 59. CAN Message Transfer – Error Frame ● This frame consists of two fields. – The first field is given by the superposition of error flags contributed from different nodes. – The second field is the error delimiter. ● Error flag can be either active-error flag or passive-error flag. – Active error flag consists of six consecutive dominant bits. – Passive error flag consists of six consecutive recessive bits. ● The error delimiter consists of eight recessive bits.
  • 60. CAN Message Transfer – Overload Frame ● Consists of two bit fields: overload flag and overload delimiter ● Three different overload conditions lead to the transmission of the overload frame: – Internal conditions of a receiver require a delay of the next data frame or remote frame. – At least one node detects a dominant bit during intermission. – A CAN node samples a dominant bit at the eighth bit (i.e., the last bit) of an error delimiter or overload delimiter. ● Format of the overload frame is shown in above fig ● The overload flag consists of six dominant bits. ● The overload delimiter consists of eight recessive bits.
  • 61. ● Control Field ● Arbitration Field ● Data Field ● CRC Field ● ACK Field CAN Message Transfer – Frame Fields
  • 62. ● The first bit is IDE bit for the standard format but is used as reserved bit r1 in extended format. ● r0 is reserved bit. ● DLC3…DLC0 stands for data length and can be from 0000 (0) to 1000 (8). CAN Frame Fields – Control Field
  • 63. ● The identifier of the standard format corresponds to the base ID in the extended format. ● The RTR bit is the remote transmission request and must be 0 in a data frame. ● The SRR bit is the substitute remote request and is recessive. ● The IDE field indicates whether the identifier is extended and should be recessive in the extended format. ● The extended format also contains the 18-bit extended identifier. CAN Frame Fields – Arbitration Field
  • 64. ● May contain 0 to 8 bytes of data CAN Frame Fields – Data Field
  • 65. ● It contains the 16-bit CRC sequence including CRC delimiter. ● The CRC delimiter is a single recessive bit. CAN Frame Fields – CRC Field
  • 66. ● Consists of two bits ● The first bit is the acknowledgement bit. ● This bit is set to recessive by the transmitter, but will be reset to dominant if a receiver acknowledges the data frame. ● The second bit is the ACK delimiter and is recessive. CAN Frame Fields – Ack Field
  • 67. CAN Error Handling ● Error Detection – Bit Error – Stuff Error – CRC Error – Form Error – Acknowledgment Error ● Error Signaling
  • 68. CAN Fault Confinement ● Counters – Transmit Error Counter & Receive Error Counter
  • 70. ● Introduction ● Technical Overview ● Interfaces ● Architecture ● Power Managment ● Communication Overview ● Extensions – OTG – Wireless Universal Serial Bus
  • 71. ● Asynchronous ● Half Duplex ● Master / Slave ● Offers simple connectivity ● Low cost ● Ease of use ● Manages power efficiently ● Supports all kinds of Data USB Introduction
  • 72. ● Upstream Connection and Downstream Connection ● Device Speeds – Low Speed cables at 1.5 Mbps – Full Speed cables at 12 Mbps and – High Speed cables at 480 Mbps – Super Speed upto 5.0 Gbps (Raw throughput) ● Two types of Connectors – Type A and Type B – Sizes ● Standard, Mini, Micro USB Technical Overview
  • 73. ● USB 1.X and 2.0 – Vcc – D- – D+ – GND ● USB 3.0 – Older USB interface line plus – SSTX+/- – SSRX+/- USB Interfaces
  • 74. ● Follows a Tiered star Topology and consists of – Host controller – Hubs – Peripherals USB Architecture
  • 76. ● Host recognizes the peripheral through a process called Enumerations ● Host communicates with the peripheral to learn its identity and identifies which device driver is required ● Host supplies the peripheral with an address ● Host is the controller of the entire network. e.g. PC USB Architecture - Host
  • 77. ● Allows many USB devices to share a single USB port ● USB devices with some incorporated intelligence ● Increase the logical and physical fan out ● Single upstream connection and one-many down stream connection ● Smart wire passing data between the peripheral and Host ● Direct connection exists between host and peripherals ● Two kinds of Hubs: – Bus Powered Hub: Draws power from the host computers USB interface – Self Powered Hub: Has a built in power supply. USB Architecture - Hubs
  • 78. ● Receive and respond to the commands from the host. E.g. Mice, Keyboard, Joysticks ● Two types of Peripherals – Standalone – Compound Device USB Architecture - Peripherals
  • 79. ● Peripherals connected regardless of the power state ● A pair of wires to supply power to the peripherals ● Manage power by enabling and disabling power to devices ● Removes electrically ill behaved systems from the network USB Power Management
  • 80. ● End point is a unique point in the device which is the source or the receiver of the data ● End point has a definite address associated with it ● Codes indicate the type of transfer ● 16 end points within each device each end point has a 4 bit address ● End point “0” reserved for control transfers USB Communication Overview
  • 81. ● Transactions between the host and end point take place through virtual pipes ● Pipes are logical channels which connect the host to the end points ● Once the communication is established the end points return a descriptor ● Descriptor is a data structure tells the host about the end points configuration and expectations USB Communication Overview
  • 82. USB supports four transfer types of data: ● Control Transfers: – Exchange information such as configuration, command information , set up between host and end point ● Bulk Transfers: – Supports bulk amounts of data when timely delivery isn’t critical. – e.g. Printers and Scanners ● Isochronous transfers: – Handle transfers like streaming data ● Interrupt transfers: – Poll devices to see if they need service USB Communication Overview
  • 83. ● USB 2.0 ● PictBridge Standard to communicate imaging devices ● Microsoft X box console ● IBM Ultraport ● USB 1.0 OTG ● USB 1.0a supplement OTG ● Wireless USB USB Extensions
  • 84. ● USB On-The-Go Technology is used to provide dual role to the peripherals ● Enables direct communication between the hosts without involving the processor ● Incorporates Mini A , Mini B, Mini AB plugs and receptacles ● Highly complex design USB OTG
  • 85. Advantages: ● Provides Dual Role Devices ● Introduces new connector types, Mini A, Mini B, Mini AB ● Provides with Aggressive Power Management On the Go Functionality of the USB can be implemented: ● Using a Full solution Approach ● Using a USB microcontroller ● Designing a custom IC USB OTG
  • 86. ● A Paradigm developed by Cypress that allows devices to be connected but appear as if they are connected to the host over normal USB connectivity ● Addresses many of the Design issues of Wireless networking ● An evolution that relies on familiar and existing technologies ● Desirable for point to point devices ● Features of Wireless USB are its Ease of use, simple connectivity and conservation of the battery power USB Wireless