Announcement

Collapse
No announcement yet.

Announce: Denon AVP Control Plugin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Announce: Denon AVP Control Plugin

    This Squeezebox plugin will turn on and off a Denon amplifier/receiver when the Squeezebox is turned on/off or a song is played. The plugin will optionally set one of the QuickSelect modes, and set the volume of the Squeezebox to match the amplifier volume. The user can also set a optional on or off delay timer and set the maximum volume level they wish the amplifier to be set to when controlling the Squeezebox.

    The plugin uses the Denon serial protocol over a wireless or wired network and therefore a network connection between the SqueezeCenter server and the Denon amplifier must be available.

    The plugin has only been tested with the Denon AVP-A1HD and the Squeezebox Receiver but it should work with any Denon receiver that supports the serial protocol over a network and the Squeezebox Classic as well. The plugin has also been tested with the Apple iPod Touch 2nd Gen using the iPeng native application.

    You will find the source for the plugin at:


    EDIT: Now supports SBS 7.4x and iPeng players settings menus for audio adjustments
    Last edited by Aesculus; 2009-12-13, 23:12. Reason: Update for SBS 7.4x
    Chris

    #2
    Chris, you might want to look at this feature request:


    It would let your plugin control the Denon volume, leave the Squeezebox at a fixed level, and have the Controller, iPeng, the Squeezcenter web UI, etc. show the *Denon* volume...
    owner of the stuff at https://tuxreborn.netlify.app/
    (which used to reside at www. tux.org/~peterw/)
    Note: The best way to reach me is email or PM, as I don't spend much time on the forums.
    Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
    FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
    SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

    Comment


      #3
      Originally posted by peterw View Post
      Chris, you might want to look at this feature request:


      It would let your plugin control the Denon volume, leave the Squeezebox at a fixed level, and have the Controller, iPeng, the Squeezcenter web UI, etc. show the *Denon* volume...
      Interesting. I have heard that IR Blaster has a problem with the volume settings (it seems it can go down but not up). I don't use IR, but the Denon serial protocol via a wireless or wired network. Mine does everything that was described before. I don't have a problem with volume changes but I did have to delay setting the volume by 1/4 second as iPeng was overrunning the Denon amp.

      Currently I only set the Squeezebox display with the Denon volume when you turn it on. After that its controlled by the SqueezeCenter and Squeezebox. I could use the same feature to reset the display periodically (for example after a few moments or when a new song is played). Right now I don't feel that is an important feature as most users will either use iPeng for everything or if they adjust the volume of the amp they probably won't care that the Squeezebox is showing the exact level. I don't want to overrun the Denon amps with network traffic as they are not very efficient and have a fairly long latency. They also don't support any form of pub/sub so this feature would be pretty dirty.
      Last edited by Aesculus; 2009-02-15, 06:17.
      Chris

      Comment


        #4
        Version 1.1 is now available that allows both multizone amplifier support as well as synchronizing the amplifier volume with SqueezeCenter when the user changes the amplifier volume directly.
        Last edited by Aesculus; 2009-02-24, 05:48.
        Chris

        Comment


          #5
          Denon Amps with Serial to ethernet Adapter

          I have a Denon 2807 amp who has the serial interface. I use a Sena LS110 Serial to ethernet converter to access my amp by ethernet. I can control it with telnet with the same commands as the AVP. But when i debug the avp Control plugin, i have the following error:
          "Plugins:enonAvpControl:enonAvpComms::_error (175) error connecting to url: error=Timed out waiting for data url=HTTP://10.41.237.25:23"
          Could the problem be the "http" in front of the ip Address?
          Could you help or instruct me how to modify the plugin so it works for me? TPerhaps we should only instruct it to use telnet instead of http?

          thanks for any help

          Stephane

          Comment


            #6
            Originally posted by trufy View Post
            I have a Denon 2807 amp who has the serial interface. I use a Sena LS110 Serial to ethernet converter to access my amp by ethernet. I can control it with telnet with the same commands as the AVP. But when i debug the avp Control plugin, i have the following error:
            "Plugins:enonAvpControl:enonAvpComms::_error (175) error connecting to url: error=Timed out waiting for data url=HTTP://10.41.237.25:23"
            Could the problem be the "http" in front of the ip Address?
            Could you help or instruct me how to modify the plugin so it works for me? TPerhaps we should only instruct it to use telnet instead of http?

            thanks for any help

            Stephane
            Look at the plugin.xml file. In the commandCallback method I preface the ip address with http:\\ and also append the port (23). You can try using telnet here but not sure how it would work. It calls the Async Method which is doing sockets.

            If you change the plugin.xml file you will have to restart SC for it to take effect.

            You can also turn debug mode on by swapping the # in these lines near the top:

            # 'defaultLevel' => 'DEBUG',
            'defaultLevel' => 'OFF',

            Then you can look at the server log and get some more info on whats happening.

            Good luck with your attempt.
            Chris

            Comment


              #7
              Originally posted by trufy View Post
              I have a Denon 2807 amp who has the serial interface. I use a Sena LS110 Serial to ethernet converter to access my amp by ethernet. I can control it with telnet with the same commands as the AVP.
              So for instance you telnet to the Sena device and enter "PWSTANDBY" plus a carriage return to turn the amp off?
              owner of the stuff at https://tuxreborn.netlify.app/
              (which used to reside at www. tux.org/~peterw/)
              Note: The best way to reach me is email or PM, as I don't spend much time on the forums.
              Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
              FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
              SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

              Comment


                #8
                Originally posted by trufy View Post
                I have a Denon 2807 amp who has the serial interface. I use a Sena LS110 Serial to ethernet converter to access my amp by ethernet. I can control it with telnet with the same commands as the AVP.
                Stephane,

                If you're running SqueezeCenter 7.3, you might be interested in a Denon control plugin I've written separately from Aesculus' Denon AVP Control plugin. Mine, which I call DenonSerial, doesn't have as many features (no QuickSet, Zone 2, or delay timer support [well, there's untested logic to turn the Denon off after a period of apparent inactivity]), though I think it may offer one feature Aesculus' lacks -- the ability to use an Squeezebox IR remote's volume keys even when the Squeezebox is off (when watching a movie, I leave the SB3 off and displaying time & weather info). Mine has only been tested with a direct serial connection between SqueezeCenter and the Denon amp, and even there only for a few days, but it *should* support network connections to serial port servers like the Sena LS1x0 hardware.

                You can get the plugin from my Test repository (use the Extension Downloader), http://www.tux.org/~peterw/slim/slim7/repodata-test.xml

                On my personal system I'm also running a modified version of Michael Herger's latest MusicInfoScr screensaver. The modification is a new API in MIS that lets my plugin provide an alternate dB gain value to be displayed in the MIS alternate volume display -- so the MIS alternate volume display can show the Denon volume level (-80 to +18) rather than the normal Squeezebox variable output level (-49.5 to +0) for the Squeezebox connected to my Denon amp. I've only very recently sent a patch to Michael but hope he'll accept it or something like it, as both my plugin and Aesculus' could benefit from such an API.

                Stephane, if you try my DenonSerial plugin, please let me know how it goes.

                -Peter
                owner of the stuff at https://tuxreborn.netlify.app/
                (which used to reside at www. tux.org/~peterw/)
                Note: The best way to reach me is email or PM, as I don't spend much time on the forums.
                Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
                FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
                SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

                Comment


                  #9
                  Hello Peter
                  There was a long summer break where i wasnt really motivated to sit behind the Screen :-). Now i saw your Plugin and tested it. Its' great! I used the LS110 in Telnet Server mode with a COM Port Redirector. I was unable to Adress the LS110 diectly from your Plugin using IP. Perhaps i have to setup the LS110 differently. There is also an UDP Server and TCP Server mode. When i use it with the COMO Port Redirector Software, it seems to work for a few minutes, then the plugin Stops sending "Orders". I will try to Debug to find out what could be cause. I would prefer to use IP Access directly...
                  I'll keep you up to date.

                  regards

                  Stéphane

                  Comment


                    #10
                    I posted a new version of the DenonAVPControl program yesterday that should help in performance and reliability, especially with multiple synchronized players and the iPeng 1.2 native master controller.
                    Chris

                    Comment


                      #11
                      Originally posted by trufy View Post
                      There was a long summer break where i wasnt really motivated to sit behind the Screen :-). Now i saw your Plugin and tested it. Its' great! I used the LS110 in Telnet Server mode with a COM Port Redirector. I was unable to Adress the LS110 diectly from your Plugin using IP. Perhaps i have to setup the LS110 differently. There is also an UDP Server and TCP Server mode. When i use it with the COMO Port Redirector Software, it seems to work for a few minutes, then the plugin Stops sending "Orders". I will try to Debug to find out what could be cause. I would prefer to use IP Access directly...
                      I'll keep you up to date.
                      OK, great. I've seen the "just stops working" problem with my USB-serial adapter, though normally it takes a few days for that to happen. I'm trying to find & fix that bug, as I find it really annoying, too.

                      The TCP support should be better in the latest release, 0.1.22. I wasn't being very careful about the CR line endings in earlier releases, but now I am. And I've written a fake TCP server app to better test this.

                      Finally, I'm going to start a new thread on this to keep Chris' cleaner. Oh, and I put up a web page that links to Chris' plugin; I expect anyone with an Ethernet-equipped Denon would probably be better served by Chris' plugin, especially while I try to fix that "just stops working" bug.

                      Thanks!
                      owner of the stuff at https://tuxreborn.netlify.app/
                      (which used to reside at www. tux.org/~peterw/)
                      Note: The best way to reach me is email or PM, as I don't spend much time on the forums.
                      Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
                      FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
                      SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

                      Comment


                        #12
                        Problems after upgrade to 7.4

                        Hi!

                        I really like this plugin but after I upgraded to 7.4 it stop working
                        the plugin page just wants to reboot squeezebox server over and over again.
                        And i cant activate the plugin at all.. Is it just my install that got bricked or is
                        there anyone else that have this problem?

                        I´m wondering also if its possible to make a selection in the config so
                        i can release the control over the denons volume and just adjust the
                        squezzebox volume. And also make it select the right input on the reciver?

                        /peter

                        Comment


                          #13
                          Originally posted by pidde View Post
                          Hi!

                          I really like this plugin but after I upgraded to 7.4 it stop working
                          the plugin page just wants to reboot squeezebox server over and over again.
                          And i cant activate the plugin at all.. Is it just my install that got bricked or is
                          there anyone else that have this problem?

                          I´m wondering also if its possible to make a selection in the config so
                          i can release the control over the denons volume and just adjust the
                          squezzebox volume. And also make it select the right input on the reciver?

                          /peter
                          Peter: I have not upgraded to 7.4 yet so I have not had a chance to test it. This may be a few weeks before I can get this done because of workload and that my NAS that SC is on is out for repair.

                          The plugin does not allow you to adjust the SB volume in place of the Denons. I suppose in this scenario you only wanted to turn the Denon on/off? If you want you can go into the plugin code and comment out the line that sends the volume request.

                          Look for the line:

                          Code:
                          Plugins::DenonAvpControl::DenonAvpComms::SendNetAvpVol
                          and put a # in the first column to disable that command

                          You will then need to reinstall the plugin.pm file into the plugin area and restart your sc.

                          The way I select the correct input on the receiver is to use one of the QuickSelect options (1-3) if available on the receiver. Most Denons have this. The plugin will let you choose one of the three or none and this does more than just set the correct input but all the settings you want to have set for playback with the SB. Check it out.
                          Last edited by Aesculus; 2009-09-30, 23:59.
                          Chris

                          Comment


                            #14
                            Now Supports SBS 7.4

                            I was finally able to upgrade my system to SBS 7.41 and the plugin now supports SBS 7.4x. The only real change was to the repo.xml file.
                            Chris

                            Comment


                              #15
                              Originally posted by trufy View Post
                              I have a Denon 2807 amp who has the serial interface. I use a Sena LS110 Serial to ethernet converter to access my amp by ethernet. I can control it with telnet with the same commands as the AVP. But when i debug the avp Control plugin, i have the following error
                              ...
                              Stephane,

                              I just released a new version of DenonSerial that I've tested the network capabilities of. I tested with a Windows XP machine running VSPE to provide a TCP/telnet interface like what the Sena servers give you. In my brief testing, it worked fine (and is probably the first version of DenonSerial that would truly work with your Sena hardware). Please give it a try and let me know how it works for you, preferably in the DenonSerial thread I started.

                              -Peter
                              owner of the stuff at https://tuxreborn.netlify.app/
                              (which used to reside at www. tux.org/~peterw/)
                              Note: The best way to reach me is email or PM, as I don't spend much time on the forums.
                              Free plugins: AllQuiet Auto Dim/AutoDisplay BlankSaver ContextMenu DenonSerial
                              FuzzyTime KidsPlay KitchenTimer PlayLog PowerCenter/BottleRocket SaverSwitcher
                              SettingsManager SleepFade StatusFirst SyncOptions VolumeLock

                              Comment

                              Working...
                              X