This page last changed on Aug 08, 2012 by mathiasj.

hi there,

i'm trying to controll my denon AVR3312 over TCP/IP.
All the commands work fine but i cant get the sensors to work...

If i ask the status of my denon he sends the complete package (status,vol,source,....) at once
Is there a way to use regex on the feedback from my device???

Hope someone can help me out

Yes, you can use regex for the feedback. In the moment you will have to create one command for each sensor though and change the regex to extract the correct information. This is not perfect since your device returns all sensor data already with one call, but for now this is how it works. We will have to enhance the protocol to support multiple sensors with one command.

Posted by mredeker at Aug 09, 2012 08:26

Thanks for the quick response!

but i still can't figure it out... Where do i put the regex information?
I've tried using a custom sensor but nowhere to put regex info there?

Posted by mathiasj at Aug 09, 2012 08:48

You define the regex at the command not the sensor.

Posted by mredeker at Aug 09, 2012 09:02

is there somewhere i can view a example of this?

Posted by mathiasj at Aug 09, 2012 09:04

http://www.openremote.org/display/docs/OpenRemote+2.0+How+To+-+HTTP+Protocol

This is using Xpath but just use rexex instead. Everything else is the same.

Posted by mredeker at Aug 09, 2012 09:06

ok Thanks a lot!

I'll do some experimenting tonight!

Posted by mathiasj at Aug 09, 2012 09:13

just did some testing and no luck

i don't think i can connect with my denon over http...

When i use tcp/ip everyting works perfect in one way
but i cant do anything with the feedback (over tcp/ip)

i can show the feedback in a tekst label but i cannot parse it
when i send commands over http it tells me the command is not found and there is no response at all

when I ask for status on my denon it returns something like "Z2ONZ2NET" (NET is the source)
so i need the "ON" to connect to a switch...

hope you can help!!!

and of course many many thank you's in advance

Posted by mathiasj at Aug 09, 2012 20:05

Ok, I did not know the denon only use TCP.
This means you are out of luck for now. The current TCP protocol implementation does not support regex.
If you know Java, feel free to contribute.

Posted by mredeker at Aug 09, 2012 23:10

I am using Telnet to control a Denon AVR3313. OpenRemote Telnet does support regular expressions. So I got sensors to work. The problem however is that if you have several sensors polling concurrently the Telnet sessions will collide and you will get session rejects. In addition it looks like that not all the data sent by the Denon Telnet server actually makes it into the OpenRemote sensor. I checked in parallel with Wireshark and it looks like when Denon sends longer multi-packet replies at least the first packet is lost. This makes it difficult to apply regular expressions. I got the best results using custom sensors with some custom states. At the end I decided to just use the commands without sensors, since the controls ended up to be not reliable with the sensor-Telnet-sessions colliding all the time. And when you increase the polling cycles the information update delays make the controls confusing.

Posted by othmark at Oct 16, 2012 01:18

Is there any news in relation to getting status to work with TCP on Denon?
I am getting all commands to work fine with Denon 3313 over TCP/IP, but I can't get any sensors to work.
Is there a workaround?

Posted by istian at May 03, 2014 15:02
Document generated by Confluence on Jun 05, 2016 09:31