This page last changed on Feb 16, 2014 by sdavies.

Hello,

I've created a very simple remote to test the abilities of openremote which contains only zone 1 on/off, zone 1 volume slider and source set.
The RS232 connection between the PC and Russound has been verified by PC Tools; I've been able to read and write to the amp.
Unfortunately after going through extensive trouble shooting I've hit one roadblock too many.

Currently when pressing buttons on the remote I receive the following error: Send Request Error - Command not found.

The PC runs 64 bit Win 7; I understand that this has be known to conflict with the rxtx dll's, so I updated these based on some other posts I came across.

The Serial Port is set to:
Baud 19200
Bits 8
Stop Bits 1
Parity & Flow Control - None

Updated the config.properties to:
#-----------------------------------------------------------------------
#

  1. RUSSOUND CONFIGURATION:
  2. Configuration related to Russound amplifier

##

  1. IP-Address of the RS232 Serial gateway if used. The gateway has to support TCP mode
    russound.ip=192.168.0.109

##

  1. Port of RS232 Serial gateway to use
    russound.port=1234

##

  1. KeypadId IF NOT 0x70 (default). Specify as Hex without leading "0x" eg. "71"
    russound.keypadId=

##

  1. If the Russound is connected directly to a serial port of controller use device name here eg. /dev/ttyS0
  2. If a serial device is specified the IP settings are ignored
    russound.serialDevice=COM1

##

  1. If a pollingInterval is given, that means an extra thread is started which polls the device for the status
  2. valid values: 5000, 5s, 1m, 2h (no letter=milliseconds, s=seconds, m=minute, h=hour)
    russound.statusPollingInterval=

and finally here's an excerpt from the log file:

ERROR 2014-02-15 19:25:30,182 : Creating sensor failed. Error : Could not start Russound ip connection
XML Element : <sensor xmlns="http://www.openremote.org" id="250" name="Zone6 Power" type="switch">
<include type="command" ref="144" />
<state name="on" />
<state name="off" />
</sensor>
org.openremote.controller.exception.NoSuchCommandException: Could not start Russound ip connection
at org.openremote.controller.protocol.russound.RussoundCommandBuilder.build(RussoundCommandBuilder.java:78)
at org.openremote.controller.command.CommandFactory.getCommand(CommandFactory.java:164)
at org.openremote.controller.model.xml.Version20SensorBuilder.parseSensorEventProducer(Version20SensorBuilder.java:420)
at org.openremote.controller.model.xml.Version20SensorBuilder.build(Version20SensorBuilder.java:287)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorObjectModelFromXML(Version20ModelBuilder.java:817)
at org.openremote.controller.deployer.Version20ModelBuilder.buildSensorModel(Version20ModelBuilder.java:663)
at org.openremote.controller.deployer.Version20ModelBuilder.build(Version20ModelBuilder.java:557)
at org.openremote.controller.deployer.AbstractModelBuilder.buildModel(AbstractModelBuilder.java:154)
at org.openremote.controller.service.Deployer.startup(Deployer.java:858)
at org.openremote.controller.service.Deployer.startController(Deployer.java:336)
at org.openremote.controller.spring.SpringContext.initializeController(SpringContext.java:109)
at org.openremote.controller.service.ServiceContext.init(ServiceContext.java:383)
at org.openremote.controller.bootstrap.Startup.loadServiceContext(Startup.java:85)
at org.openremote.controller.bootstrap.servlet.ServletStartup.initializeServiceContext(ServletStartup.java:190)
at org.openremote.controller.bootstrap.servlet.ServletStartup.contextInitialized(ServletStartup.java:109)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: gnu.io.PortInUseException: Unknown Application
at gnu.io.CommPortIdentifier.open(CommPortIdentifier.java:467)
at org.openremote.controller.protocol.russound.RussoundClient.<init>(RussoundClient.java:71)
at org.openremote.controller.protocol.russound.RussoundCommandBuilder.build(RussoundCommandBuilder.java:76)
... 38 more
INFO 2014-02-15 19:25:30,417 : Startup complete.
INFO 2014-02-15 19:25:30,417 : Controller Definition File Watcher for Default Deployer started.

One thing I don't understand is why it is quoting Zone 6, when I'm using Zone 1

Anyhow, I'm not pulling much in the way of searches on this error so thought I'd resort to making my first post. Thanks in advance!

As it turns out my issue was strictly related to an instance of EventGhost that was running and interfering... now to figure out how to select different sources for each Zone.

Posted by sdavies at Feb 16, 2014 05:22

The Russound command can connect to an RS232 port on the computer, or via a IP bridge. From the error message it looks like it is trying to use the IP bridge. Try with commenting out the IP address configuration and see if it defaults back to open the com port on the computer instead.

Posted by toesterdahl at Feb 17, 2014 07:23

Thanks Torbjorn - After uninstalling the plugin for EventGhost which was occupying the RS232 my issue was resolved. Interesting point on the IP address, Perhaps I'll try this tonight to avoid any potential issues down the road.
Great piece of software, was up and running in no time after this initial hiccup.

Posted by sdavies at Feb 17, 2014 20:29
Document generated by Confluence on Jun 05, 2016 09:38