Remeha Calenta interface for Homeseer
Re: Remeha Calenta interface for Homeseer
When i hit this button and after i getting the popup what for boiler there is found the recom software send this next request:
Request: 12-1-2011 21:18:43.68864 (+0.8459 seconds)
02 52 05 06 02 00 53 03 .R....S.
With this response:
Answer: 12-1-2011 21:21:27.76564 (+0.0627 seconds)
02 41 06 3E 02 00 7D 18 18 15 80 F3 00 80 00 80 .A.>..}...ó..
00 80 D6 15 78 08 60 18 7C 15 66 08 35 07 33 07 .Ö.x.`.|.f.5.3.
55 00 00 00 64 00 64 16 00 00 03 05 00 03 03 FF U...d.d........ÿ
FF 00 00 00 00 00 00 00 00 00 00 00 00 00 6F 03 ÿ.............o.
(this i the same response i getting now when i use the script, withe some time a little change on a temp.)
Request: 12-1-2011 21:18:43.68864 (+0.8459 seconds)
02 52 05 06 02 00 53 03 .R....S.
With this response:
Answer: 12-1-2011 21:21:27.76564 (+0.0627 seconds)
02 41 06 3E 02 00 7D 18 18 15 80 F3 00 80 00 80 .A.>..}...ó..
00 80 D6 15 78 08 60 18 7C 15 66 08 35 07 33 07 .Ö.x.`.|.f.5.3.
55 00 00 00 64 00 64 16 00 00 03 05 00 03 03 FF U...d.d........ÿ
FF 00 00 00 00 00 00 00 00 00 00 00 00 00 6F 03 ÿ.............o.
(this i the same response i getting now when i use the script, withe some time a little change on a temp.)
__________________
Re: Remeha Calenta interface for Homeseer
With my connected Remeha Calenta, I start Recom, after the window with Boiler connected, I hit the button 'actuele waarden'
At this moment Recom sends 02 fe 01 05 08 02 01 69 ab 03 every second.
This is the request data you need (and what I also use in my script).
At this moment Recom sends 02 fe 01 05 08 02 01 69 ab 03 every second.
This is the request data you need (and what I also use in my script).
Code: Select all
The data
02 52 05 06 01 0b 5b 03 02 52 05 06 01 0b 5b 03 .R....[..R....[.
02 52 05 06 01 0b 5b 03
is what Recom sends to Identify the boiler.
This is my complete snif from Recom-startup to hitting the 'actuele waarden' button:
[12/01/2011 21:32:22] - Open COM5 port (C:\Users\menno\Desktop\Recom\Recom.exe)
[12/01/2011 21:32:22] - Written data
07 42 a0 00 05 40 d2 07 42 a0 00 05 40 d2 07 42 .B ..@Ò.B ..@Ò.B
a0 00 05 40 d2 ..@Ò
[12/01/2011 21:32:23] - Close port
[12/01/2011 21:32:23] - Open COM5 port (C:\Users\menno\Desktop\Recom\Recom.exe)
[12/01/2011 21:32:23] - Written data
02 52 05 06 01 0b 5b 03 02 52 05 06 01 0b 5b 03 .R....[..R....[.
02 52 05 06 01 0b 5b 03 .R....[.
[12/01/2011 21:32:24] - Close port
[12/01/2011 21:32:24] - Open COM5 port (C:\Users\menno\Desktop\Recom\Recom.exe)
[12/01/2011 21:32:24] - Written data
02 fe 00 05 08 01 0b d4 9c 03 02 fe 00 05 08 01 .þ.....Ôœ..þ....
0b d4 9c 03 02 fe 00 05 08 01 0b d4 9c 03 .Ôœ..þ.....Ôœ.
[12/01/2011 21:32:25] - Read data
02 00 fe 06 48 01 0b 0a 0d 01 ff ff 13 12 01 04 ..þ.H.....ÿÿ....
00 00 ff ff ff ff ff 04 03 ff 01 ff ff ff ff ff ..ÿÿÿÿÿ..ÿ.ÿÿÿÿÿ
ff ff ff ff ff ff ff 30 39 32 39 33 30 37 35 33 ÿÿÿÿÿÿÿ092930753
35 33 38 30 20 20 20 43 61 6c 65 6e 74 61 20 43 5380 Calenta C
43 53 20 20 20 20 20 cc 1b 03 CS Ì..
[12/01/2011 21:32:25] - Close port
[12/01/2011 21:32:26] - Open COM5 port (C:\Users\menno\Desktop\Recom\Recom.exe)
[12/01/2011 21:32:30] - Written data
02 fe 00 05 08 01 0b d4 9c 03 .þ.....Ôœ.
[12/01/2011 21:32:30] - Read data
02 00 fe 06 48 01 0b 0a 0d 01 ff ff 13 12 01 04 ..þ.H.....ÿÿ....
00 00 ff ff ff ff ff 04 03 ff 01 ff ff ff ff ff ..ÿÿÿÿÿ..ÿ.ÿÿÿÿÿ
ff ff ff ff ff ff ff 30 39 32 39 33 30 37 35 33 ÿÿÿÿÿÿÿ092930753
35 33 38 30 20 20 20 43 61 6c 65 6e 74 61 20 43 5380 Calenta C
43 53 20 20 20 20 20 cc 1b 03 CS Ì..
[12/01/2011 21:32:33] - Written data
02 fe 00 05 08 01 0b d4 9c 03 .þ.....Ôœ.
[12/01/2011 21:32:33] - Read data
02 00 fe 06 48 01 0b 0a 0d 01 ff ff 13 12 01 04 ..þ.H.....ÿÿ....
00 00 ff ff ff ff ff 04 03 ff 01 ff ff ff ff ff ..ÿÿÿÿÿ..ÿ.ÿÿÿÿÿ
ff ff ff ff ff ff ff 30 39 32 39 33 30 37 35 33 ÿÿÿÿÿÿÿ092930753
35 33 38 30 20 20 20 43 61 6c 65 6e 74 61 20 43 5380 Calenta C
43 53 20 20 20 20 20 cc 1b 03 CS Ì..
[12/01/2011 21:32:34] - Written data
02 fe 00 05 08 01 0b d4 9c 03 .þ.....Ôœ.
[12/01/2011 21:32:34] - Read data
02 00 fe 06 48 01 0b 0a 0d 01 ff ff 13 12 01 04 ..þ.H.....ÿÿ....
00 00 ff ff ff ff ff 04 03 ff 01 ff ff ff ff ff ..ÿÿÿÿÿ..ÿ.ÿÿÿÿÿ
ff ff ff ff ff ff ff 30 39 32 39 33 30 37 35 33 ÿÿÿÿÿÿÿ092930753
35 33 38 30 20 20 20 43 61 6c 65 6e 74 61 20 43 5380 Calenta C
43 53 20 20 20 20 20 cc 1b 03 CS Ì..
[12/01/2011 21:32:35] - Written data
02 fe 01 05 08 01 0b e9 5c 03 .þ.....é\.
[12/01/2011 21:32:35] - Read data
02 01 fe 06 18 01 0b 03 13 12 01 13 35 01 04 02 ..þ.........5...
ff ff 09 40 48 52 00 ad 2f 03 ÿÿ.@HR./.
[12/01/2011 21:32:35] - Written data
02 fe 03 05 08 01 0b 90 9c 03 .þ.....œ.
[12/01/2011 21:32:36] - Read data
02 03 fe 06 18 01 0b 01 13 12 01 01 b1 03 04 05 ..þ.........±...
ff 47 09 39 4d 00 15 05 fb 03 ÿG.9M...û.
[12/01/2011 21:32:36] - Written data
02 fe 01 05 08 02 01 69 ab 03 .þ.....i«.
[12/01/2011 21:32:36] - Read data
02 01 fe 06 48 02 01 6a 18 f8 16 00 80 52 03 80 ..þ.H..j.ø..€R.€
f3 00 80 54 10 f6 07 1e 14 70 17 cf 07 00 00 00 ó.€T.ö...p.Ï....
00 00 bc 02 00 00 00 64 00 00 00 11 c2 0b 10 00 ..¼....d....Â...
ff ff 00 00 00 00 ff ff 0b 00 bc 02 00 00 00 00 ÿÿ....ÿÿ..¼.....
80 00 00 00 00 00 00 8d 23 03 €......#.
[12/01/2011 21:32:37] - Written data
02 fe 01 05 08 02 01 69 ab 03 .þ.....i«.
[12/01/2011 21:32:37] - Read data
02 01 fe 06 48 02 01 6a 18 f8 16 00 80 52 03 80 ..þ.H..j.ø..€R.€
f3 00 80 54 10 f6 07 1e 14 70 17 cf 07 00 00 00 ó.€T.ö...p.Ï....
00 00 bc 02 00 00 00 64 00 00 00 11 c2 0b 10 00 ..¼....d....Â...
ff ff 00 00 00 00 ff ff 0b 00 bc 02 00 00 00 00 ÿÿ....ÿÿ..¼.....
80 00 00 00 00 00 00 8d 23 03 €......#.
[12/01/2011 21:32:37] - Written data
02 fe 01 05 08 02 01 69 ab 03 .þ.....i«.
[12/01/2011 21:32:37] - Read data
02 01 fe 06 48 02 01 6a 18 f7 16 00 80 52 03 80 ..þ.H..j.÷..€R.€
f3 00 80 54 10 f6 07 1e 14 70 17 cf 07 00 00 00 ó.€T.ö...p.Ï....
00 00 bc 02 00 00 00 64 00 00 00 11 c2 0b 10 00 ..¼....d....Â...
ff ff 00 00 00 00 ff ff 0b 00 bc 02 00 00 00 00 ÿÿ....ÿÿ..¼.....
80 00 00 00 00 00 00 88 2c 03 €......ˆ,.
Re: Remeha Calenta interface for Homeseer
Hey guys, i wanted to let you know (and thank you guys) that i used Digit's blog and psmaaswinkel's PHP script to query my newly installed Calenta CW6 and it actually works pretty good. I've connected the Calenta CW6 to my wireless network using a WRT54GL and using the internal serial port to connect it. Put OpenWRT on the WRT54GL and use ser2net to bridge the serial port to a TCP port and you can query the Remeha!
The only thing that bothers me is that it takes quite some time to query the Remeha, it takes 2 minutes to query it and sometimes the values are incorrect. But i will figure that out using Menno's script.
The only thing that bothers me is that it takes quite some time to query the Remeha, it takes 2 minutes to query it and sometimes the values are incorrect. But i will figure that out using Menno's script.
Re: Remeha Calenta interface for Homeseer
Hi,
Thanks for letting us know, always good to hear!
I query my Calenta every 15 seconds, so it should be possible to speed things up on your side.
Incorrect values... hmm, does the PHP script perform the CRC check?
If not, fix that issue first! This check is very, very important for data reliability.
Thanks for letting us know, always good to hear!
I query my Calenta every 15 seconds, so it should be possible to speed things up on your side.
Incorrect values... hmm, does the PHP script perform the CRC check?
If not, fix that issue first! This check is very, very important for data reliability.
Re: Remeha Calenta interface for Homeseer
I already fixed the 2 minutes bug. The original fgets are rather ugly because it waits for data to arrive and if less data arrives than the 84 bytes fgets is waiting on it takes 2 minutes. So i set the stream timeout at 5 secs and get 128 bytes. This is probably as ugly but it does the trick and it runs in 5 secondsT(h)ijs wrote:The only thing that bothers me is that it takes quite some time to query the Remeha, it takes 2 minutes to query it and sometimes the values are incorrect. But i will figure that out using Menno's script.
Code: Select all
stream_set_timeout($fp, 5);
$data .= fgets($fp, 128);
Re: Remeha Calenta interface for Homeseer
Small update on the Calenta 25L CW6. From the ID 'PCU-02/03 P3' i deducted that i need the XML PCU-03_P3.xml:
Some things i cannot figure out. I tried to implement the Modbus CRC16 variant to check the CRC sent in the message. Using http://www.lammertbies.nl/comm/info/crc ... ation.html i checked what the value should be and i used the example message from http://blog.hekkers.net/2010/10/10/more ... -protocol/ to check my implementation. The following value:
Gives CRC 0x432C (wrong byteorder but that is not important) and this matches the CRC on the site. I then looked at my message (including start,stop bits and checksum):
Stripped of the start bit, stop bit and the CRC:
Both my CRC and the online one give 21ec but this does not match the 829c in the message itself. Another thing is the fact that the 4th byte always gives length 48 which is 72 but the message is never 72. It is usually 67 but sometimes it is larger. It seems that either the Calenta 25L CW6 is a harder beast to tame or my hardware readout is not correct. Maybe i should get a USB cable and get a correct readout.
Code: Select all
<property name="boilername" value="PCU-02/03 (P3)" />
Code: Select all
01FE064802018C145A140080008080F3008003100080401
F701700800000000000BC020000006400000010C20B1000
FFFF00000000FFFF1700BC020000000000000000000000
Code: Select all
0201fe06480201861a041a26160080421800802c10ea0666
037017a4060000000000bc0200000064000000c2031000ff
ff00000000ffffbc020000000080000000000000829c03
Code: Select all
01fe06480201861a041a26160080421800802c10ea066603
7017a4060000000000bc0200000064000000c2031000ffff
00000000ffffbc020000000080000000000000
Re: Remeha Calenta interface for Homeseer
I'll try to feed your frame to my system this evening and see what the results are.
Re: Remeha Calenta interface for Homeseer
Thanks, to make it even more complex. I have hooked up Recom to a virtual COM port which talks TCP to the port where the Remeha is hooked up to. Recom also does not read any value from the `Current Values'. However it can ID the boiler correctly. I have tried to reproduce this using my script by sending the same values that Recom uses:
To my surprise this returns the following message:
In this case the packet is indeed 72 without the start and stop bytes and even the CRC is correct! Using this i can also query `Parameters' but the other things like `Blokkeringen' and `Tellers' do not work. I am starting to think that there must be a bug in the boiler somewhere.
Code: Select all
02 fe 00 05 08 01 0b d4 9c 03
Code: Select all
0200fe0648010b0a0e01ffff141503030100ffffffffff0403ff01ffffffffffffffffffffffff3131303138303135323134343020202043616c656e7461204249432020202020f97903
Re: Remeha Calenta interface for Homeseer
Took me a while but i found my problem I had XONXOFF enabled so ser2net was eating 0x11 and 0x13. With XONXOFF disabled it works!
Re: Remeha Calenta interface for Homeseer
Hi,
At this moment i have running the interface for about 75% for the Remeha Avanta (P1) and have made a little change for the ionization current.
This current is generally uA in place of mA.
(the other 25% of working of this interface is to find the water leaving temp. and the rpm of the fan)
Grtz,
At this moment i have running the interface for about 75% for the Remeha Avanta (P1) and have made a little change for the ionization current.
This current is generally uA in place of mA.
(the other 25% of working of this interface is to find the water leaving temp. and the rpm of the fan)
Grtz,
__________________
Re: Remeha Calenta interface for Homeseer
So if I go for a New 'CV' or HVAC here, the best bet would be to go for a Remeha device. Nefit is definitely a no-go (through the local plumber prefers Nefit), and if Nefit changes it's policy it might work too. I also looked at the Valiant offer. But for an 'open' computer interface that solution look 'ugly' too and also needs reverse enginering of specialy the protocol, but also the interface. Vaillant seem to use a dead-end standard called eBus for a connection).Bwired wrote:I'm still waiting for Nefit to make some handy interface on there Hvac systems...
... I'm really thinking about buying a new Remeha Hvac
Are there other options I might have missed?
My current CV-heater-hotwater-device is now around 15 years old and definitely needs replacement ( I suspect the relay board can break any time now). Would be nice if the new one has a computer interface to collect some data (and maybe even some limited control like putting it in a 'away from home' mode when no-one is at home, based on other sensor data)... So looks like a Rehema would then be a good choice.
-
- Starting Member
- Posts: 12
- Joined: Fri Aug 08, 2008 4:31 pm
- Location: Netherlands
Hello Menno,
Wonderful the connection of the Calenta with HS!
I should going to use it with my HS before the winter is coming!
I have the Remeha Gateway bought, but it's not working with HS, so I can dump this gateway!
I see you have developed a "read" script for HS, can you alse write settings from HS to the Calenta?
Otherwise, how do you set the Calenta temperature etc. from HS, directly with scripts or by using also the iSense thermostat?
Is it necessary to use a digital I/O board for a connection between the Calenta CV and iSense thermostat and HS?
If yes, I want to buy one, which model/type I/O you are using with HS?
And do you also use the original outdoor temperature sensor of the Calenta with your own designed HS interface?
Thanks for the support,
Motordiver
Overpelt (BE)
Wonderful the connection of the Calenta with HS!
I should going to use it with my HS before the winter is coming!
I have the Remeha Gateway bought, but it's not working with HS, so I can dump this gateway!
I see you have developed a "read" script for HS, can you alse write settings from HS to the Calenta?
Otherwise, how do you set the Calenta temperature etc. from HS, directly with scripts or by using also the iSense thermostat?
Is it necessary to use a digital I/O board for a connection between the Calenta CV and iSense thermostat and HS?
If yes, I want to buy one, which model/type I/O you are using with HS?
And do you also use the original outdoor temperature sensor of the Calenta with your own designed HS interface?
Thanks for the support,
Motordiver
Overpelt (BE)
Re: Remeha Calenta interface for Homeseer
This Calenta script does not support writing to the Calenta, I think this is possible, but I don't need the feature at this time. I set the desired temperature on the Isense.
This Isense has an external digital input that can be programmed as another setpoint or as another function (this is described in the Isense manual).
When you connect an I/O board to this input (just a switching relay) the Isense will set the programmed function. In my situation this external input
will set the desired temperature to 15C. As I/O board I use the Velleman K8061 board with Maikel Wijnen 's plugin.
I use the original outdoor temperature sensor connected to the Calenta.
Hope you can use this information.
succes!
This Isense has an external digital input that can be programmed as another setpoint or as another function (this is described in the Isense manual).
When you connect an I/O board to this input (just a switching relay) the Isense will set the programmed function. In my situation this external input
will set the desired temperature to 15C. As I/O board I use the Velleman K8061 board with Maikel Wijnen 's plugin.
I use the original outdoor temperature sensor connected to the Calenta.
Hope you can use this information.
succes!
-
- Member
- Posts: 88
- Joined: Wed Oct 27, 2010 8:36 pm
Re: Remeha Calenta interface for Homeseer
Is there someone who has managed to also read the counters of the remeha with this script? I would like to readout these values including the error information once a day.
Regards,
Regards,
___________________________________________________________________
iEase Home Control
iEase Home Control
-
- Member
- Posts: 88
- Joined: Wed Oct 27, 2010 8:36 pm
Re: Remeha Calenta interface for Homeseer
No one? I believe Robert has done something like this because he uses the counters also on his website. I don't know if this information is also used in the homeseer script...
___________________________________________________________________
iEase Home Control
iEase Home Control