RoboJDETM v2.0

com.ridgesoft.robotics.sensors
Class Mvp1IrRemote

java.lang.Object
  extended by com.ridgesoft.robotics.sensors.Mvp1IrRemote
All Implemented Interfaces:
IrRemote

public class Mvp1IrRemote
extends Object
implements IrRemote

Class to interface with an infrared demodulator to receive data from a large assortment of infrared home electronics remote controls.

For lack of a better name, the protocol is referred to as multi-vendor protocol 1 (Mvp1).

The protocol transmits a start bit followed by 32 data bits. The data bits carry two data fields, an 8 bit device code and an 8 bit key code. Each of these fields is transmitted as 16 bits containing the value and the inverse of the value.

This class works with IR remote controls produced by many vendors and should work with all universal remote controls when programmed to one of the supported vendor types.

The following are some vendors who produce at least one remote control that works with this class:

Many vendors use different protocols for different products. Not all products from these vendors will work with this class. The best way to determine if a particular remote control will work with this class is to test it.


Constructor Summary
Mvp1IrRemote(IrReceiver irReceiver)
          Constructs an object to receive data from an infrared remote contol.
 
Method Summary
 int read()
          Reads the next value received from the remote control.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

Mvp1IrRemote

public Mvp1IrRemote(IrReceiver irReceiver)
Constructs an object to receive data from an infrared remote contol.

Parameters:
irReceiver - reference to the IR demodulator to receive data from
Method Detail

read

public int read()
Reads the next value received from the remote control.

The value returned contains an 8 bit device code followed by an 8 bit key code in the 16 least significant bits of the return value.

Specified by:
read in interface IrRemote
Returns:
value received from the remote control or -1 if no data has been received

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com