Page 3 of 3

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Fri Dec 28, 2012 10:52 pm
by Digit
Just thinking out loud.. why do you need a device with a complete Operating System on it for this?
If I'd have started doing that from the start (some 7 years ago) I would have had a dozen (or more) RPi's by now.

I do like to think of a RPi as a central hub in my system and run tasks like event processing on it though...

But just to connect one single piece of hardware to my system...neh...

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Fri Dec 28, 2012 10:58 pm
by sj3fk3
Digit wrote:Just thinking out loud.. why do you need a device with a complete Operating System on it for this?
If I'd have started doing that from the start (some 7 years ago) I would have had a dozen (or more) RPi's by now.
Yes exactly! Think about how AWESOME that would be :)
Digit wrote:I do like to think of a RPi as a central hub in my system and run tasks like event processing on it though...
But just to connect one single piece of hardware to my system...neh...
I know what you mean.. On the other hand.. Isn't it AWSOME that some much computing power fits in such little devices and such small budgets as well? I could and would of course use it for more then just passing along the OTGW data then.. But it would be nice to have a hub in the boiler room :) (that's where I was planing the OTGW).

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Fri Dec 28, 2012 11:36 pm
by Digit
Yes, the RPi is nice, I agree. And I'm sure it will be useful for a lot of things. I'm just a bit reluctant to deploy it wherever I need 'some' processing power. And (going even more OT now) I also think it's being over-hyped a bit - just look at Adafruit, for which Raspberryfruit has become a more suitable name nowadays.. as if nothing else exists anymore

But hey, use whatever you have the most fun with - it's a hobby, right? I know there are people that think I am crazy with my expensive XBee modules... I really don't mind, I think I'm not :wink:

In the end, only 2 things really matter: it must be fun and it has to be reliable!

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Sat Dec 29, 2012 12:11 am
by BreFra
sj3fk3 wrote:
hvxl wrote: According to the manual the EZL-70 can be programmed through the serial port using AT commands, so no windows necessary. After that you just set up a telnet connection to get the data.
The thing is: I want to use domotiga to connect to it and it only supports a serial connection to the OTGW, but maybe I can ask Ron to do a TCP/IP connector as well..
Adding a TCP connector to the OTGW interface is possible as long as the communication it self doesn't change (which applies for the EZL-70 as far a I know). It will be the same way like some of the audio/video interfaces, where you can choose between serial or TCP.
I'm happy to code this extra functionallity. Unfortunatly I'm not able to test it as I don't have a EZL-70 myself.
When ready I'll post the new code to test.

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Sat Dec 29, 2012 12:42 am
by hvxl
sj3fk3 wrote:How could I use remserial to connect to that network attached serial device?
You run remserial on your linux box that also runs domotiga. It sets up a socket connection to the EZL-70 and creates a device that looks like a serial port to domotiga.

For example, if the EZL-70 has been configured with an IP address of 192.168.1.42 and a local port of 1470, you could use:
  • remserial -d -r 192.168.1.42 -p 1470 -l /dev/otgw /dev/ptmx &
Then in domotiga you specify /dev/otgw as the serial port where the Opentherm Gateway is "connected". (I assume that's possible, I don't use domotiga myself).

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Sat Dec 29, 2012 1:02 am
by hvxl
Digit wrote:Just thinking out loud.. why do you need a device with a complete Operating System on it for this?
I agree it's overkill. But it makes no sense to buy something three times the price just because it doesn't have all these additional features that you're not going to use.

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Sat Dec 29, 2012 1:50 am
by Digit
I agree on that one too :)
Choices, choices...

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Sat Dec 29, 2012 11:54 am
by sj3fk3
BreFra wrote: Adding a TCP connector to the OTGW interface is possible as long as the communication it self doesn't change (which applies for the EZL-70 as far a I know). It will be the same way like some of the audio/video interfaces, where you can choose between serial or TCP.
I'm happy to code this extra functionallity. Unfortunatly I'm not able to test it as I don't have a EZL-70 myself.
When ready I'll post the new code to test.
That would be so cool! I could always order 2 EZL-70's (still cheaper than the one other option I first had in mind) and I could send you one.. I'm a strong believer of supporting all open source initiatives :-)

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Tue Jan 15, 2013 10:02 pm
by sj3fk3
Ok, so I've hooked up the OTGW (thanks Lennart!!) to my boiler and iSense and all led blink happily then I connect the EZL-70 (also thanks for making that posible Lennart!!) and when I telnet to it I get good looking bumbo-jumbo (I don't speak OpenTherm very well). Then I do the remserial trick (Thanks Schelte), looks like that is also working nicely... BUT... when I connect domotiga to the local serial I get:

Code: Select all

2013/01/15 20:56:59 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,9.00,2.10,20.02,64.40,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:04 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,9.00,2.10,20.02,64.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:09 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,9.00,2.10,20.02,64.60,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:14 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,7.00,2.10,20.02,64.60,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:19 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,6.00,2.10,20.02,64.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:24 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,7.00,2.10,20.02,64.10,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:35 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,7.00,2.10,20.02,63.58,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:40 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,8.00,2.10,20.02,62.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:45 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,8.00,2.10,20.02,62.10,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:50 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,9.00,2.10,20.02,61.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:57:55 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,10.00,2.10,20.02,61.10,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:58:00 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,11.00,2.10,20.02,60.81,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:58:05 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,12.00,2.10,20.02,60.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:58:10 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,13.00,2.10,20.02,60.30,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
2013/01/15 20:58:15 [OpenTherm] Invalid response '00000011/00001010,64.40,00000011/00000011,100.00,0/0,19.36,13.00,2.10,20.02,60.50,0.00,0.00,0.00,60/40,80/20,60.00,80.00,11664,12776,6560,7464,1612PF,1870,4964,,82'
Bummer :(

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Tue Jan 15, 2013 10:29 pm
by hvxl
The PF is in an unexpected location. Have you already tried to power cycle the gateway?

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Wed Jan 16, 2013 11:53 am
by sj3fk3
Power cycle did help, but I still cannot connect domotiga to the OTGW. It keeps saying Invalid response. Manually setting PS=1 looks fine to me:

Code: Select all

10:50:16.482178 B500E6400 Write-Ack  Maximum relative modulation level: 100.00
10:50:17.170220 T00000300 Read-Data  Status: 00000011 00000000
10:50:17.355575 BC000030C Read-Ack   Status: 00000011 00001100
10:50:18.169866 T90014ACC Write-Data Control setpoint: 74.80
10:50:18.319695 B50014ACC Write-Ack  Control setpoint: 74.80
10:50:19.179550 T00110000 Read-Data  Relative modulation level: 0.00
10:50:19.318947 B40110E00 Read-Ack   Relative modulation level: 14.00
10:50:20.178547 T100E0000 Write-Data Maximum relative modulation level: 0.00
10:50:20.318858 BD00E0000 Write-Ack  Maximum relative modulation level: 0.00
10:50:20.721173 Command: PS=1
10:50:20.938900 PF
10:50:20.947529 00000011/00001100,74.80,00000011/00000011,0.00,0/0,19.76,14.00,2.10,19.52,60.43,0.00,-1.80,0.00,60/40,80/20,60.00,80.00,11688,12808,6584,7464,1620,1880,4966,182
10:50:23.802506 Command: PS=1
10:50:24.017774 PF
10:50:24.034059 00000011/00001100,74.80,00000011/00000011,0.00,0/0,19.76,14.00,2.10,19.52,54.90,0.00,-1.80,0.00,60/40,80/20,60.00,80.00,11688,12808,6584,7464,1620,1880,4966,182
10:50:27.995308 Command: PS=0
10:50:28.219760 OK
10:50:28.238725 T00000300 Read-Data  Status: 00000011 00000000
10:50:28.368852 BC000030C Read-Ack   Status: 00000011 00001100
10:50:29.205839 T10015A00 Write-Data Control setpoint: 90.00
10:50:29.298406 BD0015A00 Write-Ack  Control setpoint: 90.00

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Wed Jan 16, 2013 10:06 pm
by BreFra
As shelte already mentioned the "PF" inside the report response shouldn't be there, but actually is not the reason it fails.
The real reason it is not accepting the response is due to the fact there are 25 "," in the response while domotiga is expecting 24 times a ","
Both could be due to the same root cause. Why? I don't know...

Your manual PS=1 response is ok and will be accepted by domotiga. Are you executing the manual command at the same machine as where DomotiGa is running?

Frank

Re: Bwired Opentherm Gateway solution with EZL-70

Posted: Wed Jan 16, 2013 10:15 pm
by sj3fk3
Yes, same machine, same settings... I can even have 2 devices connected to the same (virtual) tty and "trace" Domotiga.