THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.

Begonnen von immi, 02 Februar 2015, 11:42:16

Vorheriges Thema - Nächstes Thema

andy1986

Sorry for my late answer. I tried it now with an old fritz box and ser2net.
Now i get this messages:

2019.07.14 17:31:14 1: 192.168.178.242:2003 disconnected, waiting to reappear (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 reappeared (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 disconnected, waiting to reappear (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 reappeared (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 disconnected, waiting to reappear (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 reappeared (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 disconnected, waiting to reappear (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 reappeared (Mythz)
2019.07.14 17:31:15 1: 192.168.178.242:2003 disconnected, waiting to reappear (Mythz)

Any Ideas?

immi

I have 3 questions

1) does your fritz regognize the usbserial?
you can test it like this

root@fritz:/var/mod/root# dmesg |grep tty
[   29.264000] usb 2-2: FTDI USB Serial Device converter now attached to ttyUSB0


2) is it working with fhem and sometime you get errors?
3) how often do you get the errors?

i configured my ser2net like this

2003:raw:500:/dev/ttyUSB0:115200 NONE 1STOPBIT 8DATABITS

andy1986

Hi Immi,

thanks for your answer:

1.) root@fritz:/var/mod/root# dmesg |grep tty
console [ttyS0] enabled, bootconsole disabled
ttyS0 at MMIO 0x8610e00 (irq = 15) is a PORT_16550A
kdsld: ttychannel: ldisc 8 registered

-> I need to install USB Driver on the freetz or? How could i do that?

2.) No, not working
3.) The errors came up every second...

immi

well ... it seams you understood the problem in you fretz yourself
Zitat von: andy1986 am 14 Juli 2019, 20:15:18
-> I need to install USB Driver on the freetz or? How could i do that?
you need to know which chipset you have in the usbserial and compile it in freetz
in my case ftdi
I also compiled other chipsets just in case

root@fritz:/var/mod/root# ls /lib/modules/2.6.28.10/kernel/drivers/usb/serial/*
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/ch341.ko
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/cp2101.ko
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/ftdi_sio.ko
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/option.ko
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/pl2303.ko
/lib/modules/2.6.28.10/kernel/drivers/usb/serial/usbserial.ko

once you have loaded the driver you should see it like this

root@fritz:/var/mod/root# lsmod |grep ftdi
ftdi_sio               32816  1
usbserial              27952  3 ftdi_sio
usbcore               120352  5 ohci_hcd,ehci_hcd,ftdi_sio,usbserial


immi


andy1986

#829
Crazy, i complied now every driver:

root@fritz:/var/mod/root# ls /lib/modules/2.6.32.41/kernel/drivers/usb/serial/*
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/cp210x.ko
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/ftdi_sio.ko
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/ipaq.ko
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/option.ko
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/pl2303.ko
/lib/modules/2.6.32.41/kernel/drivers/usb/serial/usbserial.ko

but it doesnt work.
Any more USB drivers there?

EDIT: Just to clarify, i connect the usb port from the FB to the usb port from the Tecalor 403.

andy1986

Solved it. I needed to do that:

modprobe cp210x

Now its stable green.
For what is it?

immi

your module does not load automatically
there is another command to force loading

insmod /lib/modules/2.6.32.41/kernel/drivers/usb/serial/cp210x.ko

it is equivalent to modprobe; use what youprefer
Zitat von: andy1986 am 15 Juli 2019, 20:23:59
Now its stable green.
happy that it is working now

Zitat von: andy1986 am 15 Juli 2019, 20:23:59
For what is it?

do not understand your question



joker4791

Zitat von: immi am 15 Juli 2019, 20:38:47
your module does not load automatically
there is another command to force loading

insmod /lib/modules/2.6.32.41/kernel/drivers/usb/serial/cp210x.ko

it is equivalent to modprobe; use what youpreferhappy that it is working now

do not understand your question
This is the serial chip on your THZ...

sunrise

Hi,

This is my first trip into fhem, so please bear with me. I run fhem on Raspbian Buster (RPI2) with USB2-RS232 adapter (Prolific) and ser2net, connected with a Tecalor THZ 303 SOL heatpump from year 2008. The firmware is v2.16. Fhem doesn not offer this version, so I selected 2.14, which seems to be closest. However, I wonder if I would profit from an exactly matching firmware version in the THZ module. What would be needed to add 2.16 support to THZ? Maybe I can help. Right now, I get the readings that seem to be correct; however, I am not sure if I miss something because of the FW differences. Thanks for your hints!
Viele Grüße/kind regards
sunrise
_________________
Tecalor THZ 303 (SOL, 2006/09-2008/08), FW 2.16 | FHEM THZ module testing with FW 2.06 (INTEGRAL, 2006/12-2008/08) & FW 2.14 (SOL, 2002/10-2004/08) on Raspberry Pi 2

immi

hi sunrise
happy you got it working;
I have a newer tecalor, therefore I never digged deep in the 2.x firmwares.
I implemented something for 214 and 206... because I received feedbacks from people with this heatpumps.
Read the whole topic and you will find out who has older tecalor.
By reading you will understand the reverseengineering process.
If you tell me which register differ in your firmware (e.g. how to change line 67 to 169), I will make a version for you.

see the contribution from andre.k
https://forum.fhem.de/index.php/topic,33211.msg695420.html#msg695420
immi

sunrise

Hi immi,

Thanks for your advice and the corresponding code block from andre.k. I will look into this. Some years ago, I spent some time with Robert's heatpump monitor and got at least a basic understanding of what is sent to the heatpump and what is expected back (and it worked, too). So hopefully, I can dig my way through this and offer some adjustments for the 2.16 FW. It may take a while, though. ;)
Viele Grüße/kind regards
sunrise
_________________
Tecalor THZ 303 (SOL, 2006/09-2008/08), FW 2.16 | FHEM THZ module testing with FW 2.06 (INTEGRAL, 2006/12-2008/08) & FW 2.14 (SOL, 2002/10-2004/08) on Raspberry Pi 2

sunrise

Aus dem geschlossenen Thread "THZ / LWZ Tecalor Stiebel Eltron Heizung":
(sorry, die Zeiten der unten zitierten Beiträge stimmen nicht, weil man aus einem geschlossenen Thread nicht so einfach woanders zitieren kann)


Zitat von: belu am 01 Januar 1970, 01:00:00
... habe der Anlage gesagt sie ist ne THZ 404
... Man kann auch aus der THZ eine LWZ machen...

Zitat von: belu am 01 Januar 1970, 01:00:01
ich hab im Punkt Inbetriebnahme Modell drin. Das kann man verändern.

@belu

Kannst Du das bitte einmal genauer erläutern?
Ich habe eine THZ 303 SOL (Software 2.16) aus dem Jahre 2008, ohne iPod-Steuerung, d.h. nur dieses alte einfache LED-Display mit einigen Knöpfen.
Danke!

Can you please explain this in more detail?
I have a THZ 303 SOL (software 2.16) from 2008, without the iPod wheel, i.e. just that old plain LED display with several buttons.
Thanks!
Viele Grüße/kind regards
sunrise
_________________
Tecalor THZ 303 (SOL, 2006/09-2008/08), FW 2.16 | FHEM THZ module testing with FW 2.06 (INTEGRAL, 2006/12-2008/08) & FW 2.14 (SOL, 2002/10-2004/08) on Raspberry Pi 2

Jackie

Hallo,

kann mir jemand erklären, warum die "heatSetTemp" aus dem Reading SHC1 immer um ca. 10 Grad nach oben geht, sobald die Außentemperatur einen gewissen Wert überschreitet? In meinem Screenshot sieht man das recht schön, heatSetTemp ist die graue Kurve, die Außentemperatur rot. Das passiert immer dann, wenn die Außentemperatur sich der eingestellten "Solltemperatur" der Heizung nähert, ich verstehe nur nicht, warum, und ob das ein Fehler der Heizung oder im FHEM Modul ist, bzw. warum es überhaupt zu dem Effekt kommt.

Könnt ihr mir weiterhelfen? Danke!
Raspi 3 mit FHEM, LWZ 304 Trend, Fronius Symo 10.0-3-M, Conbee II Stick, Optokoppler (USB, FTDI), diverse Ikea Tradfri Komponenten,...

TheTrumpeter

Vielleicht springst Du da zwischen Sommer- und Winterberrieb herum?
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero), PowerMap, CustomReadings, RPI_GPIO, Twilight, nanoCUL (WMBus für Diehl Wasserzähler & Regenerationszähler für BWT AqaSmart), ESPEasy, TPLinkHS110

Jackie

Danke, es scheint tatsächlich so zu sein dass sich das Reading seasonmode auf Sommer setzt, aber ich verstehe es trotzdem nicht, ich habe ja für Sommer / Winter keine verschiedenen Heizkurven gesetzt, sondern ich kann in der LWZ ja nur eine Heizkurve vorgeben. Oder übersehe ich etwas?
Raspi 3 mit FHEM, LWZ 304 Trend, Fronius Symo 10.0-3-M, Conbee II Stick, Optokoppler (USB, FTDI), diverse Ikea Tradfri Komponenten,...