Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Help … a Code Monkey
#1
Question 
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
Reply
#2
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
----------
bob
Reply
#3
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.
Reply
#4
Any idea / suggestion to try ?

No one ?

Cry
Reply
#5
Any help will be appreciated ...
Reply
#6
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...
----------
bob
Reply
#7
No worries
Health and family should always have priority.
When you are ready …
Reply
#8
(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
Reply


Forum Jump: