2 - Communications Links Flashcards

1
Q

Features of an asynch serial frame

A
  • Very easy to program
  • Uses EIA-232 interface
  • Low-speed bus at 4800bps
  • Uses ASCII Framed messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Features and data format of GPS Data

A
  • Interface: EIA-232/ EIA-432 or TTL
  • 4800Bps, 8-bits, 1 stop baud, 1 start baud, no parity
  • Frame starts with $GP
  • Values are represented in ASCII and separated by commas.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name and explain the two interfaces provided by GPS equipment.

A

Telemetry Interface
- Uses ASCII, serial link to determine how data is transmitted
- Data is transmitted from one “talker” to multiple “listeners”
- Uses LSB/FIFO encoding
- 8 bits, 1 start baud, 1 stop baud.

NMEA Electrical Interface
- Standard: Uses EIA-422 (Differential Line)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Difference between EIA-422 and EIA-232

A

EIA-422 is differential balanced . While EIA-232 is an unbalanced open line interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain the process of frame synching.
Give an example

A

1) Data is grouped into frames
- This allows the receiver to make sense of the received data

2) A method is implemented to align to the start of each frame.
- A frame alignment word is usually sent at the start of a frame

Example:
NMEA Frame synch: $GP at the start of the frame.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What causes a transmission error and how to detect them?

A
  • Bits are corrupted by noise during transmission
    This causes the value to change

Integrity Checks
- Character Parity
- Cyclic Redundancy Check
- Longitudinal Parity Checksum
- Longitudinal Arithmetic Checksum

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is an Integrity Check?

A
  • Verifies the integrity of individual bytes ( byte = 8 bits) and is inserted before the stop bauds.
  • The parity bit is calculated.
    Types of Parity:
    Odd Parity - ODD no.1s -> parity bit = 1
    Even Parity - EVEN no.1s -> parity bit = 1
  • The receiver and the sender need to be configured to use the same type of parity .
  • The parity bit of the sender and the receiver are compared
    match = no error
    no match = transmission error, this causes an error flag to be raised in the UART
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Longitudinal parity check?

A

Method:
- For each position ( i = 0 to 7) calculate the XOR sum of all bits and place in position i.
This provides an independent check for each position

  • The accumulated checksum is an 8-bit value

PROBLEM:
- It verifies if the whole frame is correct.
But, cannot identify the corrupted bit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Problems with longitudinal parity checksum?

A
  • Cannot identify which bit is corrupted
  • Does not detect even errors
    e.g.) if 2 bits are corrupted the parity remains the same, therefore there is no error detected.
  • There is no standard method in the NMEA protocol to ask for retransmission after an error has been detected.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain Longitudinal Arithmetic checksum

A
  • More powerful than Longitudinal parity checksum, as it can detect even errors.
  • Instead of the XOR operation, an ADD operation is implemented. Bytes in a frame are added
  • Problem here: Addition may generate a carry, so error in MSB is not detected..

Solution: Most LAC add sum of all carry bits to LSB.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Exaplain CRC

A
  • This is a cyclic redundant check that detects errors in received data.
  • Bytes of data are grouped into a block and a CRC is calculated.
  • CRC: Modulo-2 division of the data by a polynomial
    Remainder = checksum

Only field in which the convention is MSB First

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Draw the basic state diagram

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Draw the receiver state diagram

A

Refer to notes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Suggest a way of improving frame alignments

A
  • Use a longer frame alignment word that is unlikely to appear in data.
  • check several times before the receiver is in-synchronisation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Features of an ideal channel

A
  • Infinite bandwidth
  • Noiseless
How well did you know this?
1
Not at all
2
3
4
5
Perfectly