openv / vcontrold

:fire: vcontrold Daemon for control and logging of Viessmann® type heating devices
https://github.com/openv/openv/wiki
GNU General Public License v3.0
103 stars 58 forks source link

Address Scanner ? #112

Open Tomlb78 opened 2 years ago

Tomlb78 commented 2 years ago

Hi all,

Because it is often difficult to find usefull address on the many kind of Viessman product and because we could not find any documentation from Viessmann,

has anyone aver made an address scanner to parse every address possible from 0000 to FFFF ?

Seeing what each address gives would permit reverse deduce what it is about.

For example today I have to communicate with a Vitotronic 300-K MW2B (Ref ID : V300KMW2A, Dev ID : 20BC) but it deosn't exist any vito.xml for this product, I'll will have to create it myself.

Do you see any other way to find revelent address of a product ?

Thanks !

deep-e commented 2 years ago

It's not a big deal to retrieve the complete 64k memory blob, but I think it's impossible to interpret the data. I did that for a Vitoligno 300-C already and got a lot of 0xff values plus a few non-0xff's. But which address contains which value at which length? I'll try to perform some kind of real protocol analysis in a really strange way. My approach is as follows: Linux:

Windows:

So the resulting communication path is Optolink <-> socat <-> ser2net <-> hub4com <-> com0com <-> Vitosoft.

I'm already using this solution (without socat) to control a Resol solar controller: it simply works!

I hope the analysis of socat's trace will lead to a deeper understanding on protocol, addresses and so forth.

Update: I just installed the current version of ser2net and - surprise, surprise - ser2net is able to write a trace file directly. socat is no longer needed.

deep-e commented 2 years ago

See [https://github.com/openv/vcontrold/issues/111] for updates