News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Denon AVR 2307 - house to sleep mode while media is playing

Started by wombiroller, February 09, 2009, 03:55:13 AM

Previous topic - Next topic

wombiroller

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

Quote from: posde on February 10, 2009, 12:25:39 PM
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
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

alx9r

Quote from: wombiroller on February 09, 2009, 03:55:13 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
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

tschak909

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

#19
Quote from: tschak909 on February 09, 2009, 06:37:48 PM
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
Andy Herron,
CHT Ltd

For Dianemo/LinuxMCE consulting advice;
@herron on Twitter, totallymaxed+inquiries@gmail.com via email or PM me here.

Get Dianemo-Rpi2 ARM Licenses [url="http://forum.linuxmce.org/index.php?topic=14026.0"]http://forum.linuxmce.org/index.php?topic=14026.0[/url]

Get RaspSqueeze-CEC or Raspbmc-CEC for Dianemo/LinuxMCE: [url="http://wp.me/P4KgIc-5P"]http://wp.me/P4KgIc-5P[/url]

Facebook: [url="https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465"]https://www.facebook.com/pages/Dianemo-Home-Automation/226019387454465[/url]

[url="http://www.dianemo.co.uk"]http://www.dianemo.co.uk[/url]

alx9r

Quote from: tschak909 on April 12, 2009, 08:21:50 AM
I did this work for totallymaxed back in February, doing these exact fixes. They are a part of 0810.

Great!
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

alx9r

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
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

dlewis


alx9r

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
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

UNi


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

Quote from: UNi 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. 

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
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

UNi

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

Quote from: UNi 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!

You're welcome.  I'm glad it helped you.
I keep my updated system design here:
[url="http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup"]http://wiki.linuxmce.org/index.php/Alx9r%27s_Sample_Setup[/url]

PcCowboy

ya i was thinking a compatible class 2 nano BT.

(Wow...strange. i sooo thought i posted this in my thread...sorry)

UNi

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?