preload
Aug 29

A German company called ELV has a new heating control system since a few months – it’s called MAX!.  With this system you have the ability to control your heating system via Smartphone, Internet and local PC (oh, and manually of course). The MAX! radiator thermostats seem to have all I need: flexible daily switching programs, auto/manual/holiday mode, temperature can be set between 5 and 30 °C in steps of 0.5 °. Other components of the MAX! system are wall switches for Eco mode, window sensors and wall thermostats. Prices are good too; very good actually, when you compare them to alternatives.

The interface for all these wireless devices is the MAX! Cube LAN Gateway; with this you can control, configure and adjust all your MAX! components. Cool..

Not so cool is the web portal that has to be used when you want to control the MAX! system from outside your own house (e.g. via Internet, with your smartphone or whatever). Some people, and I’m one of them, don’t like being forced to use a web portal controlled and secured by a 3rd party; I prefer making my own solution for these kind of  things, especially since every website seems to be hack-able these days and leaking all kinds of information… No, if someone is leaking information about me/us, it should be me doing that, not some company..

Last week someone posted some details about the MAX! Cube LAN Gateway on the Domoticaforum Europe. It seems possible to connect to port 80 of the Cube and even communicate with it. OK that’s a start, now all that’s left to do is finding out how the MAX! Cube works, which can be a tough job. The protocol that’s being used is another proprietary one and therefore nothing has been (and probably never will be) published about it. Time for some good old packet inspection – and for that, it’s better to have a MAX! Cube and a Radiator Thermostat at my disposal, so I bought those 2 items last weekend. After that I started searching for more detailed information about the protocol – but as expected, without result.

I reread the ELV MAX! topic on the Domoticaforum and looked at some lines of MAX! communication that were logged by a member called blb. At first sight I could not tell what it all meant, although I did see some lines that had Base64 characteristics: all characters were more or less human readable and they were ending on 1 or 2 ‘=’ characters. And yes, it’s Base64 encoded; I decoded one of the logged lines and it revealed a url pointing to a portal on the elv.de domain, another decoded line revealed the location and name that forum member blb probably assigned to one of his Radiator Thermostats. Finding out how the temperature had to be set wasn’t hard either. There still are some bytes unknown though ;-)

Nevertheless, this is what I call a good start; so as soon as the ELV MAX! stuff I ordered has arrived, I’m gonna start dissecting the protocol, bit by bit – exciting!

Update: I posted some protocol information on the Domoticaforum. Enjoy!

Tagged with:
Nov 13

This time I won’t post about my own Domotica adventures, but someone else’s: Menno van Gennip.  A few days ago Menno posted on the Domoticaforum about his self-made Remeha Calenta interface. For several reasons, his work just needed to be mentioned here.

First of all, the way Menno improved on the TTL-RS232 converter is beyond my knowledge and absolutely a great improvement. Menno added galvanic isolation to protect the Remeha. Second, he added an Ethernet interface based on a Ethernet-serial Wiznet module:

Galvanic isolation

Third, Menno put all the electronics in a nice enclosure including status LEDs:

Inside the enclosure Interface enclosure

Fourth, Menno created 2 Homeseer scripts that makes the whole thing ‘Homeseer-ready’, including CRC checks and all:

Checksum

The screendump below shows the Homeseer status screen with all the information from the Remeha Calenta (click it for a larger view):

And last but not least, the reason why I like Menno’s effort so much is that this is a very good example of what can be accomplished by sharing knowledge; Menno’s knowledge about electronics combined with my earlier findings about the Remeha Recom protocol resulted in a interface that’s even better than the “real thing”, being the Remeha Recom and the Remeha Interface cable ! (for us Domotica enthusiasts, I mean).

Chapeau, Menno!

Tagged with:
Oct 17
The TTL-RS232 converter

The TTL-RS232 converter (click for more detail)

After nearly a full afternoon of soldering, testing, debugging I finished the board shown above. This is not my cup of tea, that’s for sure… :-(

I forgot to add 1 wire (the red one to the right of the MAX3232) and the whole thing didn’t work… so I checked if all the wires were there, and I still thought they all were; next I checked if the cable coming from the Remeha was 100% OK – it still was; I re-checked all connections; and finally, after 2 hours, I found that capacitor with one leg connected to nothing. That can’t be right.. after I fixed this everything worked as well as on the breadboard. Pfff.. Next time when I solder something similar, I’ll make a hard-copy of the schematic and I’ll mark the components and wires I finished soldering on that hard-copy, so I won’t make this mistake ever again! After connecting the female DB9 to the RFXCOM RS232 module, I was good to go.

This was the hardest part. From this point everything went very smooth:

  • I changed the Calenta Interface settings from using a Serial to using a TCP Connection, as in:
Connection=SER
COMPort=13
Baudrate=9600

to

Connection=LAN
IPAddress=192.168.10.131
IPPort=10002
  • I built my Domotica Delphi project (nothing more than Shift-F9 inside the Delphi IDE);
  • I set the Remeha Interface “AutoRun” property to True in the database, which means it will automatically start whenever my Domotica system restarts;
  • Created a backup of the executable I used until now (v145, with v1 being 5 years old right now);
  • Copied the newly built executable to my Domotica VM;
  • And restarted it…

Ooww yeah, this is it :-)

A long-cherished wish has been realized; unexpected, relatively simple and cheap!

Calenta charts

Calenta charts

Calendata

Tagged with:
Oct 16

Normally, connecting a new device means more cables. And I want everything connected to my LAN (or WAN), so I need to convert the RS-232 to Ethernet somewhere.

Although I have Ethernet near the Calenta, that single cable I have over there is being used by my HA7Net, which takes care of counting the hot water usage with a 1-Wire DS2423 counter and measuring the Temperatures of the 5 floor heating groups. So that’s a no go; I can’t use that cable without adding another switch; and I don’t want to, for just 2 Ethernet connections.

Then I realised I still have an unused RFXCOM RS-232 module, and it’s put inside a RFXCOM LAN Interface that’s right above my head (between the ceiling and the roof, that is). This RS232 module was once used for one of my Sony EVI-D30 PTZ cameras with VISCA-protocol, but since this cam has been replaced with a fixed one I don’t actively use this RS-232 module anymore. This saves me a RS-232 to Ethernet converter with another power adapter…

So now I had to find a way to get the cable from the Calenta to this LAN Interface. Getting a 4-core flat phone cable through 2 narrow holes in 30 cm thick walls which are already populated with a bunch of other cables is no fun, but after a few hours I managed to get it through without damaging anything. Pffew..

Now it’s time to get the MAX3232 from the breadboard into an enclosure. I was thinking of creating something like this:

Add a few capacitors, wires, female DB9 connector, a small box and I’m done; and that’s what I’m working on right now. The fact that I’m not able to connect the Remeha directly to my PC anymore (to test the new interface) doesn’t really bother me anymore; I’ve seen enough comparisons of results of my Domotica system and the Remeha Recom software (which needs a COM port) that I’m confident enough that I won’t need Recom anymore to check things; and if I do, I can always use an 32-bit XP machine and a virtual COM port driver for that… it’s time to Ethernet-enable my Calenta and move on!

Tagged with:
Oct 07

I don’t think I ever wanted temperatures to drop and be forced to wear a coat when going outside. No, the warmer the better for me… but this time it’s different… I want to test my newest Interface! But as you can see by the chart below, the weather is not really cooperating:

Thermostat setback and temperature in the living room

Thermostat setback and temperature in the living room

So I think I’ll just have to wait a while for the temperatures to drop before I’m able to test my Interface really well. I finished the part that parses the samples from the Calenta and I created a page on my website that partly shows the values it returns (taken from a real sample coming from the Calenta), but I still have to look into the counters and blockings, of which the latter one can be very interesting with respect to being notified about problems with the Calenta. But first I want to thoroughly test the sample part before moving on. And I’m not going to raise the setback temperature just for the sake of testing…

Remeha Interface sample

Remeha Interface sample

So no more coding on this Interface until this first part is finished and working OK.

Ooh, BTW… DHL paid me a unexpected visit today with a nice surprise… more on that later! :-)

Tagged with:
Oct 03

Last week I attached some 1-Wire temperature sensors to the floor heating tubes to monitor flow- and return temperatures. While I was doing that, I looked at my Remeha Calenta again and thought what a pity it was that I failed to monitor the Calenta with the Remeha Gateway. I’ve known for a long time that there’s a 2nd solution to this: Remeha Recom. A “special cable” and the Recom software make it possible to monitor your Remeha Avanta, Quinta, Calenta (and more). However the price for this cable is rather high; you won’t be able to get it below 130 Euros with as only result a Recom window on your screen where you can see all kinds of things being monitored… all you can do is make a screen-dump or log the values to a file… :-(

And if I would buy that “wonder cable”, would I be able to understand the protocol? I didn’t want to risk the chance of buying that expensive cable and not coming any further than using Recom, so i stopped thinking about it. Untill last week.

I started roaming the Internet for more information; I read about “it” being a null modem cable; I looked at the PCB and saw the RJ-11 connector for the Remeha cable was labeled RS-232; I took a long cable with a RJ-11 plug and stuck it into the connector and started measuring with a voltmeter; I saw the outer 2 were 5V and the other GND; that leaves the inner 2 for the serial part. I started thinking about what this super duper Remeha cable could hide inside to make serial communication work? There has to be something special to it… converting TTL to RS-232 perhaps? Why not give it a try…

I have a MAX3232CPE laying around for some time; so I planted it on a breadboard, added some 0.1 μF capacitors and built this schema I found (click it):

Here’s the result:

TTL <--> RS232

TTL <--> RS232

Guess what… it works!! My Remeha Calenta was recognized immediately and I watched the data arriving in Recom:

Remeha Recom v4.1.1

With no more than 8 Euros I created my own interface cable; too ridiculous… Special cable?  My A!@&%#%^!!!

OK, but this was just the beginning. With a serial port sniffer i saw the Calenta being queried and I started recognizing the flow temperature, return temperature etc. in the responses that came back from the Calenta. These packets look like this:

02 01 FE 06 48 02 01 F0 14 AA 14 00 80 00 80 86 F3 00 80 B7 10 

00 80 40 1F 70 17 00 80 00 00 00 00 00 BC 02 00 00 00 00 64 00 

00 00 00 C2 0B 10 00 FF FF 00 00 00 00 FF FF 17 00 BC 02 00 00 

00 00 00 00 00 00 00 00 00 C5 9B 03

After an hour or so, i knew where to find some temperature values and stuff like that. The F0 14 marked in red for example, means 53.60 degrees Celsius. That was easy… not good enough for a quiz :-) But I also saw on the amount of values Recom could produce from the incoming bytes, some things had to be stored in bits; the on/off, yes/no, open/closed values appeared not to be stored in a byte, but ‘hidden’ somewhere in a bit maybe? Hmm, how do I know exactly when the Gas valve opens or closes, so how I can locate the bit for that? If it is stored in a bit? This could become a bit more challenging and time consuming than I would like.

Aha! There’s a config directory belonging to the Recom software package, containing XML files; one of them was named exactly like the model that Recom detected. Let’s have a look inside that file… Bingo! These XML files contain very detailed information; they tell me that I can find that Gas valve value in bit 0 of byte 38… Yeeha!

Now it’s just a matter of finding out some more about the leading and trailing bytes and I can start creating my own Remeha Calenta interface to my Domotica system.

Finally I’ll know what the Gas is being used for: DHW or heating. And when the water pressure drops below a value I find alarming, I can be warned before it’s too late. And I can see how much power is actually being produced; and …

Update: RJ-11 is incorrect; it’s a 4P4C connector!

Tagged with:
Jun 08

It took a while before the package arrived, but here they are:

10 1-Wire DS18B20 sensors

10 1-Wire DS18B20 sensors

These sensors are going to be used to monitor the floor heating. This floor heating is made of 5 groups which can be controlled separately (manually, however :-( ).

In the coming fall i want to be able to monitor the temperature decrease in each group and see what happens when i turn the knobs.. I’m not sure if this will be another job for a JeeNode with XBee or that i’ll use the EDS HA7Net this time because it’s in the neighborhood monitoring the central heating and hot water usage and it still has plenty of capacity for 10 more sensors, so we’ll see.

I don’t know where i got the idea from, probably because i went through a lot of RC hardware lately but those who don’t like soldering wires to these small DS18B20 sensor should consider this:

DS18B20 in a RC servo connector

DS18B20 in a RC servo connector

A DS18B20 fits perfectly in a RC servo connector; they come with 3 wires and you can buy these connectors in any RC hobby shop; this picture only shows the connector without the wire, cause i cut it off years ago for whatever reason. The male connector on the other end of the wire will fit (with a little bit of help) in a 0.1″ raster, like a breadboard..  good for building a test setup without any soldering!

Tagged with:
Nov 30

One of the items shown on the LCD of the Proliphix NT20e IP thermostat is the Device name. First i had it set to the location of the thermostat, so there was “Livingroom” displayed. Not very usefull, i know where the thermostat is, since i only have one.  Next text i displayed was my last name… even less informative, i know who i am… OK, another item for my to-do list: can this line of text on the display be used for something really usefull?

Then Pieter Knuvers came with a very good idea; why not display the outside temperature and humidity here? Good idea! Tonight i had some time to have a look at it: :-)

Outside temp on Proliphix LCD

Outside temp on Proliphix LCD

Tagged with:
Nov 23

Today i created the beginning of a page that will show real-time information about the Proliphix thermostat i started using yesterday. Although not finished yet, it displays some status information and will be extended with several charts to see all you ever wanted to know. But for that, I’ll have to wait a while to have some data to work with. Click on the image to go to my website.

Website Thermostat page

Website Thermostat page

Tagged with:
Nov 22

This morning, when i got out of bed, i knew i had a job to do: my Home Automation system was going to be extended with the Proliphix NT20e Thermostat.

All worked well last night with the thermostat on my desk in the office, so drilling a few holes and placing the NT20e in the living room wouldn’t take more then a couple of hours.

However, one little detail took me a couple of hours more then i expected.
This detail was the fact that a Remeha Calenta with an outside temperature sensor doesn’t react on on/off thermostats… it took me some time to figure this out

Once i found out what was going wrong, the NT20e was mounted very easily.

NT20 back plate mounted to the wall
Proliphix NT20 mounted to the wall

Next thing to do was creating a kind of ‘demonstration’ that it all worked. I chose the touchscreen in the living room to be the first GUI to get the new feature of changing the thermostat set point. The touchscreen is 30 cm away from the thermostat, but who cares :-)

NT20 thermostat and ASUS TOP GUI

NT20e thermostat and ASUS TOP GUI

I created a screen with a “+” and “-” button like this:

Setting Thermostat set point in GUI

Setting Thermostat set point in GUI

When a button is pressed, the numeric value in the middle that represents the new desired thermostat setpoint, gets a different color:

Setting Thermostat set point in GUI

Setting Thermostat set point in GUI

When neither the “+” or “-” are pressed for a period of 3 seconds, the numeric value returns to its previous color and the current value is sent to my Domotica system, which takes care of posting the new value of the set-point to the thermostat.

Setting Thermostat set point in GUI

Setting Thermostat set point in GUI

My conclusion so far about this Proliphix thermostat: the greatest thermostat I’ve ever seen.

But this is not the end of the story, there’s still a lot to be done!

Tagged with: