Moode Forum
[PROBLEM] Help … a Code Monkey - Printable Version

+- Moode Forum (https://moodeaudio.org/forum)
+-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3)
+--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7)
+--- Thread: [PROBLEM] Help … a Code Monkey (/showthread.php?tid=1534)



Help … a Code Monkey - kosto-stavr - 07-13-2019

I am not familiar with coding, but after a lot of tries (monkey see – monkey do) in the past,  I manage to setup my raspberry 2 among with MoOde v3.1 and a IR remote.

It works just fine but I would like to update it to the latest version.
So I started from the beginning.

My problem is that I can’t setup my remote.

Is there a step by step guide to follow?
I tried the one of FizzyTea and from DRONE7 with no success

Sorry for my English
I hope the above make sense

Thanks in advance


RE: Help … a Code Monkey - DRONE7 - 07-13-2019

Code Monkey 101.....What hardware, what version,???


If you followed a step-by-step at what step did you encounter errors and post the error message...

Wink


RE: Help … a Code Monkey - kosto-stavr - 07-13-2019

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.


RE: Help … LIRC 0.9.4c on MoOde v5.3.1 - kosto-stavr - 07-14-2019

Any idea / suggestion to try ?

No one ?

Cry


RE: Help … a Code Monkey - kosto-stavr - 07-16-2019

Any help will be appreciated ...


RE: Help … a Code Monkey - DRONE7 - 07-16-2019

Apologies....a family member has been hospitalised and I have little time.

When I can I will start from scratch and check...perhaps tomorrow...thank you for your patience...


RE: Help … a Code Monkey - kosto-stavr - 07-18-2019

No worries
Health and family should always have priority.
When you are ready …


RE: Help … a Code Monkey - Paddy_B - 08-02-2019

(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=.%2FDebian%2FRaspbian%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