I want to control the allo relay attenuator with a remote control and volume.
All programs are properly installed (with allò relay attenuator plugin)
Lirc. The program that manages the remote control.
R_attenu R_attenuc. It is the Allo programs that control the relay
Both programs work correctly lirc because once you record your remote control you can test the command and print the corresponding button you have pressed on the screen.
R_attenuc and r_attenu because without them it does not work in relay attenuator, and it works.
So far so good. The problem is that to execute the commands of the command there is a file of lirc that must execute the commands of r_attenu when you press the buttons (r_attenu is executed already at the beginning of the session as soon as you turn volumium).
Each button executes this. I only control the volume, so I have directly copied the default configuration (although configured with my command, which as I said lirc recognizes) so the problem is in executing commands, which is this
I want to control the allo relay attenuator with a remote control and volume.
I do not know if the problem may be on telnet, or I have to open port 9090, I have no experience with this. I tried with my ip. That is 192.168.2.1 and neither. Any idea what the problem might be?
Hi.
is already solved, I have changed the name to the buttons and I have used this code in lircrc, if there is anyone interested in this I ask and I explain from scratch. It’s no nonsense because you can use relay attenuator which is the best of its kind, with rapsberry pi and a remote control for any diy project.
I am having the same/similar problems and it’s causing some stress.
I have rpi2+boss dac+attenuator, using volumio latest build.
The ir receiver is hooked up correctly, I know this because running irw results in the keys I have recorded being displayed, can also get a response from any key using ‘mode2 -d /dev/lirc0’
Whatever I have tried results in no response from the attenuator.
I can set it’s volume using r_attenu in ssh session, volume is set to hardware etc…
I’ve tried numerous remotes and am always able to record a custom lircd.conf file if needed using ‘irrecord -d /dev/lirc0 -f /etc/lirc/test.conf’ or similar
My lircrc file (pretty much just copied the previous one here):
begin
button = KEY_VOLUMEDOWN
prog = r_attenu
config = hardware_control
config = sudo echo “mixer volume -1”
end
begin
button = KEY_VOLUMEUP
prog = r_attenu
config = hardware_control
config = sudo echo “mixer volume +1”
end
begin
button = KEY_MUTE
prog = r_attenu
config = hardware_control
config = sudo echo “mixer volume 0”
end
Now my post has been approved I’ll provide my solution in case it helps someone else
I noticed that when checking the volumio log file the specific commands that got executed when clicking a control on the web browser so I just took them and put them in the file as below, this will also need irexec loading so set this to true in the hardware file in lirc folder.
Also set gpio_in_pin=17 in /boot/config.txt, not sure this is needed as dmesg shows it auto configured here anyway.
rpi2+boss dac+attenuator & powered from lps is for me incredible, very pleased!
Basically I had to configure my lircrc file as follows:
begin
button = KEY_VOLUMEDOWN
prog = irexec
config = hardware_control
config = /usr/local/bin/volumio volume minus
repeat = 4
end
begin
button = KEY_VOLUMEUP
prog = irexec
config = hardware_control
config = /usr/local/bin/volumio volume plus
repeat = 4
end
begin
button = KEY_MUTE
prog = irexec
config = hardware_control
config = /usr/local/bin/volumio volume toggle
end
begin
button = KEY_NEXT
prog = irexec
config = hardware_control
config = /usr/local/bin/volumio next
end
begin
button = KEY_PREVIOUS
prog = irexec
config = hardware_control
config = /usr/local/bin/volumio previous
end
Hi, sorry to be a noob, but I would like to control the Allo Relay Attenuator with an infrared remote control, like the ones found on Aliexpress (see attachement).
Is this what you guys are using ? If so, could you please provide a link ?
Sorry, just can’t visualise how this is supposed to work.