@jenkinsjeff
Thanks for your reply - especially since I hijacked this thread which you started (it seemed most appropriate at the time). I was just deeply jealous that you integrated a Denon AVR-1913 with Vera “and the control is perfect”, and I have been trying to emulate that for my AVR-2307. I have to say that I could not understand quite why you would be interested in serial control when you had IP working, but reading your recent post… [url=http://forum.micasaverde.com/index.php/topic,8422.msg100025.html#msg100026]http://forum.micasaverde.com/index.php/topic,8422.msg100025.html#msg100026[/url]
…I now understand why! (Actually, I could do with your advice on a more general HA/AV topic that I’ll post separately!!)
The path to success has been devious and a bit painful, but the major milestones were:
[ol][li]USB to Serial - I ditched an old PL2303 device for an FTDI after following the trials, tribulations, and advice on this thread [url=http://forum.micasaverde.com/index.php/topic,1471.msg100034.html#msg100034]http://forum.micasaverde.com/index.php/topic,1471.msg100034.html#msg100034[/url] opting for a Startech.com 1 Port FTDI USB to Serial RS232 Adapter Cable with COM Retention. I note that they do a 2-port version also, and I plan to try that for my Denon DVD-2930 player, since I’m using a VeraLite with only one USB port. 9600 baud, 8 data bits, one stop bit, no parity. Assigned the “Used by device” to the Denon plugin.[/li]
[li]Diligent perusal of the Vera log file for Denon plugin entries after my hopes for a trouble-free “PlugNPlay” experience were dashed. I downloaded and printed the [tt]L_DenonReceiver1.lua[/tt] file to trace the point of failure. In the end it was simple enough - part of the initialization code handling multi-zone functionality suddenly drops into issuing HTTP requests, which clearly don’t work over a serial link. I’ve disabled this functionality in the code when running on serial. I’m thinking of stripping it out entirely since I use the Zone 2 amplifier for a back speaker in a 7.1 Surround configuration.[/li]
[li]Located, downloaded and absorbed the Denon AVR Serial Control Protocol specification for the 2307 and went through the Lua code again making the commands and responses conform to that, rather than the 3800 series protocol. I really don’t think that Denon put enough thought into compatibility between models, because this could have been SO much easier. I also modified the [tt]D_DenonReceiver1.json[/tt] and [tt]I_DenonReceiver1.xml[/tt] files to make the control names match the 2307 and my specific setup.[/li][/ol]
So, I’ve ended up with something that suits my needs, but a really good implementation would accommodate all the above changes in a programmatic way to configure the whole interface according to the device model type. The plugin already retrieves the custom channel names through the interface from the AVR but does nothing with them.
As a final piece of sugar, and to answer part of your OP, I’ve grouped all my devices into an “A/V” room within Vera, since the “AV Gear” tab seems totally non-functional. Anyway, HTH, but it does really need some more serious Lua coding (BTW, my preferred development environment is LDT, based on the open-source Eclipse platform - visit [url=http://www.eclipse.org/koneki/ldt]Archived Projects | The Eclipse Foundation for more information.)
[Edit: Since writing this, I’ve also found the work going on at http://forum.micasaverde.com/index.php/topic,5863 and although this is apparently not serial i/f oriented, it does seems to move towards addressing the programmatic improvements above.]