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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Monday 28 August 2017 11:18

FatBeard wrote:
Friday 25 August 2017 1:34
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.
You should do what Github is actually for and use your own Github page to publish your library yourself. No need for me to be in between.
I will maintain my current Arduino version, while you can maintain your own MySensors variant.

You also do not need my explicit permission at all, as this is already universally granted to all in the header of my sketch (MIT License).

So go ahead and publish your working code so everybody can use it in their own projects.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

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 » Friday 01 September 2017 19:44

bbqkees wrote:
Monday 28 August 2017 11:18
You should do what Github is actually for and use your own Github page to publish your library yourself. No need for me to be in between.
I will maintain my current Arduino version, while you can maintain your own MySensors variant.

You also do not need my explicit permission at all, as this is already universally granted to all in the header of my sketch (MIT License).

So go ahead and publish your working code so everybody can use it in their own projects.

Thanks bbqkees. I noticed all right after writing that the license gave permission. My code is available here: https://github.com/FatBeard/vbus-arduino-library

Its been tested with my deltasol c with my barebones arduino uno, but should work with all the previous controllers your code worked with. It also should work on both uno and mega devices. The code is modified automatically with ifdefs depending on whether the mega is selected or not as the board in the arduino application. There is a dependency on altsoftserial if you don't compile for a mega.

I used it as a library for mysensors and works perfectly.

User avatar
McMelloW
Posts: 195
Joined: Monday 20 November 2017 18:01
Target OS: Raspberry Pi
Domoticz version: V3.beta
Location: Harderwijk, NL
Contact:

Re: Support for the Resol VBUS protocol?

Post by McMelloW » Thursday 04 January 2018 17:26

Daniel Wippermann wrote a new formatter to format the binairy file current_packet.vbus to readable data. This file can be downloaded directly from the Resol KM2 unit by <LOCAL_IP_OF_YOUR_DEVICE>/current/current_packets.vbus. See test below. You have to use a rust compiler to compile it.

Just followed the steps on https://github.com/rust-lang/rust and https://doc.rust-lang.org/book/second-e ... ation.html for a Linux installation to install rust on a Raspberry Pi. After that follow the instructions from Daniel below.

Code: Select all

If you do not want to implement a file parser and formatter yourself there are several existing solutions.
One of them is the formatter example of the resol-vbus.rs library:

https://github.com/danielwippermann/resol-vbus.rs/tree/master/examples/formatter/src

It currently lacks documentation, but the usage is simple enough:

- Make sure you have a recent Rust toolchain installed
- "git clone https://github.com/danielwippermann/resol-vbus.rs"
- "cd resol-vbus.rs/examples/formatter"
- "cargo build --release"
- "target/release/formatter csv <<path to current_packet.vbus file>>"
- "cat Output.csv"
The installation and the compilation worked OK without any errors. At this moment the only output is csv tab seperated
Last edited by McMelloW on Wednesday 28 February 2018 13:33, edited 1 time in total.
Greetings McMelloW

User avatar
McMelloW
Posts: 195
Joined: Monday 20 November 2017 18:01
Target OS: Raspberry Pi
Domoticz version: V3.beta
Location: Harderwijk, NL
Contact:

Re: Support for the Resol VBUS protocol?

Post by McMelloW » Wednesday 17 January 2018 15:58

See my previous post. With the formatter from Daniel Wippermann I can get the data from my Resol KM2 every 5 minutes into Domoticz. This can be faster if you want it.
Thanks also to Dannybloe for his support with the dzVents script

Image

A floorplan of my Solarboiler / Heating system. Combined with values form Atag One and Weather Underground.
Greetings McMelloW

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Thursday 05 April 2018 11:52

Hello
I am trying to get the data from ly resol delta sol C regulator and since i dont have a DL2 ... data logger , i build the same systeme on this tred, however i can't get any logic data, my arduino sets values 0 for the different sensors and i can't figure out why;
I first used the library Vbusdecoder nothing, then i tried to read data as it is using resol software center, always nothing, some help please §§§§

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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Thursday 05 April 2018 13:31

Load the Serialpassthrough demo from the Arduino IDE on your Arduino Mega and check with the serial monitor if you see some data.
If not, the problem is your circuit which is not working.
If there is data, it's your code that is the problem.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Thursday 05 April 2018 13:50

Can you explain more i am quite new to arduino programing! also here is my sketch : (im using RX1 on Arduino mega)
char data= '0';
void setup ()
{ Serial1.begin (9600);
serail.begin(9600);
}
void loop ()
{ if (serial1.available ();
{ data = Serial1.read ();
Serial.write (data);
delay (1000);
}}

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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Thursday 05 April 2018 13:56

That won't work because you added a delay and furthermore you have a spelling error in it so it won't even compile.

This should do the trick:

Code: Select all

void setup() {
  Serial.begin(9600);
  Serial1.begin(9600);
  Serial.println("Arduino Serial started");
}

void loop() {
    if (Serial1.available()) {     // If anything comes in Serial1 (pins 0 & 1)
    Serial.write(Serial1.read());   // read it and send it out Serial (USB)
  }
}
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Friday 06 April 2018 11:37

yes i tried your tric it works fine i even added it to my skecch using the library and it works also, Thank you for your help

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Monday 28 May 2018 17:40

Hello again
My program was working just fine however i changed my compouter and made a pcb of the circuit using the same program i cant get any results, any idea why ?
here is the program again :
#include <VBUSDecoder.h>

VBUSDecoder vb;
char data ;
void setup()
{Serial.begin(9600);
Serial1.begin (9600);

Serial.println("Arduino debugging started");
vb.initialise();
}

void loop()
{

if (Serial1.available ())
{
data = Serial1.read ();
data= vb.readSensor();

Serial.write (Serial1.read ());
Serial.println("");
Serial.println("*** Start ***");
Serial.print("Sensor_1: ");
Serial.println(vb.getS1Temp());
// Serial.print("Sensor_2: ");
// Serial.println(vb.getS3Temp());
//Serial.print("Sensor_3: ");
//Serial.println(vb.getS2Temp());
// Serial.print("Status_water_pump: ");
// Serial.println(vb.getP1Status());
// Serial.print("Speed_water_pump: ");
// Serial.println(vb.getP1Speed());
//Serial.print("Operation_time: ");
//Serial.println(vb.getP1OperatingHours());
//Serial.print("Alert: ");
//Serial.println(vb.getAlertStatus());
//Serial.print("Scheme: ");
//Serial.println(vb.getScheme());
//Serial.print("Time: ");
//Serial.println(vb.getSystemTime());
Serial.println("*** End ***");

delay(1000);
}
}

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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Tuesday 29 May 2018 9:25

If it worked before with the same code your circuit is likely the problem.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Tuesday 29 May 2018 12:12

Yes but wouldnt the error be some wrong data coming in ? In my case looks like the program gets stuck at the comment arduino debugging started and nothing after... however when i delete the vbusread instruction the program continues even if gives me 0s as results !

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Tuesday 29 May 2018 13:42

I guess there is a problem with the vb.readsensor instruction because all programs block there even if i try to write a simple letter after there is no response on the serial monitor. I can't figure out how to fixe it !!!

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Wednesday 30 May 2018 13:25

Hello again i rebuilt the circuit on the breadboard the same error remains, my code blocks at vb.readSensor () any help please i need to wrap up my project and im running out of time !!!!

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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Wednesday 30 May 2018 14:28

Because you gave no information what you want to do exactly or what you are using, I assume you based it on https://github.com/FatBeard/vbus-arduin ... S_Data.ino
Just use that example as-is. Seems that is what you need for your project anyway.

If you look into the Vbusdecoder.cpp of the library file you can see it already is waiting for incoming data on the serial1 port etc.
In your sketch you are doing that more than once as well in a nested function or whatever and therefore it will likely lock up or the code is waiting indefinitely at some point.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Wednesday 30 May 2018 15:22

what i'am trying to do is to read the data from the resol delta sol regulator using the arduino+adaptator circuit via serial1 (RX1) and then store them in a memory card (that's another issue) i need to visulize the temperatures values on my serial monitor to verify its working !

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Thursday 31 May 2018 15:22

Hello again i tried several programs to display my values no luck i really can't figure out why it used to work and not now !! i rebuilt everything from the begining nothing and i can't figure out the problem !! HELP ANYBODY !!

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

Re: Support for the Resol VBUS protocol?

Post by bbqkees » Friday 01 June 2018 9:40

Maybe you broke one of the components and the circuit is not working anymore.

You need to use the simple copy-serial1-to-serial sketch to see if there is even anything coming out of your circuit.
You can also connect the circuit directly to a usb-serial converter to the pc, or connect the circuit to Serial instead of Serial1 and ground the reset pin.
This way the Arduino becomes a clear serial passthrough.
Intel NUC-> Philips Hue, Aeon Zwave stick V2, Qubino, Fibaro, Everspring, Philio, RFXCom, X10, Harmony Hub, Xiaomi Flora + Gateway, BS440. And P1 / Resol VBus / Nefit EMS bus / DHT21 / DS18B20 / Sonoff / I2C display, all via Arduino/ESP8266.

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Sunday 03 June 2018 14:05

Hello and thank you for your replies i will try them tomorrow first things first in my lab and see if it will work!! however i was wondering since i changed my exploring system from Windows8 to a Windows 10 (a hole new computer) , could it have had an effect on my programming , or could any driver be missing from the device manager section , because it seems as if it doesn't let the data through to my computer?

Wass1
Posts: 15
Joined: Thursday 05 April 2018 11:46
Target OS: Windows
Domoticz version:
Contact:

Re: Support for the Resol VBUS protocol?

Post by Wass1 » Monday 04 June 2018 13:42

Hello , i tried the serial1 to serial sketch and Resol software serial, but i got no data it means my circuit is the problem isn't it ?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest