Communications How to get something to almost talk to something else Raffi Krikorian MAS.863 1 December 2003.

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Lecture 8: Serial Interfaces
1 Fall 2005 Local Serial Asynchronous Communication Qutaibah Malluhi Computer Science and Engineering Qatar University.
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Csc333 Data communication & Networking Credit: 2.
Networks and Stuff Networks and wiring ‘em. Networks n Connecting things together n Can be: –Computers –Embedded devices –Telephones –Radios –TV’s –Anything!
Wireless and going mobile Browsing via low energy photons.
Network Data Organizational Communications and Technologies Prithvi N. Rao Carnegie Mellon University Web:
EET Advanced Digital Chapter 21 Serial Ports.
Learning Outcomes  Know the basic components of a network  Know data transmission methods, including types of signals, modulation, demodulation, and.
Input/Output and Communication
Infrared (IR) Communication. CSE 477 Winter 1999Introduction2/44 Light Spectrum Implementation costs rise significantly around 1-10 GHz. (But one important.
Serial Communications Standards (Partly Excerpted from Simpl Primer) Cabling Configuration Protocol.
Local Asynchronous Communications. Bit-wise data transmission Data transmission requires: Encoding bits as energy Transmitting energy through medium Decoding.
1 Computer Networks Course: CIS 3003 Fundamental of Information Technology.
INPUT-OUTPUT ORGANIZATION
Embedded Systems Design
Network Hardware for Expanding Network. Expanding Networks When do we need expansion:  Network cable is full of data movements  Printing tasks needs.
Technology Training that Works Hands of Data Communications, Networking & TCP/IP Troubleshooting.
USART Communication using the RS standard ETEC6416.
Serial Communication ETEC 6416.
3.3) Transmitting and Receiving. Different concepts covered include: transmission of data protocols handshaking networks and their topologies network.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
AS Computing F451 F451 Data Transmission. What data is transmitted? Phone SMS Radio TV Internet.
Wireless Sensor Monitoring Group Members: Daniel Eke (COMPE) Brian Reilly (ECE) Steven Shih (ECE) Sponsored by:
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
1 Computer Communication & Networks Lecture 13 Datalink Layer: Local Area Network Waleed Ejaz
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
Communication Technology in a Changing World Week 3.
Universal Asynchronous Receiver/Transmitter (UART)
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Huda AL-Omair_ networks61 Wide Area Network. Huda AL-Omair_ networks62 What is a WAN? Wide area network or WAN is a computer network covering a wide geographical.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
Networks. Common Xmit Media Shared Media Networks are a shared communication resource Only one user can access at a time.
1 6 Further System Fundamentals (HL) 6.4 Further Network Fundamentals.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
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.
Modems How They Work. Modem A device used by a PC to communicate over a phone line or cable A device used by a PC to communicate over a phone line or.
Robocon 2007, Hong Kong University of Science & Technology Robocon 2007 Electronics Quickstart! Session 4 Communication Prepared by KI Chi Keung [chikeung.
FUNDAMENTALS OF NETWORKING
Slide #1 CIT 380: Securing Computer Systems TCP/IP.
Unit 1 Lecture 4.
1 Chapter Overview Modems The Internet and Web Browsers.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Networks Are you Wired?. Networking A network is defined as two or more computers connected together –Peer-to-peer when a server is not involved. –Client-server.
Serial Communications
Network Hardware for Expanding Network
MODEMS (Converts analog signals to digital and vice-versa)
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
6.1 Communication Methods
OSI Protocol Stack Given the post man exemple.
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Ken Gunnells, Ph.D. - Networking Paul Crigler - Programming
Communication Lines Fundamentals.
CS 457 – Lecture 6 Ethernet Spring 2012.
Data Transmission and Computer Communications ECE: 412
Lecture 4 Continuation of transmission basics Chapter 3, pages 75-96
Asynchronous Serial Communications
Data Link Issues Relates to Lab 2.
Serial Communication Interface: Using 8251
Network Protocol Layers
Protocol layering and data
Lecture 8: Modems (Converts analog signals to digital and vice-versa) 1nd semester By: Adal ALashban.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
Protocol layering and data
Serial Communications
Presentation transcript:

Communications How to get something to almost talk to something else Raffi Krikorian MAS December 2003

Getting stuff from A to B Over wires –Traces on a PCB, wire from peripheral to computer… Over the air –Optical pules, radio waves… Inter-media –Putting it all together

Over wires

Wiring two PICs together (v1.0) Parallel connection As many wires as “simultaneous” bits To transmit a 0xF, bring the lower four wires high, & the rest low

Wiring two PICs together (v2.0) Serial connection Using minimal number of wires to transmit “in time” To transmit 0xF (low bit first), send high for 4 time units, then 4 low

Parallel vs. Serial Really fast Usage of large numbers of pins –Requires bigger ICs Large number of wires/traces –Space requirements on board (imagine modella) –Large bundle of wires if off board Minimum number of pins (1 to 3) and wires Requires inter-device agreements and synchronization –Speed (baud rate) –Bit framing Requires extra software or hardware (USART)

Synchronous Serial Clock on one wire, and synchronized data on other Usually used to connect microcontrollers/processors to peripherals SPI (Serial Peripheral Interface) -- 1 wire for each dir + 1 clock wire I2C (Inter IC) -- 1 wire for bidirectional data (direction is handled by protocol) + 1 clock wire

Asynchronous Serial Remove the clock wire Need way to synchronize clocks due to clock drift –Agree on a speed –Use start bit to start running clocks –Transmit/Receive data –Stop clocks

Asynchronous Serial Framing Agree on how the bytes/bits are to be sent 8N1 : 8 data bits, no parity bit, 1 stop bit –Parity bits are the check against error –Stop bit indicate how long the line has to be quiet between bytes Transmit least significant bit (LSB) first –Above transmitting b’ ’

Serial standards and ICs RS-232 –MAX202 (pref. 203) –12V levels –15m max cable length –P2P between devices RS-485 –LTC1481 –5V differential signals –Kms max cable length –Can be used as multi- drop between devices

Serial from the IC Hardware USART good –PIC16F876 has it built in Can use external peripheral –and use some other wired communication from microcontroller/processor to peripheral) “Bit bang” the serial line –Rely on a compiler to do this work

USB Universal Serial Bus 12 Mbit/sec 5m cable length Use –Have USB ICs –Premade boards that have a parallel (DLP- USB245M) and serial (DLP-USB232M) interface that convert to USB

Over the air

Radio Modulate a carrier frequency with data –AM modulation takes a carrier frequency and plays with its amplitude –FM plays with the instantaneous frequency of the carrier AM is relatively simple –but most “natural noise” is AM

Don’t build a radio! Get a chip and just send serial data Nordic VLSI nRF401 –Single chip 433MHz – meters Texas Instruments TRF6900 –Mostly single chip 900MHz – meters rfPIC Microcontrollers –PIC with built in FM transmitters

Infra-red Use IR transmitter (diode) and IR receiver (photoresistor) Hook it up like a LED and just turn it on and off Problems with surrounding noise and base illumination levels

Don’t rebuild IrDA! Unless you are doing something really simple –Hook IR transceiver to a USART MAX3120 –Single chip IRDA modulator : hook one end to USART other end to IR transceiver –115 1 m

802.11b Wireless LAN –2.4 GHz –Internet Protocol based radio –11 30 m Spoof a PCMCIA bus and just wire yourself into a Orinoco Gold card –Saves you from having to get the analogs right IOSoft b development kit for the PIC –

Inter-media

Internet Protocol Unreliable packet based protocol IPv4 = RFC791 Addressing –IPv4 addresses are 4 bytes wide –Obtain address either statically or via DHCP –Not necessarily globally unique due to NAT (waiting for IPv6) Routing

IPv4 packet The beginning of every IP packet starts with 20 bytes of this header (the options and the padding are optional) “Data” immediately precedes this header

User Datagram Protocol (RFC768) Unreliable packet layer on top of IP UDP allows for fast access to send packets –Packets are small –Packets are “one-offs”, you send the bytes and are done No flow control, no congestion control, no guarantees Trivial as an implementation

Transmission Control Protocol (RFC793) Creates a virtual “stream” on top of the Internet –Reliable, in-order packets –Uses bandwidth responsibly Non-trivial for implementation Still areas of research to make it efficient, determine whether it is a “stable” system

Using IP Using IP protocols Serial line (over RS-232 or RS-485) or simple radio –Probably the best and easiest bet –SLIP (RFC1055) as packet framing or, –PPP (RFC 1661) as a control protocol Ethernet (CS8900) and –Need to implement ARP (RFC826)