Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Fragen zur Nutzung, Features, usw..
Antworten
aiole
Beiträge: 7220
Registriert: Mo Okt 08, 2018 4:51 pm

Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von aiole »

Basierend auf dem hier:
viewtopic.php?p=52977#p52977
viewtopic.php?p=53088#p53088

anbei neue Testergebnisse 1.9.250_nightly_22.12.2021 mit Debuglevel 2:
EVU-Werte kommen nun, jedoch stimmt dort noch etwas nicht bei den Kommawerten und Einheiten W/kW (teilweise >100.000 kW).
Es könnte die 1000-er-Umrechnung sein.
EM24_Watt_kiloWatt.jpg

Code: Alles auswählen

2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:51: PID: 19921: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0x12 0x0 0x6
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Running transaction 2
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-22 13:05:51: PID: 19921: pymodbus.payload: [b'\t:', b'\x00\x00']
2021-12-22 13:05:51: PID: 19921: pymodbus.payload: [b'\t<', b'\x00\x00']
2021-12-22 13:05:51: PID: 19921: pymodbus.payload: [b'\t?', b'\x00\x00']
2021-12-22 13:05:51: PID: 19921: pymodbus.payload: [2367, 0, 2364, 0, 2362, 0]
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Getting transaction 1
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Adding transaction 1
2021-12-22 13:05:51: PID: 19921: pymodbus.factory: Factory Response[ReadInputRegistersResponse: 4]
2021-12-22 13:05:51: PID: 19921: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x9 0x3f 0x0 0x0 0x9 0x3c 0x0 0x0 0x9 0x3a 0x0 0x0
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x9 0x3f 0x0 0x0 0x9 0x3c 0x0 0x0 0x9 0x3a 0x0 0x0
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:51: PID: 19921: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0x0 0x0 0x6
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Running transaction 1
2021-12-22 13:05:51: PID: 19921: pymodbus.transaction: Current transaction state - IDLE
2021-12-22 13:05:51: PID: 19921: root: Komponente Carlo Gavazzi Zähler auslesen.
2021-12-22 13:05:51: PID: 19921: root: Start device reading {'componentNone': <modules.carlo_gavazzi.counter.CarloGavazziCounter object at 0x75f3c8b0>}
2021-12-22 13:05:51: PID: 19921: root: carlo gavazzi IP-Adresse: 192.168.110.11
2021-12-22 13:05:43: uberschuss 4004249 wattbezug -4004249 ladestatus 0 llsoll 0 pvwatt -245 mindestuberschussphasen 600 wattkombiniert 4004249 schaltschwelle -150 (LV2) at 558 main /var/www/html/openWB/regel.sh
2021-12-22 13:05:43: anzahlphasen 1 (LV1) at 557 main /var/www/html/openWB/regel.sh
2021-12-22 13:05:42: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1254 loadvars loadvars.sh
2021-12-22 13:05:42: plugstatlp1 0	plugstatlp2 1	plugstatlp3 0 (LV1) at 1253 loadvars loadvars.sh
2021-12-22 13:05:42: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1252 loadvars loadvars.sh
2021-12-22 13:05:42: EVU 1:V/36765A 2: V/12648A 3: V/39256A (LV1) at 1251 loadvars loadvars.sh
2021-12-22 13:05:42: lla3 0	llv3 236.3	llas13 0 llas23  soclp1 53 soclp2 53 (LV1) at 1250 loadvars loadvars.sh
2021-12-22 13:05:42: lla2 0	llv2 236.4	llas12 0 llas22  sofortll 18 hausverbrauch 0 wattbezug -4004249 uberschuss 4004249 (LV1) at 1249 loadvars loadvars.sh
2021-12-22 13:05:41: lla1 0	llv1 237.0	llas11 0 llas21  mindestuberschuss 600 abschaltuberschuss 800 lademodus 4 (LV1) at 1248 loadvars loadvars.sh
2021-12-22 13:05:41: pv1watt -43 pv2watt -202 pvwatt -245 ladeleistung 0 llalt 0 nachtladen 1 nachtladen 1 minimalA 6 maximalA 32 (LV1) at 1247 loadvars loadvars.sh
2021-12-22 13:05:41: EVU RET: 0 (LV2) at 21 main modules/bezug_carlogavazzilan/main.sh
2021-12-22 13:05:41: **** Regulation loop start **** (LV1) at 50 main /var/www/html/openWB/regel.sh
2021-12-22 13:05:41: PID: 18411: root: EVU Einspeisung: 3367135.640862952
2021-12-22 13:05:41: PID: 18411: root: EVU Bezug: 2032753.2769444445
2021-12-22 13:05:41: PID: 18411: root: EVU Watt: -4004249.6999999997
2021-12-22 13:05:41: PID: 18411: root: Carlo Gavazzi Leistung[W]: -4004249.6999999997
2021-12-22 13:05:41: PID: 18411: root: simcount Zwischenergebnisse atkuelle Berechnung: Import: 7317911797 Export: 12121688307.106627 Power: -4004249.6999999997
2021-12-22 13:05:41: PID: 18411: root: simcount Ergebnis: Bezug[Wh]: 2032753.2769444445, Einspeisung[Wh]: 3367135.640862952
2021-12-22 13:05:41: PID: 18411: root: simcount aufsummierte Energie: Bezug[Ws]: 7317911797, Einspeisung[Ws]: 12121688307.106627
2021-12-22 13:05:41: PID: 18411: root: simcount Gesamtenergie im Zeitintervall: -34863105.10662557
2021-12-22 13:05:41: PID: 18411: root: simcount Berechnungsgrundlage: vergangene Zeit [s]9.054787874221802, vorherige Leistung[W]: -3696230, aktuelle Leistung[W]: -4004249.6999999997
2021-12-22 13:05:41: PID: 18411: root: simcount Zwischenergebnisse letzte Berechnung: Import: 7317911797 Export: 12086825202 Power: -3696230
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [500]
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Getting transaction 4
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Adding transaction 4
2021-12-22 13:05:41: PID: 18411: pymodbus.factory: Factory Response[ReadInputRegistersResponse: 4]
2021-12-22 13:05:41: PID: 18411: pymodbus.framer.socket_framer: Processing: 0x0 0x4 0x0 0x0 0x0 0x5 0x1 0x4 0x2 0x1 0xf4
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: RECV: 0x0 0x4 0x0 0x0 0x0 0x5 0x1 0x4 0x2 0x1 0xf4
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: SEND: 0x0 0x4 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0x33 0x0 0x1
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Running transaction 4
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\x02W', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\x00\xc1', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\x021', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [561, 0, 193, 0, 599, 0]
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Getting transaction 3
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Adding transaction 3
2021-12-22 13:05:41: PID: 18411: pymodbus.factory: Factory Response[ReadInputRegistersResponse: 4]
2021-12-22 13:05:41: PID: 18411: pymodbus.framer.socket_framer: Processing: 0x0 0x3 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x2 0x31 0x0 0x0 0x0 0xc1 0x0 0x0 0x2 0x57 0x0 0x0
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: RECV: 0x0 0x3 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x2 0x31 0x0 0x0 0x0 0xc1 0x0 0x0 0x2 0x57 0x0 0x0
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: SEND: 0x0 0x3 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0xc 0x0 0x6
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Running transaction 3
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\xfc\xbc', b'\xff\xff']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\x00\xd9', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\x00\x07', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [7, 0, 217, 0, 64700, 65535]
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Getting transaction 2
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Adding transaction 2
2021-12-22 13:05:41: PID: 18411: pymodbus.factory: Factory Response[ReadInputRegistersResponse: 4]
2021-12-22 13:05:41: PID: 18411: pymodbus.framer.socket_framer: Processing: 0x0 0x2 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x0 0x7 0x0 0x0 0x0 0xd9 0x0 0x0 0xfc 0xbc 0xff 0xff
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: RECV: 0x0 0x2 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x0 0x7 0x0 0x0 0x0 0xd9 0x0 0x0 0xfc 0xbc 0xff 0xff
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: SEND: 0x0 0x2 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0x12 0x0 0x6
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Running transaction 2
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Current transaction state - TRANSACTION_COMPLETE
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\t:', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\t=', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [b'\t@', b'\x00\x00']
2021-12-22 13:05:41: PID: 18411: pymodbus.payload: [2368, 0, 2365, 0, 2362, 0]
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'PROCESSING REPLY' to 'TRANSACTION_COMPLETE'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Getting transaction 1
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Adding transaction 1
2021-12-22 13:05:41: PID: 18411: pymodbus.factory: Factory Response[ReadInputRegistersResponse: 4]
2021-12-22 13:05:41: PID: 18411: pymodbus.framer.socket_framer: Processing: 0x0 0x1 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x9 0x40 0x0 0x0 0x9 0x3d 0x0 0x0 0x9 0x3a 0x0 0x0
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: RECV: 0x0 0x1 0x0 0x0 0x0 0xf 0x1 0x4 0xc 0x9 0x40 0x0 0x0 0x9 0x3d 0x0 0x0 0x9 0x3a 0x0 0x0
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'WAITING FOR REPLY' to 'PROCESSING REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Changing transaction state from 'SENDING' to 'WAITING FOR REPLY'
2021-12-22 13:05:41: PID: 18411: pymodbus.client.sync: New Transaction state 'SENDING'
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: SEND: 0x0 0x1 0x0 0x0 0x0 0x6 0x1 0x4 0x0 0x0 0x0 0x6
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Running transaction 1
2021-12-22 13:05:41: PID: 18411: pymodbus.transaction: Current transaction state - IDLE
2021-12-22 13:05:41: PID: 18411: root: Komponente Carlo Gavazzi Zähler auslesen.
2021-12-22 13:05:41: PID: 18411: root: Start device reading {'componentNone': <modules.carlo_gavazzi.counter.CarloGavazziCounter object at 0x75fd78b0>}
2021-12-22 13:05:41: PID: 18411: root: carlo gavazzi IP-Adresse: 192.168.110.11
2021-12-22 13:05:33: uberschuss 3696230 wattbezug -3696230 ladestatus 0 llsoll 0 pvwatt -244 mindestuberschussphasen 600 wattkombiniert 3696230 schaltschwelle -150 (LV2) at 558 main /var/www/html/openWB/regel.sh
2021-12-22 13:05:33: anzahlphasen 1 (LV1) at 557 main /var/www/html/openWB/regel.sh
2021-12-22 13:05:31: chargestatlp1 0	chargestatlp2 0	chargestatlp3 0 (LV1) at 1254 loadvars loadvars.sh
2021-12-22 13:05:31: plugstatlp1 0	plugstatlp2 1	plugstatlp3 0 (LV1) at 1253 loadvars loadvars.sh
2021-12-22 13:05:31: lp1enabled 1	lp2enabled 1	lp3enabled 1 (LV1) at 1252 loadvars loadvars.sh
2021-12-22 13:05:31: EVU 1:V/37093A 2: V/12124A 3: V/38666A (LV1) at 1251 loadvars loadvars.sh
2021-12-22 13:05:31: lla3 0	llv3 236.2	llas13 0 llas23  soclp1 53 soclp2 53 (LV1) at 1250 loadvars loadvars.sh
2021-12-22 13:05:31: lla2 0	llv2 236.6	llas12 0 llas22  sofortll 18 hausverbrauch 0 wattbezug -3696230 uberschuss 3696230 (LV1) at 1249 loadvars loadvars.sh
2021-12-22 13:05:31: lla1 0	llv1 237.2	llas11 0 llas21  mindestuberschuss 600 abschaltuberschuss 800 lademodus 4 (LV1) at 1248 loadvars loadvars.sh
2021-12-22 13:05:31: pv1watt -43 pv2watt -201 pvwatt -244 ladeleistung 0 llalt 0 nachtladen 1 nachtladen 1 minimalA 6 maximalA 32 (LV1) at 1247 loadvars loadvars.sh
LenaK
Beiträge: 1156
Registriert: Fr Jan 22, 2021 6:40 am

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von LenaK »

Danke für Deine Rückmeldung.
Wie sieht es mit Frequenz, Spannungen und Strömen aus? Passen die Werte?
aiole
Beiträge: 7220
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von aiole »

Hallo - Danke für den Support.

Nach Wiedereinspielen der nightly anbei die viel zu hohen EVU-Werte während 1p-Ladens (LP2 - smartWB).
Uups - die Spannungen, Ampere und auch die Leistungen bei EVU (rot) sind viel zu hoch. Die Frequenz ist ok.
An den LP (blau) passt alles.
VG
IMG_20211224_002909.png
IMG_20211224_002940.png
yankee
Beiträge: 481
Registriert: Sa Mai 16, 2020 11:34 am

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von yankee »

Potentiell gefixt durch #1861

Wenn du die Möglichkeit dazu hast, bitte testen.
aiole
Beiträge: 7220
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von aiole »

Danke Yankee. Ich versuche Deinen PR, nach dem update auf nightly erstmal manuell (SSH habe ich) einzutragen und zu testen.
aiole
Beiträge: 7220
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von aiole »

Hey - Danke für den Fix und für's schnelle Mergen. Die Werte sehen bis jetzt top aus. Ich beobache noch etwas, bin aber schon sehr zuversichtlich. Grazie Mille!
aiole
Beiträge: 7220
Registriert: Mo Okt 08, 2018 4:51 pm

Re: Probleme bei EVU-Modul Carlo Gavazzi EM24 LAN

Beitrag von aiole »

So - also das Modul ist wieder funktionstüchtig => gefixed
Danke!

Leider betraf der Bug mein Produktivsystem (nur dort gibt es den Gavazzi), was bei 2x 5min-Einspielung der Bug-Version zu massiv erhöhten Zählerständen führte (und die Logs dann mit den falschen Werten fortgeschrieben wurden/werden). Damit ist das komplette Jahreslogging der EVU-Werte leider im Eimer.
Ich habe den internen EVU-Zähler nun per MQTT-Manipulation von seinen 3,5 Mio Wh heruntergeholt, nicht dass mich noch ein Pufferüberlauf blüht.
Antworten