Open passuff opened 4 years ago
From a quick scan through the source, I have the impression that reading long strings should be OK, but that the interpretation done at the bit and byte level needs to be upgraded. That is what you tried in your arithmetic_22byte.c file. On the other hand, I saw what I believe is a confusion between bPtr and pPtr in the update you did to extend the byte string handling to 22 bytes. I haven't spent enough time to try to understand the whole.
Time is scarce... ;-)
There are many functions defined at same address but different byte position. From Vitosoft 300 Demo/ xml files I got the following addresses:
So beside from different data and conversion type there are differences in the byte position and length. Currently it is not possible to read byte 12 of blocklength of 22. From /wiki/vcontrold.xml I understand that B0...B9 is possible. I would like to have the optionto read up to 90 bytes (max value for block length defined in viessmann config)?
To read block length of 22 and the specific byte length and position I adjusted "arithmetic.c" to accept at least 22 bytes. I'm evertyhing but a programmer, so I bet you will find a better way to implement it. arithmetic_22byte.c.txt