Вы находитесь на странице: 1из 17

Lecture 1

Data Communication and Media

m
o

c
.
s
Concept and Model of Communications
r
e
e
Analogy Signal and Digital n
Signal
i and Bandwidth
Signal Frequency, Spectrum
g
n
System FrequencyE
Response and Bandwidth
O
Transmissiono
Media and Types
D Modes
a
Transmission
a
F & Serial Transmission
- Parallel
- Asynchronous & Synchronous Transmissions
- Simplex & Duplex Transmission

Communication Standards: RS/EIA-232 & Others

Lecture 1

Concept and Model of Communications


General Communications: face-to-face conversation, write a letter, etc.
Electronic Communications: telephone, wireless phone, TV, radar, etc.

m
o

c
.
Our Focus Computer Communication
s
r
e
e
General Communication Model in
g
n
S(t)
T(t) Transmission
T (t)
S (t)
E
Source
Transmitter
Receiver
Destination
O
System
o
D
a
a
F
r

Microphone
Telephone
Computer
Scanner

Transformer
Encoder
Compress
Modulator

Line/Cable
Fiber/Air
Satellite
Network

Transformer
Decoder
Uncompress
Demodulator

Speaker
Earphone
Computer
Printer

Basic Communication Criteria: Performance, Reliability, Security

Lecture 1

Analogy Signal and Digital Signal


Information must be converted into
electrical energy, called signal, before transmission.

m
o

c
.
rs

s(t) voltage

Text, voice
Video, etc

Converter
Encoder

Digital

n
i
g

ee

Text, voice
Video, etc

n
E

O
o

Analog

D General
a
a Communication

Input Signal s(t)

Signal Power: s (t)


Signal Energy:

s 2(t)dt

Component H()
Digital-to-Digital
Analogy-to-Digital
Digital-to-Analogy
Analogy-to-Analogy

Digital Signal

s(t) voltage

t
Analogy Signal

Output Signal o(t) =H[s(t)]

Lecture 1

Signal Frequency, Spectrum and Bandwidth


Signal in time domain
s(t)

cos2f1t

Transformation

Periodic

t
T
period

s(t)

s(t)

c
.
rs

T=1/f1

e
e
in

f: frequency

g
n

S(f)

1,

Digital Signal

S(f)=s(t)e

-j2f

f1
A

Aperiodic

Analogy Signal

m
o

S(f)

E
s(t)=Acos2f t + Bcos2f t T=LCM(1/f
1/f )
O
o
D
a
a
F t Fourier Transform
1

Signal in frequency domain


Spectrum

df

f1

f2

S(f)

S(f)

Bandwidth

Bandwidth

Lecture 1

Time-Frequency Relation and Signal Bandwidth


General Relations:
Time Domain
Change Slow
Change Fast

Frequency Domain
Low Frequency
High Frequency

m
o

Signal Bandwidth
small
large

e
e
in

c
.
rs

Frequency Unit: Hertz (Hz), Kilohertz (KHz), Megahertz (MHz), Gigahertz (GHz), Terahertz (THz)

g
n

Earthquake wave: 0.01 ~ 10 Hz


Nuclear explosion signal: 0.01 ~ 10 Hz
Electrocardiogram (ECG): 0 ~ 100 Hz
Wind noise: 100 ~ 1000 Hz
Speech: 100 ~ 4000 Hz (4 KHz)
Audio: 20 ~ 20000 Hz (20 KHz)
NTSC TV: 6 MHz
HDTV: > 10 MHz

E
O

a
a
F

o
D

Lecture 1

System Frequency Response & Bandwidth


Input Signal x(t)
Input Spectrum:
X(f)

m
o

Output Signal y(t) =H[x(t)]

c
.
s
Output
Spectrum: Y(f)
r
ee

System: H()

n
i
g

System Frequency Response: H(f) = Y(f)/X(f)


H(f)

n
E

O
o

D
a
a System Bandwidth

Signal can pass


Signal cant pass

Lecture 1

Transmission Media

m
o

A transmission medium: - a connection between a sender and a receiver


- a signal can pass but with attenuation/distortion
- a special system with a transmission bandwidth

c
.
rs

Guided (Wired) Media

e
e
Unguided
(Wireless) Media
n
i (air, vacuum, water, etc.)
g
n

(lines)
- Twisted pair (0~10MHz)
- Coaxial cable (100K~500MHz)
- Optical fiber (180~370THz)

E
O

a
a
F

o
D

LF (30~300KHz, Navigation)
MF/HF (300~3000KHz, AM/SW radio)
VHF (30~300MHz, TV & FM radio)
UHF (0.3~3GHz, TV, mobile phone)
SHF (3~30GHz, satellite, microwave)
EHF (30~300GHz, experimental com.
Infrared (no frequency allocation)

Lecture 1

Frequency and Spectrum


ISM band

m
o

902 928 Mhz

c
.
rs

2.4 2.4835 Ghz

LF
30kHz
10km

MF

VHF

HF

300kHz
1km

3MHz

30MHz

100m

10m

1 kHz

1 MHz

1m

ee

n
i
g

300MHz

n
E

O
o

D
a
a

UHF

5.725 5.785 Ghz

SHF

3GHz

EHF

30GHz

300GHz

1cm

100mm

10cm

X rays
infrared visible UV
1 GHz

1 THz

1 PHz

Gamma rays
1 EHz

Propagation characteristics are different in each frequency band

Lecture 1

Parallel Transmission and Serial Transmission


011000110111010111
Segment the 0/1
stream into
N bits groups
N

Sender

Parallel Transmission

Sender

e
e
in

Serial Transmission
g
n

E
O

aa

o
D

Receiver

Sender

0
1
1
0
0
0
1

0110001

P/S converter

7 (N) bits are sent together


7 (N) lines are needed

m
o

c
.
rs

0100 0110 1110 1011

0
1
1
0
0
0
1

Receiver

0
1
1
0 Receiver
0
0
1

S/P converter

7 (N) bits are sent one after another


Only 1 line is needed

Lecture 1

Asynchronous and Synchronous Transmission


Timing or synchronization between a sender and a receiver is very important for data transmission

m
o

Asynchronous transmission:
1)
2)
3)
4)

c
.
rs

A bit stream is segmented into small groups characters (5~8 bits)


Add a start bit (0) and a stop bit (1) at the beginning and end of each character
Frame= start_bit+character+stop_bit (7~10 bits), but 2/9~2/10 no real data
Arbitrary long gap between two characters or frames
Sender

g
n

e
e
in

1 0110001 0

1 1001100 0

E
O

o
D

1 0011101 0 1 1011100 0

Receiver

independent

Synchronous transmission:
1)
2)
3)
4)

a
a
F

A bit stream is segmented into relative large groups/blocks many characters or bytes
Add control bits at the beginning and end of each block
Frame=H_control_bits+character+T_control_bits
No gap between two characters in a data block
Sender

Con_bits 0110001

...

0110001 1001100 0011101 1011100 Con_bits


synchronized

Receiver

Lecture 1

Simplex Transmission and Duplex Transmission


Simplex
Transmission

Half Duplex
Transmission

c
.
s

Device A

r
e

Device B

One can send and the other can receive

e
in

g
n

Direction of data at time 1

E
O

Device A

Device B

o
D

a
a
F
Full Duplex
Transmission

m
o

Direction of data

Direction of data at time 2


Both can send and receive but in different time

Direction of data all the time

Device A

Device B
Both can send and receive simultaneously

Lecture 1
Communication Standards and Related Organizations

m
o

Communications need standards for inter-operations of different devices

c
.
rs

e
e
- ISO (International Standards Organization): ISO number
n
i
- ITU (International Telecommunication
Union): V.num & X.num
g
- EIA (Electronic Industries Association):
EIA-num
n
E
- IEEE (Institute of Electronics
Engineers): IEEE.num
O
- ANSI (American National
Standards Institute): ASCII, etc.
o
D
- ATM Forum and ATM
Consortium
a
- IETF (Internet
Society and Internet Engineering Task Force): RFC num
a
F Wide Web Consortium): HTTP, HTML, XML,
- W3C (World

Standard Organizations:

- WAP Forum (Wireless Application Protocol): WAP-num

Lecture 1

Serial & Asynchronous Transmission Standards


Standards of transmission in short distance:
- EIA-232 or RS-232
- V.24
- ISO 2110
- EIA-449/RS-422/RS-423
- EIA-530
- X.21

m
o

c
.
rs

e
e
in

g
n

E
O

o
D features
Their common
a
- Serial
& asynchronous transmission
a
-F
Transmissions of ASCII code, byte, char

- Use twisted copper lines


- Low speed: several Kbits ~ Mbits per second
- Short distance: < several tens of meters

Lecture 1

EIA/RS-232 Standard
Waveform of +, 2B or 0101101

m
o

c
.
rs

e
e
in

g
n

Device A

E
O

a
a
F

o
D

Device B

Transmit characters (7 or 8 bits)


0 +15v and 1 -15v in a sender
0 (+3v, +15v) and 1 (-3v, -15v), otherwise error
Start bit (0) and stop bit (1) for every character 9/10 bits in total
A sender never leaves wire at 0v; when idle, puts 15v, i.e., 1

Lecture 1

EIA/RS-232 Standard (cont.)


Agreement of transmission timing or rate (bps bits per second)
- 300bps, 2.4Kbps, 4.8Kbps, , 19.2Kbps, 33.6Kbps, 56Kbps
Setting bit rates of devices/hardware
- switch (manually), software, auto-detection
Either simplex or duplex

m
o

c
.
rs

e
e
in

g
n

E
O

o
D

a
a
F

T: Transmitter R: Receiver G: Ground

Lecture 1

EIA/RS-232 and Other Standards


EIA-232: rate<64Kbps; connection length< 15 meters; 25 pin connector
- pin 2: receive (RxD); pin 3: transmit (TxD); pin 7: groud
- other pins for transmission control
EIA-449: rate<10Mbps; connection length< 12 meters; 37/9 pin connector
EIA-530: same as the above; 25 pin connector
X.21: 64/192 Kbps (N-ISDN rate); 15/8 pin connector

m
o

c
.
rs

e
e
in

g
n

E
O

a
a
F

o
D

Exercise 1
1. Two signals are given in the following figures. Whose bandwidth is large? Why?
s(t)

m
o

s(t)

(a)

ee

c
.
rs

n
i
g

(b)

n
E

2. Draw the RS-232 waveform diagrams of ASCII letters of R (1010010) and S (1110011).

O
o

3. Give at least one example for each of the following transmission/communication modes:
parallel transmission, serial transmission, simplex transmission and duplex transmission.

D
a
a

4. Suppose one sent 10000 7bit characters across an EIA-232 or RS-232 connection that
operated at 9600 bps. How long will the minimum transmission time be required?
(Hint: remember to add a start bit and a stop bit on each character.)

Вам также может понравиться