Otgw and Remeha tzerra ace with etwist thermostat

This Forum is about the Opentherm gateway (OTGW) from Schelte

Moderator: hvxl

Willem
Starting Member
Starting Member
Posts: 2
Joined: Sat May 16, 2020 4:33 pm

Otgw and Remeha tzerra ace with etwist thermostat

Post by Willem »

The Remeha Tzerra Ace boiler has what they call an R-bus. This bus should be capable, according to the documentation, of running the OT protocol as well as some kind of specific Remeha protocol. The E-twist thermostat should also be able to talk Opentherm.
I have the Nodo shop opentherm gateway running and connected via Wifi to Openhab with the OpenTherm gateway binding installed, so far so good everything comes online as it should.
At the gateway side things are a bit more problematic. With only the thermostat connected and the reference set to 1.25V I am only seeing error 3 messages in the terminal and the thermostat does not connect.
When 1 set the reference to voltage to 0.625V (0) the error 3 message disappears and the thermostat keeps connecting disconnecting.
I am running version 4.2.5 firmwater.
I hooked up a scope to the Ot bus and that seems to look fine I have a base line of 6 volt and on that I have 10 volt pulses.
The thermostat sends out first 9 bits then a 6mSec pause followed by 18 bits this is then repeated every 500 mSec.

With nothing connected the gateway is sending out the following messages:
17:10:38.761797 R00000000 Read-Data Status: 00000000 00000000
- CH enable: disabled (0)
- DHW enable: disabled (0)
- Cooling enable: disabled (0)
- OTC active: not active (0)
- CH2 enable: disabled (0)
- Summer/winter mode: winter (0)
- DHW blocking: unblocked (0)
I found nothing on-line about connecting the Tzerra ace (new version of the Tzerra plus) with Etwist to the openhab gateway so I might be the first to try this.
I am a bit stuck at this moment and was hoping that somebody could help me forward.
Kind regards Willem
Willem
Starting Member
Starting Member
Posts: 2
Joined: Sat May 16, 2020 4:33 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by Willem »

Had a better look at what the thermostat was sending out:
First it sends out 10 bits with a cycle time of 2 msecs if these are manchester coded then it would read 1111.1111.11
After this there is a 6msec wait followed by what looks like a manchester coded opentherm message with 34 bits of exactly 1msec:
1.1001.0000.0000.0010.0000.0000.0000.1011.1
The above is repeated every 500mSec.

The terminal program shows only error 03 messages with very rarely the following messages in between the errors:
23:46:39.651051 T9002000B Write-Data Master configuration: 00000000 11
- Smart power: not supported (0)
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

The first 10 bits clearly do not match OpenTherm timings. This is why the OTGW reports error 03. The next issue is that the thermostat then only waits 6 ms before sending the OpenTherm message. The OpenTherm spec requires an interval of 20 to 400 ms between the message from the master and the response from the slave. So an idle time of 6 ms is much shorter than expected. Currently the OTGW wants to see the line idle for at least 10 ms before it looks for a new OpenTherm message. As a result, the actual OpenTherm message from the thermostat is considered to still be part of the garbage. Apparently sometimes the gap is just long enough and the OTGW manages to find an occasional message.

Dialing the reference voltage all the way down to 0.625V stops the error messages because then the OTGW doesn't detect any changes on the line anymore (the line voltage always stays above the threshold).

You can recompile the gateway firmware with a shorter idle time requirement. How that works is clearly documented in the sources. Look for the line "constant PRELOADT0=100". Change that to "constant PRELOADT0=178" to use a 5 ms idle timer. (PRELOADT0 is the start value for timer 0, which counts up to 256. So, to halve the time, you have to halve the difference between PRELOADT0 and 256.)
Schelte
dimplou
Starting Member
Starting Member
Posts: 6
Joined: Wed Nov 25, 2020 2:43 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by dimplou »

Unfortunately changing PRELOADT0 to 178 does not help for my setup. I'm getting the Error 03 about every second. In monitor mode (as well as in gateway mode) the display of the eTwist doesn't turn on. Is there a way to directly pass through the OT signal to see if without any software the setup is working?

With the diagnose firmware I get this results:

Code: Select all

Enter test number: 2
921,1104,930,1105,931,1105,931,1105,930,1108,931,1107,930,1109,930,1108,932,1106,929,6674,424,593,423,1102,422,596,930,1104,421,598,419,596,421,598,420,598,419,597,421,598,420,599,418,598,419,598,932,1103,420,597,422,599,418,597,421,597,422,596,420,598,421,597,422,596,420,598,420,597,423,595,420,597,930,1106,931,596,420,598,420.
921,1104,929,1106,930,1106,930,1104,929,1105,930,1105,930,1107,928,1107,930,1104,930,6676,424,593,422,1103,422,596,930,1104,420,598,419,597,420,597,420,599,418,597,420,598,420,598,418,597,420,598,932,1103,421,597,422,599,417,598,420,597,422,595,420,597,422,596,423,595,420,597,421,597,423,595,420,598,929,1106,931,596,421,597,421.
922,1104,931,1107,931,1106,932,1106,931,1107,931,1108,931,1108,930,1109,931,1107,930,6685,425,593,425,1104,423,597,930,1105,422,598,420,596,421,598,420,599,419,598,420,599,420,599,417,598,419,598,933,1102,421,597,422,599,417,597,421,597,422,596,420,597,422,596,423,595,421,597,420,598,423,594,420,598,929,1106,931,597,420,598,421.
921,1104,929,1105,930,1105,930,1105,930,1106,930,1106,930,1107,928,1107,930,1106,930,6678,424,594,423,1102,422,596,930,1105,420,599,419,597,421,597,420,599,418,597,421,598,421,599,418,598,420,597,934,1102,421,598,421,600,417,597,421,596,423,595,420,598,421,597,423,595,420,598,420,598,423,595,420,599,929,1106,931,597,420,598,421.
921,1104,930,1106,930,1105,930,1105,929,1107,930,1106,930,1107,928,1108,929,1107,929,6678,424,594,422,1103,422,597,931,1104,422,598,419,597,421,598,420,599,419,598,420,599,420,600,418,598,420,597,933,1103,421,598,422,599,418,598,421,597,422,596,420,597,421,597,423,595,421,597,421,597,423,594,421,598,930,1107,931,597,419,598,420.

Code: Select all

Enter test number: 5
Thermostat: 0.66, 1.89
Boiler: 0.00
Reference: 1.21
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

You clearly need the PRELOADT0 modification, and you should have seen a change. With the original value you would only get Error 03. After changing PRELOADT0 to 178 you should see both Error 03 and T9002000B.

But there is another problem. Both in monitor mode and with the diagnostic firmware, the OTGW does directly pass through the OT signal, incorrect timings and all. However, no response appears on the boiler interface, as can be seen from your test #5. On the boiler interface only 0V is measured. So most likely there is an issue on the boiler interface. Either the signal doesn't get out, or the response is not detected. While you have the diagnostic firmware loaded, you can run test #4 (with the OTGW interfaces looped). You can also check the Opentherm interfaces as described in the troubleshooting instructions.
Schelte
dimplou
Starting Member
Starting Member
Posts: 6
Joined: Wed Nov 25, 2020 2:43 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by dimplou »

I removed IC1 and connected X1 to X2.
When I connect IC1 pin 2 to pin 14 (VCC), the voltage on X2 changes and IC1 pin 17 changes.
When I connect IC1 pin 3 to pin 5 (GND), the current on X1 changes from 20,2 mA to 6,1 mA. IC1 pin 18 however stays all the time to 0,0V.
The connection to the thermostat is fully working. OTGW can send messages to the boiler, but can't receive messages from the boiler anymore. This problem occurs since yesterday.

The optocoupler is fine. Do you have some advice how to find out what is wrong?
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

Something seems to be wrong with the boiler interface of your OTGW. With X1 still connected to X2 (IC1 pin 3 not grounded), measure the voltages across D9, R2, and R3. Expected values are something like: D9: 4.7V, R2: 1.1V, R3: 3.6V.

How did you establish that the optocoupler is fine?
Schelte
dimplou
Starting Member
Starting Member
Posts: 6
Joined: Wed Nov 25, 2020 2:43 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by dimplou »

I reasoned that either Q1 or D9 should be the cause of the problems, since the problem was in the receiving part of the boiler interface. I replaced Q1 with a new one and the interface is working fine again.

Then I flashed the customized firmware, connected X1 to the eTwist and did not connect the boiler. Result is Error 03's again, and not the T9002000B.
I realised I have a 18V transformer in stead of a 15V one. Could that be a problem?
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

The higher transformer voltage might be what blew your Q1 when you connected X1 to X2. An 18V transformer will provide 18V under its nominal load. But when not fully loaded, it produces a higher voltage. Suppose it puts out 23V AC. After rectifying and smoothing, that results in a DC voltage above 30V, the absolute maximum Vceo for a BC548. Now there is some other circuitry in between, so I would still not expect Q1 to have to deal with a voltage above its maximum rating, but you may be getting close. However, the higher voltage has no effect on the timing of the code in the PIC.

Looking at the timings you provided earlier:
921,1104,930,1105,931,1105,931,1105,930,1108,931,1107,930,1109,930,1108,932,1106,929,6674,424,593,423,1102,422,
596,930,1104,421,598,419,596,421,598,420,598,419,597,421,598,420,599,418,598,419,598,932,1103,420,597,422,599,
418,597,421,597,422,596,420,598,421,597,422,596,420,598,420,597,423,595,420,597,930,1106,931,596,420,598,420
.

The first 921 µs high level will immediately produce the Error 03, because a valid OT signal must always start with a high level of half a bit length (between 400 and 650 µs). After the OTGW detects an error, it waits for the line to be idle for some amount of time before it will try to match an OT signal again. By default this is 10ms. The data following the 6674 µs low level is a proper OT message 9002000B. So, if you correctly reduced the idle timer to 5ms, the OT message should have been detected.
Schelte
dimplou
Starting Member
Starting Member
Posts: 6
Joined: Wed Nov 25, 2020 2:43 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by dimplou »

I changed line 190 in gateway.asm from

Code: Select all

		constant PRELOADT0=100
to

Code: Select all

		constant PRELOADT0=178
The output results in almost the same firmware as 4.2.5 gateway.hex. Only line 185 changes from

Code: Select all

:100B3000DD01640891020630031C91028C106430C0
to

Code: Select all

:100B3000DD01640891020630031C91028C10B23072
The resulting gateway.hex can be found as attachment. I'm 100% sure that firmware is running on the OTGW.

Today I found the T9002000B in the log, directly after connecting the thermostat:

Code: Select all

17:23:57.955971  Thermostat connected
17:24:00.957499  Error 03
17:24:04.077589  Error 03
17:24:04.166622  T9002000B  Write-Data  Master configuration: 00000000 11
17:24:04.618150  Error 03
17:24:05.127118  Error 03
17:24:05.653598  Error 03
17:24:05.925314  Thermostat disconnected
17:24:06.755402  R00000000  Read-Data   Status: 00000000 00000000
17:24:07.546045  Thermostat connected
17:24:10.617758  Error 03
17:24:10.651716  T9002000B  Write-Data  Master configuration: 00000000 11
17:24:11.178268  Error 03
17:24:11.657068  Error 03
17:24:12.163612  Error 03
17:24:12.677593  Error 03
17:24:13.182861  Error 03
17:24:13.678445  Error 03
17:24:14.210833  Error 03
17:24:14.702331  Error 03
17:24:15.196309  Error 03
17:24:15.707923  Error 03
17:24:16.223229  Error 03
17:24:16.718322  Error 03
17:24:17.272303  Error 03
17:24:17.491768  Thermostat disconnected
17:24:18.431856  R00000000  Read-Data   Status: 00000000 00000000
17:24:18.878664  Thermostat connected
17:24:21.890070  Error 03
17:24:21.934223  T9002000B  Write-Data  Master configuration: 00000000 11
17:24:22.450623  Error 03
17:24:22.933456  Error 03
17:24:23.442339  Error 03
17:24:23.953955  Error 03
17:24:24.454074  Error 03
17:24:24.971875  Error 03
17:24:25.463319  Error 03
17:24:25.994969  Error 03
17:24:26.510293  Error 03
17:24:26.970879  Thermostat disconnected
17:24:27.887085  R00000000  Read-Data   Status: 00000000 00000000
17:24:28.894887  R00000000  Read-Data   Status: 00000000 00000000
17:24:29.885487  R00000000  Read-Data   Status: 00000000 00000000
17:24:30.869626  R00000000  Read-Data   Status: 00000000 00000000
17:24:31.683674  Thermostat connected
17:24:34.691185  Error 03
17:24:34.727720  T9002000B  Write-Data  Master configuration: 00000000 11
17:24:35.230482  Error 03
17:24:35.740873  Error 03
17:24:36.238491  Error 03
17:24:36.758749  Error 03
17:24:37.280206  Error 03
17:24:37.827096  Error 03
The Error 03's continue if I leave the connection to the thermostat intact.

A bit longer log from the diagnosis firmware:

Code: Select all

Opentherm gateway diagnostics - Version 1.1

1. LED test
2. Bit timing thermostat
3. Bit timing boiler
4. Delay symmetry
5. Voltage levels
6. Idle times

Enter test number: 2
912,1114,922,1116,922,1118,921,1116,922,1120,918,1119,920,1119,921,1117,922,1117,922,6695,415,604,414,1114,412,606,923,1117,410,609,410,608,410,608,411,610,409,608,410,609,411,610,409,608,411,611,922,1114,411,608,412,611,407,609,410,608,412,609,407,609,413,607,414,610,409,609,412,609,414,607,411,610,921,1119,923,608,412,607,413.
913,1114,922,1119,919,1117,922,1116,921,1116,921,1117,921,1121,918,1117,921,1118,921,6692,415,604,413,1114,412,607,921,1116,412,608,412,609,411,610,409,609,410,607,412,608,411,610,408,608,411,607,924,1114,411,609,411,611,406,607,412,607,413,609,408,608,411,607,413,606,410,607,411,607,414,607,409,610,919,1116,921,608,410,608,411.
913,1114,921,1116,922,1115,922,1118,919,1116,923,1118,919,1118,921,1117,923,1121,919,6700,415,602,415,1116,411,606,923,1115,412,609,410,608,411,608,411,608,410,607,412,611,409,612,407,608,411,608,924,1115,410,608,412,610,408,608,412,607,413,612,406,609,410,607,414,606,411,608,411,609,412,606,410,609,921,1116,924,610,409,607,412.
913,1116,920,1115,923,1116,921,1115,921,1116,923,1120,918,1118,922,1117,921,1117,921,6693,416,603,414,1114,413,606,922,1118,409,611,408,607,412,608,411,609,410,608,411,609,411,609,409,608,411,608,925,1116,410,607,413,609,409,608,411,608,412,610,408,607,412,607,414,604,412,610,408,610,412,605,411,608,922,1117,921,608,410,607,412.
913,1115,921,1116,923,1119,920,1116,922,1118,921,1118,920,1119,922,1118,921,1117,922,6697,413,603,414,1114,412,608,921,1117,411,609,410,606,412,607,412,612,407,608,412,608,412,609,409,608,411,608,924,1114,412,607,414,608,409,610,410,607,413,609,408,608,412,607,412,607,410,608,410,609,413,605,411,610,920,1116,923,607,412,607,412.
912,1113,921,1116,922,1116,922,1115,922,1117,922,1117,921,1119,921,1118,923,1118,922,6698,416,603,415,1116,410,609,920,1115,412,608,411,607,411,608,411,609,409,607,412,608,412,612,407,610,409,608,926,1115,411,608,413,609,408,608,412,607,413,609,408,611,409,609,412,606,412,608,411,608,414,606,411,608,920,1117,922,607,412,610,409.
913,1116,920,1115,923,1116,922,1116,921,1117,922,1120,918,1118,922,1117,921,1117,921,6692,415,604,413,1114,412,607,921,1114,412,611,408,609,409,607,411,609,409,607,411,609,410,610,408,608,411,607,924,1117,408,609,411,609,408,607,411,608,413,609,407,608,411,607,412,606,411,606,412,610,411,607,409,608,920,1117,921,607,410,608,410.
912,1115,921,1116,922,1118,920,1115,922,1116,922,1117,920,1117,921,1120,919,1116,922,6692,415,606,411,1114,413,606,922,1115,411,608,410,607,411,607,411,608,410,610,408,610,409,609,408,607,411,607,923,1114,411,607,412,609,408,607,412,610,410,610,407,607,412,607,413,606,411,608,411,608,413,605,411,608,921,1120,920,607,412,607,412.
910,1113,922,1116,922,1116,921,1116,921,1119,918,1117,920,1117,921,1118,920,1117,921,6693,413,604,413,1113,413,606,922,1117,410,608,412,607,412,608,411,609,409,608,412,608,413,609,410,607,413,611,923,1115,412,608,413,610,407,609,411,607,413,609,407,608,412,607,413,608,409,607,411,608,413,604,411,608,921,1116,922,607,412,606,413.
913,1114,922,1118,920,1116,922,1117,923,1118,923,1118,922,1120,919,1116,921,1118,921,6693,416,603,414,1114,412,607,921,1115,412,608,410,605,413,610,409,609,410,608,411,609,410,610,408,609,410,608,924,1114,411,609,411,611,405,607,412,607,413,609,407,609,411,608,413,606,411,607,411,608,414,608,408,610,919,1117,922,608,411,608,410.
914,1115,921,1117,922,1116,922,1119,919,1116,921,1118,920,1118,921,1117,922,1119,919,5678,414,605,414,1114,412,609,920,1116,412,609,410,609,414,605,410,610,409,608,411,608,412,612,407,610,409,609,923,1115,410,610,410,610,408,609,410,608,413,609,409,611,409,611,409,610,408,608,411,609,412,610,407,609,921,1117,922,607,412,613,406.
913,1117,920,1115,922,1117,920,1118,921,1117,922,1119,920,1117,922,1118,921,1117,921,6695,414,605,413,1114,413,606,923,1118,409,609,410,607,411,608,411,609,410,608,411,608,411,609,410,607,412,608,924,1117,409,608,413,609,408,609,411,608,412,610,408,607,412,607,413,609,409,610,410,609,412,605,412,607,923,1117,920,608,411,607,412.
912,1115,921,1116,922,1117,921,1116,922,1119,920,1117,921,1117,922,1119,920,1117,921,6697,412,604,414,1113,414,607,921,1115,412,608,411,607,411,606,412,612,407,607,411,607,411,609,409,608,410,609,921,1115,410,607,412,609,409,610,408,608,413,609,408,607,412,607,413,610,407,608,412,607,413,605,412,607,922,1116,922,607,411,608,411.
912,1114,922,1117,920,1116,921,1116,923,1119,920,1117,922,1118,921,1117,921,1116,922,6694,414,604,414,1113,414,609,919,1115,412,608,411,607,411,608,411,609,410,607,411,608,411,612,407,610,409,609,924,1114,411,608,411,610,408,608,411,607,413,609,409,610,410,610,410,610,408,607,412,608,412,607,411,608,921,1117,922,608,411,610,409.
914,1115,924,1115,922,1116,923,1117,920,1118,922,1119,920,1116,923,1117,921,1117,922,6691,415,604,414,1114,412,606,921,1116,412,610,408,609,410,606,412,608,411,607,411,608,411,609,409,608,411,608,924,1116,408,610,410,609,409,607,412,607,413,610,407,609,411,607,413,605,411,608,412,609,411,607,410,608,921,1117,922,608,410,608,411.
914,1115,922,1115,921,1117,920,1116,920,1117,922,1117,921,1116,921,1118,918,1116,922,6695,413,606,412,1112,414,605,923,1115,411,609,410,607,411,608,411,608,411,610,409,610,409,610,408,608,410,609,923,1115,410,607,413,609,408,607,412,610,410,610,407,608,412,606,414,606,410,609,411,607,413,605,412,607,922,1119,920,608,411,608,410.
911,1114,924,1115,921,1117,922,1116,921,1121,919,1116,922,1117,922,1117,922,1116,922,6694,414,604,414,1113,413,605,923,1116,412,608,411,608,410,609,410,610,409,608,410,608,411,609,410,609,410,611,921,1115,411,607,413,610,409,608,410,608,413,609,408,608,412,609,411,609,408,608,412,607,413,606,411,608,921,1118,922,607,412,607,412.
912,1113,924,1118,919,1115,923,1117,920,1117,921,1116,921,1119,920,1116,921,1118,920,6694,415,605,413,1115,412,607,921,1115,412,608,410,610,409,610,409,609,411,608,411,608,411,610,409,608,410,610,923,1114,411,611,409,612,406,609,411,608,413,609,408,608,411,608,412,607,411,607,413,606,414,609,409,609,920,1118,923,608,410,609,410.
914,1115,922,1116,922,1116,922,1118,919,1117,922,1117,921,1117,921,1117,921,1120,919,6693,415,605,412,1115,411,606,922,1114,412,608,410,607,411,607,411,609,410,606,412,611,408,611,407,608,411,609,923,1115,410,608,412,609,408,608,411,608,413,611,406,609,410,607,413,606,411,608,411,608,413,606,411,607,921,1115,922,610,409,608,411.
913,1116,921,1116,923,1118,923,1116,921,1117,923,1118,921,1116,922,1117,920,1118,922,6692,414,605,413,1113,413,606,922,1118,409,608,410,608,411,608,410,610,410,607,410,609,410,609,409,608,411,610,922,1114,411,608,412,609,409,608,410,608,412,610,407,607,412,607,414,607,409,610,409,607,413,606,411,607,922,1117,921,607,411,607,412.
912,1115,922,1115,922,1117,922,1116,920,1118,921,1116,922,1117,920,1116,923,1116,922,6697,413,603,415,1113,413,606,921,1116,411,608,411,606,412,610,409,611,408,606,412,607,412,608,410,608,410,609,923,1114,411,607,413,611,407,610,409,608,412,610,408,608,411,608,413,606,410,608,412,607,413,605,412,610,920,1117,922,607,412,608,411.
913,1115,922,1117,920,1117,922,1120,918,1118,922,1118,923,1120,922,1119,923,1121,919,6691,415,603,414,1115,410,607,921,1114,412,608,410,607,411,608,410,609,410,608,412,607,412,611,407,609,409,609,923,1114,410,609,411,609,408,608,410,608,412,609,408,611,410,609,412,606,412,608,412,608,413,607,411,609,921,1119,923,611,409,611,409.
914,1116,920,1115,921,1117,922,1117,920,1117,922,1119,919,1117,921,1117,921,1118,921,6694,414,605,413,1114,412,607,921,1115,411,610,408,608,410,608,411,610,409,608,411,608,411,610,408,608,411,608,923,1117,409,607,413,609,409,607,411,608,412,610,407,608,412,606,414,605,411,608,412,609,411,605,412,607,922,1117,922,608,410,608,411.
913,1115,922,1115,920,1119,919,1117,920,1118,922,1117,921,1117,922,1119,919,1117,921,6696,413,605,413,1112,413,607,922,1118,411,610,410,608,412,609,411,613,408,610,410,609,412,610,410,609,411,611,924,1116,411,608,413,610,410,611,410,611,410,610,408,608,411,607,413,607,411,608,411,608,413,606,411,607,922,1119,921,607,412,608,411.
And the log when I start without a thermostat connection and connect the thermostat after a few seconds:

Code: Select all

Enter test number: 2
12277,176,2998,75.
59,1200,1096,87,898,963,75,303,191,7542,459,75,114,204,611,321,1416,1436,98,75,176,1964,217,75,616,427,10598,851,475,181,397,220,75,2903,75,709,75,42057,5147.
899,1123,954,1173,953.
906,1112,921,1113,921,1112,922,1111,922,1111,923,1110,923,1110,922,1110,922,1110,923,6674,419,598,416,1107,415,602,922,1110,414,603,412,602,414,602,415,604,411,603,414,602,416,603,411,603,414,602,923,1110,415,601,417,600,414,602,414,603,417,599,414,603,414,602,417,600,413,603,414,602,414,602,414,603,923,1110,925,601,414,603,415,3149.
917,1109,923,1110,923,1111,921,1111,922,1111,922,1111,922,1111,923,1111,922,1112,923,6673,417,599,417,1110,413,600,924,1109,415,602,414,602,416,599,415,602,414,602,417,600,414,603,413,603,418,599,924,1110,414,602,414,603,413,602,415,602,414,604,413,602,414,603,414,604,412,603,414,602,415,604,411,602,924,1114,920,603,413,604,412.
914,1108,924,1109,924,1110,922,1110,924,1110,923,1111,922,1111,923,1112,922,1112,921,6676,417,598,418,1108,414,601,924,1112,412,601,415,602,416,603,411,602,415,601,416,601,414,601,416,601,417,600,924,1109,418,599,414,603,413,603,417,599,413,604,413,602,414,602,415,603,414,602,414,602,414,604,413,603,924,1112,921,603,415,603,416.
917,1110,923,1110,923,1109,924,1110,923,1110,923,1111,923,1110,922,1111,923,1110,923,6677,417,599,417,1109,414,600,924,1112,412,602,414,602,416,603,412,602,415,602,416,600,415,602,415,602,417,600,924,1110,417,599,415,603,413,602,415,602,415,603,413,602,414,603,414,604,413,602,414,603,414,604,412,603,924,1111,921,603,414,604,416.
917,1108,924,1110,922,1111,923,1109,923,1111,921,1112,922,1111,923,1110,923,1110,923,6671,417,599,416,1109,413,601,924,1111,412,601,416,600,417,599,415,602,414,602,416,600,414,602,415,602,417,599,925,1109,417,599,414,603,413,602,414,602,414,604,413,602,414,602,414,604,414,602,415,604,415,604,412,602,923,1113,921,603,413,604,416.
918,1108,923,1109,924,1110,923,1111,924,1112,923,1111,922,1110,920,1111,923,1110,923,6673,417,599,416,1110,413,601,924,1109,414,602,416,600,417,599,415,601,415,602,417,599,415,602,414,602,417,599,925,1109,414,602,414,603,413,602,413,603,414,603,413,602,415,603,413,604,412,603,414,603,413,604,412,603,923,1113,920,603,414,604,412.
916,1109,923,1109,924,1110,922,1110,923,1110,923,1110,922,1110,923,1111,921,1111,923,6674,418,599,416,1110,413,600,924,1108,415,602,414,602,417,600,414,602,415,602,417,600,414,603,414,603,417,599,925,1110,414,602,415,603,413,603,414,603,414,603,413,602,414,603,415,604,412,602,415,602,415,604,412,602,924,1112,920,603,414,604,413.
915,1109,924,1110,923,1111,921,1109,922,1111,923,1111,923,1110,923,1110,923,1111,922,6678,418,599,417,1108,414,601,924,1112,412,601,416,601,416,604,411,602,415,601,416,600,415,602,415,601,416,600,924,1109,417,599,414,603,414,602,417,599,414,603,413,602,414,602,414,603,413,603,414,603,414,603,412,602,924,1110,922,602,414,603,416.
917,1108,924,1110,921,1110,923,1110,923,1111,923,1110,923,1111,923,1110,923,1111,923,6677,417,599,416,1110,413,600,925,1112,411,602,415,602,416,604,411,602,415,602,416,600,415,601,415,602,417,599,924,1110,418,599,414,603,413,602,414,603,414,603,413,602,415,602,414,604,414,602,414,603,414,603,412,603,925,1111,922,602,414,
Attachments
gateway-eTwist.zip
(8.79 KiB) Downloaded 253 times
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

I created an scl file from the timings you reported. Running that through the simulator, I also see only Error 03. Closer inspection revealed that my expectation that the initial pulse of around 912 µs would cause an error was incorrect. The first signal that the OTGW doesn't like is the 6600 µs gap between the rubbish and the actual Opentherm signal.

By the time the firmware concludes that the gap duration exceeds a valid Opentherm bit, 2ms have already passed. So only 4.5 ms of idle time remains by the time timer T0 is started. This explains why the workaround to reduce the timer to 5ms doesn't work for you, except on very rare occasions. You will have to reduce the idle line detection time even further. To make it 4 ms, set PRELOADT0 to 194. If that still misses too many messages, set PRELOADT0 to 201, for 3.5 ms.
Attachments
stimulus.zip
Simulator stimulus file
(3.46 KiB) Downloaded 250 times
Schelte
dimplou
Starting Member
Starting Member
Posts: 6
Joined: Wed Nov 25, 2020 2:43 pm

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by dimplou »

Thanks for the analysis!

Unfortunately with the new firmware (PRELOADT0=201) and the eTwist my OTGW broke again. I'm afraid the thermostat asks the boiler for a bigger current/voltage the OTGW can handle. This is the log with the (last) communication:

Code: Select all

05:37:53.662526  Error 03
05:37:53.691515  T9002000B  Write-Data  Master configuration: 00000000 11
05:37:54.156821  Error 03
05:37:54.199709  T9002000B  Write-Data  Master configuration: 00000000 11
05:37:54.670997  Error 03
05:37:54.703824  T9002000B  Write-Data  Master configuration: 00000000 11
05:37:54.805242  B5002000B  Write-Ack   Master configuration: 00000000 11
05:37:55.166802  Error 03
05:37:55.212233  T80870B00  Read-Data   Message ID 135: 2816
05:37:55.311015  BE0870B00  Data-Inv    Message ID 135: 2816
05:37:58.387838  Error 03
05:37:58.428135  T9002000B  Write-Data  Master configuration: 00000000 11
05:37:58.518367  B5002000B  Write-Ack   Master configuration: 00000000 11
05:37:58.702158  Error 03
05:37:58.743448  T80870B00  Read-Data   Message ID 135: 2816
05:37:58.906282  BE0870B00  Data-Inv    Message ID 135: 2816
05:38:01.987844  Error 03
05:38:02.029229  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:02.115765  B5002000B  Write-Ack   Master configuration: 00000000 11
05:38:02.238481  Error 03
05:38:02.278962  T80870B00  Read-Data   Message ID 135: 2816
05:38:02.404192  B4087000B  Read-Ack    Message ID 135: 11
05:38:05.490665  Error 03
05:38:05.533388  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:05.787525  Error 03
05:38:06.020407  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:06.284252  Error 03
05:38:06.502000  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:06.784753  Error 03
05:38:06.985018  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:07.295253  Error 03
05:38:07.483102  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:07.794623  Error 03
05:38:07.958779  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:08.303900  Error 03
05:38:08.442894  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:08.810668  Error 03
05:38:08.932422  T9002000B  Write-Data  Master configuration: 00000000 11
05:38:09.319904  Error 03
After this the boiler doesn't respond anymore, and the T9002000B continues together with the Error 03.

Is message ID 135 a OpenTherm 3.0 message? I can't find any documentation about OpenTherm 3.0, except the Wikipedia article which describes OpenTherm Smart Power is added in OpenTherm 3.0.
Templar
Member
Member
Posts: 178
Joined: Fri Mar 18, 2011 8:49 pm
Location: Netherlands

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by Templar »

dimplou wrote: Is message ID 135 a OpenTherm 3.0 message? I can't find any documentation about OpenTherm 3.0, except the Wikipedia article which describes OpenTherm Smart Power is added in OpenTherm 3.0.
It's a Data-ID above 127 so is most likely a manufacturers (Remeha) message for test & diagnostic purposes. Here some Remeha meesages I recorded in 2017:

ID 131: {u8 u8} "Remeha dF-/dU-codes"
ID 132: {u8 u8} "Remeha Servicemessage"
ID 133: {u8 u8} "Remeha detection connected SCU’s"

Perhaps there is a Data-ID 134 too. More info about thermostat Data-ID's: http://otgw.tclcode.com/matrix.cgi#thermostats
Last edited by Templar on Wed Dec 16, 2020 11:52 pm, edited 1 time in total.
hvxl
Senior Member
Senior Member
Posts: 1965
Joined: Sat Jun 05, 2010 11:59 am
Contact:

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by hvxl »

The Opentherm spec only defines messages up to 127: "Id’s 0 .. 127 are reserved for OpenTherm pre-defined information, while id’s from 128 .. 255 can be used by manufacturers (members of the association) for test & diagnostic purposes only. The MemberID codes of the master and slave can be used to handshake between two compatible devices and enable the use of the Test & Diagnostic-Area data-items."

So, message ID 135 is a manufacturer specific message, not an OT 3.0 message. The text quoted above also hints at a possible way out: Modify the message ID 3 response to pretend that you have a Daalderop boiler instead of a Remeha Tzerra Ace (SR=3:1,29). If that doesn't do the trick, you can try to mark message IDs 2 or 3 as unknown (UI=2, UI=3). The best solution would be if you could prevent message ID 135 from getting to the boiler. But unfortunately, the OTGW currently does not support marking message IDs above 127 as unknown. There is not enough space to track all 256 messages individually. But maybe it would be possible to add a way to mark all "test & diagnostic" messages as unknown.
Schelte
sincze
Starting Member
Starting Member
Posts: 47
Joined: Sat Jun 14, 2014 7:18 pm
Location: Breda

Re: Otgw and Remeha tzerra ace with etwist thermostat

Post by sincze »

I've been following this subject as Calenta Ace could be similar to Tzerra ace.

Today I tested the following setup:

From:
Working
Working
OTGW-1-1.PNG (119.6 KiB) Viewed 4768 times
This Setup is Working No Error: 03 events just missing Outside Temperature, DHW Setpoint and DHW temperature in OTMonitor running FW 4.2.5
PR: V=3 / PR: T=11 / PR: S=17.99 / PR: G=00 PR: I=00 PR: O=T20.00

So inspired by etwist advertisements I tried this setup.
Blank Screen
Blank Screen
OTGW-2-2.PNG (93.56 KiB) Viewed 4768 times
However now the etwist thermostat does not light up.

So, removed the OTGW (not what I want ofcourse...)
Working
Working
OTGW-3-3.PNG (52.75 KiB) Viewed 4768 times
That seems to work.

Could that be related to the ideas mentioned in this topic?
Post Reply

Return to “Opentherm Gateway Forum”