Wie geht man denn am besten vor, wenn der RS485 Adapter scheinbar nicht die korrekten Daten liefert?
Ich habe meinen Pi 3B mit dem aktuellen Image aufgesetzt und an unseren KOSTAL Pico 3 angeschlossen. Danach, wie beschrieben per 3 adrigen Kabel A,B und GND mit dem Adapter verbunden. Leider kommen aber keine Daten an. Das php.log liefert mir folgende Ausgabe:
Code: Alles auswählen
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 151
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 152
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 154
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 155
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 157
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 158
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 160
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 161
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 163
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 164
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 166
[09-Jun-2020 08:58:02 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 167
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 228
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 228
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 228
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 229
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 229
[09-Jun-2020 08:58:04 Europe/Berlin] PHP Warning: A non-numeric value encountered in /var/www/html/kostal_pico.php on line 229
Im solaranzeige.log stehen folgende Meldungen:
Code: Alles auswählen
09.06. 09:02:04 -InfluxDB => [
AC Spannung_R=0,Spannung_S=0,Spannung_T=0,Strom_R=0,Strom_S=0,Strom_T=0,Leistung_R=,Leistung_S=,Leistung_T=
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"
Service FehlerCode=,Status=,Fehler=,Strings=0,Phasen=0
Summen Wh_Heute=0,Wh_Gesamt_=0 ]
09.06. 09:02:04 -Daten => [ Array
(
[AC_Wh_Gesamt] => 0
[PV_Spannung_1] => 0
[PV_Strom_1] => 0
[PV_Leistung_1] =>
[PV_Spannung_2] => 0
[PV_Strom_2] => 0
[PV_Leistung_2] =>
[PV_Spannung_3] => 0
[PV_Strom_3] => 0
[PV_Leistung_3] =>
[AC_Spannung_R] => 0
[AC_Strom_R] => 0
[AC_Leistung_R] =>
[AC_Spannung_S] => 0
[AC_Strom_S] => 0
[AC_Leistung_S] =>
[AC_Spannung_T] => 0
[AC_Strom_T] => 0
[AC_Leistung_T] =>
[Modell] =>
[Strings] => 0
[Phasen] => 0
[Status] =>
[Fehler] =>
[FehlerCode] =>
[WattstundenGesamtHeute] =>
[AC_Leistung] => 0
[PV_Leistung] => 0
[Regler] => 21
[Objekt] => Wechselrichter
[Firmware] => 0
[Produkt] =>
[Timestamp] => 1591686124
[Monat] => 6
[Woche] => 24
[Wochentag] => Dienstag
[Datum] => 09.06.2020
[Uhrzeit] => 09:02:04
[InfluxAdresse] =>
[InfluxPort] => 8086
[InfluxUser] =>
[InfluxPassword] =>
[InfluxDBName] => solaranzeige
[InfluxDaylight] =>
[InfluxDBLokal] => solaranzeige
[InfluxSSL] =>
[Demodaten] =>
)
]
09.06. 09:02:04 -Daten nicht zur lokalen InfluxDB gesendet! info: array (
'url' => 'http://localhost/write?db=solaranzeige&precision=s',
'content_type' => 'application/json',
'http_code' => 400,
'header_size' => 813,
'request_size' => 570,
'filetime' => -1,
'ssl_verify_result' => 0,
'redirect_count' => 0,
'total_time' => 0.027483,
'namelookup_time' => 0.004356,
'connect_time' => 0.00476,
'pretransfer_time' => 0.005058,
'size_upload' => 413.0,
'size_download' => 544.0,
'speed_download' => 20148.0,
'speed_upload' => 15296.0,
'download_content_length' => 544.0,
'upload_content_length' => 413.0,
'starttransfer_time' => 0.027343,
'redirect_time' => 0.0,
'redirect_url' => '',
'primary_ip' => '::1',
'certinfo' =>
array (
),
'primary_port' => 8086,
'local_ip' => '::1',
'local_port' => 57982,
'http_version' => 2,
'protocol' => 1,
'ssl_verifyresult' => 0,
'scheme' => 'HTTP',
'appconnect_time_us' => 0,
'connect_time_us' => 4760,
'namelookup_time_us' => 4356,
'pretransfer_time_us' => 5058,
'redirect_time_us' => 0,
'starttransfer_time_us' => 27343,
'total_time_us' => 27483,
)