|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ridgesoft.robotics.sensors.Mvp1IrRemote
public class Mvp1IrRemote
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:
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 |
---|
public Mvp1IrRemote(IrReceiver irReceiver)
irReceiver
- reference to the IR demodulator to receive data fromMethod Detail |
---|
public int read()
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.
read
in interface IrRemote
|
RoboJDETM v2.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |