2016-04-07, 16:35
Hi,
My project is to use RPi1-512, Kodi, LIRC and an IR transmitter led to send IR codes to teach an universal remote control.
There are some Howto around but only to use Kodi with remote control, so Kodi receive the codes, this is not usual, I know.
What I did so far:
- Build a connector, wires, resistor, IR led to send the IR beam. I didn't had the opportunity to test it.
- Connect to the GPIO connector
- Installed an USB webcam to check if the IR led send something (flashing with remote)
- Install Kodi Krypton build #0406 headless. All commands through ssh WiFi
- Add to /flash/config.txt
- Reboot few times in the process
- I had a look at /etc/lirc/lircd.conf.rpi to note the name of 1 remote and 1 key to send
- I tried
but nothing in the webcam
Questions:
to Milhouse
- As I use the last build, is lirc working with this build? I know sometime packages are removed for few builds.
To all of you who could help:
- How I could test the hardware in kodi with the GPIO?
- Is my process right, what I forgot?
- I have read lirc install on other OS: Do I need to install/set something else (uinput, ...)
- Folders tree is not the same in Openelec than other OS. Where are the files used by lirc in Kodi?
- dmesg shows input pin but not output. Is it right, how does it know the right pin?
Let me know if you need more info
Many thanks for your time
My project is to use RPi1-512, Kodi, LIRC and an IR transmitter led to send IR codes to teach an universal remote control.
There are some Howto around but only to use Kodi with remote control, so Kodi receive the codes, this is not usual, I know.
What I did so far:
- Build a connector, wires, resistor, IR led to send the IR beam. I didn't had the opportunity to test it.
- Connect to the GPIO connector
- Installed an USB webcam to check if the IR led send something (flashing with remote)
- Install Kodi Krypton build #0406 headless. All commands through ssh WiFi
- Add to /flash/config.txt
Code:
# LIRC setup
dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22
Code:
dmesg | grep lirc
[ 9.330336] lirc_dev: IR Remote Control driver registered, major 245
[ 9.402180] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
[ 10.323318] lirc_rpi: auto-detected active high receiver on GPIO pin 23
[ 10.323634] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0
[ 10.323652] lirc_rpi: driver registered!
[ 13.547175] input: lircd as /devices/virtual/input/input0
Code:
lsmod
Module Size Used by
rtl8xxxu 52285 0
mac80211 325640 1 rtl8xxxu
cfg80211 238587 1 mac80211
8192cu 599482 0
bcm2835_gpiomem 2791 0
bcm2835_wdt 2922 0
lirc_rpi 6088 3
lirc_dev 7605 1 lirc_rpi
rc_core 15336 1 lirc_dev
- Reboot few times in the process
- I had a look at /etc/lirc/lircd.conf.rpi to note the name of 1 remote and 1 key to send
- I tried
Code:
irsend -d /run/lirc/lircd-lirc0 SEND_ONCE "Dream_Multimedia_URC-39930" "KEY_POWER"
Questions:
to Milhouse
- As I use the last build, is lirc working with this build? I know sometime packages are removed for few builds.
To all of you who could help:
- How I could test the hardware in kodi with the GPIO?
- Is my process right, what I forgot?
- I have read lirc install on other OS: Do I need to install/set something else (uinput, ...)
- Folders tree is not the same in Openelec than other OS. Where are the files used by lirc in Kodi?
- dmesg shows input pin but not output. Is it right, how does it know the right pin?
Let me know if you need more info
Many thanks for your time