P092_DLbus UVR42

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

P092_DLbus UVR42

#1 Post by Trainer » 26 Mar 2022, 11:52

Hello,

i have i UVR42 Solarsystem and it would be nice to control it with my esp.

i found the very nice DL_BUS Plugin https://github.com/letscontrolit/ESPEas ... _DLbus.ino.

Can you help me to edit the code so that i can use my UVR42.
As i found in the code it works only for ESR21,UVR1611,UVR 61-3

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#2 Post by Ath » 26 Mar 2022, 12:16

Do you have a datasheet available, so the configuration can be set correctly?

The structure of the plugin is quite nice, so it's not very difficult to add a new model, but you will need the correct parameters.
Maybe @uwekaditz will jump in and add these parameters, as he added this plugin to ESPEasy.
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#3 Post by Trainer » 26 Mar 2022, 16:18

the documentation you can found here https://github.com/martinkropf/UVR31_RF ... %201.6.pdf

i don't know exactly which files i have to edit und what i have to edit that it work.

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#4 Post by Ath » 26 Mar 2022, 16:47

Thanks for that documentation link, that's very helpful.

I can make the changes, as long as you can do some testing, as I don't own that type of device :)
What build of ESPEasy do you have installed on your ESP (ESP32 or ESP8266)? (It should be a TEST_C build, as that's the only one that has this plugin included, AFAICS).
/Ton (PayPal.me)

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#5 Post by Ath » 26 Mar 2022, 17:36

It was even easier to add than I originally estimated :D The source is very well structured, thank you Uwe :idea:

I've created a pull request #3977, so the builds can be downloaded from the Github Actions service ('Checks' tab in the PR) once the build is completed.

Please test and report your findings here.
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#6 Post by Trainer » 26 Mar 2022, 21:57

Ath wrote: 26 Mar 2022, 17:36 It was even easier to add than I originally estimated :D The source is very well structured, thank you Uwe :idea:

I've created a pull request #3977, so the builds can be downloaded from the Github Actions service ('Checks' tab in the PR) once the build is completed.

Please test and report your findings here.
you are amazing.
Thank you.

where can i find the new source?
https://github.com/letscontrolit/ESPEas ... _DLbus.ino
this one should be the old one?

i can flash the new FW on a separate ESP8266 to test it next time, when i am in front of the solarfocus UVR42.

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#7 Post by Ath » 26 Mar 2022, 22:14

The source can be found in the PR, as well as the built binaries, as suggested, in the 'Checks' tab there. On the right there is a drop-down titled 'Artifacts' where you can download Binaries.zip that will include the built configurations (get the TEST_C build, as before).
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#8 Post by Trainer » 26 Mar 2022, 22:29

Ath wrote: 26 Mar 2022, 22:14 The source can be found in the PR, as well as the built binaries, as suggested, in the 'Checks' tab there. On the right there is a drop-down titled 'Artifacts' where you can download Binaries.zip that will include the built configurations (get the TEST_C build, as before).
Maybe I'm stupid but I can't find a way to download the new Test_C build. I can't find the sub-item 'Artifacts' either.
Also in the 'checks' tab i can't find any download link :(

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#9 Post by Ath » 26 Mar 2022, 23:21

It may require you to have a github account (it's free) and to be logged in, not sure, I'm always logged in ;)
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#10 Post by Trainer » 27 Mar 2022, 22:23

Ath wrote: 26 Mar 2022, 23:21 It may require you to have a github account (it's free) and to be logged in, not sure, I'm always logged in ;)
thank you. now i got it and i will try it next time, i am in front of the UVR42

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#11 Post by Trainer » 13 May 2022, 20:29

today i tried the UVR42 with my esp.

i use a voltage divider (24V INPUT = DL-BUS (~25V)) 10kohm and a 1,5kohm so i get ~3,3V on my GPIO0.

DL---|
|
10k ohm
|--------------GPIO0
1,5k ohm
|
GND-----------------GND



am i doing something wrong?

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#12 Post by TD-er » 13 May 2022, 20:42

GPIO-0 already has a pull-up resistor to 3V3, so not entirely sure what effect that will have on the signal.
Not sure what you would like to achieve with this though, as using GPIO-0 for an input signal may prevent the ESP to boot if the pin is pulled low when the ESP boots.

But just comparing the mentioned resistors to see what voltage will be over the 1k5 resistor:

(24 / (10k + 1k5)) * 1k5 = 3.13V.
So the resistance values seem to be chosen correctly to get roughly 3.3V from roughly 25V input.

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#13 Post by Trainer » 13 May 2022, 20:45

TD-er wrote: 13 May 2022, 20:42 GPIO-0 already has a pull-up resistor to 3V3, so not entirely sure what effect that will have on the signal.
Not sure what you would like to achieve with this though, as using GPIO-0 for an input signal may prevent the ESP to boot if the pin is pulled low when the ESP boots.

But just comparing the mentioned resistors to see what voltage will be over the 1k5 resistor:

(24 / (10k + 1k5)) * 1k5 = 3.13V.
So the resistance values seem to be chosen correctly to get roughly 3.3V from roughly 25V input.
Do you think the problem is with the gpio port?
which one would you recommend?

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#14 Post by TD-er » 13 May 2022, 20:48

Not sure what you want to do with it.
What do you expect to read from GPIO-0?

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#15 Post by Trainer » 14 May 2022, 10:15

TD-er wrote: 13 May 2022, 20:48 Not sure what you want to do with it.
What do you expect to read from GPIO-0?
I would like to read out the sensor data.
I have only taken one remaining GPIO pin.
If another GPIO pin is recommended, I am happy to change it.

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#16 Post by TD-er » 14 May 2022, 12:47

OK, what signals do you need to connect between your sensor and the ESP?
A 24V signal is not really common, so I wonder what kind of signal it is.
Is it an analog voltage you need to measure?

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#17 Post by Trainer » 14 May 2022, 20:07

TD-er wrote: 14 May 2022, 12:47 OK, what signals do you need to connect between your sensor and the ESP?
A 24V signal is not really common, so I wonder what kind of signal it is.
Is it an analog voltage you need to measure?
it should be a 24V digital signal if I understand correctly.
https://github.com/ekuiter/uvr2web/blob ... %201.7.pdf

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#18 Post by TD-er » 15 May 2022, 22:13

Hmm, I see it on the last page of the PDF you linked.
To me it seems a bit strange to see that a serial data link needs such high voltages.

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#19 Post by Trainer » 16 May 2022, 12:01

what else could i try?
Is it possibly due to the 25V I measured instead of 24V ?
Is only 3.3V recognised by the ESP or also when only 3V are present?

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#20 Post by TD-er » 16 May 2022, 13:37

The ESP is rather tolerant, so that's not an issue.
But what might be an issue is that it isn't an UART signal.
It seems like it is a 50 Hz clock and not sure if this low baudrate can be read using a UART.

Can you simply test using the pulse-counter plugin to see if you do receive pulses?
If that's happening, then you know it is electrically connected how it should be.

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#21 Post by Trainer » 03 Jul 2022, 17:11

TD-er wrote: 16 May 2022, 13:37 The ESP is rather tolerant, so that's not an issue.
But what might be an issue is that it isn't an UART signal.
It seems like it is a 50 Hz clock and not sure if this low baudrate can be read using a UART.

Can you simply test using the pulse-counter plugin to see if you do receive pulses?
If that's happening, then you know it is electrically connected how it should be.
i try pulse count and get some values
Bildschirmfoto 2022-07-03 um 17.10.52.png
Bildschirmfoto 2022-07-03 um 17.10.52.png (99.14 KiB) Viewed 15887 times
Bildschirmfoto 2022-07-03 um 17.09.28.png
Bildschirmfoto 2022-07-03 um 17.09.28.png (43.55 KiB) Viewed 15887 times

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#22 Post by Trainer » 03 Jul 2022, 21:28

How can i fix it?
For me, the temperature data would be very important, as I have to use up the excess energy.

I can still test the next two days if you have a suggestion.

Thank you in advance.

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#23 Post by Trainer » 08 Jul 2022, 16:03

@TD-er or Ath can you please help me to solve my problem.
i get some pulses but no temp values :(

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#24 Post by Ath » 08 Jul 2022, 21:20

You haven't yet confirmed if your device is actually sending an UART/serial/DLBus compatible signal. If it is using a different, proprietary protocol, not supported by the DLBus/P092 driver, then there is no way of decoding any sensible values from it.

The pulse-counter just detects any signal that changes from high to low, and reverse, so there is no way of extracting any temperature information from that, it merely counts the irregular pulses, that's why it seems to work ;).
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#25 Post by Trainer » 09 Jul 2022, 13:39

Ath wrote: 08 Jul 2022, 21:20 You haven't yet confirmed if your device is actually sending an UART/serial/DLBus compatible signal. If it is using a different, proprietary protocol, not supported by the DLBus/P092 driver, then there is no way of decoding any sensible values from it.

The pulse-counter just detects any signal that changes from high to low, and reverse, so there is no way of extracting any temperature information from that, it merely counts the irregular pulses, that's why it seems to work ;).
how can i check if it is a UART /serial/ DLBus Signal without a Oscilloscope?
Since I use a UVR42 and the circuit board says DL, I assumed that this was also a DL signal.

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#26 Post by Ath » 09 Jul 2022, 14:46

Well, the last image you shared shows a Pulsecounter task, not a DLBus task. I don't think there is a relation between P092 and the Pulsecounter. That's why I asked.

And to have UVR42 support in P092 you will need a build (with TEST_C in the name) from the PR I created for that, as linked above (Just updated it a few seconds ago).
When connecting the UVR42 to the ESP, proper level conversion has to be done, but I think you've got that part covered.
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#27 Post by Trainer » 10 Jul 2022, 20:04

Ath wrote: 09 Jul 2022, 14:46 Well, the last image you shared shows a Pulsecounter task, not a DLBus task. I don't think there is a relation between P092 and the Pulsecounter. That's why I asked.

And to have UVR42 support in P092 you will need a build (with TEST_C in the name) from the PR I created for that, as linked above (Just updated it a few seconds ago).
When connecting the UVR42 to the ESP, proper level conversion has to be done, but I think you've got that part covered.
I have flashed the P092 firmware Test_C on my ESP8266 and set up my UVR42 for sensor 1. Unfortunately, only NaN is displayed.
Now that I am not on site again, I can unfortunately only provide a screenshot next time.

If you have not changed anything in the firmware, I should have installed the latest firmware that you have adapted.
Can the 50Hz signal be a problem for the ESP8266?

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#28 Post by Ath » 10 Jul 2022, 21:12

If the device is using the DLBus protocol/signal, then the plugin and/or the ESP8266 won't have trouble reading it.
The device configuration just has to be set correctly, and that should take care of things. For UVR42 an extra sensor option had to be added in that configuration, as that code is not yet included in the regular releases of ESPEasy, you should use the .bin file from the pull request, that has the new code. The regular releases don't yet have the option to select the UVR42 device.
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#29 Post by Trainer » 11 Jul 2022, 19:54

Ath wrote: 10 Jul 2022, 21:12 If the device is using the DLBus protocol/signal, then the plugin and/or the ESP8266 won't have trouble reading it.
The device configuration just has to be set correctly, and that should take care of things. For UVR42 an extra sensor option had to be added in that configuration, as that code is not yet included in the regular releases of ESPEasy, you should use the .bin file from the pull request, that has the new code. The regular releases don't yet have the option to select the UVR42 device.
yes, i choose the DLBus Plugin and in the Plugin i choose UVR42 from your Test_C build.
at least i choose the GPIO0 Pin and Sensor 1.

But the values are NaN.

Next time i am there i can send you screenshots.
If you have any further tips, I would ask for help.

It would be really great if I could read out the values.

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#30 Post by Trainer » 16 Jan 2023, 00:02

Hello,

This ist what i can measuring with my old oscilloscope (50ms/ 1V per devision) bereden GND and DL
Attachments
PXL_20221105_185751305.MP.jpg
PXL_20221105_185751305.MP.jpg (4.49 MiB) Viewed 12183 times

espeasyUser
New user
Posts: 4
Joined: 09 Feb 2024, 08:42

Re: P092_DLbus UVR42

#31 Post by espeasyUser » 09 Feb 2024, 08:50

Hi all,
does the ESPEasy DL-Bus plugin also support the master device functionality for the Cora DL-bus, i.e. is it possible to directly connect a DL-bus sensor device like the TA Fristar 3 WP to ESPEasy. With "direct connect" I mean without using a TA UVRxy and/or TA CMI.

I want to connect my TA Fristar 3 WP to my smart home system using espeasy in order to read/wrote cora-dl bus variables.

arducoder2024
New user
Posts: 1
Joined: 17 Feb 2024, 01:50

Re: P092_DLbus UVR42

#32 Post by arducoder2024 » 17 Feb 2024, 01:54

Hello everyone,
I'm interested in this too! I would also like to read out the Fristar 3 WP directly. I would like to do this with an Arduino or ESP so that I can process the data via MQTT.
@espeasyuser: Have you already found a solution?

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#33 Post by Trainer » 26 May 2024, 12:49

Ath wrote: 10 Jul 2022, 21:12 If the device is using the DLBus protocol/signal, then the plugin and/or the ESP8266 won't have trouble reading it.
The device configuration just has to be set correctly, and that should take care of things. For UVR42 an extra sensor option had to be added in that configuration, as that code is not yet included in the regular releases of ESPEasy, you should use the .bin file from the pull request, that has the new code. The regular releases don't yet have the option to select the UVR42 device.
i tried it again but no luck. i use a optocoppler to transfer the UVR42 voltage to a 3,3V GPIO signal.
I count Signals an the input but no value shown for my Sensors.
Do you have any hints why i can't see any values?
Attachments
uvfr42.jpg
uvfr42.jpg (55.12 KiB) Viewed 7471 times

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#34 Post by Ath » 26 May 2024, 13:19

Again you also have a pulse counter task on the GPIO that's to be used by the DL-bus reader. Can you disable all but 1 task that is trying to use that GPIO, (one of the DL-bus tasks should be the only one enabled), to exclude that as a possible cause of interference?
There are, AFAICS, no other reports of this plugin not working, so I expect something in your configuration isn't correct.
/Ton (PayPal.me)

Trainer
Normal user
Posts: 25
Joined: 03 Apr 2020, 15:45

Re: P092_DLbus UVR42

#35 Post by Trainer » 26 May 2024, 14:16

Ath wrote: 26 May 2024, 13:19 Again you also have a pulse counter task on the GPIO that's to be used by the DL-bus reader. Can you disable all but 1 task that is trying to use that GPIO, (one of the DL-bus tasks should be the only one enabled), to exclude that as a possible cause of interference?
There are, AFAICS, no other reports of this plugin not working, so I expect something in your configuration isn't correct.
thank you for the hint.
i only add now one device but still the same problem.

Do you see maybe a problem in my schematic?
Attachments
schltung.jpg
schltung.jpg (60.69 KiB) Viewed 7460 times
esp.jpg
esp.jpg (89.62 KiB) Viewed 7460 times

TD-er
Core team member
Posts: 9265
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: P092_DLbus UVR42

#36 Post by TD-er » 26 May 2024, 21:27

100 Ohm as pull down does seem a bit low.
Maybe 1k or 4k7 is better?

Also I don't know if the base of the transistor in the optocoupler should be left floating?

User avatar
Ath
Normal user
Posts: 3949
Joined: 10 Jun 2018, 12:06
Location: NL

Re: P092_DLbus UVR42

#37 Post by Ath » 26 May 2024, 21:28

We even have a wiring suggestion for the UVR42 in the documentation :o https://espeasy.readthedocs.io/en/lates ... uvr42-page
This doesn't have a galvanic separation, but would be the first thing to try 'if all else fails'.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests