preload
Nov 29

Almost ready to start investigating hydronic balancing (HB) … ;-)

 

 

 

 

 

 

 

 

 

 

 

 

Everything is in place and working except for 1 sensor, which is too far away from the receiving JeeNode (which forwards all the data to my Domotica system). So I’ll have to build another RF receiver for that; the missing parts will arrive tomorrow I hope. In the meantime I started creating a webpage to display all the information I want to observe, so I don’t have to switch between browser tabs and go from one page to the other. Another thing that has to be done is program the thermostat, so that the boiler will have to burn at full power for a few hours every day, so that I can see what happens.  I’ve already seen some things that need to be adjusted!

 

Tagged with:
Nov 22

This weekend I came to the conclusion that whatever I do, I’ll never get a well performing central heating without hydronic balancing. I’ve been watching how the temperatures in all the rooms of our house react and where the energy goes to – it’s a mess! No matter how well I’ll be able to control the kettle, temperature control in all the rooms will still be a mess without a hydronicly balanced system.

So this weekend I decided to stop what I was doing (building the Opentherm Gateway) and first try to do something about this balancing issue.

Hydronic balancing is not something I’m familiar with, and I certainly don’t have the tools for it ; but what i can do is provide enough information with these sensors; I don’t know if I’ll succeed, but it’s worth to give it a try.

Sensor for Hydronic balancing The first thing I need to know is how much energy flows through the radiators. Well, I can do that, I guess… A JeeNode with RF transmitter and 2 1-Wire DS18B20 sensors can provide me information about how much energy each radiator produces by measuring the flow- and return temperatures of each radiator.

I’ve got a bunch of JeeNode kits still waiting to be used, enough 1-Wire sensors, batteries and all other components needed, so what am I waiting for??

So this weekend I built a first sensor and a RF-to-Zigbee ‘gateway’ so I can receive all the sensors without the need of USB, RS232 or an additional Ethernet port.

The first sensor is operational now; more will follow!

Red = flow temperature, Blue = temperature drop

Tagged with:
Mar 14

Some time ago I received an email from Roel van de Wal. He had been searching for an alternative for the Remeha cable that is listed on page 155 of this document. Price: 90 Euro… Since this cable from Remeha is nothing more than a piece of wire, a USB connector with built-in FTDI chip, it’s not hard to find other places where you can buy this cable; here for instance. And there are numerous others of course.. Adafruit, Sparkfun, you name it. This cable can be very handy – if you don’t need Ethernet or don’t like soldering, this will probably be the easiest/best/quickest option for you.

The only thing left to do was finding out the function of each wire. Last week Roel mailed me the details:

Black – GND
Orange – TXD
Yellow – RXD
Red – +5V
(Brown-CTS &Green-RTS are unused)

The image he sent me shows the wires and a 4P4C connector:

 

Download the FTDI drivers and you’re done, saving you 70 Euro’s!  :-)

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 22

As I mentioned earlier, an unexpected package arrived 2 weeks ago. Guess who the sender was: Remeha! That means Remeha must have read my earlier postings about the wonder cable, since this is what came out of the box:

Remeha Recom USB version

The letter that came with it, told me that this cable is a prototype of the Interface cable I wrote about earlier, and that they wished me happy testing with it :-)

I must admit that this is a very nice gesture of Remeha! Thanks guys!

And of course this prototype is USB; have you ever seen a laptop with RS232 port lately?? No, it’s all USB these days, so if you would ever send out a technician with a laptop to a boiler in trouble, a USB cable is much more convenient than RS-232.

This cable looks very much like the ones i use for my Digi XBees:

3.3V FTDI cable

3.3V FTDI cable

They fit right onto an XBee Adapter and all the stuff that is needed to communicate with a TTL serial device is embedded in the USB connector. That’s why the USB connector is a bit longer than usual. The price of this FTDI cable is around USD 20, so I’m very curious of the price for this new Remeha cable…

Of course, I know why the ‘old’ Recom Interface cable was so expensive; Remeha tries to (partially?) recoup the software development costs by selling it at an unusually high price. But OTOH, these Interface cables are not made for the average consumer, but for professionals; technicians that deal with Remeha boilers on a daily basis and that need the cable for inspection with the use of Recom. I’m curious…

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 10

This evening i spent some time on trying to figure out the meaning of all the bytes that make up the response. I already knew where to locate the information inside a packet by a brief analysis of the packets a few days ago, but to make things a bit more stable, I knew I had to dig a bit deeper to find out as much as possible. Cause the more you know, the more checks you can build into the software which results in less chance that invalid packets slip through that could possibly crash the system.

When I started analyzing the responses from the boiler, I started with the Sample command. Here’s an example:

0201FE064802018C145A140080008080F3008003100080401F
701700800000000000BC020000006400000010C20B1000FFFF
00000000FFFF1700BC0200000000000000000000002C4303

I already found out that the part marked in blue contains the payload e.g. the ‘interesting stuff’ some days ago, so let’s focus on the remaining bytes:

0201FE06480201 and 2C4303

The 02 at the beginning and 03 at the end are common values for start- and end bytes, so let’s assume this is the case here also, so now the unknown bytes left are:

01FE06480201 and 2C43

The size (2 bytes) and the position inside the packet (at the end) made me think that the 2C43 could very well be a checksum, and it is: it’s the CRC16 (Modbus variant) of the complete packet without the start- and end byte (and of course the checksum value itself); so based on the packet above the bytes of which the CRC is calculated are:

01FE064802018C145A140080008080F3008003100080401F
701700800000000000BC020000006400000010C20B1000FF
FF00000000FFFF1700BC020000000000000000000000

The Modbus variant of CRC16 calculation differs from a “standard” CRC16 calculation in that the initial value isn’t 0 (zero), but $FFFF. Being able to validate the checksum is very valuable and adds a lot to the robustness of this interface.

So now all that’s left are these leading bytes:

01FE06480201

To understand the 01FE part, I looked at some outgoing packets, these look like this:

02FE010508020169AB03

Again, after removing the start- and stop byte and the checksum we see this:

FE0105080201

Compare this  with what is still unknown from the response:

Incoming: 01FE06480201
Outgoing: FE0105080201

The first two bytes seem to be the addresses of the source and destination device; this is not that strange as it seems; although this is a 1:1 communication, since there seems to be some Modbus inheritance in this protocol (the CRC16) and knowing that Modbus allows for more devices to be on the same bus, it ain’t that strange at all. Looking at other packet types (blockings, lockings, counters) I always see these 2 bytes coming back, so it’s fair to assume these are used for addressing. Now we’re down to 4 bytes:

06480201

$48 = 72 decimal. Packet size! Another important item to validate the incoming data stream.

Believe me, (I won’t bore you with examples of all the other packet types) 0201 is the function code or command code or whatever you like to name it. It identifies what the payload is about. 1 byte left, the 06. Protocol version? I don’t know yet. Maybe some day I will…

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: