We have moved at community.getvera.com

Author Topic: Vera (Luup) Control of Denon A/V receiver over serial/ethernet  (Read 188737 times)

Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
I am currently writing a Luup plug-in to control Denon receivers.

I know this is something that has been mentioned previously on the forum, but it doesn't look like anyone actually implemented it:

http://forum.micasaverde.com/index.php?topic=3691.0

On that thread guessed mentioned his plug-in for Onkyo receivers. I took a look at his code and it looks pretty straightforward to do the same thing for a Denon.

I have a AVR-3808ci (which I love by the way!) and so currently I am focusing on supporting that. Assuming I get this working I am quite happy to help with other Denon receivers if anyone else is interested. As guessed mentioned in the thread above the Denon doesn't have a toggle mute - just a mute on or mute off. I'll have to play with that a bit.

In fact, there are a ton of things you can do with the Denon serial protocol, so this might take me a while to get fully implemented!

I enjoy picking up new programming languages, and Lua looks pretty straightforward. Should be fun!

One last question, how do you get hosted on code.mios.com's trac server?

-re

Offline strangely

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3722
  • Karma: +34/-2
  • Vera 1,3 & V light
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #1 on: March 06, 2011, 10:38:38 pm »
Send a PM to @mcvovidiu, he should be able to set you up.
Kwickset locks, HA01C, HA14C, HA02C, HA03C, HA05C, HA04C, HA07C, HA09C, Aeon HEM, GE 45604, 45606, 45609, ZDP100, VRF01-1LZ, WDTC-20, HA18WD, WDHA-12R, HRDS1, HM-TS001, AC1-ZW, TV-IP110, BL-C210A, LUUP control- EtherRain8, DSC Alarm, HDMI matrix, HR24-200, Panasonic TV, SQblaster

Offline mcvflorin

  • Administrator
  • Hero Member
  • *****
  • Posts: 1755
  • Karma: +11/-3
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #2 on: March 07, 2011, 05:29:16 am »
Quote
One last question, how do you get hosted on code.mios.com's trac server?

Hello, send me an email at florin@my.mios.com with your name and the desired username.
« Last Edit: March 07, 2011, 05:30:49 am by mcvflorin »

Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #3 on: March 10, 2011, 12:57:28 am »
Just a quick update to let everyone know I'm still working on this...

There seems to be a quirk with the Denon 3808ci receiver and telnet sessions. I can issue one command (and receive a response) and then the telnet session dies. I have to start a second session to issue another command. Otherwise I have volume up / down / and mute toggle working great.

Moving on from there is simply a matter of populating a list of commands in the Luup files.

-re

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #4 on: March 21, 2011, 02:43:42 am »
I did some work on this basically a straight pull from guessed's Onkyo Receiver plugin.

I have attached it hopefully to help out a bit.


Offline MikeT

  • Sr. Newbie
  • *
  • Posts: 30
  • Karma: +1/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #5 on: March 21, 2011, 07:08:15 pm »
Fantastic, just what I was after to get my Denon 3311 hooked into my new Vera. Can't wait to get my hands dirty with a little development to help take this route forward.

Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #6 on: March 21, 2011, 09:11:01 pm »
Glad to see that other people are interested in this! Work has been pretty crazy recently so I haven't had too much time to work on this.

I basically started by looking at guessed's Onkyo plugin as well. I was stalled as I couldn't figure out how to get my Denon to receive more than one command without restarting the telnet session. It turns out that these receivers are really particular about how the commands are sent. My code was not sending out just "COMMAND\r". I had to pull up wireshark and look at the packets going out. Haven't fixed this in Lua yet.

I was able to get pretty far yesterday with Perl. I am doing some experimentation there before I work on Lua. The interface is really terrific though - the receiver will forward any events that occur from the web ui or a remote over the serial link.

A few things to keep in mind:
-Since the protocol doesn't have a toggle mute it is necessary to poll the mute status first. I have that working in Lua.
-There are a few undocumented commands in the Denon protocol. One such command is "SSFUN ?" <- the space is necessary.

Maybe you guys should email mcvflorin as well to get added to the Trac server?

-re

Offline zoot1612

  • Moderator
  • Hero Member
  • *****
  • Posts: 603
  • Karma: +21/-2
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #7 on: March 22, 2011, 03:01:26 am »
I think you have gone further then me, mine was fire and forget.

At this point I don't think I would get a chance to work on this  so no point getting access, but I will be following your progress.

Offline xtrex

  • Newbie
  • *
  • Posts: 15
  • Karma: +0/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #8 on: May 18, 2011, 09:43:37 am »
Is there any news on the control of denon? On http://www.nicetaco.com/Command3808/ there is a great software that can control every aspect of the 3808 that can be a great insperation.

Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #9 on: July 18, 2011, 11:13:03 pm »
I had to put this all aside for a couple months but I'm working on it again. Right now I'm trying to work out multiple zones. I might end up splitting it out into three different devices (one for each zone). Any thoughts?

Otherwise, things seem to be working well and I just need to post this.

-re

Offline guessed

  • Community Beta
  • Master Member
  • ******
  • Posts: 5301
  • Karma: +92/-22
  • Release compat is not a bolted-on afterthought
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #10 on: July 18, 2011, 11:50:34 pm »
I would build the Amp's other Zones as Child devices, but have the Parent device setup to "handleChildren", so that the events go up to it.... and you can then dispatch them out over the Serial|Ethernet connection.

The children will most likely implement many of the services that the parent does (for Volume Control etc), so you'll have multiple D_xxxxx.xml files, and one I_xxxxx.xml file for the implementation logic.

Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #11 on: July 19, 2011, 12:59:22 am »
That sounds like a great way to handle it. As you are well aware I have to figure out making child devices for my other plug in anyway!

-re

Offline dfad1469

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #12 on: July 19, 2011, 01:05:06 am »
I have a 3311 which I can use to help test out your code. I have written a plug-in for my Honeywell Vista Alarm Panel, so I can also help with debug. Have you put any code on the trac site yet? Once you do, I can work with you to get this up and going.


Offline radarengineer

  • Moderator
  • Sr. Member
  • *****
  • Posts: 402
  • Karma: +4/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #13 on: July 19, 2011, 09:28:42 am »
I haven't put anything up on the Trac site yet, but my login should be active. I'll see what I can do when I get back from work tonight. I would certainly appreciate any help you could give!

-re

Offline dfad1469

  • Jr. Member
  • **
  • Posts: 77
  • Karma: +0/-0
Re: Vera (Luup) Control of Denon A/V receiver over serial/ethernet
« Reply #14 on: July 20, 2011, 10:34:43 am »
Any chance to get your code up?