Author Topic: Denon AVR 2307 - house to sleep mode while media is playing  (Read 6452 times)

wombiroller

  • Guru
  • ****
  • Posts: 340
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #15 on: February 11, 2009, 10:34:37 am »
Sorry guys - this doesn't appear to be a fix after all. Turns out the template stopped working (couldn't switch inputs at all). Once I fixed this and re-added the code... problem remains. Left a note on the ticket... Oh well.

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #16 on: April 11, 2009, 01:04:52 am »
I regularly fuck up some existing templates. What I do is, I go into the web admin, Advanced / sqlCVS / Diff, and check all DCE and IR. lmce goes out, checks the sqlCVS version of my templates, and on the following screen, I select the tables I want to revert to their original information.

The first 4-5 times, I did not select the right tables and totally screwed my installation. Nowadays this works fairly well ;)

Wow.  I'm surprised this actually works.  I have heard from devs that the sqlCVS portion of the admin page is known to not work right, so proceed with caution.

When I tried using the revert command I narrowed my revert to one checkbox (out of about 15) then clicked revert.  After the revert, I re-diffed.  To my surprise there were no differences -- the revert had ostensibly wiped out all my changes.  I checked some device templates that I had modified and thought I had sheltered from revert.  Sure enough the were reverted to their original form.

Beware of unexpected results with this trick.  Despite the shortcomings I have found this feature handy. 

Alex

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #17 on: April 12, 2009, 06:58:00 am »
Hey All,

Got myself a Denon AVR 2307 yesterday and was very impressed with the plug and play nature!!! (USB to RS232 cable)  ;D ;D

I did notice some odd behaviour though - hoping someone may be able to assist.

The AVC-A1SRA (RS232) device template has some shortcomings:

Delay after Power On Command
No commands can be sent to the receiver for 6 seconds after a power on command is sent to the device.  Power commands seem to be sent to the device by the router even if the receiver is already powered on.  The result is that commands seem to get delayed (or maybe lost) during this rather long wait period. 

The solution is as follows:
1.  Move the delay from the "Delays" portion of the template in to ruby code for the power on command and put an appropriate sleep there to allow the unit to power up before commands are sent to it.
2.  In the power on command, only sleep and send the power on string to the receiver when it is off.  That is, keep track of the power state and ignore extraneous power on commands.

As a side note, I'm pretty sure that this same problem plagues the Marantz SR Series template.

Audio is Interrupted Whenever an Inputs String is Sent to the Receiver
Whenever a string is sent to the receiver that selects an input, the audio is interrupted.  This happens even if the input is not changed.  Input commands are sent to the device by the router even if the input is not changing.  The result is a gap in audio whenever media playback is started.

The solution is as follows:
In the ruby code, keep track of which input is currently selected.  Only send an input selection string to the receiver when the input changes.  That way a gap in audio is only heard when the input actually changes.


I have a new Denon AVR/AVC series device template that incorporates those changes if anyone is interested.

Regards,

Alex

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5501
  • DOES work for LinuxMCE.
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #18 on: April 12, 2009, 08:21:50 am »
I should have mentioned something, but...

I did this work for totallymaxed back in February, doing these exact fixes. They are a part of 0810.

-Thom

totallymaxed

  • LinuxMCE God
  • ****
  • Posts: 4508
  • Smart Home Consulting
    • View Profile
    • Dianemo - at home with technology
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #19 on: April 12, 2009, 11:34:51 am »
Actually, the problem is in the device template itself, I'm assuming you're using the AVC-A1SRA template?

I had to do some Denon work for Totallymaxed, and we spotted this in the original template. I subsequently made a device template specifically for the 2308.

Basically, there is a mute command in the power command that gets executed after 2 seconds, it just needs to be removed. (look in the Ruby Codes for the template.)

-Thom

Thats right. You have that 2308 template in the 0810 branch Thom don't you? If not let me know and we'll upload it.

Sorry...didn't read Thoms follow-up post ;-)

Andrew
« Last Edit: April 12, 2009, 11:49:31 am by totallymaxed »
Andy Herron,
Convergent Home Technologies Ltd

My Blog; http://ellipticalcurve.com

Get RaspSqueeze-CEC or Raspbmc-CEC Wifi enabled for Dianemo/LinuxMCE: http://wp.me/P4KgIc-5P

For Smart Home consulting advice;
@herron on Twitter, inquiries@ellipticalcurve.com via email or PM me here.

Get a Dianemo License: http://forum.linuxmce.org/index.php?topic=8880.msg100221#msg100221
Follow us on Facebook: https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465

http://www.dianemo.co.uk

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #20 on: April 12, 2009, 03:31:19 pm »
I did this work for totallymaxed back in February, doing these exact fixes. They are a part of 0810.

Great!

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #21 on: April 22, 2009, 03:16:00 am »
I've been asked to post my Denon AVR Series Template.  Here's how to use it.

Manually replicate the AVC-A1SRA (RS232) device template, with the following exceptions:
   * In the 'Edit IR Codes' window set 'Delays' for 'Power', 'Mode', and 'Other' to zero.
   * Fill in the ruby rectangles according to the file that I've attached.

Hope this helps someone. 

The template addresses the following issues with the AVC-A1SRA (RS232) template:
   1. Sets a reasonable volume level when power is shut off.  This avoids loud initial volume after starting up.  The ideal way to accomplish this is by using 'Respond to Events'.  However, the router sends the volume set command before the power on command, so if the receiver is off when you start to play media, a set volume command sent in response to a Play Media event is ignored.
   2. Delay after Power On Command (see my previous post)
   3. Audio is Interrupted Whenever an Inputs String is Sent to the Receiver (see my previous post)

Thom has an independently developed improved template that will be included in 0810.  Hopefully it will address the same issues so the Denons will work great right out of the box.

Alex

dlewis

  • Guru
  • ****
  • Posts: 401
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #22 on: April 22, 2009, 02:54:10 pm »
Could you please create a wiki on this?

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #23 on: April 22, 2009, 06:01:12 pm »
It is in my list of things to do, but it's a low priority because it will be obsolete as soon as 0810 is out.

Alex

UNi

  • Veteran
  • ***
  • Posts: 53
  • Would you like Cheese with that Whine?
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #24 on: April 23, 2009, 05:05:34 am »

I don't have my Denon receiver connected yet but I wanted to set up the template to get it ready for the install.  When I go into "edit IR codes", it says "ERROR  Cannot retrieve IR codes", then I click retry and this appears: Device template # 0 was not found

Is this because it can't pull the IR codes off the Denon?

Just want to be sure nothing's broken here...

-UNi 

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #25 on: April 23, 2009, 06:14:42 am »
I don't have my Denon receiver connected yet but I wanted to set up the template to get it ready for the install. 

UNi,

There is a template called "AVC-A1SRA (RS232)" that shipped with 0710RC2 that works quite well (aside from the few minor issues I mentioned earlier in this thread) with Denon receivers.  There is also a script that automatically detects that a Denon receiver is connected to the serial port and selects the "AVC-A1SRA (RS232)" template.  What this means is that Denon receivers are pretty much plug and play.  That is, you shouldn't have to do anything more than plug your receiver in and follow the prompts in the setup wizard.

You should definitely try to get to the point where you can control your Denon the plug and play way before attempting to create a new, improved device template for use with it.

Hopefully that helps a bit.

Alex

UNi

  • Veteran
  • ***
  • Posts: 53
  • Would you like Cheese with that Whine?
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #26 on: May 18, 2009, 06:37:22 pm »
I used your template and it seemed to fix the issue also that when I went to Power, and then Off, that my amplifier didn't try to turn itself right back on again...using 710.

Thanks!

alx9r

  • Guru
  • ****
  • Posts: 187
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #27 on: May 20, 2009, 01:20:38 am »
I used your template and it seemed to fix the issue also that when I went to Power, and then Off, that my amplifier didn't try to turn itself right back on again...using 710.

Thanks!

You're welcome.  I'm glad it helped you.

PcCowboy

  • Regular Poster
  • **
  • Posts: 23
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #28 on: May 20, 2009, 07:15:08 am »
ya i was thinking a compatible class 2 nano BT.

(Wow...strange. i sooo thought i posted this in my thread...sorry)
« Last Edit: May 20, 2009, 07:22:26 am by PcCowboy »

UNi

  • Veteran
  • ***
  • Posts: 53
  • Would you like Cheese with that Whine?
    • View Profile
Re: Denon AVR 2307 - house to sleep mode while media is playing
« Reply #29 on: May 27, 2009, 06:01:41 pm »
I've lost my ability to control the volume using my Gyration remote for my Denon AVR-2307CI, using this template.  It worked for a while.  Now I get these messages:


Error while calling method: Cannot call class method: cmd_282
error: undefined method `switchInput' for #, line: 95
backtrace:
   in: (eval): 95
   from (eval):95:in `cmd_282'
   from (eval):95

01   05/27/09 8:39:48.316      Receive string failed in HandleRequestSocket 18:ReceiveData failed Command_Impl1 Dev #50 <0xb607cb90>
01   05/27/09 8:44:28.944      Error while calling method: Cannot call class method: cmd_282
01   05/27/09 8:44:28.944      For obscure reasons could not handle the message <0xb57e1b90>
01   05/27/09 8:44:54.867      Error while calling method: Cannot call class method: cmd_282
01   05/27/09 8:44:54.867      For obscure reasons could not handle the message <0xb57e1b90>
01   05/27/09 8:45:01.034      For obscure reasons could not handle the message <0xb57e1b90>

How can I diagnose what might be wrong?  The receiver does play the sound...just cannot control the sound with my remote, when before I could.   CMD_282 equates to my Receiver Input that I told it to use.

Not sure if it's a Gyration issue or some other issue...

+++++ Update

I didn't have any values in the Volume Up / Volume Down Ruby Codes boxes #90 and #89 fields...I also seem to be missing the following from your Template.

#350
#313

Do you know why that would be?
« Last Edit: May 28, 2009, 12:17:32 am by UNi »