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

filippo_80

Hello everyone,
I am using 0.43 software version on a compatible arduino mega with integrated wifi connected to a BAXI Luna Platinum heating system. At the moment the system is working quite well. I'm using a indipendent ESP8266 board to retrieve the external temperature from openweathermap and to send it to BSB-LAN by using the URL command <ip-address>/I10003=xx. Now I tried to let the BSB-LAN sketch retrieving the temperature from openweathermap by adding my code to bsb_lan_custom.h . The temperature is fairly retrieved from openweathermap, but when I try to send it to BSB-LAN by connecting to localhost or ip adddress 127.0.0.1 or to local ip address assigned by my router, I receive a connection error. I guess this is because arduino is not able to send and receive http data at the same time. Am I right? If yes, is there an alternative way to send internally the external temperature value avoiding the url command method? Thank you in advance for your help.
Filippo

freetz

Great to hear that WiFi works for you, do you use one of the combined Mega/ESP boards? If so, what did you do to get then working stable? I got it to work basically, but it was never really stable or fast. Any hints would be great!

As for setting parameters from within BSB_lan_custom.h, there is no need to call the URL, just use the set function provided by BSB-LAN which is also shown in BSB_lan_custom.h.default:
float set_temp = 12.6
set(10003, set_temp, 0);
This should do the trick.
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

filippo_80

Thank you so much freetz now I'm able to set the external temperature as you suggested! Now I don't need the separate esp board to retrieve it. I only had to convert my "double" temperature to "constant char", because otherwise the set command was not accepting it. Regarding my board, yes it is a combined Mega/ESP board. Actually it is slow and I'm using it just for basic functions as publishing some parameters by mqtt and setting some others like the external temperature as I said. Anyway, it does not seem to be too instable, but I did nothing special. I reflashed the AT firmware, but I don't know if that helps somehow.

marcodto

Hello everyone,
my name is Marco
I am using  1.1.49-20201103095644 version on a compatible arduino due with ethernet shield and connected to controller siemens rvs61.843/109 heating system.

I have set the parameters bsb_lan.config for the connection to the mqtt brooker but the brooker connection does not work with bsb_lan.
The brooker work fine with another device (shelly tasmota).
the brooker is installed on homeassistant
Do you have suggestions?
Marco

Schotty

Hi Marco,

first: could you please name the exact model name and the manufacturer of your system? So I can add it to our list, if it's not in there yet.
Second: did you already performed /Q? If not, please also do that and post the output here.

Regarding your question:
1.: Did you activate the logging-definement (a bit above in the config.h)? MQTT doesn't work without it.
2.: Did you try the MQTT function without username&password? Just to see if the problem is probably associated with that?
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

marcodto

Hi Schotty,
my system is heat pump water--->water, the manufacturer is Thermics Energie (italy brand) and the controller is siemens RVS61.843E/109.
Ok i have activated the logging-definement and now mqtt work fine.
Thank you for your help.
This is the output
Version: 1.1.49-20201103095644
Cerca dispositivi...
Indirizzo dispositivo trovato: 0
Indirizzo dispositivo trovato: 3
Indirizzo dispositivo trovato: 11

Indirizzo dispositivo test 0...
Famiglia di dispositivi: 108
Variante dispositivo: 109
Identificazione dispositivo: RVS61.843E/109
Versione software: 7.2
Indice di sviluppo: 000000 - decoding error
Versione dizionario oggetti: 301.1
Versione Bootloader: 4.0
Versione EEPROM: ---
Configurazione - Info 2 OEM: (parameter not supported)
Avvio del codice di accesso?: 0
Livello di accesso Livello professionale?: 0
Codice di accesso OEM?: 12434
Codice di accesso OEM2?: 44444
Query dispositivo sconosciuta: 20
ID produttore (ultimi quattro byte): 100608
Query dispositivo sconosciuta: 10010000C8 - unknown type
Temperatura esterna (10003): 19.2 °C
Temperatura esterna (10004): 19.2 °C

6225;6226;6224;6220;6221;6227;6229;6231;6232;6233;6234;6235;6223;6236;6237;
108;109;RVS61.843E/109;7.2;;301.1;---;;0;0;12434;44444;20;100608;10010000C8;


Avvia test...

885 - Circuito di riscaldamento 1 - Minimo Pompa-PWM
0x053D10E1
DC C2 00 0B 06 3D 05 10 E1 9C B6
DC 80 42 0D 07 05 3D 10 E1 00 00 BB 12

886 - Circuito di riscaldamento 1 - Temperatura esterna standard
0x053D10E0
DC C2 00 0B 06 3D 05 10 E0 8C 97
DC 80 42 0D 07 05 3D 10 E0 00 64 A0 00

5960 - Configurazione - Funzione ingresso H3
0x053D0D95
DC C2 00 0B 06 3D 05 0D 95 D7 8A
DC 80 42 0D 07 05 3D 0D 95 00 05 CD 5E

5961 - Configurazione - Logica contatto H3
0x053D0DCC
DC C2 00 0B 06 3D 05 0D CC 1C 56
DC 80 42 0D 07 05 3D 0D CC 00 01 4D 85

5964 - Configurazione - Valore funzione 1 H3
0x073D0B7D
DC C2 00 0B 06 3D 07 0B 7D 6F 6A
DC 80 42 0E 07 07 3D 0B 7D 00 00 00 28 1F

5966 - Configurazione - Valore funzione 2 H3
0x073D0B83
DC C2 00 0B 06 3D 07 0B 83 61 BB
DC 80 42 0E 07 07 3D 0B 83 00 03 E8 3C 7D

6040 - Configurazione - Fühlereingang BX21 Modul 1
0x053D0D89
DC C2 00 0B 06 3D 05 0D 89 04 37
DC 80 42 0D 07 05 3D 0D 89 00 CB C3 DE

6041 - Configurazione - Fühlereingang BX22 Modul 1
0x053D0D8C
DC C2 00 0B 06 3D 05 0D 8C 54 92
DC 80 42 0D 07 05 3D 0D 8C 00 00 40 09

6049 - Configurazione - Spannungswert 1 H2
0x053D0E7E
DC C2 00 0B 06 3D 05 0E 7E CE 9C
DC 80 42 0E 07 05 3D 0E 7E 00 00 00 F0 77

6051 - Configurazione - Spannungswert 2 H2
0x053D0E81
DC C2 00 0B 06 3D 05 0E 81 D0 6C
DC 80 42 0E 07 05 3D 0E 81 00 00 64 97 F6

6089 - Configurazione - Mod Pumpe Drehzahlstufen
0x053D1232
DC C2 00 0B 06 3D 05 12 32 01 CA
DC 80 42 0D 07 05 3D 12 32 00 00 6A BE

6140 - Configurazione - Pressione massima dell'acqua 1
0x053D05D8
DC C2 00 0B 06 3D 05 05 D8 C7 4A
DC 80 42 0D 07 05 3D 05 D8 00 1E B4 3B

6142 - Configurazione - Pressione critica minima dell'acqua 1
0x053D05DA
DC C2 00 0B 06 3D 05 05 DA E7 08
DC 80 42 0D 07 05 3D 05 DA 00 05 79 01

6820 - Errore - Reset cronologia
0x053D06D5
DC C2 00 0B 06 3D 05 06 D5 43 B4
DC 80 42 14 07 05 3D 06 D5 00 82 01 01 00 01 02 00 04 9C 7D

6821 - Errore - Fehlercode 3
0x053D0816
DC C2 00 0B 06 3D 05 08 16 89 94
DC 80 42 0E 07 05 3D 08 16 00 01 E4 6F 78

6830 - Errore - 4th past value of lockout code counter
0x053D06D6
DC C2 00 0B 06 3D 05 06 D6 73 D7
DC 80 42 14 07 05 3D 06 D6 00 82 01 01 00 01 02 00 04 2D B2

6831 - Errore - Fehlercode 4
0x053D0817
DC C2 00 0B 06 3D 05 08 17 99 B5
DC 80 42 0E 07 05 3D 08 17 00 01 E4 19 CC

6840 - Errore - Historie 5
0x053D06D7
DC C2 00 0B 06 3D 05 06 D7 63 F6
DC 80 42 14 07 05 3D 06 D7 00 82 01 01 00 01 02 00 04 42 F7

6841 - Errore - Codice di errore cronologia 5
0x053D0818
DC C2 00 0B 06 3D 05 08 18 68 5A
DC 80 42 0E 07 05 3D 08 18 00 01 E4 CD 22

8336 - Parametri diagnostica - Bruciatore delle ore di funzionamento
0x053D0011
DC C2 00 0B 06 3D 05 00 11 70 DA
DC 80 42 10 07 05 3D 00 11 00 0A 4B E4 98 E8 55

Test completato.

Indirizzo dispositivo test 3...
Famiglia di dispositivi: 91
Variante dispositivo: 109
Identificazione dispositivo: AVS75.390/109
Versione software: 3.1
Indice di sviluppo: (parameter not supported)
Versione dizionario oggetti: 1.0
Versione Bootloader: (parameter not supported)
Versione EEPROM: (parameter not supported)
Configurazione - Info 2 OEM: (parameter not supported)
Avvio del codice di accesso?: (parameter not supported)
Livello di accesso Livello professionale?: (parameter not supported)
Codice di accesso OEM?: (parameter not supported)
Codice di accesso OEM2?: (parameter not supported)
Query dispositivo sconosciuta: 20
ID produttore (ultimi quattro byte): 209316
Query dispositivo sconosciuta: (parameter not supported)
Temperatura esterna (10003): °C (parameter not supported)
Temperatura esterna (10004): °C (parameter not supported)

6225;6226;6224;6220;6221;6227;6229;6231;6232;6233;6234;6235;6223;6236;6237;
91;109;AVS75.390/109;3.1;;1.0;;;;;;;20;209316;;


Avvia test...

Test completato.

Indirizzo dispositivo test 11...
Famiglia di dispositivi: 94
Variante dispositivo: 244
Identificazione dispositivo: QAA75.611/301
Versione software: 6.7
Indice di sviluppo: (parameter not supported)
Versione dizionario oggetti: 102.0
Versione Bootloader: (parameter not supported)
Versione EEPROM: (parameter not supported)
Configurazione - Info 2 OEM: (parameter not supported)
Avvio del codice di accesso?: (parameter not supported)
Livello di accesso Livello professionale?: (parameter not supported)
Codice di accesso OEM?: (parameter not supported)
Codice di accesso OEM2?: (parameter not supported)
Query dispositivo sconosciuta: ---
ID produttore (ultimi quattro byte): 525077
Query dispositivo sconosciuta: (parameter not supported)
Temperatura esterna (10003): °C (parameter not supported)
Temperatura esterna (10004): °C (parameter not supported)

6225;6226;6224;6220;6221;6227;6229;6231;6232;6233;6234;6235;6223;6236;6237;
94;244;QAA75.611/301;6.7;;102.0;;;;;;;---;525077;;


Avvia test...

Test completato.

Fine.

Schotty

#4867
Zitat von: marcodto am 05 November 2020, 16:38:30
Hi Schotty,
my system is heat pump water--->water, the manufacturer is Thermics Energie (italy brand) and the controller is siemens RVS61.843E/109.

Thanks for your reply - the manufacturer isn't enough though, there must be something like an exact model name for that device (like shown here http://www.thermics-energie.it/en/categoria-prodotto/heat-pumps/), e.g.: "Thermics Energie Poseidon 8-HC-R410a" or something like that.. 
Especially because we don't have this manufacturer in our list, it's really interesting for us! ;)

So /Q found quite a lot parameters which freetz will add soon to ne newest version of BSB-LAN. Then, after he activated the listed parameters for your system, you can also use them via BSB-LAN after you updated BSB-LAN.

Good to hear that MQTT works now! Enjoy BSB-LAN ;)
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

marcodto

Thanks for your reply..
I attach pdf with the specifications, my model is 9PWW

Schotty

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

FunkOdyssey

Ich habe gestern übrigens auf den Arduino Due umgestellt.
Die Umstellung lief problemlos. Ein paar kleine Fehler habe ich gemacht.

Wichtig ist, dass man wirklich die Hinweise in den Anleitungen liest. Ich hätte mir ein paar Problem erspart.

1) Zuerst habe ich den Code auf Basis der v0.44 genommen. Dieser lief aber dem Mega problemlos und ich wollte im ersten Schritt keinen Hardware- und Softwarewechsel machen. Da ich aber Probleme (vermutlich aus anderen Gründen) hatte, bin ich später doch aufs aktuelle Git gewechselt.

2) Per Micro-USB Kabel konnte ich im Serial Monitor alles mitlesen und hatte auch keine Probleme. Als ich das USB-Kabel aber später mit dem USB-Netzteil verbunden habe, brach die Verbindung ab. Das USB-Netzteil bzw. Ladegerät(!) hat beim Mega gereicht. Dem Due aber nicht. Also bin ich auf ein 7,5 Volt-Netzteil gewechselt.

3) Ich habe die Config-Datei zwar im Detail abgeglichen und alle Commits der letzten Wochen manuell nachgeholt. Doch ich wollte unbedingt auf meine alten PINs bestehen.  :D Das war natürlich ein Fehler. Und es steht auch sogar da, dass man beim Due die Hardware-Serial-PINs nutzen soll.

Und ich kann niemanden einen Vorwurf machen. Es war alles dokumentiert, so dass ich die Probleme dann doch sehr schnell lösen konnte.

Danke Freetz und Schotty für euer Engagement.

Schotty

Zitat von: FunkOdyssey am 06 November 2020, 10:50:47
Wichtig ist, dass man wirklich die Hinweise in den Anleitungen liest. Ich hätte mir ein paar Problem erspart.
...
Und ich kann niemanden einen Vorwurf machen. Es war alles dokumentiert, so dass ich die Probleme dann doch sehr schnell lösen konnte.
Danke, das freut mich zu hören ;D

Zitat
Danke Freetz und Schotty für euer Engagement.
Danke dir für das Feedback  ;)

Bzgl Stromversorgung: Wieviel liefert denn dein USB-Netzteil? 500mA oder 1000mA? Ich nutze&empfehle zwar generell ein extra Netzteil mit Hohlsteckerbuchse, aber das hält ja nicht jeder so. Insofern wäre ein Hinweis diesbzgl für die Versorgung via USB vielleicht nochmal angebracht..
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

FunkOdyssey


Schotty

2A? Oha, da würde man ja nicht unmittelbar auf eine zu geringe Stromversorgung tippen..  :o
Aber danke für die Info!
Handbuch zur BSB-LAN Hard- & Software (Anbindung v. Heizungsreglern, u.a. von Brötje & Elco):
https://1coderookie.github.io/BSB-LPB-LAN/

Luposoft

Hallo liebe Leute,

aber speziell geht die Frage an @Freetz

Ich lasse mir über MQTT diverse Werte mit unterschiedlichen Intervallen senden.
Mir ist aufgefallen, dass die Zeit der Empfangsintervalle in Fhem stark vom vorgegebenen Wert im Arduino abweicht.
Um einen Softwarefehler meines custom-Blockes auszuschließen, habe ich mir für einen 5min-Wert die Differenz der millis() zusätzlich senden lassen.
Die millis()-Differenz liegt so bei 300500. Also korrekt. Fhem registriert den Eingang aber mit einem Zeitunterschied von 5:50
Ebenso verhält es sich bei 15min- und 1h-Werten.
Das Verhälnis von der Zeitdifferenz in Fhem zu der millis()-Differenz liegt bei allen verschiedenen Intervallen so bei 1,17

Meine Frage: Kann es sein, dass mein Taktgeber auf dem Arduino so viel falsch geht?
Gibt es einen Ansatz, wie das korrigiert werden könnte?
Raspi B+
CUL nano 433MHz
CUL nano 868MHz
ELCO Thision S Plus 19
Arduino Due