Blogger

Delete comment from: Ken Shirriff's blog

Greg said...

I haven't seen this one yet, so I figured I'd post it. This is the protocol for Philips RC-MM. My AT&T U-Verse receiver uses this protocol. Haven't figured out how to write the decode portion yet, but here's the transmit method:

void IRsend::sendRCMM(unsigned long data, int nbits, int pin) {
enableIROut(36, pin);
mark(RCMM_HDR_MARK, pin);
space(RCMM_HDR_SPACE, pin);
data = data << (32 - nbits);
unsigned long datax;
for (int i = 0; i < nbits; i+=2) {
datax = data & TOPTWOBITS;
if (datax == 0x00000000) {
mark(RCMM_DATA_MARK, pin);
space(RCMM_00_SPACE, pin);
}
else if (datax == 0x40000000) {
mark(RCMM_DATA_MARK, pin);
space(RCMM_01_SPACE, pin);
}
else if (datax == 0x80000000) {
mark(RCMM_DATA_MARK, pin);
space(RCMM_10_SPACE, pin);
}
else if (datax == 0xC0000000) {
mark(RCMM_DATA_MARK, pin);
space(RCMM_11_SPACE, pin);
}
data <<= 2;
}
mark(RCMM_DATA_MARK, pin);
space(RCMM_RPT_SPACE, pin);
}

Jun 10, 2012, 8:25:41 PM


Posted to A Multi-Protocol Infrared Remote Library for the Arduino

Google apps
Main menu