Cynical Denon - Denon and Marantz AV Receiver control

Posted on
Fri Nov 02, 2012 10:44 pm
asw24b offline
Posts: 222
Joined: Dec 30, 2007
Location: Los Altos Hills, CA

Re: Cynical Denon - Denon and Marantz AV Receiver control

Perry The Cynic wrote:
Sure enough. My plugin's strategy is to ask for both the HD and AN ("analog", i.e. old-style radio) frequencies and see which one the tuner replies to. Denons basically have no error reporting; they just eat anything they don't understand. So here we go:
Cynical Denon AVR -> TFHD?

"Hey, Denon, what's your HD radio frequency?"
Cynical Denon AVR <- <Ctx:<attr:tuner_frequency>> HD 008750

"I've got an HD radio tuned to 87.5FM!"
Cynical Denon AVR <- <Ctx:unknown> TFHDMCA
Cynical Denon AVR -> TFAN?

"Hey Denon, what's your analog frequency?"
Cynical Denon AVR <- <Ctx:<attr:tuner_frequency>> AN 052000

"My analog frequency is 520KHz."
And the plugin panics (wisely - it's not written for what's reported as two different tuners).

Now I can't find a protocol description for the AVR-4308CI anywhere online (how old is this thing?). Is it supposed to really have two radios, or is the firmware just getting a bit, well, confused?

Cheers
-- perry



The 4308 is about 5 years old.

I have all of the protocol docs; It lists valid input sources as:

PHONO CD TUNER DVD HDP TV/CBL SAT VCR DVR V.AUX NET/USB XM HDRADIO DAB IPOD


I can send you all of the docs, if you would like them.

Mike

Posted on
Fri Nov 02, 2012 11:11 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

I can send you all of the docs, if you would like them.


Sure; just mail them to me, or send me a PM. It's the protocol document I really need, the one with arcane strings like "TFAN?" in it. :-)

Cheers
-- perry

Posted on
Wed Nov 14, 2012 9:47 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Cynical Denon - Denon and Marantz AV Receiver control

I'm seeing an error in the Indigo 6 (Beta) log for this plugin. Seems that it's looking into the Indigo 5 folder and sees the Indigo 6 beta as an invalid version:

Cynical Denon Error Error in plugin execution InitializeMain:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Cynical Denon.indigoPlugin/Contents/Server Plugin/cyin/asynplugin.py", line 40, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Cynical Denon.indigoPlugin/Contents/Server Plugin/cyin/plug.py", line 93, in __init__
File "/Library/Application Support/Perceptive Automation/Indigo 5/Plugins/Cynical Denon.indigoPlugin/Contents/Server Plugin/cyin/plug.py", line 141, in check_compatibility
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/version.py", line 40, in __init__
File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/version.py", line 107, in parse
<type 'exceptions.ValueError'>: invalid version number '6.0.0 b1'

Posted on
Mon Feb 25, 2013 11:35 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

To tie off that end, the version-parsing issue has been squashed a while ago.

Posted on
Sun Mar 03, 2013 3:40 pm
SpencerJRoberts offline
User avatar
Posts: 256
Joined: Dec 09, 2012
Location: Mountain View, CA

Re: Cynical Denon - Denon and Marantz AV Receiver control

I've been having a ton of problems with the new b7 and Indigo 6. I finally got the plugin to recognize my receiver and zone 2 but I'm getting the following in the Indigo log whenever I try to turn the device on through an Indigo action:

Code: Select all
  Cynical Denon Error             in <lambda>: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 46, in diagnostic_log
  File ".../Server Plugin/cyin/debugging.py", line 56, in diagnose_call
  File "plugin.py", line 178, in <lambda>
    return action(lambda action: self.zone.set_attribute(name[4:], action.value))
  File ".../Server Plugin/denon/attr.py", line 184, in set_attribute
AttributeError: 'bool' object has no attribute 'lower'


Any ideas as to what might be going on here? Thanks Perry

Posted on
Sun Mar 03, 2013 4:43 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

Any ideas as to what might be going on here? Thanks Perry

Backwash from an earlier bug fix. Try 1.0.2 and see if it's better.

Cheers
-- perry

Posted on
Sun Mar 03, 2013 4:50 pm
SpencerJRoberts offline
User avatar
Posts: 256
Joined: Dec 09, 2012
Location: Mountain View, CA

Re: Cynical Denon - Denon and Marantz AV Receiver control

Perry The Cynic wrote:
Backwash from an earlier bug fix. Try 1.0.2 and see if it's better.

Cheers
-- perry


Odd, I thought I was on the latest version but I wasn't. Thanks, seems to be working now :)

Posted on
Tue Mar 19, 2013 6:50 am
nicb offline
User avatar
Posts: 70
Joined: Feb 17, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

My Cynical Denon keeps loosing contact with the amps - the device state becomes stale after about a day, sometimes longer. Restarting the plugin remedies things (for a day or so).

I have three Denons ethernet connected to to a switch which is connected to the always-on Mac running Indigo. That Mac does other server tasks (DNS, DHCP, file services etc) and it does not appear to loose connection with the network.

Any suggestions as to where to look to troubleshoot this? (And in the interim is there a way to force the plugin to reload regularly?).

Thanks in advance

Posted on
Tue Mar 19, 2013 11:12 am
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

Any suggestions as to where to look to troubleshoot this? (And in the interim is there a way to force the plugin to reload regularly?).

If you tell the plugin to change something (say, raise the volume or switch sources), what happens? Do you get an error message, does it work, or does it seem to ignore it?

Please note that only one device may talk Ethernet to a Denon at a time; if you have another (whether it's another plugin or manual telnet or some other third party tool), they'll fight each other over the connection and one will seem to go catatonic. (The Denon iOS App uses the web interface, so it doesn 't interfere with Cynical Denon.)

For a work-around, try an action group (perhaps scheduled to run at 3am :-)) that disables and then re-enables the Receiver device. This should reset the connection.

For what it's worth, the next version of Cynical Denon will have code to recover from loss of network connection, regardless of cause.

Cheers
-- perry

Posted on
Tue Mar 19, 2013 11:28 am
nicb offline
User avatar
Posts: 70
Joined: Feb 17, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

If you tell the plugin to change something (say, raise the volume or switch sources), what happens?

It gets ignored.

Please note that only one device may talk Ethernet to a Denon at a time;

Didn't know that, but it makes sense. The only thing that talks to the Denon (over port 23?) is the plugin - I do access them via their web interfaces (port 80) but you say this shouldn't affect things.

For a work-around, try an action group (perhaps scheduled to run at 3am :-)) that disables and then re-enables the Receiver device.

Ahh, good suggestion, I will try that. I was thinking that I would have to AppleScript the plugin restart, which would have streched my abilities.

Thanks for the help, looking forward to the next version of Cynical Denon.

-Nic

Posted on
Sat Mar 23, 2013 9:40 am
davehale offline
Posts: 24
Joined: Mar 02, 2004

Re: Cynical Denon - Denon and Marantz AV Receiver control

I've got a Denon 3808CI and I'm able to turn off the unit via the plugin but not turn it back on again. Is it possible to turn it back on again via the plugin?


Mar 23, 2013 11:33:17 AM
Action Group Turn off Basement Denon
Cynical Denon Basement Denon is now standby
Action Group Turn on Basement Denon

Mar 23, 2013 11:33:42 AM
Cynical Denon getDeviceStateList <indigo.Device object at 0x3062f30> avreceiver 9897565
Cynical Denon getDisplayStateId <indigo.Device object at 0x3062f30> avreceiver 9897565
Cynical Denon getIOMConfigUiValues avreceiver 9897565
Cynical Denon getIOMConfigUiXml avreceiver 9897565
Cynical Denon endIOMConfigUi avreceiver 9897565
Cynical Denon getIOMConfigUiValues set_zone_power 0
Cynical Denon getIOMConfigUiXml set_zone_power 0
Cynical Denon endIOMConfigUi set_zone_power 0
Action Group Turn on Basement Denon
Cynical Denon Error Basement Denon unavailable: [Errno 60] Operation timed out
Cynical Denon DENON EVENT <Ctx:END>
Cynical Denon Basement Denon connecting to host
Received INSTEON "Laundry Room Sensor" on (button 1)

Mar 23, 2013 11:34:54 AM
Cynical Denon Basement Denon is now exploring
Cynical Denon zones M
Cynical Denon Basement Denon is now exploring

Posted on
Sat Mar 23, 2013 10:49 am
nicb offline
User avatar
Posts: 70
Joined: Feb 17, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

This might be too obvious, but FWIW:

My Denons were factory default to 'Network off in standby'. You have to go through the OSD to the Network settings and change the IP control setting:

Off In Standby : Suspend network function during standby.
Always On : Network is on during standby. Main unit operable with a network compatible controller.

-Nic

Posted on
Sat Mar 23, 2013 11:36 am
davehale offline
Posts: 24
Joined: Mar 02, 2004

Re: Cynical Denon - Denon and Marantz AV Receiver control

Ah, that was it. Setting the Standby Mode Power Savings to Off did the trick.

On this model the options look like this:

<Network Option: Standby Mode Power Saving>
(1)Press MENU button, then Menu appears on FL-display (and GUI) (2)Select “Manual Setup > Network Setup > Other > Power Saving” (3)Set parameters described below.
“OFF”---Use this setting when using the AVR-3808 connected in a network. “ON”--- Use this setting when not using the AVR-4308 connected in a network.
This setting is reducing the power consumption in the standby mode.

Posted on
Sun Apr 07, 2013 4:17 pm
bmoraes offline
Posts: 47
Joined: Feb 05, 2007
Location: Rio de Janeiro, Brazil

Re: Cynical Denon - Denon and Marantz AV Receiver control

I've been experiencing an error that others have already reported and apparently it is related to having HD and analog radio.

I have tried to disable de HD Radio source, but it did not solve the problem. Is there a way to solve it tweaking the receiver configurations?


Code: Select all
 Cynical Denon Error             in runConcurrentThread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 46, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 56, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 51, in runConcurrentThread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 49, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 88, in run
    item._can_read()
  File ".../Server Plugin/asyn/selectable.py", line 228, in _can_read
    result = scan(self._rbuf, self.callout)
  File ".../Server Plugin/asyn/scan.py", line 68, in scan
    callout(ctx, *m.groups())
  File ".../Server Plugin/asyn/core.py", line 140, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]   # latch callback list
  File ".../Server Plugin/denon/avr.py", line 313, in _event
    args = filter(self, args)
  File ".../Server Plugin/denon/avr.py", line 150, in radio_filter
    assert radio == self.radio_type
AssertionError

  Cynical Denon Error             plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


I could get rid of the assertion error commenting out the if on line 150 of denon/avr.py (as mentioned earlier in this topic), but the rest of the error messages still appear.

Any help is much appreciated!

Posted on
Tue Apr 09, 2013 4:00 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

Re: Cynical Denon - Denon and Marantz AV Receiver control

I have tried to disable de HD Radio source, but it did not solve the problem. Is there a way to solve it tweaking the receiver configurations?

There is not; the code is purposely paranoid about this. I'm going to try a work-around in the next version, but it's hard to test this kind of thing (I have no hardware of this kind myself).

Cheers
-- perry

Who is online

Users browsing this forum: No registered users and 3 guests