PDA

View Full Version : Amp Remote Control Plugin



Aesculus
2008-12-16, 14:48
I would like to turn my Denon AVP preamp on and off when a particular SB is turned on/off. I also want to set it up to be on the correct input and sound settings etc and set the initial volumn of the preamp.

The Denon can respond to a set of ascii based IP messages to achieve all of this. I know the commands to get this done.

Is there a plugin that can do this already or do I need to create one? If I need to create one can someone point me to the right place to start this?

Mark Lanctot
2008-12-18, 08:14
Can you use an IR Blaster, either using an IR emitter out the headphone port of the SB2/3, the "IR OUT" on the Transporter, or direct to an "IR IN" port on the Denon?

If so, use the IRBlaster plugin. http://wiki.slimdevices.com/index.php/IRBlaster

peter
2008-12-18, 08:38
Aesculus wrote:
> I would like to turn my Denon AVP preamp on and off when a particular SB
> is turned on/off. I also want to set it up to be on the correct input
> and sound settings etc and set the initial volumn of the preamp.
>
> The Denon can respond to a set of ascii based IP messages to achieve
> all of this. I know the commands to get this done.
>
> Is there a plugin that can do this already or do I need to create one?
> If I need to create one can someone point me to the right place to
> start this?

I would use the AmpSwitch plugin as a start. Replace the switching code
by your IP commands. Do it directly with IO::Socket or use the Perl
Net::Telnet module if necessary.

I wouldn't mess with IR if you can switch the thing over the network.
Pretty cool feature BTW, do all Denons have that?

Regards,
Peter

Aesculus
2008-12-18, 09:35
Aesculus wrote:
> I would like to turn my Denon AVP preamp on and off when a particular SB
> is turned on/off. I also want to set it up to be on the correct input
> and sound settings etc and set the initial volumn of the preamp.
>
> The Denon can respond to a set of ascii based IP messages to achieve
> all of this. I know the commands to get this done.
>
> Is there a plugin that can do this already or do I need to create one?
> If I need to create one can someone point me to the right place to
> start this?

I would use the AmpSwitch plugin as a start. Replace the switching code
by your IP commands. Do it directly with IO::Socket or use the Perl
Net::Telnet module if necessary.

I wouldn't mess with IR if you can switch the thing over the network.
Pretty cool feature BTW, do all Denons have that?

Regards,
Peter

Peter: Thanks. I will give it a try and report back here in a few days.

Not sure if the other Denon's can do this or not. The manual says AVP only so maybe not. Its the same protocol that is used when you connect a control device to an RS232 port on the preamp.

Aesculus
2008-12-18, 09:55
Aesculus wrote:[color=blue]

I would use the AmpSwitch plugin as a start. Replace the switching code
by your IP commands. Do it directly with IO::Socket or use the Perl
Net::Telnet module if necessary.

Regards,
Peter

Peter: I could not find a AmpSwitch plugin but did find a PowerSwitchII plugin that referenced AmpSwitch. Is that what you ment?

Mark Lanctot
2008-12-18, 10:02
I wouldn't mess with IR if you can switch the thing over the network.

Why not? It's very, very easy, especially if the amp has an "IR IN" port - which means you can connect the two directly without sending IR commands over the air using an ordinary stereo submini cable, no IR blaster hardware required:

http://wiki.slimdevices.com/index.php/IRBlasterDirectLink

peterw
2008-12-18, 10:15
Why not? It's very, very easy, especially if the amp has an "IR IN" port - which means you can connect the two directly without sending IR commands over the air using an ordinary stereo submini cable, no IR blaster hardware required:

http://wiki.slimdevices.com/index.php/IRBlasterDirectLink

With direct IR you'd also avoid the security problems that appear to exist in the Denon network control software. It appears that the Denon web UI is really primitive (from a security perspective) and all an attacker would need to do to mess with the Denon settings is get you to browse a malicious web page; the attacker wouldn't even need to use any Javascript.

I understand the same may be true of default installations of SqueezeCenter 7.3, but at least SqueezeCenter allows you to enable some protection.

Another option would be the ExecuteScript plugin -- write "on" and "off" scripts in your preferred scripting language or development environment, and let ExecuteScript run them for you.

Aesculus
2008-12-18, 11:10
With direct IR you'd also avoid the security problems that appear to exist in the Denon network control software. It appears that the Denon web UI is really primitive (from a security perspective) and all an attacker would need to do to mess with the Denon settings is get you to browse a malicious web page; the attacker wouldn't even need to use any Javascript.

I understand the same may be true of default installations of SqueezeCenter 7.3, but at least SqueezeCenter allows you to enable some protection.

Another option would be the ExecuteScript plugin -- write "on" and "off" scripts in your preferred scripting language or development environment, and let ExecuteScript run them for you.

Security is not a problem. I have the net firewalled and do not allow any incoming connections outside the firewall to that IP address.

Keep in mind that the Net interface is not using the Denon Web controller, but the underlying control language (serial) via the IP interface. It also allows for 2-way functions which IR cannot do.

Aesculus
2008-12-18, 11:11
Peter: I could not find a AmpSwitch plugin but did find a PowerSwitchII plugin that referenced AmpSwitch. Is that what you ment?

PeterW: Bump.

peterw
2008-12-18, 11:26
Security is not a problem. I have the net firewalled and do not allow any incoming connections outside the firewall to that IP address.

Keep in mind that the Net interface is not using the Denon Web controller, but the underlying control language (serial) via the IP interface. It also allows for 2-way functions which IR cannot do.

A perimeter firewall won't fully protect you. The attacker doesn't need direct access to the Denon; the attacker would use your web browser to attack it. It looks like the Denon web interface -- unless you have a device *inside* your network blocking web requests from devices *inside your own network*, or unless you can actually disable it -- is vulnerable to CSRF and probably DNS Rebinding attacks. If your PC can connect to port 80 on the Denon, you're probably at risk. CSRF has been well understood for at least 7 years now; DNS Rebinding for a bit over one year. From what I've seen, the Denon developers didn't defend against either attack.

http://en.wikipedia.org/wiki/Cross-site_request_forgery
http://en.wikipedia.org/wiki/DNS_rebinding

peter
2008-12-19, 03:35
Aesculus wrote:
> peter;372582 Wrote:
>
>> Aesculus wrote:[color=blue]
>>
>> I would use the AmpSwitch plugin as a start. Replace the switching code
>>
>> by your IP commands. Do it directly with IO::Socket or use the Perl
>> Net::Telnet module if necessary.
>>
>> Regards,
>> Peter
>>
>
> Peter: I could not find a AmpSwitch plugin but did find a PowerSwitchII
> plugin that referenced AmpSwitch. Is that what you ment?
>

Yeah, that's the one. Sorry, AmpSwitch was the old name.

Regards,
Peter

peter
2008-12-19, 03:38
peterw wrote:
> Aesculus;372658 Wrote:
>
>> Security is not a problem. I have the net firewalled and do not allow
>> any incoming connections outside the firewall to that IP address.
>>
>> Keep in mind that the Net interface is not using the Denon Web
>> controller, but the underlying control language (serial) via the IP
>> interface. It also allows for 2-way functions which IR cannot do.
>>
>
> A perimeter firewall won't fully protect you. The attacker doesn't need
> direct access to the Denon; the attacker would use your web browser to
> attack it. It looks like the Denon web interface -- unless you have a
> device *inside* your network blocking web requests from devices *inside
> your own network*, or unless you can actually disable it -- is
> vulnerable to CSRF and probably DNS Rebinding attacks. If your PC can
> connect to port 80 on the Denon, you're probably at risk. CSRF has been
> well understood for at least 7 years now; DNS Rebinding for a bit over
> one year. From what I've seen, the Denon developers didn't defend
> against either attack.

Come on, what's the likelyhood and the possible damage? The attacker
would need to know the IP address the Denon was on and - of course -
that you have one connected in the first place.

You can be too paranoid.

Regards,
Peter

peter
2008-12-19, 03:38
Mark Lanctot wrote:
> peter;372582 Wrote:
>
>> I wouldn't mess with IR if you can switch the thing over the network.
>>
>
> Why not? It's very, very easy, especially if the amp has an "IR IN"
> port - which means you can connect the two directly without sending IR
> commands over the air using an ordinary stereo submini cable, no IR
> blaster hardware required:
>
> http://wiki.slimdevices.com/index.php/IRBlasterDirectLink
>

I agree, that's a pretty elegant solution.

Regards,
Peter

Aesculus
2008-12-26, 22:45
How are you supposed to install the Powerswitch plugin under Linux on 7.3.1? I tried entering the url for the ZIP file in the extensions URL and pressing Save but nothing happened.

Figured it out. SSOTS for QNAP has a utility