• Not Answered

NEC remote with CIR driver and LIRC on DM814x??

I followed the configuration and installation instructions described in the CIR driver user guide found here:

http://processors.wiki.ti.com/index.php/DM81xx_AM38xx_CIR_Driver_User_Guide

On my hardware, the IR is connected to UART4, so I made the following adjustments:

#define LIRC_UART_BASE TI814X_UART5_BASE /* The BASE #define's start at 1 so this is really UART4 */
#define LIRC_IRQ_UART TI814X_IRQ_UART4 /* The IRQ #define's start at 0 so this is really UART4 */

I have a lirc device and mode2 can see activity, although the pulse/space timing does not match what I see on a logic analyzer:

# mode2 -d /dev/lirc0 some.conf

space 99727
pulse 8960
space 99727
pulse 8960
space 99727
pulse 8960
space 399727
pulse 8960
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
space 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240
pulse 2240

If I look at a repeat code, I can see the:

space 399727
pulse 8960
pulse 2240

I'd expect something like:

pulse 9000

space 2240

pulse 560

irrecord can not recognize the pattern as NEC and maps all the keys to the same pulse of 8960.  I'm wondering if anyone has gotten this to work and if there is possibly some adjustment needed moving to UART4 that might cause the timing to be wrong.

6 Replies