Support for the Resol VBUS protocol?

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
nayr
Posts: 354
Joined: Tuesday 11 November 2014 18:42
Target OS: Linux
Domoticz version: github
Location: Denver, CO - USA
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Debian Jessie: CuBox-i4 (Primary) w/Static Routed IP and x509 / BeagleBone with OpenSprinkler / BeagleBone Planted Aquarium / 3x Raspbery Pi2b GPIO Slaves
Elemental Theme - node-domoticz-mqtt - Home Theatre Controller - AndroidTV Simple OSD Remote - x509 TLS Auth
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
Henos
Posts: 1
Joined: Wednesday 03 February 2016 22:44
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Joure
Contact:

Re: Support for the Resol VBUS protocol?

Post 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?
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
MarceldeJongNL
Posts: 43
Joined: Tuesday 03 May 2016 10:07
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.5108
Location: Barendrecht
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Hardware: Raspberry Pi 2B | RFXCOM RFXtrx433E v1 | Synology DS213+ | KaKu Clones | Conrad RSL switches | KAKu Doorbell Clone | USB Webcam | ICY Thermostat | Resol DL2 | Imatic Relay Board | Eminent 6230 | Eminent 6220 | iMatic 16 ports Relay Board
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
bwbboot
Posts: 26
Joined: Saturday 18 June 2016 21:05
Target OS: Linux
Domoticz version: Latest
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Sandman79
Posts: 12
Joined: Wednesday 30 September 2015 20:30
Target OS: NAS (Synology & others)
Domoticz version:
Location: Belgium
Contact:

Re: Support for the Resol VBUS protocol?

Post by Sandman79 »

I think Kees planned to make a few originally. I still hope he does. :)
mochel
Posts: 2
Joined: Monday 18 July 2016 14:42
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
drego
Posts: 3
Joined: Friday 28 April 2017 8:10
Target OS: OS X
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
delphi
Posts: 1
Joined: Sunday 23 July 2017 1:46
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Support for the Resol VBUS protocol?

Post 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
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
FatBeard
Posts: 2
Joined: Friday 25 August 2017 1:25
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post 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.
manbade
Posts: 11
Joined: Saturday 19 December 2015 21:01
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post 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

manbade
Posts: 11
Joined: Saturday 19 December 2015 21:01
Target OS: -
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by manbade »

I have the components for do this but i havent the time for do it.


enviado desde mi Sinclair Spectrum 16k

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests