Top Banner
Flex Ray: Coding and Decoding, Media Access Control, Frame and Symbol Processing Seminar: The FlexRay Communication Protocol Chair of Prof. Dr. W. J. Paul Talk by Michael Gerke 27-9-2005
64

Flex Ray: Coding and Decoding, Media Access Control, Frame and

Feb 17, 2022

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Flex Ray: Coding and Decoding, Media Access Control,

Frame and Symbol Processing

Seminar: The FlexRay Communication Protocol

Chair of Prof. Dr. W. J. Paul

Talk by Michael Gerke

27-9-2005

Page 2: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Overview

Coding and decoding (CODEC)

Media access control (MAC)

Frame and symbol

processing (FSP)

Bus

Page 3: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Media access control (MAC)

• Interface:

from Controller host interface (Host) to Coding and decoding (CODEC)

• Controls timing

• Orders ENC to sent symbols

Page 4: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Media access control (MAC)• Controls access to the channels

• Guarantees compliance with schedule

time organization

Staticsegment

Dynamicsegment

Symbolwindow

Network idle time

static slotstatic slot

Communication cycle

Page 5: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Media access control (MAC)

Static slot usage:- short idle time

- transfer of the frame

- long idle time

Page 6: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Media access control (MAC)

Assembles frames:

- imports data from controller host interface (Host)

- assembles header

Page 7: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Coding and Decoding

Bit strobing

Encoding Decoding Wakeup symbol decoding

Channel idle

Bus

Page 8: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

1

Transmissionstart

sequenceTSS

Page 9: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Page 10: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Page 11: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

Byte

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Page 12: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

Byte

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Bytestart

sequenceBSS

Page 13: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

Byte

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Bytestart

sequenceBSS

Byte

Page 14: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

Byte

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Bytestart

sequenceBSS

Byte

Frameend

sequenceFES

Page 15: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Frames

Frame coding in static segment

0

Byte

1

Transmissionstart

sequenceTSS

Framestart

sequenceFSS

Bytestart

sequenceBSS

Bytestart

sequenceBSS

Byte

Frameend

sequenceFES

Page 16: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Encoding (ENC)Symbols

Collision avoidance and

media access test symbol (CAS/MTS):

TSS+030

Wakeup symbol (WUS):

015-60+idle45-180

sent in a wakeup pattern (WUP): WUS2-63

Page 17: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing (BITSTRB)

• Takes 8 samples of every bit

• Majority voting over last 5 bit samples

• Selects 1 sample out of 8

• Low level synchronization

Page 18: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Majority votingMajority voting over last 5 bit samples

0

1

11111voting window 1 voted value

0

1

voted value

from BUS

Page 19: Flex Ray: Coding and Decoding, Media Access Control, Frame and

11110voting window 1 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 20: Flex Ray: Coding and Decoding, Media Access Control, Frame and

11100voting window 1 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 21: Flex Ray: Coding and Decoding, Media Access Control, Frame and

11000voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 22: Flex Ray: Coding and Decoding, Media Access Control, Frame and

11000voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

Voting delay0

1

0

1

voted value

from BUS

Page 23: Flex Ray: Coding and Decoding, Media Access Control, Frame and

10000voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 24: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00000voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 25: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00001voting window 0 voted value

Majority voting over last 5 bit samples

glitch

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 26: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00010voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

glitch

0

1

0

1

voted value

from BUS

Page 27: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00100voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

glitch

0

1

0

1

voted value

from BUS

Page 28: Flex Ray: Coding and Decoding, Media Access Control, Frame and

01000voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

glitch

0

1

0

1

voted value

from BUS

Page 29: Flex Ray: Coding and Decoding, Media Access Control, Frame and

10001voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

glitch

0

1

0

1

voted value

from BUS

Page 30: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00011voting window 0 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 31: Flex Ray: Coding and Decoding, Media Access Control, Frame and

00111voting window 1 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 32: Flex Ray: Coding and Decoding, Media Access Control, Frame and

01111voting window 1 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 33: Flex Ray: Coding and Decoding, Media Access Control, Frame and

11111voting window 1 voted value

Majority voting over last 5 bit samples

Bit strobing: Majority voting

0

1

0

1

voted value

from BUS

Page 34: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Strobing• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

0

1

voted value

Page 35: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

0

1

voted value

Strobecounter:

1

1

Bit strobing: Strobing

Page 36: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

2

1 2

Bit strobing: Strobing

0

1

Page 37: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

3

1 2 3

Bit strobing: Strobing

0

1

Page 38: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

4

1 2 3 4

Bit strobing: Strobing

0

1

Page 39: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

5

1 2 3 4 5

Bit strobing: Strobing

0

1

Page 40: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

5

1 2 3 4 5

Bit strobed: 0

Bit strobing: Strobing

0

1

Page 41: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

6

1 2 3 4 5 6

Bit strobing: Strobing

0

1

Page 42: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

7

1 2 3 4 5 6 7

Bit strobing: Strobing

0

1

Page 43: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

8

1 2 3 4 5 6 7 8

Bit strobing: Strobing

0

1

Page 44: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

1

1 2 3 4 5 6 7 8 1

Bit strobing: Strobing

0

1

Page 45: Flex Ray: Coding and Decoding, Media Access Control, Frame and

• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

1

1 2 3 4 5 6 7

BSS

8 1

Bit strobing: Synchronization

0

1

Page 46: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

2

1 2 3 4 5 6 7

BSS

8 1 2

0

1

Page 47: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

3

1 2 3 4 5 6 7

BSS

8 1 2 3

0

1

Page 48: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

4

1 2 3 4 5 6 7

BSS

8 1 2 3 4

0

1

Page 49: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

5

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5

0

1

Page 50: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

6

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6

0

1

Page 51: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

1

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

0

1

Page 52: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

2

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2

0

1

Page 53: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

3

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3

0

1

Page 54: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

4

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4

0

1

Page 55: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

5

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4 5

0

1

Page 56: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

6

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4 5 6

0

1

Page 57: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

7

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4 5 6 7

0

1

Page 58: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

8

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4 5 6 7 8

0

1

Page 59: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Bit strobing: Synchronization• Every 5th sample out of the 8 samples „strobed“

• Low-level synchronization of strobecounter in BSS

voted value

Strobecounter:

1

1 2 3 4 5 6 7

BSS

8 1 2 3 4 5 6 1

sync edge

2 3 4 5 6 7 8 1

start of byte

0

1

Page 60: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Wakeup symbol decoding (WUSDEC)

• Waits for a WUP like pattern:

0x+1y+0x

produced by two consecutive WUS

• Reports to protocol operation control(POC)

Page 61: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Channel idle (IDET)

Whenever 111 is received,

a channel idle recognition point (CHIRP)

is reported.

Page 62: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Decoding (DEC)• Handles reception of CAS/MTS and frames

• Interface from BITSTRB to FSP and POC

• Checks for errors Frames:- reassembles the message

- checks format

- checks CRC (frame “fingerprint”)

CAS/MTS:- checks length of

LOW signal

Page 63: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Frame and symbol processing (FSP)

• Interface from DEC to Host

• Controls integrity of communication:- Checks for appropriate segment- Checks length of communication elements- Checks for correct header

• Reports errors

• Dismantles frame and passes on the payload

Page 64: Flex Ray: Coding and Decoding, Media Access Control, Frame and

Questions?

Coding and decoding (CODEC)

Media access control (MAC)

Frame and symbol

processing (FSP)

Bus