Page 2 of 5

Re: Support for the Resol VBUS protocol?

Posted: Saturday 16 January 2016 0:41
by bbqkees
Serial debug output looking good:
Image

Still need a bit of bit-shifting or masking regarding the temp values because sometimes the value is reported as negative, which should not happen.

I also used the floorplan option in Domoticz to show the diagram of my system:
Image

Re: Support for the Resol VBUS protocol?

Posted: Saturday 16 January 2016 2:57
by nayr
Check out the MQTT interface before getting into a bunch of http gets, it was designed for these tasks..

I am in the midst of rewriting all my custom apps to interface via MQTT, its much cleaner and makes scripting on the domoticz side friendly when your not creating logic loops.

Its still json, but the workflow is better with two way communication... the http gets are cheap and easy, but better suited for one unidirectional input/output.. your not setting up and tearing down connections repeatedly for starters... it keeps an open connection running between the two continuously, really shines when you have multiple devices your updating at the same time.

Wish I would have found it before I wrote all these json get interfaces, just some advice.

Re: Support for the Resol VBUS protocol?

Posted: Sunday 17 January 2016 22:23
by bbqkees
nayr wrote:Check out the MQTT interface before getting into a bunch of http gets, it was designed for these tasks..
Ok thanks for the tip. Will have a look at it.

Re: Support for the Resol VBUS protocol?

Posted: Monday 18 January 2016 10:25
by bbqkees
I solved the issues I had with incorrect temperature values.
Everything looks fine now.
There were also a number of gaps in the reporting, they appear to be solved too.

Image

Image

The code needs a bit of cleanup, additional commenting and removal of my IP's and IDX'es before I can publish it.

This is my temporary setup:
Image

Re: Support for the Resol VBUS protocol?

Posted: Tuesday 19 January 2016 0:23
by bbqkees
Code has been published here: https://github.com/bbqkees/vbus-arduino-domoticz
If someone has some improvements let me know.

Also made a Wiki page: http://www.domoticz.com/wiki/VBusDecoder

Re: Support for the Resol VBUS protocol?

Posted: Wednesday 20 April 2016 16:08
by Henos
I am in possession of a solar water heater with Resol BX controller with VBus output. Try the VBus read with UART and Arduino Mega and the program of bbqkees. What should I omit in this program to read out only S1, S2, S3, S4, P1 and P2 via serial Pc? 0x7421 is the code for my Resol BX. Who can help me?

Re: Support for the Resol VBUS protocol?

Posted: Thursday 21 April 2016 9:30
by bbqkees
If you only want to interface it with a pc you would only need to load a serial copy sketch in the arduino (See the examples in the Arduino IDE).
You can then use the Arduino als serial input for the default Resol software.
The Resol software will decode the datagrams.

If you want the data in Domoticz via serial, you would need to add a (Python) script on the Pi combined with vbusdecode.cpp to decode the data and send it to Domoticz. You can remove the Arduino and connect the UART circuit directly to the Pi.

By the way, the sketch and setup I made is running for a few months now without a single hickup.

Re: Support for the Resol VBUS protocol?

Posted: Tuesday 03 May 2016 12:20
by MarceldeJongNL
Great work, bbqkees.
I went the easy way and bought a DL2. In the topic below I wrote down how I read the values to my Domoticz setup:
viewtopic.php?f=34&t=11818&p=84886#p84886

Re: Support for the Resol VBUS protocol?

Posted: Wednesday 04 May 2016 16:05
by bbqkees
MarceldeJongNL wrote:Great work, bbqkees.
I went the easy way and bought a DL2.
Indeed an easier method, I will update the wiki page to include youe method too.

Re: Support for the Resol VBUS protocol?

Posted: Saturday 18 June 2016 21:15
by bwbboot
Yes!! Just got my system installed yesterday. It comes with a Deltasol CS plus controller from Resol. Already monitoring my pv system using raspberry PI and looking at logging the boiler and collector data as well.

I am not good at building circuit boards. Anyone willing to sell me a complete stacked board for reading vbus data that I can connect to a raspberry PI serial port?

Thanks!

Met vriendelijke groet
Bjorn

Re: Support for the Resol VBUS protocol?

Posted: Friday 22 July 2016 15:59
by Sandman79
I think Kees planned to make a few originally. I still hope he does. :)

Re: Support for the Resol VBUS protocol?

Posted: Saturday 23 July 2016 11:37
by mochel
hi,
I'm French , ....

I need help for connect my Domoticz Pi 2 of my Resol / Viessmann solar with a RS485/usb adapteur.

Cann You help me ?

Thank a lot

Re: Support for the Resol VBUS protocol?

Posted: Tuesday 16 August 2016 14:06
by bbqkees
Sandman79 wrote:I think Kees planned to make a few originally. I still hope he does. :)
It is still in my planning, but no real date yet.
I am working on a board that works for all my uses but if equipped with just the VBUS circuit it will plug into both the Pi and the Arduino Mega/Uno.

Re: Support for the Resol VBUS protocol?

Posted: Friday 28 April 2017 8:33
by drego
Hi @all. Yesterday I got a resol controller, the DeltaSol BX PLUS. I found these posts about VBUS and arduino. Can anyone show me a detail documentation/circuit diagram to connect the vbus to an arduino. I saw the image from bbqkees, but a couldnt see the components.
@bbqkees, is it possible to contact me or show the circuit or parts?

Iam not so firm with hardware, maybe there is a simple solution?

Thanks

Re: Support for the Resol VBUS protocol?

Posted: Friday 28 April 2017 10:28
by bbqkees
drego wrote:Hi @all. Yesterday I got a resol controller, the DeltaSol BX PLUS. I found these posts about VBUS and arduino. Can anyone show me a detail documentation/circuit diagram to connect the vbus to an arduino. I saw the image from bbqkees, but a couldnt see the components.
@bbqkees, is it possible to contact me or show the circuit or parts?

Iam not so firm with hardware, maybe there is a simple solution?

Thanks
Please check my Github page: https://github.com/bbqkees/vbus-arduino-domoticz for all the details.

Re: Support for the Resol VBUS protocol?

Posted: Sunday 23 July 2017 2:01
by delphi
Hi, I have one DeltaSol SL, and want to use with an esp8266 (some as arduino but with wifi).
Do you have any "extra" board, that want to sell?

Thanks a lot and congratulations by your excelent work.

Re: Support for the Resol VBUS protocol?

Posted: Monday 24 July 2017 11:54
by bbqkees
delphi wrote:
Do you have any "extra" board, that want to sell?
I still have not made them yet, no time.
If you would order the components from Aliexpress/Ebay etc and buy a small breadboard it is not that hard to put it together.

The schematic is quite simple:
Image

Re: Support for the Resol VBUS protocol?

Posted: Friday 25 August 2017 1:34
by FatBeard
Hi bbqkees,

I've been using your resol vbus code to get my barebones arduino to interface with my deltasol. I've contributed some of the code to your github site. However, I have re-jigged your code locally to work as a library so that ultimately i can integrate with mysensors too. So my question is can i contribute this library to your github page, or if you wish to maintain your code as a standalone domoticz program can I get permission to create my own github project with my adaptation of your code.

While I've taken some stuff out such as http requests, networking etc. I think you could easily rewrite your code to use the library to get the best of both worlds. ie. you host the library and the ino program using the library which does all that your code does now.

Forgive me if i'm being rude but i'm not able to contact you on git hub.

Also, thanks for writing the code in the first place.

Re: Support for the Resol VBUS protocol?

Posted: Saturday 26 August 2017 20:20
by manbade
Hello fatbeard.
Exactly github is for this that you are talking about.
One guy have an idea and orher people contribute for improve the performance, caracteristics or whatever.
If you have only a comment then open an issue but in case of your contribution is big or absolutely different, then usually the people write his own github page.
The best option is ever tell everybody where has you forked the idea.
In this case, mentioning our friend bbqkees.
Usually other people take an old idea and improve it to share with the world.

F


enviado desde mi Sinclair Spectrum 16k


Re: Support for the Resol VBUS protocol?

Posted: Saturday 26 August 2017 20:21
by manbade
I have the components for do this but i havent the time for do it.


enviado desde mi Sinclair Spectrum 16k