Umstellung von Pi 3 nach Pi4 4GB

Wenn mehr als ein Gerät an den Raspberry angeschlossen werden sollen. Z.B. ein Regler und ein Wechselrichter oder mehrere Wechselrichter. Das Maximum sind 6 Geräte pro Raspberry Pi.

Moderator: Ulrich

Roman-1
Beiträge: 40
Registriert: Di 26. Sep 2023, 21:52
Hat sich bedankt: 5 Mal

Umstellung von Pi 3 nach Pi4 4GB

Beitrag von Roman-1 »

Hallo, ich brauch mal wieder Eure Hilfe.
Nachdem mein Pi3 verstorben ist, habe ich eine funktionierende Solaranzeige mit 4 Convertern (QinHeng Electronics CH340 serial converter)
versucht auf den neuen Pi4 zu bringen. Es hat alles problemlos nur konnte er die Converter nicht mehr finden.
Nach ner Woche, hab ich es dann mit der Solaranzeige V5.1.3.-64 Bit versucht. Leider auch kein Erfolg.
Ich hänge jetzt mal ein paar Codeschnitzel an.

Auszug aus der log.php

Code: Alles auswählen

10-Aug-2024 13:19:14 Europe/Berlin] PHP Warning:  fopen(/dev/hauptzaehler): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
[10-Aug-2024 13:19:14 Europe/Berlin] PHP Warning:  fopen(/dev/waermepumpe): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
[10-Aug-2024 13:19:14 Europe/Berlin] PHP Warning:  fopen(/dev/heizstab): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 123
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 124
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 126
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 127
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 129
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 130
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 132
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 133
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 135
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 136
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 138
[10-Aug-2024 13:20:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 139
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 329
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 329
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 13:20:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 13:20:14 Europe/Berlin] PHP Warning:  fopen(/dev/hauptzaehler): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
[10-Aug-2024 13:20:14 Europe/Berlin] PHP Warning:  fopen(/dev/waermepumpe): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
[10-Aug-2024 13:20:15 Europe/Berlin] PHP Warning:  fopen(/dev/heizstab): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
Auszug aus der Solaranzeige.log

Code: Alles auswählen

10.08. 13:33:01    -Multi Regler Auslesen [Start].
10.08. 13:33:01    -Verarbeitung von: '1.user.config.php'   Regler: 21
10.08. 13:33:01 |----------------   Start  kostal_piko.php    --------------------- 
10.08. 13:33:01 +  -Die Daten werden ausgelesen...
10.08. 13:33:04    -InfluxDB  => [ AC Spannung_R=0,Spannung_S=0,Spannung_T=0,Strom_R=0,Strom_S=0,Strom_T=0,Leistung_R=0,Leistung_S=,Leistung_T=  1723289591
PV String1_Spannung=0,String2_Spannung=0,String3_Spannung=0,String1_Strom=0,String2_Strom=0,String3_Strom=0,String1_Leistung=,String2_Leistung=,String3_Leistung=,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0  1723289591
Batterie Spannung=0,Strom=0,Leistung=0  1723289591
Service FehlerCode=,Status=,Fehler=,Strings=0,Phasen=0  1723289591
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0  1723289591
 ]
10.08. 13:33:04    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=piko5_5&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 862,
  'request_size' => 717,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.008913,
  'namelookup_time' => 0.001607,
  'connect_time' => 0.002093,
  'pretransfer_time' => 0.002202,
  'size_upload' => 565.0,
  'size_download' => 592.0,
  'speed_download' => 74000.0,
  'speed_upload' => 70625.0,
  'download_content_length' => 592.0,
  'upload_content_length' => 565.0,
  'starttransfer_time' => 0.008859,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' => 
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 55634,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 2093,
  'namelookup_time_us' => 1607,
  'pretransfer_time_us' => 2202,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 8859,
  'total_time_us' => 8913,
)
10.08. 13:33:09    -InfluxDB  => [ AC Spannung_R=0,Spannung_S=0,Spannung_T=0,Strom_R=0,Strom_S=0,Strom_T=0,Leistung_R=0,Leistung_S=,Leistung_T=  1723289591
PV String1_Spannung=0,String2_Spannung=0,String3_Spannung=0,String1_Strom=0,String2_Strom=0,String3_Strom=0,String1_Leistung=,String2_Leistung=,String3_Leistung=,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0  1723289591
Batterie Spannung=0,Strom=0,Leistung=0  1723289591
Service FehlerCode=,Status=,Fehler=,Strings=0,Phasen=0  1723289591
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0  1723289591
 ]
10.08. 13:33:09    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=piko5_5&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 862,
  'request_size' => 717,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.011889,
  'namelookup_time' => 0.000147,
  'connect_time' => 0.000148,
  'pretransfer_time' => 0.000379,
  'size_upload' => 565.0,
  'size_download' => 592.0,
  'speed_download' => 53818.0,
  'speed_upload' => 51363.0,
  'download_content_length' => 592.0,
  'upload_content_length' => 565.0,
  'starttransfer_time' => 0.011764,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' => 
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 55634,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 148,
  'namelookup_time_us' => 147,
  'pretransfer_time_us' => 379,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 11764,
  'total_time_us' => 11889,
)
10.08. 13:33:14    -Multi-Regler-Ausgang. -4
10.08. 13:33:14    -OK. Datenübertragung erfolgreich.
10.08. 13:33:14 |----------------   Stop   kostal_piko.php     -------------------- 
10.08. 13:33:14    -Verarbeitung von: '2.user.config.php'   Regler: 34
10.08. 13:33:14 +  -WR_ID: 02
10.08. 13:33:14 |------------   Start  SDM630_meter.php  -- Regler 34 ------------ 
10.08. 13:33:14 XX -USB Port kann nicht geöffnet werden. [1]
10.08. 13:33:14 XX -Exit.... 
10.08. 13:33:14 |------------   Stop   SDM630_meter.php    ----------------------- 
10.08. 13:33:14    -Verarbeitung von: '3.user.config.php'   Regler: 50
10.08. 13:33:14 |------------   Start  SDM230_meter.php  ------------------------- 
10.08. 13:33:14 XX -USB Port kann nicht geöffnet werden. [1]
10.08. 13:33:14 XX -Exit.... 
10.08. 13:33:14 |------------   Stop   SDM230_meter.php    ----------------------- 
10.08. 13:33:15    -Verarbeitung von: '4.user.config.php'   Regler: 34
10.08. 13:33:15 +  -WR_ID: 04
10.08. 13:33:15 |------------   Start  SDM630_meter.php  -- Regler 34 ------------ 
10.08. 13:33:15 XX -USB Port kann nicht geöffnet werden. [1]
10.08. 13:33:15 XX -Exit.... 
10.08. 13:33:15 |------------   Stop   SDM630_meter.php    ----------------------- 
10.08. 13:33:16    -Multi Regler Auslesen [Stop].
lsusb

Code: Alles auswählen

pi@solaranzeige:~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 006: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 004: ID 1a86:7523 QinHeng Electronics CH340 serial converter
Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub]
pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
Hier habe ich immer einen Converter hinzugefügt. Bei der 3. Abfrage wurde mir anstatt ttyUSB2 der USB0 angezeigt. ?

Code: Alles auswählen

pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
insgesamt 0
drwxr-xr-x 2 root root 60 10. Aug 12:17 .
drwxr-xr-x 4 root root 80 10. Aug 12:17 ..
lrwxrwxrwx 1 root root 13 10. Aug 12:17 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB0 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.1"
pi@solaranzeige:~ $
----------------------------
pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
insgesamt 0
drwxr-xr-x 2 root root 60 10. Aug 12:17 .
drwxr-xr-x 4 root root 80 10. Aug 12:17 ..
lrwxrwxrwx 1 root root 13 10. Aug 12:17 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB1
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB1 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.2"
	---------------------

pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
insgesamt 0
drwxr-xr-x 2 root root 60 10. Aug 12:17 .
drwxr-xr-x 4 root root 80 10. Aug 12:17 ..
lrwxrwxrwx 1 root root 13 10. Aug 12:17 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB0
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB2 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.3"


-------------------------
pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
insgesamt 0
drwxr-xr-x 2 root root 60 10. Aug 12:17 .
drwxr-xr-x 4 root root 80 10. Aug 12:17 ..
lrwxrwxrwx 1 root root 13 10. Aug 12:17 usb-1a86_USB_Serial-if00-port0 -> ../../ttyUSB3
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB3 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.4"
udevadm info

Code: Alles auswählen

pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB0 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.1"
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB1 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.2"
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB2 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.3"
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB3 | grep '{devpath}' | head -n1
    ATTRS{devpath}=="1.1.4"
rule99

Code: Alles auswählen

SUBSYSTEM=="tty", ATTRS{{devpath}=="1.1.1", SYMLINK+="piko5", OWNER="pi"
SUBSYSTEM=="tty", ATTRS{{devpath}=="1.1.2", SYMLINK+="hauptzaehler", OWNER="pi"
SUBSYSTEM=="tty", ATTRS{{devpath}=="1.1.3", SYMLINK+="waermepumpe", OWNER="pi"
SUBSYSTEM=="tty", ATTRS{{devpath}=="1.1.4", SYMLINK+="heizstab", OWNER="pi"
.user.config.php

Code: Alles auswählen

/  USB Device      USB Device      USB Device      USB Device      USB Device
******************************************************************************/
//
//  USB Device, die automatisch erkannt wurde...  bitte nicht ändern
//  Wird nicht bei der Multi-Regler-Version benötigt.
//
$USBRegler         = "";
//
//  Nur wenn die automatischer Erkennung nicht funktioniert hat, bitte manuell
//  eintragen. Im Normalfall wird das nicht benötigt. So lassen wie es ist.
//  ---  Nur bei Multi-Regler-Version  Nur bei Multi-Regler-Version  ----
//  Bei einer Multi-Regler-Version muss hier der Devicename manuell
//  eingetragen werden.
//
$USBDevice = "dev/piko5";
//
//  Wird nur in seltenen Fällen gebraucht.
//  $SerielleGeschwindigkeit = "19200";
/*****************************************************************************/
//
/******************************************************************************
//  Raspberry Pi   Hardware   Raspberry Pi   Hardware   Raspberry Pi   Hardware
******************************************************************************/
// Bitte nicht ändern, wird automatisch ermittelt.
//
$Platine = "Raspberry Pi 4 Model B Rev 1.5";
//
/******************************************************************************
Ich komme einfach nicht weiter, und jetzt auch noch den Überblick verloren.

Vielen Dank
Roman

TeamO
Beiträge: 1248
Registriert: Mo 22. Jun 2020, 08:58
Wohnort: Ulm / Neu-Ulm
Hat sich bedankt: 15 Mal
Danksagung erhalten: 128 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von TeamO »

Beachte mal das hier viewtopic.php?p=21249
Gruß Timo

Auflistung Geräte/Dashboards/Anschlussart
Datenbankfelder der einzelnen Geräte
GANZ WICHTIG: Überblick der vorhandenen Anleitungen

Fertige Komplett-Systeme gibt es hier anfragen[AT]bauer-timo[.]de

Tibber Invite (100% Öko-Strom + 50€ Bonus)

andreas_n
Beiträge: 1709
Registriert: Do 25. Jun 2020, 13:40
Hat sich bedankt: 16 Mal
Danksagung erhalten: 78 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von andreas_n »

seit wann ist eigentlich der Chipsatz ch340 implementiert?

Wenn das Eigennachrüstung ist,dann alle Adapter raus und einzeln suchen, mit ttyUSBx definieren,erst dann den nächsten stecken,dabei drauf achten,dass der erste weiterhin Daten liefert
SMA Tripower 8/Growatt MIN 3000 TL-XE/1500S/SPH 4600,4 ARK LV,10kWh
ELWA DC WW Puffer m. 300L/Gesamt PV Leistung 20,5kWp gesteuert mit Pi4 und Pi5
hier stehen alle Geräte>> viewtopic.php?f=13&t=1069

Roman-1
Beiträge: 40
Registriert: Di 26. Sep 2023, 21:52
Hat sich bedankt: 5 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von Roman-1 »

Hallo.
ttyUSB hat leider nichts gebracht.
In der .user.config.php habe ich das ttyUSB auch eingefügt.
Ist der _ eigentlich notwendig bei Buchstaben??
ttyUSB_Tracer oder ttyUSB100 usw
Dann werde ich mal in den Keller gehen und umstecken.
Melde mich wieder

andreas_n
Beiträge: 1709
Registriert: Do 25. Jun 2020, 13:40
Hat sich bedankt: 16 Mal
Danksagung erhalten: 78 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von andreas_n »

war dein pi3 system auf buster ( 4.x.x) aufgesetzt?

dann musst du den symlink anpassen
SMA Tripower 8/Growatt MIN 3000 TL-XE/1500S/SPH 4600,4 ARK LV,10kWh
ELWA DC WW Puffer m. 300L/Gesamt PV Leistung 20,5kWp gesteuert mit Pi4 und Pi5
hier stehen alle Geräte>> viewtopic.php?f=13&t=1069

Roman-1
Beiträge: 40
Registriert: Di 26. Sep 2023, 21:52
Hat sich bedankt: 5 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von Roman-1 »

Ich hatte auf dem Pi3 die Solaranzeige_V5.1.3-32 Bit.
Auf dem Pi4 wurde die 32 Bit Version problemlos erkannt und auch auf den Pi4 umgeschrieben.
Nur wurden die Concerter nicht erkannt und zugewiesen.
Deshalb hatte ich jetzt auch die 64 Bit aufgespielt.
---------------
jetzt habe ich nur den ersten Converter eingesteckt. Dieser wurde erkannt, allerding bringt er anscheined nicht alle Daten.

Code: Alles auswählen

[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 123
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 124
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 126
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 127
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 129
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 130
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 132
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 133
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 135
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 136
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 138
[10-Aug-2024 18:58:02 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 139
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 329
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 329
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 18:58:03 Europe/Berlin] PHP Warning:  A non-numeric value encountered in /var/www/html/kostal_pico.php on line 330
[10-Aug-2024 18:58:14 Europe/Berlin] PHP Warning:  fopen(/dev/ttyUSB_hauptzaehler): failed to open stream: No such file or directory in /var/www/html/phpinc/funktionen.inc.php on line 13
Hier ist der 2. Converter angeschlossen und nicht erkannt.

Code: Alles auswählen

10.08. 19:18:01    -Multi Regler Auslesen [Start].
10.08. 19:18:01    -Verarbeitung von: '1.user.config.php'   Regler: 21
10.08. 19:18:01 |----------------   Start  kostal_piko.php    --------------------- 
10.08. 19:18:01 +  -Die Daten werden ausgelesen...
10.08. 19:18:03    -InfluxDB  => [ AC Spannung_R=0,Spannung_S=0,Spannung_T=0,Strom_R=0,Strom_S=0,Strom_T=0,Leistung_R=0,Leistung_S=,Leistung_T=  1723310291
PV String1_Spannung=0,String2_Spannung=0,String3_Spannung=0,String1_Strom=0,String2_Strom=0,String3_Strom=0,String1_Leistung=,String2_Leistung=,String3_Leistung=,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0  1723310291
Batterie Spannung=0,Strom=0,Leistung=0  1723310291
Service FehlerCode=,Status=,Fehler=,Strings=0,Phasen=0  1723310291
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0  1723310291
 ]
10.08. 19:18:03    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=piko5_5&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 862,
  'request_size' => 717,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.006155,
  'namelookup_time' => 0.001478,
  'connect_time' => 0.001699,
  'pretransfer_time' => 0.001806,
  'size_upload' => 565.0,
  'size_download' => 592.0,
  'speed_download' => 98666.0,
  'speed_upload' => 94166.0,
  'download_content_length' => 592.0,
  'upload_content_length' => 565.0,
  'starttransfer_time' => 0.006065,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' => 
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 42954,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 1699,
  'namelookup_time_us' => 1478,
  'pretransfer_time_us' => 1806,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 6065,
  'total_time_us' => 6155,
)
10.08. 19:18:08    -InfluxDB  => [ AC Spannung_R=0,Spannung_S=0,Spannung_T=0,Strom_R=0,Strom_S=0,Strom_T=0,Leistung_R=0,Leistung_S=,Leistung_T=  1723310291
PV String1_Spannung=0,String2_Spannung=0,String3_Spannung=0,String1_Strom=0,String2_Strom=0,String3_Strom=0,String1_Leistung=,String2_Leistung=,String3_Leistung=,String1_Nummer="1",String2_Nummer="2",String3_Nummer="3",Leistung=0  1723310291
Batterie Spannung=0,Strom=0,Leistung=0  1723310291
Service FehlerCode=,Status=,Fehler=,Strings=0,Phasen=0  1723310291
Summen Wh_Heute=0,Wh_Gesamt=0,AC_Leistung_Gesamt=0,PV_Leistung_Gesamt=0  1723310291
 ]
10.08. 19:18:08    -Daten nicht zur lokalen InfluxDB gesendet! info: array (
  'url' => 'http://localhost/write?db=piko5_5&precision=s',
  'content_type' => 'application/json',
  'http_code' => 400,
  'header_size' => 862,
  'request_size' => 717,
  'filetime' => -1,
  'ssl_verify_result' => 0,
  'redirect_count' => 0,
  'total_time' => 0.009362,
  'namelookup_time' => 0.000158,
  'connect_time' => 0.000159,
  'pretransfer_time' => 0.000383,
  'size_upload' => 565.0,
  'size_download' => 592.0,
  'speed_download' => 65777.0,
  'speed_upload' => 62777.0,
  'download_content_length' => 592.0,
  'upload_content_length' => 565.0,
  'starttransfer_time' => 0.009239,
  'redirect_time' => 0.0,
  'redirect_url' => '',
  'primary_ip' => '::1',
  'certinfo' => 
  array (
  ),
  'primary_port' => 8086,
  'local_ip' => '::1',
  'local_port' => 42954,
  'http_version' => 2,
  'protocol' => 1,
  'ssl_verifyresult' => 0,
  'scheme' => 'HTTP',
  'appconnect_time_us' => 0,
  'connect_time_us' => 159,
  'namelookup_time_us' => 158,
  'pretransfer_time_us' => 383,
  'redirect_time_us' => 0,
  'starttransfer_time_us' => 9239,
  'total_time_us' => 9362,
)
10.08. 19:18:13    -Multi-Regler-Ausgang. -3
10.08. 19:18:13    -OK. Datenübertragung erfolgreich.
10.08. 19:18:13 |----------------   Stop   kostal_piko.php     -------------------- 
10.08. 19:18:14    -Verarbeitung von: '2.user.config.php'   Regler: 34
10.08. 19:18:14 +  -WR_ID: 02
10.08. 19:18:14 |------------   Start  SDM630_meter.php  -- Regler 34 ------------ 
10.08. 19:18:14 XX -USB Port kann nicht geöffnet werden. [1]
10.08. 19:18:14 XX -Exit.... 
10.08. 19:18:14 |------------   Stop   SDM630_meter.php    ----------------------- 
10.08. 19:18:16    -Multi Regler Auslesen [Stop].

Code: Alles auswählen

pi@solaranzeige:~ $ ls -la /dev/serial/by-id/
insgesamt 0
drwxr-xr-x 2 root root 60 10. Aug 18:17 .
drwxr-xr-x 4 root root 80 10. Aug 18:17 ..
lrwxrwxrwx 1 root root 13 10. Aug 18:17 usb-1a86_USB_Serial-if00-port0 -> ../../               ttyUSB1
And er 2."zuweisung devpath hat sich nichts verändert.
pi@solaranzeige:~ $ udevadm info -a -n /dev/ttyUSB1 | grep '{devpath}' | head -n1
ATTRS{devpath}=="1.1.2

andreas_n
Beiträge: 1709
Registriert: Do 25. Jun 2020, 13:40
Hat sich bedankt: 16 Mal
Danksagung erhalten: 78 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von andreas_n »

hmmm,unlogisch...was mich wundert,dass bei dir die CH340f Adapter laufen,mWn ist der Treiber nicht im .img drin.

versuch mal getreu der Anleitung von TeamO die rules zu ändern,bzw pass die x.user.configs an

also nicht symlink = waschmaschine sondern dev/ttyUSBx
SMA Tripower 8/Growatt MIN 3000 TL-XE/1500S/SPH 4600,4 ARK LV,10kWh
ELWA DC WW Puffer m. 300L/Gesamt PV Leistung 20,5kWp gesteuert mit Pi4 und Pi5
hier stehen alle Geräte>> viewtopic.php?f=13&t=1069

Roman-1
Beiträge: 40
Registriert: Di 26. Sep 2023, 21:52
Hat sich bedankt: 5 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von Roman-1 »

Hallo.
hat auch nichts gebracht.
Ich hab jetzt schon so viel Zeit mit den Convertern kaputt gemacht. Da kommen immer wieder Probleme
bei der Multi-regler-version.
Ich werde jetzt 4 andere Converter FTDI Chipsatz kaufen.
Was verwendet Ihr den da? Sind ja Preisunterschiede von 10 bis 20 Euro.

Und bevor ich es vergesse.
Ein schönes Wochende und vielen Dank
Roman

andreas_n
Beiträge: 1709
Registriert: Do 25. Jun 2020, 13:40
Hat sich bedankt: 16 Mal
Danksagung erhalten: 78 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von andreas_n »

hmm,

deiner Aussage nach ging das doch vorher...wenn das schon vorher bullseye (5.1.x) war...wie gesagt, mir ist die Aussage bekannt, wer den ch340f Chipsatz will (weil er hier erst zu spät mitgelesen hat, mitlesen wollte, der 340er evtl "billiger" war, "der geht doch auch" etc pp.), muss den passenden Treiber dafür installieren.

Als Konverter hab ICH diesen hier

https://www.reichelt.de/usb-2-0-konvert ... os_3&nbc=1
und der läuft und läuft und läuft...

es gibt aber auch die Ausführung
https://www.amazon.de/DSD-TECH-Konverte ... B07B416CPK

(von mir nicht getestet!!aber soll gehen, ist halt leichter zu verdrahten weil nur 1 Teil, hat auch LEDs)

es gibt auch den hier...
https://www.amazon.de/Serial-Converter- ... J94CYI3F7Y

gibts in der "Bucht" teilweise günstiger

ABER!! die haben alle die gleiche Seriennummer, via ttyUSBx soll das jetzt gehen nur hab ich das selber nie testen müssen, einer davon ist aber sehr wertvoll, weil LED Anzeige...dann sieht man bei Fehlersuche gleich, wo was faul ist.Und wer löten KANN, der baut sowas gleich in den WR Stecker mit rein

wichtig ist, das muss ein FTDI 232 Chipsatz sein..und dieses Thema wird seit x Jahren hier runter gekaut von nine2five, das ist so oft zu finden... und trotzdem kommt einer mit den 340ern ums Eck :lol:

wie gesagt, mein Kenntnisstand ist der wie beschrieben..340 vs ftdi

edit:seh ich grade... in dem Code Schnipsel gibts string1Leistung...bis3...alle Werte nur "xyz= ", also blank...nicht dass die php da abbricht weil diese Werte nicht gelesen werden (können), aber ich bin kein Kostal Experte...
SMA Tripower 8/Growatt MIN 3000 TL-XE/1500S/SPH 4600,4 ARK LV,10kWh
ELWA DC WW Puffer m. 300L/Gesamt PV Leistung 20,5kWp gesteuert mit Pi4 und Pi5
hier stehen alle Geräte>> viewtopic.php?f=13&t=1069

Roman-1
Beiträge: 40
Registriert: Di 26. Sep 2023, 21:52
Hat sich bedankt: 5 Mal

Re: Umstellung von Pi 3 nach Pi4 4GB

Beitrag von Roman-1 »

Guten Morgen.
Nachdem ich jetzt den Piko alleine versucht habe, bin ich wieder auf die Single-Version zurück gegangen.
Werde jetzt alle Geräte einzeln testen und dann vermutlich auf die andere converter umstellen.

Zurück zu „Multi-Regler-Version [ bis zu 6 Geräten an einem Raspberry Pi ]“

Wer ist online?

Mitglieder in diesem Forum: Sonstige [Bot] und 0 Gäste