PDA

View Full Version : Controlling a Denon 4306



robdob
January 18th, 2009, 05:10 AM
Hi,

I’m new to Girder so please forgive me if I am asking a stupid question.

Is there a step by step guide that will tell me how to get Girder 5 build 542 working with my Denon 4306? I am not having much luck getting it working.

I did the following:

1. Edited DenonReceiver.lua: DefaultModel = '4306' - Is this necessary as I am using IP not serial?
2. In Component Manager -> Transport Manager I added my Denon as an IP device
3. I called the device MyDenon - it is shown as connected in the Transport Manager
4. I opened the Lua console and I can see lots of connection checks for MyDenon
5. I entered the command MyDenon:PowerOff() and got the following, nothing happened to the Denon:

[string "Interactive"]:1: attempt to index global `MyDenon' (a nil value)
stack traceback:
[string "Interactive"]:1: in main chunk

I have tried various different commands and variants, e.g. Denon:PowerOff(), and I get a similar message each time.

I have the Generic IP, Serial and Transport plugins enabled.

I have read various posts and followed the tips in them without any success, I also tried removing the device completely and using Lua script to get it working but didn’t have any luck:

local Denon = serial.devices["Denon AVR"].New('192.168.1.100:23')
Denon:Open()
Denon:PowerOff()
Denon:PowerOn()

Can anyone help?

Thanks,

Rob

Rob H
January 25th, 2009, 04:40 AM
The 4306 isn't directly supported at present, but let's see if we can pretend that it's a 2805 for now, so reset the default model to 2805.

Reset Girder and look for any errors in the Lua console.

Add a Device Manager generic action to your GML and ensure that you can see your Denon there. Try a power command and see if that functions correctly.

robdob
January 25th, 2009, 10:57 AM
Rob,

Thanks for the tips, I am now getting somewhere, I think my problem was that I was using the incorrect tasks.

I followed your instructions and they worked, so I changed it back to 4306 and it still works.

Doing things this way has also allowed me to get my X10 working. Now it’s time to start experimenting with schedules to get things going on and off when I want them to.

One thing I am still not sure how to do is run commands via the Lua window, e.g., if I press F7 and enter the command "MyDenon:PowerOff()" I get the following message:

[string "Interactive"]:1: attempt to index global `MyDenon' (a nil value)
stack traceback:
[string "Interactive"]:1: in main chunk

I see lots of output in the Lua console like the following:

LOG: MyDenon : 0 - Connection Check

So I guess I am somehow getting the syntax of the variable I am referencing wrong.

Thanks,

Rob

Rob H
January 26th, 2009, 02:02 AM
Now you're asking! The transport doesn't use global variables, you need to look up the transport manager using


local tMgr = ComponentManager:GetComponentUsingName("Transport Manager")


Then, having got that you look up the Denon


local myDenon = tMgr:GetTransportUsingName("MyDenon")

If you want, you can do this just the once and save the result