|
From: Roland M. <rm...@gm...> - 2007-04-08 18:24:08
|
Hi, to solve the problem described below, I suggest to create a new ioctl LIRC_NOTIFY_DECODE. The idea in principle is to give feedback to the user about if an IR signal was decoded an put to the queue successfully. I don't belive that the provided patch breaks anything. diff -cr lirc-0.8.1.org/drivers/lirc.h lirc-0.8.1/drivers/lirc.h *** lirc-0.8.1.org/drivers/lirc.h 2005-07-10 10:34:12.000000000 +0200 --- lirc-0.8.1/drivers/lirc.h 2007-04-08 16:01:10.000000000 +0200 *************** *** 100,103 **** --- 100,105 ---- #define LIRC_SET_REC_DUTY_CYCLE_RANGE _IOW('i', 0x0000001e, __u32) #define LIRC_SET_REC_CARRIER_RANGE _IOW('i', 0x0000001f, __u32) + #define LIRC_NOTIFY_DECODE _IOW('i', 0x00000020, __u32) + #endif diff -cr lirc-0.8.1.org/daemons/lircd.c lirc-0.8.1/daemons/lircd.c *** lirc-0.8.1.org/daemons/lircd.c 2006-10-08 12:42:05.000000000 +0200 --- lirc-0.8.1/daemons/lircd.c 2007-04-08 18:43:16.000000000 +0200 *************** *** 1816,1821 **** --- 1816,1823 ---- if(message!=NULL) { + if(hw.ioctl_func) hw.ioctl_func(LIRC_NOTIFY_DECODE, NULL); + len=strlen(message); for (i=0; i<clin; i++) I'm not sure if this is useful for any other hardware (maybe there is an way to extend the homebrew serial receiver with an LED to get feedback). What about mceusb devices? Roland On Sun, 2007-04-01 at 21:52 +0200, Roland Mieslinger wrote: > Hello, > > I've created a plugin/device to use the IR receiver from Hauppauge > MediaMVP with lirc. There should be feedback about decoded IR commands > by blinking the power LED in front (as most TV's, STB's etc. did). > > Is there way to get an device informed if lirc decoded an sequence > successfully? > > Roland |