LAN-Anbindung für BSB-Bus (Brötje, Elco Thision etc.)

Begonnen von justme1968, 29 November 2014, 19:50:40

Vorheriges Thema - Nächstes Thema

tetzlav

Im Handbuch steht leider nicht wohin melden, also "melde" ich das /Q hier:
Available device addresses:
Device address found: 10
Device address found: 0
Running test with destination device address 0:
Gerätefamilie: 163
Gerätevariante: 16
Start Test...

857
857 Heizkreis 1 - Estrich Tage erfüllt: error 7 (parameter not supported)
DC 86 00 0B 06 3D 21 0B 43 75 2C
DC 80 06 0D 07 21 3D 0B 43 00 00 9D C9
1157
1157 Heizkreis 2 - Estrich Tag erfüllt: error 7 (parameter not supported)
DC 86 00 0B 06 3D 22 0B 43 2C 7C
DC 80 06 0D 07 22 3D 0B 43 00 00 53 29
2250
2250 Kessel - Pumpennachlaufzeit: error 7 (parameter not supported)
DC 86 00 0B 06 3D 11 11 A4 D1 F8
DC 80 06 0D 07 11 3D 11 A4 00 02 C4 AA
2700
2700 Sitherm Pro - Ergebnis letzter Drifttest: error 7 (parameter not supported)
DC 86 00 0B 06 3D 09 0F 31 C8 5A
DC 80 06 0E 07 09 3D 0F 31 00 00 00 6D 10
2702
2702 Sitherm Pro - Auslösen neuer Drifttest: error 7 (parameter not supported)
DC 86 00 0B 06 3D 05 30 42 E6 64
DC 80 06 0E 07 05 3D 30 42 00 00 00 8F C5
2703
2703 Sitherm Pro - Reset Drifttest: error 7 (parameter not supported)
DC 86 00 0B 06 3D 05 30 43 F6 45
DC 80 06 0E 07 05 3D 30 43 00 03 78 53 BD
2705
2705 Sitherm Pro - Obergrenze Drifttest Störung: error 7 (parameter not supported)
DC 86 00 0B 06 3D 09 0F 26 AA 8C
DC 80 06 0E 07 09 3D 0F 26 00 03 B5 85 B7
6230
6230 Konfiguration - KonfigRg0 Bit 0-7: error 7 (parameter not supported)
DC 86 00 0B 06 3D 05 11 93 08 EF
DC 80 06 0E 07 05 3D 11 93 00 1D 56 BC 8B
8023
DC 86 00 0B 06 3D 05 1A C1 AE A2
DC 80 06 0E 07 05 3D 1A C1 00 00 D8 CD 4E
8327
8327 Diagnose Erzeuger - Wasserdruck: error 7 (parameter not supported)
DC 86 00 0B 06 3D 05 19 F0 DD 83
DC 80 06 0E 07 05 3D 19 F0 00 00 0F C2 5B
Test Ende.

Schotty

Zitat von: tetzlav am 25 September 2019, 13:06:21
Ich meinte eher das abgeschnittene Datum und die fehlende Uhrzeit...
Upps, stimmt, jetzt wo du es sagst fällt's mir auch auf  ;D
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

Schotty

Zitat von: tetzlav am 25 September 2019, 13:41:49
und noch etwas ist mir aufgefallen, ich wollte gerne wie im Handbuch beschrieben das Datum und Uhrzeit setzen:
$ wget "http://192.168.178.8/S0=25.09.2019_13:07:03" -qO -


Egal ob per Browser oder wget: Setzen fehlgeschlagen...

Hast du dem Adapter Schreibzugriff gewährt? Also die Voreinstellung in der config.h entspr geändert, sprich, von FL_RONLY auf 0 umgestellt? Entspr. Auszug aus Kap. 5:



In der Voreinstellung ist der Zugriff des Adapters auf den Regler auf Lesen beschränkt, d.h. ein Setzen bzw. Verändern von Parametern der Heizungssteuerung per Adapter ist standardmäßig nicht möglich.
Das betreffende Definement lautet:
#define DEFAULT_FLAG FL_RONLY;

Wer den Status ändern will, um generell Werte und Einstellungen des Reglers per Adapter verändern zu können, muss das Flag auf 0 setzen:
#define DEFAULT_FLAG 0;

Ist diese Funktion nur bei ausgewählten Parametern (z.B. 10000 oder 710) gewünscht, muss bei dem genannten Definement nach wie vor das genannte Flag generell auf FL_RONLY gesetzt sein und dann in der Datei BSB_lan_defs.h das DEFAULT_FLAG des gewünschten Parameters durch 0 (Null) ersetzt werden.

Im folgenden Beispiel wird Parameter 700 auf diese Weise schreibbar gemacht:

{0x2D3D0574, CAT_HK1, VT_ENUM, 700, STR700, sizeof(ENUM700), ENUM700, DEFAULT_FLAG, DEV_ALL}, // [-] - Heizkreis 1 - Betriebsart ***(virtuelle Zeile)***

→ aufgrund des ,,DEFAULT_FLAG" ist der Parameter momentan nur lesbar

{0x2D3D0574, CAT_HK1, VT_ENUM, 700, STR700, sizeof(ENUM700), ENUM700, 0, DEV_ALL}, // [-] - Heizkreis 1 - Betriebsart ***(virtuelle Zeile)***

→ das ,,DEFAULT_FLAG" wurde durch ,,0" (Null, ohne Anführungszeichen) ersetzt

Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

Schotty

Zitat von: tetzlav am 25 September 2019, 13:43:32
Im Handbuch steht leider nicht wohin melden, also "melde" ich das /Q hier:
Danke, genau richtig, alternativ per Email.
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

tetzlav

Zitat von: Schotty am 25 September 2019, 14:34:04
Hast du dem Adapter Schreibzugriff gewährt? Also die Voreinstellung in der config.h entspr geändert, sprich, von FL_RONLY auf 0 umgestellt?
[...]

Ja, ich habe das FLAG testweise auf 0 gesetzt und konnte andere Paramater (Betriebsart/700 oder Raumtemperatur 1/10000) auch bereits erfolgreich per Browser, JSON/curl oder wget setzen.

Schotty

Zitat von: tetzlav am 25 September 2019, 14:43:44
Ja, ich habe das FLAG testweise auf 0 gesetzt und konnte andere Paramater (Betriebsart/700 oder Raumtemperatur 1/10000) auch bereits erfolgreich per Browser, JSON/curl oder wget setzen.
Merkwürdig - das Problem hatten wir schonmal, woraufhin freetz das Setzen mit /I... ermöglichte - das wiederum machte dann aber auch irgendwo Probleme, und letztlich funktioniert(e) das Setzen in der momentanen Version eigtl problemlos.
Da muss ich nochmal die älteren Beiträge&Emails raussuchen und mich mit freetz kurzschließen, kann aber etwas dauern.
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

freetz

@tetzlav: Das Uhrzeitsetzenproblem hatten wir vor einigen Seiten schon mal, bitte einfach mal die Suche benutzen und schauen, ob das dort geschriebene für Dich zutrifft bzw. das Problem löst.

Was die JSON-Ausgabe der Uhrzeit angeht, muss ich mal schauen, eigentlich sollte das mit Stunden, Minuten und Sekunden klappen...
Alle Infos zur Anbindung von Heizungssystemen mit PPS-, LPB- bzw. BSB-Bus ans LAN gibt es hier:
https://github.com/fredlcore/bsb_lan

Alle Infos zum WLAN-Interface "Robotan" für Ambrogio/Stiga/Wolf und baugleiche Rasenmähroboter:
https://github.com/fredlcore/robotan

Schotty

Zitat von: freetz am 25 September 2019, 16:03:05
@tetzlav: Das Uhrzeitsetzenproblem hatten wir vor einigen Seiten schon mal, bitte einfach mal die Suche benutzen und schauen, ob das dort geschriebene für Dich zutrifft bzw. das Problem löst.
Dann kurz hier: Das Problem war doch damals (ca. S. 245, etwas vorher und hinterher ebenfalls), dass es bei einem/mehreren Usern nicht mit /S0=... funktionierte, sondern mit dem dann von dir implementierten /I0=...!127-Befehl. Das funktionierte dann irgendwie auch nicht überall bzw nur temporär, worauf hin du wieder /S0=... implementiert hattest, was dann irgendwie doch wieder funktionierte (und der Wert dauerhaft vom Regler übernommen wurde). Da sich laut dir die beiden Befehle ausschließen, ist/war (mein?) letzter Stand, dass es nun bei /S0=... bleibt, so erfolgte dann auch die Änderung der Beschreibung im Handbuch. Komisch ist, dass es jetzt bei tetzlav's LMS15 (163/16) nicht funktioniert. Wobei mir bei dem /Q-Output von tetzlav gerade auffällt, dass da noch eine alte BSB-LAN-Version installiert zu sein scheint!?! Dann wäre das vermutlich des Rätsels Lösung..

@tetzlav: Bitte nochmal die aktuelle BSB-LAN-Version aus freetz' Repo installieren und /Q erneut ausführen, bei der Gelegenheit dann bitte auch nochmal das FLAG auf 0 setzen und den /S0-Befehl zum Setzen der Uhrzeit erneut testen. Ebenso die JSON-Geschichte nochmals testen. Vorher macht sämtliches Rätselraten von unserer Seite her keinen Sinn.
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

freetz

@Schotty: Sehr gut gesehen, die Version muss ja wohl ein halbes Jahr oder so alt sein, kein Wunder, dass da bereits bekannte (und eigentlich gelöste) Probleme auftauchen..
Alle Infos zur Anbindung von Heizungssystemen mit PPS-, LPB- bzw. BSB-Bus ans LAN gibt es hier:
https://github.com/fredlcore/bsb_lan

Alle Infos zum WLAN-Interface "Robotan" für Ambrogio/Stiga/Wolf und baugleiche Rasenmähroboter:
https://github.com/fredlcore/robotan

michalwu

Hi

Is there anyone here with Brotje WGB EVO 28H? Or 20H?
I tried reading manual (ggl translator to english) and I have some doubts on how to configure my device.
Thanks,
mike

tetzlav

Zitat von: Schotty am 25 September 2019, 17:38:24
[...]

@tetzlav: Bitte nochmal die aktuelle BSB-LAN-Version aus freetz' Repo installieren und /Q erneut ausführen, bei der Gelegenheit dann bitte auch nochmal das FLAG auf 0 setzen und den /S0-Befehl zum Setzen der Uhrzeit erneut testen. Ebenso die JSON-Geschichte nochmals testen. Vorher macht sämtliches Rätselraten von unserer Seite her keinen Sinn.

Oh mann! SORRY! Bitte entschuldigt, ich nehme alles zurück!
Ich hatte gestern die aktuelle Version geholt und compiliert, aber vergessen dann in den Keller zu laufen und hochzuladen.

Mit der aktuellen Version funktioniert alles bestens.

Scanne nach Geräten...
Geräteadresse gefunden: 0
Geräteadresse gefunden: 10

Teste Geräteadresse 0:
Gerätefamilie: 163
Gerätevariante: 16
Geräte-Identifikation: LMS15.001A100
Software-Version: 4.2
Entwicklungs-Index: decoding error
Objektverzeichnis-Version: 0.9
Bootloader-Version:
EEPROM-Version: 15.0
Konfiguration - Info 2 OEM: 0
Zugangscode Inbetriebnahme?: 0
Zugangscode Fachmannebene ?: 0
Zugangscode OEM?: 0
Zugangscode OEM2?: 0
Bisher unbekannte Geräteabfrage: decoding error
Hersteller-ID (letzten vier Bytes): 172260022
Bisher unbekannte Geräteabfrage: 0001000096 - unknown type
Starte Test...
Test beendet.

Teste Geräteadresse 10:
Gerätefamilie: 92
Gerätevariante: 100
Geräte-Identifikation: AVS37.294/100
Software-Version: 7.1
Entwicklungs-Index:
Objektverzeichnis-Version: 102.0
Bootloader-Version:
EEPROM-Version:
Konfiguration - Info 2 OEM:
Zugangscode Inbetriebnahme?:
Zugangscode Fachmannebene ?:
Zugangscode OEM?:
Zugangscode OEM2?:
Bisher unbekannte Geräteabfrage: decoding error
Hersteller-ID (letzten vier Bytes): 1605574
Bisher unbekannte Geräteabfrage:
Starte Test...
Test beendet.


$ wget http://192.168.178.8/JQ=0 -qO -
{
  "0": {
    "name": "Datum/Zeit",
    "value": "25.09.2019 21:07:30",
    "unit": "",
    "desc": "",
    "dataType": 5
  }
}

$ wget "http://192.168.178.8/S0=$(date +%x_%T)" -qO -
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>BSB-LAN Web</title>
<style>A:link  {color:blue;text-decoration: none;} A:visited {color:blue;text-decoration: none;} A:hover {color:red;text-decoration: none;background-color:yellow} A:active {color:blue;text-decoration: none;} A:focus {color:red;text-decoration: none;}
input {width: 100%; box-sizing: border-box;} select {width: 100%;}</style>
</head><body>
<script>function set(line){
var value = document.getElementById('value'+line).value.replace(":", ".");
if(isNaN(value)==false){
window.open(document.getElementById('main_link').href+'S'+line+'='+document.getElementById('value'+line).value,'_self');
}}
function setbit(line){
var x=document.getElementById('value'+line); var value=0;
for (var i=0; i<x.options.length; i++) {
if(x.options[i].selected){
value=value+eval(x.options[i].value);
}}
window.open(document.getElementById('main_link').href+'S'+line+'='+value,'_self');
}</script>
<font face='Arial'>
<center><h1><A ID=main_link HREF='/'>BSB-LAN Web</A></h1></center>
<table width=80% align=center><tr bgcolor=#f0f0f0><td width=20% align=center><a href='/K'>Heizungsfunktionen</a></td><td width=20% align=center><a href='/T'>Sensoren</a></td><td width=20% align=center><a href='/DG'>Zeichne Logdatei</a></td><td width=20% align=center><a href='/Q'>Prüfe auf neue Parameter</a></td></tr>
<tr bgcolor=#f0f0f0><td width=20% align=center><a href='/C'>Einstellungen</a></td><td width=20% align=center><a href='http://github.com/fredlcore/bsb_lan/blob/master/command_ref/command_ref_DE.md'>URL-Befehle</a></td><td width=20% align=center><a href='http://github.com/fredlcore/bsb_lan/blob/master/HOWTO.md' target='new'>HowTo</a></td><td width=20% align=center><a href='http://github.com/fredlcore/bsb_lan/blob/master/FAQ.md' target='_new'>FAQ</a></td></tr></table><p></p><table align=center width=80%><tr><td>
<tr><td>
   0 Uhrzeit und Datum -  Datum/Zeit: 25.09.2019 21:10:55
</td><td>
<input type=text id='value0' VALUE='25.09'></td><td><input type=button value='Set' onclick="set(0)"></td></tr>
</td></tr></table>
</body>
</html>


Super Arbeit, vielen Dank!

Schotty

@tetzlav: Super, dann hat sich das ja geklärt. Danke für die Rückmeldung und viel Spaß mit BSB-LAN  :D
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

Schotty

Zitat von: michalwu am 25 September 2019, 20:24:56
Hi

Is there anyone here with Brotje WGB EVO 28H? Or 20H?
I tried reading manual (ggl translator to english) and I have some doubts on how to configure my device.
Thanks,
mike

Hi Mike,

you used google translator for the german manual? Oh man, I really need to write an english version..  :( ;)

We actually have a successfully tested WGB EVO 20H in our listing, so the 28H should be no problem. I guess it has the same controller (LMS15) but just a more powerful burner (28kW instead of 20kW) inside. So from the 'technical' side there should be no problem to connect and run the adapter with your specific heater.

About the configuration: You can find a short and 'basic' HowTo-description in English in freetz' GitHub-repository. It's the repo of the project, where you can also download the software. Here you have the direct link to the HowTo-file: https://github.com/fredlcore/bsb_lan/blob/master/HOWTO.md
You also find descriptions of each part in the software itself, e.g. in the file config.h, so if some things are not mentioned in the HowTo, you'll find them in the configfile itself.

If you still have any doubts or problems, just write here or send us (freetz or me) an email. Don't worry, it's easier as it seems - basically its plug&play: Just connect the adapter, configure and flash the software and have fun controlling your heater  ;)

Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

michalwu

Zitat von: Schotty am 26 September 2019, 11:17:36
you used google translator for the german manual? Oh man, I really need to write an english version..  :( ;)

We actually have a successfully tested WGB EVO 20H in our listing, so the 28H should be no problem. I guess it has the same controller (LMS15) but just a more powerful burner (28kW instead of 20kW) inside. So from the 'technical' side there should be no problem to connect and run the adapter with your specific heater.

Thank you Schotty!
Google translate isn't bad but sometimes I have doubts because ambigious phrazing. Plus it seems I have two manuals and there are some differences. Sorry if I used some old forgotten manual.


I do have LMS15 controller, so BSB will be used. And now some questions if I may:
1. BSB bus
In manual you pointed me to (https://github.com/fredlcore/bsb_lan/blob/master/HOWTO.md) it says I should pick 0x06 if i do not have RTG1. But I do, so I assume address will be 0x07. Longer manual (https://1coderookie.github.io/BSB-LPB-LAN/kap02.html#211-adressierung-beim-bsb) says "BSB-LPB-LAN adapter is assigned the address 66 in the default setting" which means 0x42.
And now I am little confused.

2. fixed_device_family and fixed_device_variant
Manual says: "Set this to 0 to turn on auto-detection at startup of the Arduino or enter value of parameter 6225 here." This is the place where I need to push hard to understand what ggl meant.
I want to be sure that after heating system restart, LAN gateway will work. Do I put fixed_device_family = 6225 and fixed_device_variant = 6226;? At least this is what https://1coderookie.github.io/BSB-LPB-LAN/kap05.html says.

3. Do I have to configure anything on my Brotje? From what I remember, technician needed to modify this and that in order to enable RTG1.

4. Do I need to configure ds18b20 somewhere (several of them)? I mean except picking right one_wire_bus. Or was it just added to code and now is supported out of the box? Manuals disagree.


Thanks
michal

Schotty

#3749
Zitat von: michalwu am 26 September 2019, 13:49:30
Thank you Schotty!
Google translate isn't bad but sometimes I have doubts because ambigious phrazing. Plus it seems I have two manuals and there are some differences. Sorry if I used some old forgotten manual.
No problem about the older manual - but if there are any differences, the 'newer' one (see the links in my signature down below) is the one you should follow.

Zitat
I do have LMS15 controller, so BSB will be used.
Great, so you will have full functionality of BSB-LAN :D

Zitat
And now some questions if I may:
Anytime ;)

Zitat
1. BSB bus
In manual you pointed me to (https://github.com/fredlcore/bsb_lan/blob/master/HOWTO.md) it says I should pick 0x06 if i do not have RTG1. But I do, so I assume address will be 0x07. Longer manual (https://1coderookie.github.io/BSB-LPB-LAN/kap02.html#211-adressierung-beim-bsb) says "BSB-LPB-LAN adapter is assigned the address 66 in the default setting" which means 0x42.
And now I am little confused.
Here the HowTo is a little bit outdated. Recently the adapter got his own address (and 'name' in the output of the serial monitor of the arduino software, it appears as "LAN"), so you can leave everything as it is in the config.h-file, there is no need (for the standard-usage) to change the adapter-address here.
Besides that, now you even could use two QAA-room-units parallel to the adapter ;) 
EDIT: I forgot: Yes, your assumption was right, 0x07 would be RGT2 - but as I already wrote, for the standard usage there's no need to change the address of the adapter anymore.

Zitat
2. fixed_device_family and fixed_device_variant
Manual says: "Set this to 0 to turn on auto-detection at startup of the Arduino or enter value of parameter 6225 here." This is the place where I need to push hard to understand what ggl meant.
I want to be sure that after heating system restart, LAN gateway will work. Do I put fixed_device_family = 6225 and fixed_device_variant = 6226;? At least this is what https://1coderookie.github.io/BSB-LPB-LAN/kap05.html says.
Also here no need to change anything in the config.h-setting.
Scenario: You connect the adapter correctly to the controller, the controller/heater is powered on and after that also the adapter, then BSB-LAN checks the type of your controller. IF there would be problems with the auto-detection (which normally doesnt happen with the LMS15) and BSB-LAN wouldnt be able to autodetect the controller, you should query parameters /6225 and /6226 with BSB-LAN (you cant get them from the heater-control-panel) and put in the reported values (NOT just 6225&6226, because that are just the numbers of the specific parameters). E.g.: 163 at parameter 6225 and 16 at parameter 6226, which is the LMS15 if I remember correctly. But thats just for your understanding.
As I already wrote, usually the autodetect works without any problems, but maybe there are some exotic controllers out there, where it could be necessary to put in the reported values of /6225 and /6226.
EDIT: IF the autodect doesnt work right away, then most of the times the problem is that the arduino was powered-on before the controller. Because BSB-LAN tries to autodetect the controller when it boots, the controller of the heater already needs to be powered on. In that case just restart/reboot the arduino, then everything should work fine. You can observe the procedure in the serial monitor of the ArduinoIDE btw.

Zitat
3. Do I have to configure anything on my Brotje? From what I remember, technician needed to modify this and that in order to enable RTG1.
Nope, usually no need to configure anything at the heater itself. If you already have your RGT1 correctly installed, it will work parallel to the adapter.

Zitat
4. Do I need to configure ds18b20 somewhere (several of them)? I mean except picking right one_wire_bus. Or was it just added to code and now is supported out of the box? Manuals disagree.
Hmm, right now I dont remeber where the manuals disagree in this point..
Connect them in the 1wire-specific way to a specific pin and put in that pin in the config.h. Activate the definement and there you go. E.g.: The specific line should look like #define ONE_WIRE_BUS 31 where 31 is the pin in this example.

If everything is correctly installed and configured, you can query the sensors by using <url>/T - but if you use several sensors, it could be smart to also activate the IPWE-definement:
#define IPWE
If you query BSB-LAN with <ip>/ipwe.cgi you'll get all the sensors listed with the specific sensor-ID. Then you could change the temperature of one sensor, query again the mentioned URL and you'll see which sensor/ID is the one in the system.
FYI: The DS18B20-functionality also works without a connected heater-controller, so you can also test that before you connect the system to your controller or use it without the heating system.
If you have any problems with the DS18B20-installation, just send me an email and we can discuss it in private (because it's not that BSB-LAN-specific ;) ).

Zitat
Thanks
michal
You're welcome :)
May I ask where you're from? Just because BSB-LAN also supports different languages than German and English. If you're a native english-speaker, you can also change the language of BSB-LAN by changing the definement
#define LANG DE
to
#define LANG EN
for an english output.

If you get the system running, please make sure you use the recent BSB-LAN version!
Once you have access to the heater, please query <ip>/Q and also <ip>/6220-6236 and post the output here (or send it via email).
/Q is to check for any parameters that may be also available for your heater and /6220-6236 is just for my own user-'database'.
When everything works as it should, I will add your specific model to the list.

Good luck and let us know how things work out ;)
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/