Autor Thema: THZ Tecalor (LWZ Stiebel Eltron) module support and code improvement.  (Gelesen 33709 mal)

Offline TheTrumpeter

  • Full Member
  • ***
  • Beiträge: 127
If it works, I will implement your proposal.
Works with both 10°C and 55°C for all 4 parameters.
FHEM auf RPi3, THZ (LWZ404SOL), RPII2C & I2C_MCP342x (ADCPiZero)

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 781
Works with both 10°C and 55°C for all 4 parameters.
committed

Offline Kiteandy

  • Newbie
  • Beiträge: 2
Hello,

I have a LWZ303i with Firmware 4.09 installed. Actually I am working for an implementation in Codesys with a WAGO CPU. The heatpump serial connection is connected to an internal RS232 interface of the WAGO CPU. During my work to try to implement the the communication I found your solution with fhem.
So after a few tries the connection is working fine. When I send 0x02 01 00 FC FB 10 03 followed by the acknowledgement comment 0x10 I get an reponse of "actual values" of the heatpump. All the "0xXF" commands are working fine. As far as I know is
 - "02" : Starting command
 - "01 00": Header for "get" ("01 80" for "send")
 - "FC" : Checksum built by Header and command
 - "FB" : Command
 - "10 03": Footer

Now I am trying to get values like "operating mode". As far as I know the command is "0x0A 01 12".  Accoring to the previous configuration the sendstring must be "0x02 01 00 1E 0A 01 12 10 03". Unfortunately I get no response from the heatpump apart from just 0x10.

Maybe there is something wrong in my sendstring. But I don't know where?!
Please could someone help me to find the answer?

Best Regards
Andreas

Offline immi

  • Developer
  • Sr. Member
  • ****
  • Beiträge: 781
Hallo andreas
-we are quite off-topic with fhem-
if you want to better understand the protocol, just start fhem with verbose 5
THZ_Get: Try to get 'pOpMode'
2017.03.20 20:13:02 5: THZ_Get_Comunication: Check if port is open. State = '(opened)'
2017.03.20 20:13:02 5: SW: 02
2017.03.20 20:13:02 5: Mythz start Funktion THZ_ReadAnswer
2017.03.20 20:13:02 5: THZ_ReadAnswer: uc unpack: '10'
2017.03.20 20:13:02 5: SW: 01001E0A01121003
2017.03.20 20:13:02 5: Mythz start Funktion THZ_ReadAnswer
2017.03.20 20:13:02 5: THZ_ReadAnswer: uc unpack: '1002'
2017.03.20 20:13:02 5: SW: 10
2017.03.20 20:13:02 5: Mythz start Funktion THZ_ReadAnswer
2017.03.20 20:13:02 5: THZ_ReadAnswer: uc unpack: '0100290A01120B001003'
2017.03.20 20:13:02 5: SW: 10

send         02             
wait for    10
send         01001E0A01121003
wait for    10
wait for    02
send        10
wait for    0100290A01120B001003
send        10

immi
« Letzte Änderung: 20 März 2017, 20:27:10 von immi »

Offline Kiteandy

  • Newbie
  • Beiträge: 2
Hello immi,

thank you very much for your reply.
OK, the procedure was correct. I found a mistake in my checksum routine. Now the reply message is correct from what I get from the heatpump.

Best Regards
Andreas