hamza
Posts: 76
Joined: Fri Apr 03, 2015 7:16 pm

IR remote(LIRC)

Thu May 21, 2015 2:00 pm

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.

User avatar
Douglas6
Posts: 4853
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: IR remote(LIRC)

Fri May 22, 2015 8:58 am

LIRC is the only game in town. Follow the on-screen instructions for using irrecord.

hamza
Posts: 76
Joined: Fri Apr 03, 2015 7:16 pm

Re: IR remote(LIRC)

Fri May 22, 2015 1:26 pm

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???

User avatar
joan
Posts: 14887
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: IR remote(LIRC)

Fri May 22, 2015 2:50 pm

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

User avatar
Douglas6
Posts: 4853
Joined: Sat Mar 16, 2013 5:34 am
Location: Chicago, IL

Re: IR remote(LIRC)

Fri May 22, 2015 3:25 pm

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.

BobbiPierce
Posts: 1
Joined: Wed Oct 17, 2018 1:01 am

Re: IR remote(LIRC)

Wed Oct 17, 2018 1:04 am

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?

Return to “Beginners”