Page 1 of 1

IR remote(LIRC)

Posted: Thu May 21, 2015 2:00 pm
by hamza
hi
I have sharp IR remote and trying to make it working with my rpi 2b,I followed the instructions using this link
http://alexba.in/blog/2013/01/06/settin ... spberrypi/

now, i can see the signal on the terminal using this command''mode2 -d /dev/lirc0''
but I did not find how to setup my ir remote.

then I followed the following link
http://www.weedpi.com/how-to/add-ir-sup ... pberry-pi/
it seems good ,but when I put this command ""irrecord -d /dev/lirc0 ~/lircd.conf'' the program start and when I press any key, I can see the dots.

but my problem is ,what must i do or press when i finish all ir remote keys?? because its not clear , bouse i press enter or somtimes stop pressing for some secound, but this eerros appear
''irrecord: no data for 10 secs, aborting''
''irrecord: gap not found, can't continue
''

also if there is another library(not lirc) plz let me know.

Re: IR remote(LIRC)

Posted: Fri May 22, 2015 8:58 am
by Douglas6
LIRC is the only game in town. Follow the on-screen instructions for using irrecord.

Re: IR remote(LIRC)

Posted: Fri May 22, 2015 1:26 pm
by hamza
thank you, its working now and I can see the pressed key number.

now,where i can find the pressed key(or file) because I want to connect it with my buttons and gpio???

Re: IR remote(LIRC)

Posted: Fri May 22, 2015 2:50 pm
by joan
If you need to manipulate the gpios my IR receiver code may be "lighter" than LIRC. http://abyz.co.uk/rpi/pigpio/examples.html#Python_code

Re: IR remote(LIRC)

Posted: Fri May 22, 2015 3:25 pm
by Douglas6
Ooops, joan's code is the other game in town. But, if you're set on LIRC, look into irexec, I think it's the easiest way to respond to IR keypresses with LIRC.

Re: IR remote(LIRC)

Posted: Wed Oct 17, 2018 1:04 am
by BobbiPierce
I'm with you on this...


I start irrecord with:

Code: Select all

irrecord -d /dev/lirc0 ~/lircd.conf

I follow the process, click the buttons, then it times out. There's no end. No file gets created. I'm three seconds away from applying a blow torch. 

What do we do to end the "recording" process gracefully?