Lecture #3 RS232 & 485 protocols

Similar documents
Concept of Serial Communication

APPLICATION BULLETIN. SERIAL BACKGROUNDER (Serial 101) AB23-1. ICS ICS ELECTRONICS division of Systems West Inc. INTRODUCTION CHAPTER 2 - DATA FORMAT

Universal RS232/CMOS to RS422/RS485 Converter

Universal Converter Covers All the Bases- RS-232 to 4-wire RS-422, 2-wire or 4-wire RS-485

1 What s in the shipping package?

MULTI-DROPS DIGITAL MODEM FOR PRIVATE LINE

Serial Input/Output. Lecturer: Sri Parameswaran Notes by: Annie Guo

A50/A51/A60. June 2008 (4th Edition) All Rights Reserved

Electronics / Water analogy. Resistor. Inductance. Capacitor. Water Electronics Energy - Energy Pressure - Voltage Flow - Current Volume - Charge

USER'S MANUAL. Model : K

ECE 4510/5530 Microcontroller Applications Week 6 Lab 5

Fanuc Serial (RS232) Communications Information

M7 Over-The-Air Protocol. Overview. Technical Brief AN187 Rev A1

CL4790 HARDWARE INTEGRATION GUIDE VERSION 3.0. Americas: Europe: Hong Kong:

EIA-232 Information. DTE Signal Direction. DCE Signal Direction. Signal EIA

USING RS-232 to RS-485 CONVERTERS (With RS-232, RS-422 and RS-485 devices)

Modem RS232/RS422/RS485. to MM optic fibers. RS-232 to Multimode Optic. Fiber Converter. Characteristics DIN rail mounting.

Intermittent Vibration 0.075

CL4490 HARDWARE INTEGRATION GUIDE VERSION 1.0. FCC Notice.

Serial Communications RS232, RS485, RS422

Chapter 12: Digital Modulation and Modems

CL4424. Industrial 2.4GHz ConnexLink. User s Manual Version 1.1

RS-232 Electrical Specifications and a Typical Connection

ANALOG AND DIGITAL PHYSICAL INTERFACES

SMARTALPHA RF TRANSCEIVER

RS 485/422 to Fibre Optic Modems ELO E243, ELO E244, ELO E245. Operation manual

Appendix C RS-485 Network

MDR24x Wireless 2.4GHz Modem

CONTROL MICROSYSTEMS SCADAWave Radio Transceiver. Hardware Manual

2070-6B Manual B Manual. Dual 9600 baud Modem For The 2070 Controller. GDI B Manual. Rev B

ADA-1028L. User manual ADA-1028L. RS232 to Current Loop 2-wire CLO Converter. 1 io_ada-1028l_v.1.10_en. Copyright CEL-MAR sp.j.

2070-6A Manual A Manual. Dual 1200 baud Modem For The 2070 Controller GDI A MANUAL

Miniature Synchronous Multipoint Modems

Cable and Port Specifications

PRODUCT INFORMATION B&B ELECTRONICS. Port-Powered RS-232 Fiber Optic Modem with Handshake Support. Model 9PFLST. Description. RS-232 Connections

MGE TM Galaxy TM , 60 Hz kva

Home Automation, Inc. Omnistat2. RC-1000 and RC-2000 Communicating Thermostat. Serial Protocol Description

RS-232 / 20mA Interface Converter ELO E00Q. Operation manual

DAY DAY DAY

Lecture #4 BJT AC Analysis

RS232 to RS485 or RS422 line converter with isolation. >>> Distribucion: ER-Soft, S.A. Tel: <<<

Model 4xx. Plug-in Series Of FSK Modems USER GUIDE. (TI) 20 Jan 06 DWG: A GDI COMMUNICATIONS LLC PO Box I-80 Exit 1 Verdi, NV 89439

EECE494: Computer Bus and SoC Interfacing. Serial Communication: RS-232. Dr. Charles Kim Electrical and Computer Engineering Howard University

CONV232/422 SERIAL DATA CONVERTER

Applications. Operating Modes. Description. Part Number Description Package. Many to one. One to one Broadcast One to many

ADA User manual ADA RS-232 to RS-485 / RS-422 Converter

2W UHF MHz Radio Transceiver

RM24100D. Introduction. 1 Features. 2.4GHz 100mW RS232 / RS485 / RS422 DSSS Radio Modem (IEEE compliant) Operating Manual English 1.

TS4000 Radio Modem. User s Manual

There are many important factors when trying to achieve good, reliable communications between 2 devices.

HR1200. Version 1.00 ATIM RADIOCOMMUNICATION 1/11

Chapter 9: Serial Communication Interface SCI. The HCS12 Microcontroller. Han-Way Huang. September 2009

FOSTCDR. Industrial Serial to Multimode Fiber Optic Converter PRODUCT INFORMATION B&B ELECTRONICS. Specifications Serial Technology

ZCS485 User s Manual. Version ZYPEX, Inc.

1.0 Introduction. Related Products and Documentation

Series 2000 Reader System. Reader S251B RI-STU-251B. Reference Guide. April 2000 SCBU035

GREEN HERON ENGINEERING LLC

Quick-Start Guide. M7 Series DATA RADIO MODEM

DigiPoints Volume 1. Student Workbook. Module 2 Modem Overview

HURRICANE Radio Modem. FULL DUPLEX Radio MODEM

Modem 9600 baud 500FSD11 EDS500 series - FSK modems

RM24100A. Introduction. 1 Features. 2.4GHz 100mW RS232 / RS485 / RS422 DSSS Radio Modem (IEEE compliant) Operating Manual English 1.

Unit D. Serial Interfaces. Serial vs. Parallel. Serial Interfaces. Serial Communications

TD_485 Transceiver Modules Application Guide 2017

CL024 USER S GUIDE VERSION

DSP4xxFP SA USER S MANUAL. A01561 Rev. A. This Manual covers all configurations of the DSP4xxSA Modem with the Serial Number SA and up.

Interface converter G kbit/sec

User Manual. 905U-D Radio Modem. ELPRO Technologies Pty Ltd, 9/12 Billabong Street, Stafford Q 4053, Australia.

CP485-4 User s Manual

Ocean Controls KT-5221 Modbus IO Module

Complete 2.4 GHz RF Transceiver Module with Built-In RFDP8 Application Protocol Part Numbers RFD21733, RFD21735, RFD21737, RFD21738, RFD21739

A RF53 Data modem. User Guide

RS-422/RS-485 Line Tester Model 485T

Lecture #3 BJT Transistors & DC Biasing

User Manual 455U-D Radio Modem

Instruction Sheet UPS SERIES. Serial Control Protocol. I Rev E

Model RTX-12 Radio Modem

M-Bus Master MultiPort 250L Installation and User Guide

OTi APPROVED SHEET. OTi 6858 Data Sheet USB To RS232 Bridge Controller. OTi-6858 Data Sheet

Hardware Manual. PCD3.F240/PCD2.F2400 LON interface module for TP/FT-10 channel. Hardware Manual PCD3.F240/PCD2.F2400, LON interface module

Introduction. Protocol Definitions. The RS-485 Standard. APPLICATION NOTE 3884 How Far and How Fast Can You Go with RS-485?

Absolute encoder HE-65

King Fahd University of Petroleum & Minerals Computer Engineering Dept

USER'S MANUAL. Models : 5000N/5000NV/7000N/7000NV

Microcontrollers. Serial Communication Interface. EECE 218 Microcontrollers 1

Local Asynchronous Communication. By S.Senthilmurugan Asst.Professor/ICE SRM University. Chennai.

M9606. FSK Modem. 5C Communications Inc.

RM24100D. Introduction. Features. 2.4GHz 100mW RS232 / RS485 / RS422 DSSS Radio Modem (IEEE compliant) Operating Manual English 1.

Week 2 Lecture 1. Introduction to Communication Networks. Review: Analog and digital communications

Peer Master Example. In This Chapter...

APPLICATION NOTE ANI6. Connecting the SP504 Multiprotocol Transceiver to the 85C30 Universal Enhanced Serial Communications Controller (ESCC)

Interface: Serial EIA RS-232D/CCITT V.24, DCE; RTS/CTS delay 0,8 or 64 ms (user-selectable).

RFID. LF Training. Installation and Set-up. J.A.G 7 March, 2008 Texas Instruments Proprietary Information 1

Interfacing To Climatronics Tacmet II Sonic Weather Station

TRXQ1 RXQ1 FM NARROW BAND TRANSCEIVERS. RXQ1 Version. Applications. TRXQ1 Version

Wireless Communications Module Stand-Alone HE200WCM910 and SmartStack HE800WCM900 / HE-WCM900* * HE- denotes plastic case.

Dual Protocol Transceivers Ease the Design of Industrial Interfaces

NL900PRO. User Manual Version B0. Radio Data Modem. With Selectable RS232 RS485 RS422

DATA SHEET. OD Precision. Displacement sensors for precise and comprehensive measurement tasks

Embedded low power radio modem SLR-434M Smart RF modem

Transcription:

SPRING 2015 Integrated Technical Education Cluster At AlAmeeria E-626-A Data Communication and Industrial Networks (DC-IN) Lecture #3 RS232 & 485 protocols Instructor: Dr. Ahmad El-Banna 1

Agenda What is RS232 Signals, Line Driver, Speed & SW settings What is RS-485 Line Driver, Network, Half-duplex, Full-duplex & DL devices RS-232 vs RS-458 DC-IN, Lec#3, Spring 2015 2

RS232 3

What is RS-232 RS-232 is a popular communications interface for connecting modems and data acquisition devices (i.e. GPS receivers, electronic balances, data loggers,...) to computers. RS-232 can be plugged straight into the computer s serial port (know as COM or Comm port). 4

RS-232 Signals Architecturally RS-232 is a bidirectional point to point link. (serial port - PC side) Two independent channels are established for two-way (full-duplex) communications. RS-232 can also carry additional signals used for flow control (RTS, CTS) and modem control (DCD, DTR, DSR, RI). 5

RS-232 Signals.. Common 25 pin D-shell connector pinout used for asynchronous data communications. Pin Signal 1 PGND Protective Ground 2 TXD Transmit Data 3 RXD Receive Data 4 RTS Ready To Send 5 CTS Clear To Send 6 DSR Data Set Ready 7 SG Signal Ground 8 CD Carrier Detect 20 DTR Data Terminal Ready 22 RI Ring Indicator (serial port - PC side) 6

RS-232 Line Driver Unbalanced Line Drivers Each signal appears on the interface connector as a voltage with reference to a signal ground. The idle state (MARK) has the signal level negative with respect to common whereas the active state (SPACE) has the signal level positive respest to the same reference. 7

RS-232 Speed How fast can RS-232 be? The maximum speed, according to the standard, is 20kbit/s. However, modern equipment can operate much faster than this. (i.e. Lynx can reach 115200 baud.) The length of the cable also plays a part in maximum speed. The longer the cable the slower the speed at which you can obtain accurate results. A large wire capacitance and inductance limits the maximum length of the cable and/or the maximum speed; Moreover higher is the capacitance of the cable higher is the interference between two adjacent signal wire. 50 feet (15m) @ max baudrate is commonly quoted as the maximum distance. 8

RS-232 sw settings One byte of async data has: Start Bit = 1 (always) Data Bits = 8 (or 7) Stop bits = 1 (or 2) Parity = NONE (or EVEN or ODD) + 25-25 9

RS485 10

What is RS-485 What is RS-485? RS-485 is a EIA standard interface which is very common in the data acquisition world RS-485 provides balanced transmission line which also can be shared in Multidrop mode. It allows high data rates communications over long distances in real world environments. How fast can RS-485 be? RS-485 was designed for greater distance and higher baudrates than RS-232. According to the standard, 100kbit/s is the maximum speed and distance up to 4000 feet (1200 meters) can be achieved. 11

RS-485 Line Driver Balanced Line Drivers Voltage produced by the driver appears across a pair of signal wires that transmit only one signal. Both wires are driven opposite. RS-485 driver has always the Enable direction control signal. Differential system provides noise immunity, because much of the common mode signal can be rejected by the receiver. So ground shifts and induced noise signals can be nullified. 12

RS-485 Network RS-485 provides Half-Duplex, Multidrop communications over a single twisted pair cable. The standard specifies up to 32 drivers and 32 receivers can share a multidrop network MASTER SLAVE-1 Terminator resistors avoid reflected signal SLAVE-2 SLAVE-3 13

RS-485 Half-duplex Datalogic uses Half-Duplex configurations for Data Collecting and Master/Slave layouts. TX ENABLE RX Slave 1 TX ENABLE RX RTX485+ RTX485- TX ENABLE RX Slave 2 Master 485GND TX ENABLE RX Slave N 14

RS-485 Full-duplex Potentially RS-485 interface can also use 4-wires to communicate in multidrop mode. ENABLE TX RX TX485+ TX485- RX485+ RX485-485GND TX RX ENABLE Scanner Other device 15

RS-232 VS RS-485 16

RS-232 vs RS-485 The architectural difference between RS-232 and RS-485 is that 232 is a bi-directional point to point link, whereas 485 is a single channel bus. Electrically, each 232 signal uses a single wire with symmetric voltages about a common ground wire. 485 uses two wires to carry the single signal differentially. The big difference to the software is that only one device on a 485 bus can transmit at a time, whilst there is not similar limitation on RS232 because is a peer-to-peer link. 17

RS-232 vs RS-485 18

Data Format and Protocols Information content passing through peer-to-peer connection is packed in a very simple structure: <Header-string> <Code identifier ><INFO-FIELD><Terminatorstring> <Header-string> and <Terminator-string> are both configurable via software (device configuration parameters) Most common generic Handshake are available/selectable with RS232 interface: Hardware (RTS-CTS) Software XON/XOFF 19

DC-IN, Lec#2, Spring 2015 For more details, refer to: Online tutorials on RS232/485. The lecture is available online at: Lecture notes are found at: http://bu.edu.eg/staff/ahmad.elbanna-courses/12133 For inquires, send to: ahmad.elbanna@feng.bu.edu.eg 20