08-02-2019, 03:52 PM
(07-13-2019, 01:55 PM)kosto-stavr Wrote: Hi DRONE7,
Thank you very much for your answer!
I’m trying to install my IR remote to a raspberry Pi2 with the latest MoOde v5.3.1
Same hardware is working OK on MoOde v3.1
After i was read yours & FizzyTea posts, here is my step by step that I have follow:
Step 1: Install LIRC (sudo apt-get install lirc)
Step 2: Enable gpio-ir kernel module by adding in /boot/config.txt :
Code:dtoverlay=gpio-ir,gpio_pin=22
dtoverlay=gpio-ir-tx,gpio_pin=7
Note that till now in the MoOde v3.1 works OK by adding this lines:
Code:dtoverlay=lirc-rpi
dtparam=gpio_in_pin=22
dtparam=gpio_out_pin=7
Step 3: Configure LIRC by changing /etc/lirc/lirc_options.conf like this :
Code:driver = default
device = /dev/lirc0
Step 4: Add remote control config file in /etc/lirc/lircd.conf.d/lircd.conf
I paste the lircd.conf from the working v3.1 witch is in form of :
Code:KEY_HOME 0x609F
KEY_BACK 0x18E7
KEY_UP 0x629D
KEY_DOWN 0x6897
KEY_LEFT 0xE21D
.....
Step 5: Reboot
Step 6: Test
Code:irsend SEND_ONCE nuxii-remote KEY_OK
The command returns no errors
Step 7: Create .lircrc (/home/pi/.lircrc )
Again I paste my working file witch is in form of :
Code:begin
prog = irexec
button = KEY_LEFT
config = mpc prev;mpc play; blink 13
end
begin
prog = irexec
button = KEY_RIGHT
config = mpc next;mpc play; blink 13
end
begin
prog = irexec
button = KEY_OK
config = mpc toggle; blink 13
end
...
Step 8: Modify irexec.service (/etc/systemd/system/multi-user.target.wants/irexec.service) to :
Code:[Unit]
Description=Handle events from IR remotes decoded by lircd
After=lircd.service mpd.service
Requires=lircd.service
[Service]
User=pi
Group=pi
ExecStart=/usr/bin/irexec --daemon /home/pi/.lircrc
Type=simple
TimeoutSec=0
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
Step 9: Reboot
Step 10: Test
Code:systemctl status lircd
systemctl status irexec
Both of them are activated with no errors, but my IR control doesn’t work at all !
What I’m doing wrong ?
It’s over a week that I’m trying every possible combination with no luck
Any recommendation will be appreciated.
When you are working with Moode 5.3.1 then do work with this:
http://gernot-walzl.at/index.php?nav=.%2...ian%2FLIRC
Follow the instructions with Kernel 4.19.
The only change is the command irrecord. You need this command and start it at the pi direction:
sudo irrecord -n -d /dev/lirc0
Best regards