Communication Protocol

Slides:



Advertisements
Similar presentations
System Integration and Performance
Advertisements

IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
HAI Lighting Control Options UPB Technology Presentation Advance Information January, 2004.
Data Communication Topics to be discussed:  Data Communication Terminology.  Data Transmission Signals.  Data Transmission Circuits.  Serial & Parallel.
Infrared Remote for Android Georgi Bakalski & Boris Ribov.
FREQUENCY SHIFT KEYING
Lecture 4. US Systems. Advanced Mobile Phone System Analog Signal Processing at the sender side Compress Pre Emphasize Limit Low Pass Filter + Frequency.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
OutLine Overview about Project Wii Robot Escaper Robot Problems and Solutions Demo.
RADIO FREQUENCY MODULE. Introduction  An RF module is a small electronic circuit used to transmit and receive radio signals.  As the name suggests,
CS150 Project Checkpoint 2 CheckPt2 is easy!!! BUT………………. This lab can be very tricky. BUT……………… Mark is here to help! You get to listen to cool.
Part A: Controlling Oscillation Frequency with Capacitors and Resistors Part B: Diodes and Light Experiment Timer.
P1f(i) Data Transmission You will learn about: How Infrared is used Analogue and Digital Signals
Home Automation Console
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
8254 Programmable Interval Timer
Nathan Meyers Joe Riley Matthew Barga Alex Reyes Patent Liability Analysis.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
IR Communication October 27, Sources  Lindsay, Andy. IR Remote for the Boe- Bot. v
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Introduction for Personal Area Networks including Infrared, Bluetooth, and Near-Field Communication. Presented By Valerie Lim.
INTERNET OF EVERYTHING SDU 2016 Week 12. Remotely Controlling Devices  interact with almost any device that uses some form of remote control  TVs, audio.
TV Remote As A Wireless Mouse For PC.
X10 PROTOCOL By, RITHESH V Under the Guidance of, CHETHANA K S.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
Application Case Study Christmas Lights Controller
GSM Controlled Robots.
Application Case Study Security Camera Controller
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
Computer Data Communication
Interfacing to peripherals - Seven Segment display (1)
Clocks, I/O devices, Thin Clients, and Power Management
Objectives Overview Differentiate among various styles of system units on desktop computers, notebook computers, and mobile devices Identify chips, adapter.
Programmable Logic Controllers: I/O
UNIT 9 Computer architecture
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
4.2 Digital Transmission Pulse Modulation (Part 2.1)
Chapter 11: Inter-Integrated Circuit (I2C) Interface
IR Emitter module SB-IR-EM.
Overheads for Computers as Components
Project Title ARDUINO BASED WIRELESS ELECTRICAL APPARATUS CONTROL SYSTEM USING IR COMMUNICATION Under the Guidance of Submitted by.
Three types of wireless technology
OBJECTIVE AND FEATURES:
PCM (Pulse Code Modulation)
Programmable Interval Timer
WALL DETECTOR ROBOT VEHICLE
Introduction to electronic communication systems
Lecture 9 Uli Raich UCC semester 2017/2018
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Pulse Width Modulation (PWM) Motor Feedback - Shaft Encoder
Directional Driver Hazard Advisory System
Introduction Example: model train controller..
EET 2261 Unit 11 Controlling LCD and Keypad
Edited by : Noor Alhareqi
Asynchronous Serial Communications
Senior Design Group #5 (Summer 2012)
Edited by : Noor Alhareqi
EET 2261 Unit 11 Controlling LCD and Keypad
Network Fundamentals – Chapter 8
CSCI1600: Embedded and Real Time Software
CSCI1600: Embedded and Real Time Software
Manual Robotics ..
CCNA 1 v3 JEOPARDY Module 6 CCNA1 v3 Module 6 K. Martin.
UNIT 7: INFRARED SENSORS
Lab #1: Getting Started.
UNIT 7: INFRARED SENSORS
Introduction Communication Modes Transmission Modes
Presentation transcript:

Communication Protocol RC-5 Remote Control Communication Protocol (Optical - InfraRed)

Richard Anthony Smart Systems Technology RC-5 Developed by Philips in 1980s as a consumer equipment (e.g. TV) infrared remote control communication protocol. Subsequently used by many European and US manufacturers of audio and video equipment, making it a de-facto standard for handheld remote controls. RC-5 provides versatile, one-way line-of-sight communication: A single command message is transmitted, modulated onto a carrier wave (see next slide) Speed – transmits at bit rate of 36KHz (carrier wave) Time to transmit command message is 24.9mS Command auto-repeats while button on handset is pressed (every 114mS) Typical range is 3 to 7 meters Richard Anthony Smart Systems Technology

Modulation of data bits in RC-5 code using 36KHz carrier wave Richard Anthony Smart Systems Technology

36 KHz carrier wave with 25% to 33% duty cycle Modulation of data bits in RC-5 code using 36KHz carrier wave (continued) 36 KHz carrier wave with 25% to 33% duty cycle 889 microsecond burst of carrier wave represents a high half-bit component No carrier wave for 889 microseconds represents a low half-bit component Richard Anthony Smart Systems Technology

A ‘1’ is coded as LOW half-bit followed by a HIGH half bit Modulation of data bits in RC-5 code using 36KHz carrier wave (continued) A ‘1’ is coded as LOW half-bit followed by a HIGH half bit A ‘0’ is coded as HIGH half-bit followed by a LOW half bit All bits have a transition in the centre of the bit. This is a way to embed the clock within the data signal, and is described as ‘Self-Clocking data’ – the centre of each bit can be detected from the clock pulse and no additional clock signal is needed. Richard Anthony Smart Systems Technology

Richard Anthony Smart Systems Technology Modulation of data bits in RC-5 code using 36KHz carrier wave (continued) Data is transmitted as a burst of 14 bits (each bit comprising a low half and a high half, and having a duration of 1.778 milliseconds). The whole code is transmitted in 24.9 milliseconds. Richard Anthony Smart Systems Technology

Richard Anthony Smart Systems Technology The command comprises 14 bits: Start bit (always logic 1) Field bit (extends ‘command’ to 7 bits – two sets of 6 bit vals) If ‘1’ the command value is in the lower field (0 to 63) If ‘0’ the command value is in the upper field (64 to 127) Note – in some systems this used as a second ‘Start bit’ (value in this case ‘1’) and does not contain application usable data Control bit, (alternates with each button press). Allows receiving device to distinguish between two successive button presses (such as "1", "1" for "11") as opposed to the user simply holding down the button and the repeating commands being interrupted by an obstacle (e.g. person moving in front of transmitter). 5-bit System address (selects from 32 systems, e.g. TV, DVD). 6-bit Command (7 bit if include field bit), selects one of the 64 (128) possible RC-5 commands – These are what actually control the behaviour of the application. Richard Anthony Smart Systems Technology

This marking is incorrect on some units InfraRed receiver (RC5 command receiver, as in TV remote controls) InfraRed receiver A standard TV remote control handset is used as a transmitter This marking is incorrect on some units ATmega1281 sample application code uses PORT D bit 2 Uses Hardware Interrupt 2 to detect the start of the signal and PORTD bit 2 to read in the signal pulses. #define INPUT_PIN_MASK 0b00000100 If any modules do use bit 4, the code can easily be modified by changing to hardware Interrupt 4 and changing the input pin mask to #define INPUT_PIN_MASK 0b00010000 Richard Anthony Smart Systems Technology

Richard Anthony Smart Systems Technology Sample code application (at the resources web page) A sample application has been provided to demonstrate how to use the RC-5 receiver. Operation: The code uses Timer2 to clock-in the carrier-wave pulses on port D bit 2. It periodically examines the bit value as the data pattern arrives. The code then interprets the pattern of ‘0’s and ‘1’s in the 14-bit message and detects the ‘command code’ part – this part is made available to the application logic (in the sample code it is just displayed onto the LEDs, connected to port B). The sample code example checks only the 6-bit command code value (it ignores the field bit and the 5 system bits) Richard Anthony Smart Systems Technology