by azur3orion » Tue Apr 05, 2016 7:26 pm
Hi all,
I recently bought a TSOP38238 IR Receiver Module and a Toshiba RC6 MCE remote control to control Kodi through IR remote. For reference, I've used Adafruit's tutorial:
https://learn.adafruit.com/using-an-ir-remote-with-a-raspberry-pi-media-center/overview. The remote module is connected to the specified GPIO pins, Kodi installed already, installed Lirc, lirc_rpi module was modprobed. Now I had to test some keypresses from the remote with:
$this->bbcode_second_pass_code('', 'mode2 -d /dev/lirc0')
The response was:
$this->bbcode_second_pass_quote('', 'U')sing device: /dev/lirc0
Using device: /dev/lirc0
space 16777215
pulse 0
space 6342
space 955
pulse 873
space 36
pulse 189
space 51
pulse 19354
so I think the remote signal was captured properly. Now the lircd was started.
$this->bbcode_second_pass_code('', '
sudo systemctl enable lircd
sudo systemctl start lircd
')
My remotes config file was made with irrecord properly, and using the official Arch user guide, I created the Lircmap.xml for Kodi, and copied the remote.xml too. I thought it is the time for test the remote in Kodi, so I restarted the kodi service, but nothing happened if I pressed any key on the remote. I wanted to restart the Pi, but before that I've created some files for automatic module loading:
into: /etc/modprobe.d/lirc.conf$this->bbcode_second_pass_code('', '
options lirc_rpi gpio_in_pin=18 gpio_out_pin=23
')
into: /etc/modules-load.d/lirc_rpi.conf$this->bbcode_second_pass_code('', '
irc_rpi
ir-lirc-codec
gpio-ir-recv
')
and put this line to /boot/config.txt:
$this->bbcode_second_pass_code('', 'dtoverlay=lirc-rpi,gpio_in_pin=18')
I restarted the pi, and checked
dmesg | grep lirc.
$this->bbcode_second_pass_quote('', '
')[ 8.410282] lirc_dev: IR Remote Control driver registered, major 245
[ 8.441151] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.436461] lirc_rpi: auto-detected active low receiver on GPIO pin 18
[ 9.447898] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 9.459616] lirc_rpi: driver registered!
Okay, the module is loaded, lircd started, kodi service is running too, but remote still no works.
$this->bbcode_second_pass_quote('', 'G')PIOs 0-53, platform/3f200000.gpio, pinctrl-bcm2835: