-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem VS1 and Vitoconnect #68
Comments
hi @silaskreuze2008 ! as far as I remember the KW protocol never got tested with vitoconnect, so we have to do some 'pioneer work' now ;-) you set |
No Vitolog is completely empty. I just tried to set the port of the CP2102 to none again, and it seems to work again, so maybe it's something serial-related or something to do with my Pi. I enabled the serial connection, etc. Edit: |
I found something in detect_f8_read() what might have caused the type err and tried to fix it. Could you please try with the new viconn_util.py?! |
detect_f8_read() is more or less the only function which is not used when there is no Vitoconnect... |
Seems better!? Now I'm getting this error: module 'viconn_util' has no attribute 'wait_for_vicon' |
I'll check... |
I just replaced the complete file with the version from the main branch.... |
main branch is wrong! you need to take the viconn_util from vs1test branch |
in fact viconn_util from main branch has no wait_for_vicon(). there it is called detect_vs2()... ;-) |
Now im oinly getting any further than this: optolinkvs1 |
This is my CP2102 |
hm, did you regard the sequence when starting? |
nothing is coming from the Vitoconnect... |
did you cross tx and rx when connecting the CP2102 board? |
Yes, I did. I have my Vito connected to a USB extension. I'm going to try if that's the problem. Right start sequence is:
|
that's right. by the way - last week the Vitonnect thing stopped working at Viessmann site, ref #46 (reply in thread) I'm not sure if it 'returned' already.. |
Viessmann servers seem to be working now... It worked! at least kind of. I'm using a Optolink 2. |
hm, timed out? the final line in the log says the opto device responded (1 byte, seems to be common with vs1). after that nothing more. I'm not sure what caused / what happened. wait, I'll analyse the traffic. vs1 I can't read just by heart... |
ok, master (Viconn) says read addr 5706, 1 byte. slave (opto) responds 55. seems to be right. I don't know why after that the Viconn does not continue |
5706 is KonfiKTMaxGWG, length 1 byte. So everthing correct so far. |
let my try again |
Again im only getting: optolinkvs1 but while its running the vitoconnect is working fine. |
hm, communication is running well, but does not start with reading f8 (device ident). perhaps you need to stop everything, wait for some minutes and after that start again regrading the sequence?! |
without waiting some time, it is possible that Viessmann just think it's some timeout and continues afterwards (after restarting the script). Up to now I've no idea how to detect the connection other that detecting the reading of f8 which alssways happens first usually... |
also with the Opto 2? |
f8 always gets read initially. let me check if I have another idea detecting communication even if reading something else |
do you need more logs? |
I changed the detection to a 'not too safe way'. could you try?! viconn_util of vs1test branch... |
now the wait_for_vicon() returns true as soon as the response to a read request is of the demanded length.... as I said - not very safe ... |
are you still awake and 'in action'? otherwise I'd go to bed now. tomorrow is another day... ;-) |
Ich glaube nicht das queue append, ... , ... In der Konsole steht ich teste in ca 10min mal |
bekomme jetzt daten über MQTT, aber kein queue append, ... , ... in der Konsole |
das ist durchaus interessant, weil nur die Daten aus der queue nach MQTT gepostet werden. Aber egal, hauptsache wir sind weiter. nochmal nachgefragt - die aktuelle Vers. 10? und du sagst "daten über MQTT" - die mit Namen aus der Polllist, welche mit einfach nur Adresse, oder beide? kannst du mal nen Screenshot posten?! |
Wollte gerade den Screenshot machen, jetzt ist wieder nur der Online-Status drin. |
siehst du denn in der Konsole, dass es läuft`? |
Mein Konsolen-Output: |
ok. irgendwas geht schief mit der Erkennung. ich bau mal mehr debug ausgaben ein |
ok, eingebaut. ich hab jetzt die Sache mit dem Datenformat auch mehr so gemacht wie im Splitter (imm serlog hab ich sie ja einfach nur weitergeschickt) |
Sobald ich das Skript starte, kommt das:
|
vers 12 schon oben. hoffe da is das besser |
mann, mann, mann, angebich ist python doch so unempfindlich was typen anbetrifft, aber hier schein es (ich) ein echtes Probelm zu haben... |
Bekomme jetzt wieder Sachen im MQTT-Explorer. |
ok. so soll das sein (mqtt.txt) |
ich könnte jetzt die debug ausgaben und so wieder rausprogrammieren (Schalter...)? |
Ein Schalter klingt gut. |
Die werte sehen teilweise noch recht komisch aus wenn ich genauer hingucke... |
kann das sein, dass die Adressen bei dir nicht passen?! |
woran kann ich das sehen/nachlesen Habe eine Vitotronic 200 KW1-Steuerung. |
warte, ich schaue.... |
es gibt 4 KW1 Steuerungen, deine ist die erste:
das hier sind angeblich die Adressen (~0x...) - kannst du die mal mit denen in der settings_ini abgeichen?! ich programmier währennddessen die Schalter... |
Bekomme jetzt ein queue append Könntest du noch mal gucken, ob ich das mit den Adressen richtig gemacht habe? |
das append war ja im letzen konsole viconn.txt auch schon drin. formal ist das adressen.txt korrekt, aber das sind Datenpunkte einer Wärmepumpe!? hast du eine Wärmepumpe? gemäss dem DP_ ... .txt wäre es
|
up, ne eine wärmepumpe habe ich nicht Ich machs morgen mal neu |
ich hab jetzt vers. 14 hochgeladen. da is der |
schau mal was im DP txt dich interessieren könnte. Int und SInt sind 2 bytes, das S steht für signed. byte ist 1 byte. Int4 sind 4 Bytes. das Scaling steht da aber nicht mit drin. Wir müssten mal @FransOv nach der Excel für eine V200KW1 fragen... ;-) |
Welche soll dass sein?
|
Die Erste |
Debug-Schalter für MQTT scheint zu funktionieren. |
Tab V200KW1 ist an die Excel im Wiki hinzugefügt. |
supi, danke @FransOv !! |
I was using the Optolink splitter without the Vitoconnect because I didn't have the CP2102, and it worked.
Today I upgraded my system with the CP2102 from AZDelivery. I configured it in the settings_ini.py using /dev/ttyS0 and /dev/ttyAMA0 now I'm getting the error: 'bytes' object cannot be interpreted as an integer
I am using a Pi 3B+ with the Optolinksplitter for the KW protocol.
Full console output:
python3 optolink_switch.py
optolinkvs1
awaiting Vitoconnect...
Server listening on 0.0.0.0:65234
Broker granted the following QoS: 0
'bytes' object cannot be interpreted as an integer
exit close
closing serViCon
reset protocol
closing serViDev
cancel poll timer
exiting TCP/IP client
disconnect MQTT client
settings_ini.txt
The text was updated successfully, but these errors were encountered: