Page 4 of 8
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Wednesday 25 October 2017 21:19
by RobD
After being injured for a long time I picked up this project again.
I am not a python programmer so I only understand a small part of the code in ventserver.sh
neither do I use domoticz: ventserver is running on a PI and the only thing I need is a (json) file with the temperatures. I have a WHR930Luxe so I do not need to control the WHR. that is taken care of by a Qubino 0-10V unit.
So I am trying to strip the ventserver.sh from all code that is Domoticz related
Question: should I start from the ventserver.sh or from the ventserver.py (second version)
and can somebody indicate what parts I can delete that are Domoticz related?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Wednesday 08 November 2017 10:47
by Hilgert
That would be great! I am looking into a way of getting the serial RS232 data through a Wemo D1 on my wireless network. I already have the RJ45 to SubD-9 cable working on my laptop, but now I want to connect the Wemo D1 and send that data to Domoticz. Any ideas?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Friday 10 November 2017 19:20
by jossie67
That would be cool. I have also a WHR930Luxe. I already can set the fan to 1 with a sonoff. I have also connected 4 DS18B20 to the sonoff
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Sunday 12 November 2017 14:22
by RobD
I have all the programming checked and working but getting no results.
My guess is that the protocol description for the WHR930 is not compatible with the WHR930 Luxe which I am using.
I get no response on the commands that I send to the unit.
the send led on the USB<->RS232 interface is blinking when I send a command but the receive led stays dark. no response at all.
I have changed the Rx and Tx and I used the RJ45 as well as the screw terminals.
Only the DB9 is not tried yet.
Does anyone know if there is a protocol specification for the WHR930 Luxe.
Zehnder Netherlands is not supporting this type of information.
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Sunday 12 November 2017 21:42
by RobD
jossie67 wrote: ↑Friday 10 November 2017 19:20
That would be cool. I have also a WHR930Luxe. I already can set the fan to 1 with a sonoff. I have also connected 4 DS18B20 to the sonoff
OK that's a wifi switch I guess. so you don't have the RS232 protocol working?
and you use the DS 18B20 to read the 4 air temps.
I'd prefer to read the temps from the circuitboard in stead of using 4 external temp sensors
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Wednesday 22 November 2017 22:16
by mogwai
After reading this topic I became enthousiastic about controlling my StorkAir WHR950 unit with Domoticz. After examining the PCB of this unit I found out that I have version 1.00 of the PCB and firmware (at least is says so on the sticker of the EPROM). This board has a Philips 80C552 microcontroler interfaced via a MAX3082 RS485 interface chip.
After reading here (
https://www.promixis.com/forums/showthr ... ir-WHR950/) I figured that I should be able to control it with an USB to RS485 interface.
So now that my FTDI USB RS485 interface has arrived I tried to send simple commands via a terminal capable of sending hex codes (realterm, of course with the correct baudrate, stopbit, etc) but I get no response at all from the unit. I already did a loopback test by connecting Rx and Tx after the FTDI chip (but before the RS485 converter) and that works fine. I'm also sure I connected the A, B and GND lines of the RS485 correctly.
Any hint on what could be wrong?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Tuesday 28 November 2017 20:59
by mogwai
Hi all,
In the meantime I figure out what the issue is... My unit is using a different protocol over the RS485 line. The StorAir maintenance tool communicates perfectly fine with my unit. If I sniff the com port while the tool is active I see the following messages coming by (some of them are also mentioned in the thread I referred to in my previous post:
Code: Select all
07 F0 00 83 00 30 07 0F
07 F0 00 85 00 32 07 0F --> Query temperatures (looking at VSDomoticz code)
07 F0 00 87 00 34 07 0F --> Query Ventilators (looking at VSDomoticz code)
07 F0 00 87 00 34 07 0F
07 F0 00 89 00 36 07 0F --> Query Parameters 1(looking at VSDomoticz code)
07 F0 00 8B 00 38 07 0F --> Query Parameters 2(looking at VSDomoticz code)
07 F0 00 8F 00 3C 07 0F
07 F0 00 91 00 3E 07 0F
07 F0 00 96 00 43 07 0F
07 F0 00 98 00 45 07 0F
07 F0 00 9A 00 47 07 0F
07 F0 00 9C 00 49 07 0F
07 F0 00 C9 00 76 07 0F
Now I hope I get a full protocol description for my unit, so I can adapt the code for domoticz...
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Thursday 21 December 2017 20:57
by zcitdom
Hey all I have been trying to connect my WTW machines over USB > RS323
I have tried to connect a WHR930 and WHR90 to my RPi3 and Macbook over ttyUSB1
I have used ventserver.sh and ventclient.sh, but i keep getting 'No Data'
I used a little python script to send the commands to the unit to see if i am getting a response.
No matter what commands i send i am not getting any response from any of the units.
Output:
Code: Select all
pi@raspberrypi:~ $ python serialTest.py
Enter your commands below.
Insert "exit" to leave the application.
>> \x07\xF0\x00\xCD\x00\x7A\x07\x0F
>> \x07\xF0\x00\x99\x01\x02\x49\x07\x0F
>> \x07\xF0\x00\x99\x01\x04\x4B\x07\x0F
>> \x07\xF0\x00\x99\x01\x00\x47\x07\x0F
I took the commands from the ventserver.sh
Can someone try to see if they do get a response using the same python script?
Or maybe point me in the right direction why my WHR930 and WHR90 are both not replying to any commands....
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Thursday 28 December 2017 12:03
by zcitdom
domoticzcom1234 wrote: ↑Saturday 25 June 2016 21:23
All,
Today I tried to connect my WHR 930 with a serial printboard using a serial to USB converter I bought at ebay. (Search on ebay for "USB 2.0 to RS232 Serial DB9 9 PIN Cable Adapter GPS PDA Converter", very cheap but should work)
I followed the instructions but running the status.sh only returned ONCE (out of many) a result in Domoticz but only with incorrect values (54 degrees outside temp. and more invalid information. The rest of the times it fails with the error message "integer expression expected". A reboot, disconnect cables, poweroff the WTW did not helped.
Update:
By running the following script I can change the speed:
-------------------------
#!/bin/sh
/bin/echo -e '\x07\xF0\x00\x99\x01\x01\x48\x07\x0F' > /dev/ttyUSB0
---------------------------
The script as posted gives a lot "integer expression expected" errors:
What could be the issue with the script? Please help.
Thanks in advance.
-----------------
ERROR CODES AFTER RUNNING STATUS.SH
-----------------
Ventserver not running..
./status.sh: line 50: [: : integer expression expected
Status WHR
{
"status" : "OK",
"title" : "Update Device"
}
{
"status" : "OK",
"title" : "Update Device"
}
{
"status" : "OK",
"title" : "Update Device"
}
{
"status" : "OK",
"title" : "Update Device"
}
./status.sh: line 70: [: : integer expression expected
./status.sh: line 78: [: : integer expression expected
./status.sh: line 86: [: : integer expression expected
./status.sh: line 94: [: : integer expression expected
----------------------------------------------------------------------------------------------------------------------------------------------
I am having a similar issue now, i got that data back once.
After that the WHR 930 never responded again... i triple checked the wires and scripts.
Did you ever manage to solve this?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Friday 12 January 2018 20:48
by piterbo
Hi,
I Have a Zehnder ComfoAir350 Luxe with CC EASY and a RPI3 with domoticz.
And a DB9 port on my PCB
https://drive.google.com/file/d/1uDVFhM ... _3O0v/view
I Use a conection
RPI3 <USB - SERIAL DB9> -<DB9 pin 2,3,5 DB9> -<DB9 Port on PCB
A use scripts vent 0.3.
And it isn't work
When i start ventserver ...
https://drive.google.com/file/d/1uDVFhM ... sp=sharing
Any solutions ?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Monday 15 January 2018 20:58
by mogwai
I could be that you have the same issue that I have: slightly different communication protocol. Did you try the official "Maintenance software" from Stork / Zehnder. You can download it from this thread:
https://www.promixis.com/forums/showthr ... R950/page3
If that works then jou know that your cables are OK and that the communication protocol is the issue.
Let me know what your findings are.
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Tuesday 27 February 2018 9:28
by SzuR
mogwai wrote:I could be that you have the same issue that I have: slightly different communication protocol. Did you try the official "Maintenance software" from Stork / Zehnder. You can download it from this thread:
https://www.promixis.com/forums/showthr ... R950/page3
If that works then jou know that your cables are OK and that the communication protocol is the issue.
Let me know what your findings are.
Hi everyone
Any progress mogwai? I have the same one unit i started it yesterday and today I try to connect it to pc. If you have any suggestions...
Wysłane z mojego D6503 przy użyciu Tapatalka
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Wednesday 14 March 2018 11:04
by piterbo
SzuR widzę że jesteś z Polski ?
odezwij się proszę na stabilo1(at)interia.pl
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Wednesday 14 March 2018 22:24
by nickg
Hi,
I am curious if anyone with a basic version of Zehnder got this working, i am using the Zehnder WHR basic RFR but i am not able to get any of the data that is described in this topic. When i print the data from the serial port the array only has 7 values indexed. Is their anyone that is using the basic version and what functionalities are you using? @bizziebis you are also using thr basic version right?
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Thursday 15 March 2018 21:51
by SzuR
My storkair also no response
Wysłane z mojego D6503 przy użyciu Tapatalka
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Monday 26 March 2018 21:10
by mogwai
Hi all. No progress on understanding the protocol of my unit, but a discussion did start on:
https://www.promixis.com/forums/showthr ... 0&p=153224
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Tuesday 27 March 2018 9:35
by SzuR
Hi cab you explain your setup for receiving data? I have Rs232to usb plug but i can't get anything from it. What cable, pins, operating system and programs you use?
Wysłane z mojego D6503 przy użyciu Tapatalka
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Friday 30 March 2018 21:50
by mogwai
My old WHR950 has a RS485 connection (NOT RS232!), so I use a RS485 to USB adapter. If you also have RS485 then make sure you connect only signal A, B and GND. My WHR950 also has 12V on its connector which can destroy your RS485 to USB adapter. The software I used is the official StorkAir maintenance SW that you can download from this forum:
https://www.promixis.com/forums/showthr ... R950/page3
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Saturday 31 March 2018 8:00
by SzuR
mogwai wrote:My old WHR950 has a RS485 connection (NOT RS232!), so I use a RS485 to USB adapter. If you also have RS485 then make sure you connect only signal A, B and GND. My WHR950 also has 12V on its connector which can destroy your RS485 to USB adapter. The software I used is the official StorkAir maintenance SW that you can download from this forum:
https://www.promixis.com/forums/showthr ... R950/page3
Thank you for the information. I need to fund some xp. Sp3 pc rof this
Wysłane z mojego D6503 przy użyciu Tapatalka
Re: Zehnder/Stork WHR Ventilation Unit
Posted: Monday 14 January 2019 10:04
by Sappien
I've made a new script for the WHR930 with MQTT support,
https://github.com/AlbertHakvoort/Stork ... oticz-MQTT