Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard.

Slides:



Advertisements
Similar presentations
Serial Interface Dr. Esam Al_Qaralleh CE Department
Advertisements

DATA COMMUNICATIONS Some organisations concerned with standards: EIA - Electroonic Industries Association (RS standards including RS-232) IEEE - Institute.
Data Communication Topics to be discussed:  Data Communication Terminology.  Data Transmission Signals.  Data Transmission Circuits.  Serial & Parallel.
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
Local Asynchronous Communication and RS-232. Goals Explain how electric current can be used to transmit bits over short distances Present a popular mechanism.
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.
Transmission of Digital Data: Interfaces and Modems NETE 0510 Dr.Apichan Kanjanavapastit.
1 Chapter Four Making Connections. 2 Introduction Connecting peripheral devices to a computer has, in the past, been a fairly challenging task Newer interfaces.
Chapter 3 Data and Signals
1 Rick Graziani Local Asynchronous Communications (RS-232)
CS335 Networking & Network Administration Tuesday, April 6.
© 2007 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets with Internet Applications, 4e By Douglas.
CSCI 4550/8556 Computer Networks Comer, Chapter 5: Local Asynchronous Communication (RS-232)
Computer Networks and Internets, 5e By Douglas E. Comer
COMP3221: Microprocessors and Embedded Systems
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
1 Fall 2005 Long Distance Communication Carriers, Modulation, And Modems Qutaibah Malluhi Computer Science and Engineering Qatar University.
Alogrithm Analysis 實踐資管 Wang-Jiunn Cheng 2004 Computer Networks (CS422) Douglas Comer Computer Science Department Purdue University West Lafayette, IN.
ECE 371- Unit 11 Introduction to Serial I/O. TWO MAJOR CLASSES OF SERIAL DATA INTERFACES ASYNCHRONOUS SERIAL I/O - USES “FRAMING BITS” (START BIT AND.
Local Asynchronous Communication
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
University of Tehran 1 Interface Design Serial Communications Omid Fatemi.
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.
Computers in Surveying SVY2301 / E4006 Automated Surveying.
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.
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)
Universal Synchronous/Asynchronous Receiver/Transmitter (USART)
Line Coding, Modem, RS232 interfacing sequences.
Universal Asynchronous Receiver/Transmitter (UART)
Advanced Embedded Systems Design Lecture 8 Serial I/O BAE Fall 2004 Instructor: Marvin Stone Biosystems and Agricultural Engineering Oklahoma.
Scott Baker Will Cross Belinda Frieri March 9 th, 2005 Serial Communication Overview ME4447/6405.
Computer Communication & Networks Lecture # 05 Physical Layer: Signals & Digital Transmission Nadeem Majeed Choudhary
ECS 152A 4. Communications Techniques. Asynchronous and Synchronous Transmission Timing problems require a mechanism to synchronize the transmitter and.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
© 2009 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved.1 Computer Networks and Internets, 5e By Douglas E. Comer Lecture PowerPoints.
Interfaces and Synchronization Martin Weiss. EIA 232D Interface Standard u Synonymous with ITU V.24 u Asynchronous interface u Up to 19.2kbps u 50 foot.
1 Transmission of Digital Data : Interface and Modems.
AS Computing Data transmission. Basic data transmission Baud The rate that the voltage changes is called the Baud. If the voltage changes 10 times every.
Digital Interfaces An interface links two devices Interface Standards define: – mechanical specifications - how many wires & connector type –electrical.
FUNDAMENTALS OF NETWORKING
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.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
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.
COMPUTER NETWORKS CS610 Lecture-3 Hammad Khalid Khan.
William Stallings Data and Computer Communications
RS-232 Communications.
RS-232 Communications.
Local Asynchronous Communication (RS-232)
Asynchronous Serial Communications
Signals, Media, And Data Transmission
Nyquist’s theorem: D = 2BLog2K
Signals, Media, And Data Transmission
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Chapter 6 Transmission of Digital Data Interfaces and Modems
William Stallings Data and Computer Communications
Presentation transcript:

Chapter 5: Local Asynchronous Communication 1. Bit-wise data transmission 2. Asynchronous communication 3. Sending bits with electric current 4. Standard of Asynchronous communication 5. Transmission rates & measurement 6. Framing 7. Limitations of hardware 8. Bandwidth 9. Noise & data transmission

Bit-wise data transmission Data transmission requires: – Encoding bits as energy – Transmitting energy through medium – Decoding energy back into bits Energy can be electric current, radio, infrared, light Transmitter and receiver must agree on encoding scheme and transmission timing

Asynchronous communication One definition of asynchronous: transmitter and receiver do not explicitly coordinate each data transmission –Transmitter can wait arbitrarily long between transmissions –Used, for example, when transmitter such as a keyboard may not always have data ready to send Asynchronous may also mean no explicit information about where data bits begin and end data are sent at irregular intervals - not at predetermined intervals.

Using electric current to send bits Simple idea - use varying voltages to represent 1s and 0s One common encoding use negative voltage for 1 and positive voltage for 0 Waveform diagram (signal varies over time), transmitter puts positive voltage on line for 0 and negative voltage on line for 1

Transmission timing Encoding scheme leaves several questions unanswered: – How long will voltage last for each bit? – How soon will next bit start? – How will the transmitter and receiver agree on timing? Standards specify operation of communication systems – Devices from different vendors that adhere to the standard can interoperate – Example organizations: International Telecommunications Union (ITU) Electronic Industries Association (EIA) Institute for Electrical and Electronics Engineers (IEEE)

RS-232 Standard for transfer of characters across copper wire Produced by EIA Full name is RS-232-C RS-232 defines serial, asynchronous communication –Serial - bits are encoded and transmitted one at a time (as opposed to parallel transmission) –Asynchronous - characters can be sent at any time and bits are not individually synchronized

Details of RS-232 Components of standard: –Connection must be less than 50 feet –Specifies transmission of characters between, e.g., a terminal and a modem –Data represented by voltages between +15v and -15v –25-pin connector, with specific signals such as data, ground and control assigned to designated pins Transmitter never leaves wire at 0v; when idle, transmitter puts negative voltage (a 1) on the wire

RS-232 wiring and connectors

Identifying asynchronous characters Transmitter indicates start of next character by transmitting a zero – Receiver can detect transition as start of character – Extra zero called the start bit Transmitter must leave wire idle so receiver can detect transition marking beginning of next character – Transmitter sends a one after each character – Extra one call the stop bit Thus, character represented by 7 data bits requires transmission of 9 bits across the wire RS-232 terminology: – MARK is a negative voltage (= 1) – SPACE is a positive voltage (= 0)

Timing Transmitter and receiver must agree on timing of each bit Agreement accomplished by choosing transmission rate – Measured in bits per second – Detection of start bit indicates to receiver when subsequent bits will arrive Hardware can usually be configured to select matching bit rates – Switch settings – Software – Autodetection

Measures of transmission rates Baud rate measures number of signal changes per second Bits per second measures number of bits transmitted per second If each signal change represents more than one bit, bits per second may be greater than baud rate

Framing Start and stop bits represent framing of each character If transmitter and receiver are using different speeds, stop bit will not be received at the expected time - framing error occurs framing error also occurs transmitter’s and receiver’s voltage do not agree RS-232 devices may send an intentional framing error called a BREAK - reset wire to zero state

Full-duplex Communication Two endpoints may send data simultaneously - full-duplex communication simplex - one direction only half-duplex - both directions but not at the same time Requires an electrical path in each direction

RS-232 connection standards RS-232 specifies use of 25 pin connector (DB-25) Pins are assigned for use as data, ground and control: – Pin 2 - Receive (RxD) – Pin 3 - Transmit (TxD) – Pin 4 - Ready to send (RTS) – Pin 5 - Clear to send (CTS) – Pin 7 - Ground

Limitations of real hardware Effects of wire mean waveforms look like: Longer wire, external interference may make signal look even worse RS-232 standard specifies how precise a waveform the transmitter must generate, and how tolerant the receiver must be of imprecise waveform

Hardware bandwidth Limitations on time to change voltages imposes upper limit on number of changes per second Theoretical upper limit is called the bandwidth (max rate of signal change) fastest oscillating signal that can be sent across a hardware Measured in cycles per second or Hertz Eg cycles per sec or 3000 Herz

Bandwidth and data transmission Nyquist sampling theorem expresses relationship between bandwidth (Hz) and maximum data transmission speed (bits per sec) In general, for system using K different states (K different voltage level), maximum data transmission speed (max. data rate) is 2Blog 2 K For RS-232, using two voltages, with bandwidth B, the maximum speed over medium is 2B

Effect of Noise In practice, noise (interference) limits maximum data transmission rate to less than maximum allowed by Nyquist sampling theorem; Claude Shannon Max data rate (taking noise into consideration): C= Blog 2 (1 +S/N); B : Bandwidth; S: Average Signal power;N: Average Noise power less interference (noise) means a higher data transmission rate higher capacity (C) if signal-to-noise ratio (S/N) is higher Sometime expressed as 10log 10 (S/N); Nyquist - absolute limitation Shannon - engineering limitation

Summary Asynchronous communication - data can start at any time; individual bits not delineated RS EIA standard for asynchronous character transmission Characters per second and baud rate Bandwidth limits maximum data transmission rate