Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.

Slides:



Advertisements
Similar presentations
Fundamentals of Data & Signals (Part II) School of Business Eastern Illinois University © Abdou Illia, Spring 2015 (February18, 2015)
Advertisements

Chapter 2 Fundamentals of Data and Signals
McGraw-Hill©The McGraw-Hill Companies, Inc., 2000 DATA AND SIGNALS T.Najah Al_Subaie Kingdom of Saudi Arabia Prince Norah bint Abdul Rahman University.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Digital to Analog Many carrier facilities are analog Many transmission media are also analog (microwave, radio) We can carry digital values over analog.
Chapter 3 - Transmission Media Basic Idea Transmission media Copper wires Glass fibers Radio Microwave Infrared Laser Choosing a medium Media in use at.
RS-232 Communications. Why Serial Communications? Serial communication is the most simplistic form of communication between two devices. It’s pretty intuitive.
1 Chapter Four Making Connections. 2 Introduction Connecting peripheral devices to a computer has, in the past, been a fairly challenging task Newer interfaces.
CS335 Networking & Network Administration Tuesday, April 6.
IS250 Spring 2010 Physical Layer IS250 Spring 2010
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
Module 3.0: Data Transmission
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
Reliability and Channel Coding
Chapter 3 Data and Signals
1 Fall 2005 Long Distance Communication Carriers, Modulation, And Modems Qutaibah Malluhi Computer Science and Engineering Qatar University.
Data Communications Chapter 6 The Data Communications Interface.
Alogrithm Analysis 實踐資管 Wang-Jiunn Cheng 2004 Computer Networks (CS422) Douglas Comer Computer Science Department Purdue University West Lafayette, IN.
The Physical Layer: Data Transmission Basics
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
Local Asynchronous Communication
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
331: STUDY DATA COMMUNICATIONS AND NETWORKS.  1. Discuss computer networks (5 hrs)  2. Discuss data communications (15 hrs)
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
Transmission Modes Serial Transmission  One bit is transmitted on a circuit at a time  Usually there is one transmit circuit and one receive circuit.
Chapter 2 Basic Communication Theory Basic Communications Theory w Understand the basic transmission theory, and figure out the maximum data rate. w.
1 Chapter 4-6 Signals, Media, And Data Transmission.
1 Long-Distance Communication. 2 Illustration of a Carrier Carrier –Usually a sine wave –Oscillates continuously –Frequency of carrier fixed.
Review: The application layer. –Network Applications see the network as the abstract provided by the transport layer: Logical full mesh among network end-points.
4/11/40 page 1 Department of Computer Engineering, Kasetsart University Introduction to Computer Communications and Networks CONSYL Transmission.
1 Ch 5 Local Asynchronous Communication (RS-232).
Data Communications Introduction and Review. Transmission Media Copper Wires Copper Wires Low resistance. Electrical signal produces miniature radio station.
1 Ch 6 Long-Distance Communication Carriers, Modulation, and Modems.
Data Transmission The basics of media, signals, bits, carries, and modems (Part III)
Computer Communication & Networks
Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.
02 – Performance Basics 1CS Computer Networks.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
The Principle of Electronic Data Serial and Parallel Data Communication Transmission Rate Bandwidth Bit Rate Parity bits.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
1 Transmission of Digital Data : Interface and Modems.
Channel capacity A very important consideration in data communications is how fast we can send data, in bits per second, over a channel.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
Lecture Focus: Data Communications and Networking  Transmission Impairment Lecture 14 CSCS 311.
1 st semester 1436/  When a signal is transmitted over a communication channel, it is subjected to different types of impairments because of imperfect.
Review: The physical layer. Bandwidth/Capacity bit rate/baud rate How to determine the number of bits per symbol? Relation between the bandwidth and capacity:
CSC 335 Data Communications and Networking Lecture 4b: Communication and Multiplexing Dr. Cheer-Sun Yang.
Transmission Media. Quiz: ANGEL->Lessons->Quiz 2 Figure 1Figure 2 Figure 3Figure 4.
1 CSCD 433 Network Programming Fall 2013 Lecture 5a Digital Line Coding and other...
CSI 4118Fall Part 1.1 Signals, Media, And Data Transmission.
1 Business Telecommunications Data and Computer Communications Chapter 6 The Data Communications Interface.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
COMPUTER NETWORKS Lecture-3 Husnain Sherazi. Review Lecture 2  Resource Sharing  Growth of the Internet – Linear Scale – Log Scale  Tools for Probing.
Powerpoint Templates Computer Communication & Networks Week # 04 1 Lecture only.
Channel Capacity Bandwidth – In cycles per second of Hertz – Constrained by transmitter and medium Data rate – In bits per second – Rate at which data.
1 CSCD 433 Network Programming Fall 2016 Lecture 4 Digital Line Coding and other...
Physical Layer. Data Communications - Physical Layer2 Physical Layer Essence: Provide the means to transmit bits from sender to receiver involves a lot.
William Stallings Data and Computer Communications
RS-232 Communications.
6.1 Communication Methods
Serial Communications
RS-232 Communications.
Local Asynchronous Communication (RS-232)
Fundamentals of Data & Signals (Part II)
Signals, Media, And Data Transmission
Nyquist’s theorem: D = 2BLog2K
Signals, Media, And Data Transmission
Chapter 6 Transmission of Digital Data Interfaces and Modems
William Stallings Data and Computer Communications
Presentation transcript:

Local Asynchronous Communication and RS-232

Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism (RS-232) for sending characters this way Introduce notions of baud rate and bandwidth State the Nyquist Sampling and Shannon’s Theorem

Asynchronous communication Where the receiver does not know when the sender will transmit – transmit when data is ready – variable delays between transmissions – no sender-receiver coordination beforehand E.g., keyboard connected to a computer Technically, the electrical signal does not contain information about where individual bits begin and end

Using electric current to send bits Use a wire to create a circuit between the sender and receiver Negative voltage on the wire could represent a 1 and positive a 0 Waveform diagram shows variable delay

Communication standards Standards ensure that hardware from different vendors can inter-operate – what voltages are used? – how long should a voltage be held? – how rapidly can the voltage change? Standards are published by standards organisations - ITU, ISO etc.

The RS-232 standard To connect keyboards, terminals etc. to computers over copper wire Is concerned with 7-bit characters Details of physical connection (maximum length, plugs and sockets) Electrical details (voltages) Serial communication Asynchronous (for each character)

RS-232 continued Never leaves 0 volts on the wire - an idle line is the same as a 1 bit Sender and receiver agree how long a bit lasts - receiver uses a local timer A 0 start bit signifies the start of a character and is followed by 7 data bits A minimum gap of 1 bit between characters (a phantom stop bit of 1)

Example RS-232 waveform

Baud rate Transmission hardware is rated in baud - the number of signals that are generated per second The baud rate need not be the same as the bit rate, it depends on how many levels of signal are used With RS-232 they are the same

Agreeing the Baud rate Sender and receiver agree on length of time each bit is held => maximum number of bits per second (e.g., 300, 9600, 19200) RS-232 may often have a configurable baud rate (manually or by software)

Framing errors Might occur if the sender and receiver are set to different baud rates Receiver samples the signal several times for each bit to check for differences (framing errors) Used by the break key to send an abort signal

Full duplex communication Two wires required to carry information in one direction (return is a ground) Full duplex is two way communication and needs 3 wires - ground is shared

RS-232 connectors and pins RS-232 uses a 25 pin connector (extra pins for control functions) Computer transmits on pin 2 and receives on 3. Opposite on a modem

A 3 wire RS-232 connection

Universal Serial Bus (USB) Faster serial data communication standard Speeds up to 480 Mbps (USB 2.0) 4-wire cable interface 2 for data, 1 for power, 1 for ground signal Hardware

Limitations of real hardware Hardware cannot instantly change voltage and so imperfect signals must be detectable RS-232 specifies how much tolerance there should be

Hardware bandwidth Hardware cannot change signals instantly => maximum speed at which bits can be sent Bandwidth - maximum frequency of signal that a transmission medium can carry Measured in cycles per sec = Hertz (Hz) Every system (electronic and biological) has a limited bandwidth

Bitrate, Baudrate and Bandwidth Bitrate – how many bits per second are being sent Baudrate – how many signals per second are used to send those bits Bandwidth – the number of signals per second that a medium can accommodate

RS-232 Example How long would the transmission last if bit characters were sent across RS-232 operated at 9600 baud?

The Nyquist Sampling Theorem Theoretical limit on the maximum speed at which data can be sent over an error-free (noiseless) medium: D = data rate in bit per second (bps) B = bandwidth in hertz (hz) For a scheme that uses binary signals (two levels of signal): Date Rate = D = 2B For a scheme that uses K levels of signal D = 2Blog 2 K

Shannon’s Theorem Deals with a noisy medium Signal to noise ratio is the strength of the signal compared to the strength of the noise = S/N The signal to noise ratio is usually expressed in decibels (db) = 10log 10 S/N Maximum data rate on a noisy medium is: D = B log 2 (1 + S/N)

Example  How fast data can be sent across a voice telephone call? Telephone system: – Bandwidth = 3000 Hz – S/N = 30dB D =3000 x 10 ~30000bps

The significance of Nyquist’s and Shannon’s Theorems  Nyquist’s theorem encourages engineers to explore ways to encode bits on a signal. – A clever encoding allows more bits to be transmitted per unit time.  Shannon’s theorem informs engineers that no amount of clever encoding can overcome the laws of physics. – There is a fundamental limit on the number of bits per second that can be transmitted in a realcommunication system.

Summary Local, asynchronous communication The RS-232 standard Baud rate and bandwidth Nyquist’s and Shannon’s theorems