GPIO IR remote problems
#1
Hello All,

I'm attempting to install an GPIO IR remote on my Raspberry Pi 2 running OpenElec 5.0.8.

I followed through the instructions found here.

The driver seems to work, this is in my dmesg output:

Code:
[    8.935277] lirc_dev: IR Remote Control driver registered, major 248
[    8.963449] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[    9.855824] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[    9.856174] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[    9.856187] lirc_rpi: driver registered!
[   10.107818] input: lircd as /devices/virtual/input/input2

I put dtoverlay=lirc-rpi,gpio_in_pull=up in my config.txt.

mode2 -d /dev/lirc0 works just fine and I get the predicted output:
Code:
space 14829218
pulse 9066
space 4423
pulse 636
space 490

I also successfully used irrecord -d /dev/lirc0 /storage/.config/lircd.conf and now have a lircd.conf file with about 15 commands in it.

However, the problems start when I try to run:
Code:
irw /var/run/lirc/lircd-lirc0
connect: No such file or directory

I seem to be able to trace the problem to the command:
Code:
killall lircd; /usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/run/lirc/lircd-lirc0.pid /storage/.config/lircd.conf
which it says to put in the autostart.sh.
When I try the second command I get
Code:
/usr/sbin/lircd --driver=default --device=/dev/lirc0 --uinput --output=/var/run/lirc/lircd --pidfile=/var/
run/lirc/lircd-lirc0.pid /storage/.config/lircd.conf
lircd: can't open or create /var/run/lirc/lircd-lirc0.pid
lircd: No such file or directory

In fact there is no /var/run/lirc directory at all.
Can someone please help me? It appears that a bunch of things are working, and there's just a missing piece to get it all working.
Reply
#2
Use this guide. That one seems to be very outdated. http://wiki.openelec.tv/index.php?title=...R_Receiver
Reply
#3
Try osmc, it has a better interface for configuring GPIO IR receiver,
you don't need to edit anything manually, it's just to use the GUI.

I managed to use a +5V IR receiver GP1UD271R I've removed from an old player,
then adapted the level by means of the circuit described here
http://www.hobbytronics.co.uk/mosfet-vol...-converter.

I use an Apple remote, configured automatically by osmc.

This is the circuit diagram of the level adapter
Image

+%v and +3V are taken from RPI
GPIO pin is connected to the Low Side, IR receiver on the High Side.
The 10K resistor on the High Side can be omitted, as GP1UD271R has internal pull-up.
Reply
#4
(2015-08-01, 09:44)Dalton63841 Wrote: Use this guide. That one seems to be very outdated. http://wiki.openelec.tv/index.php?title=...R_Receiver

Thank you for this advice. I guess that there must have been some outdated stuff in my autostart.sh or config files that was killing it, but when I killed those files and just started again it worked fine.

Claudio thanks for the recommendation. I think at the time that I started this project I didn't use OSMC because it didn't yet support the rasberry pi 2?
I was happy enough configuring it with irrecord and there is a GUI keymapper which I used as well.
Reply

Logout Mark Read Team Forum Stats Members Help
GPIO IR remote problems0