Difference between revisions of "Install AVR 3808 telnet"

From xPL
Jump to: navigation, search
(Created page with "The [http://www.denon.co.uk/uk/product/pages/product-detail.aspx?catid=hometheatre&subid=avreceivers&productid=avr3808 Denon AV receivers] can be controlled via a Install A...")
 
Line 1: Line 1:
 
The [http://www.denon.co.uk/uk/product/pages/product-detail.aspx?catid=hometheatre&subid=avreceivers&productid=avr3808 Denon AV receivers]
 
The [http://www.denon.co.uk/uk/product/pages/product-detail.aspx?catid=hometheatre&subid=avreceivers&productid=avr3808 Denon AV receivers]
 
can be controlled via a  [[Install AVR 3808 serial|serial port]] or via Ethernet.
 
can be controlled via a  [[Install AVR 3808 serial|serial port]] or via Ethernet.
 +
 +
= Install xPL audio-video controller =
 +
 +
Install [http://www.cpan.org CPAN] [http://search.cpan.org/~jrogers/Net-Telnet-3.04/lib/Net/Telnet.pm Net::Telnet]:
 +
su
 +
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' 2> /dev/null | grep -i telnet
 +
apt-get install libnet-telnet-perl
 +
 +
Download the [http://www.dspc.ch/xPL/Downloads/xpl-avController-DenonAVR-telnet.pl AVR controller] script.
 +
Move it to xPL scripts directory:
 +
su
 +
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
 +
mv xpl-avController-DenonAVR-telnet.pl $SCRIPTS_BASE_DIR
 +
chown control:users $SCRIPTS_BASE_DIR/*.pl
 +
chmod 775 $SCRIPTS_BASE_DIR/*.pl
 +
 +
Test the AVR controller:
 +
su control
 +
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
 +
$SCRIPTS_BASE_DIR/xpl-avController-DenonAVR-telnet.pl -v -n loungeAmp
 +
 +
Open a 3rd terminal window and test the commands:
 +
su control
 +
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
 +
$SCRIPTS_BASE_DIR/xpl-send.pl -d dspc-ampDenon.loungeAmp -c media.basic mute=on
 +
$SCRIPTS_BASE_DIR/xpl-send.pl -d dspc-ampDenon.loungeAmp -c media.basic mute=off

Revision as of 12:28, 22 December 2014

The Denon AV receivers can be controlled via a serial port or via Ethernet.

Install xPL audio-video controller

Install CPAN Net::Telnet:

su
perl -MFile::Find=find -MFile::Spec::Functions -Tlw -e 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC' 2> /dev/null | grep -i telnet
apt-get install libnet-telnet-perl

Download the AVR controller script. Move it to xPL scripts directory:

su
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
mv xpl-avController-DenonAVR-telnet.pl $SCRIPTS_BASE_DIR
chown control:users $SCRIPTS_BASE_DIR/*.pl
chmod 775 $SCRIPTS_BASE_DIR/*.pl

Test the AVR controller:

su control
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
$SCRIPTS_BASE_DIR/xpl-avController-DenonAVR-telnet.pl -v -n loungeAmp

Open a 3rd terminal window and test the commands:

su control
SCRIPTS_BASE_DIR=/home/control/Documents/Controls
$SCRIPTS_BASE_DIR/xpl-send.pl -d dspc-ampDenon.loungeAmp -c media.basic mute=on
$SCRIPTS_BASE_DIR/xpl-send.pl -d dspc-ampDenon.loungeAmp -c media.basic mute=off