FHEM Forum

FHEM - Hardware => FRITZ!Box => Thema gestartet von: Elektrolurch am 11 Februar 2023, 10:37:21

Titel: heutiges Update auf 27199 2023-02-10
Beitrag von: Elektrolurch am 11 Februar 2023, 10:37:21
Seit dem Update bekomme ich nun folgende Meldungen im log:

2023.02.11 10:07:35 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.
2023.02.11 10:07:35 1: stacktrace:
2023.02.11 10:07:35 1:     main::__ANON__                      called by ./FHEM/72_FRITZBOX.pm (2503)
2023.02.11 10:07:35 1:     main::FRITZBOX_Readout_Run_Web      called by FHEM/Blocking.pm (194)
2023.02.11 10:07:35 1:     main::BlockingStart                 called by FHEM/Blocking.pm (107)
2023.02.11 10:07:35 1:     main::BlockingCall                  called by ./FHEM/72_FRITZBOX.pm (1351)
2023.02.11 10:07:35 1:     main::FRITZBOX_Readout_Start        called by fhem.pl (3501)
2023.02.11 10:07:35 1:     main::HandleTimeout                 called by fhem.pl (705)
2023.02.11 10:07:35 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.
2023.02.11 10:07:35 1: stacktrace:


Elektrolurch
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: JoWiemann am 11 Februar 2023, 12:18:15
Zitat von: Elektrolurch am 11 Februar 2023, 10:37:21
Seit dem Update bekomme ich nun folgende Meldungen im log:

2023.02.11 10:07:35 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.


Elektrolurch

Hallo Elektrolurch,

welche FritzBox und welches FritzOS liegt vor?

Probier bitte einmal die angehängte Version aus.

Grüße Jörg
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: elektron-bbs am 11 Februar 2023, 14:24:29
Ich hatte die Perl-Warnungen auch:
2023.02.11 11:44:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.
2023.02.11 11:49:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.
2023.02.11 11:54:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.
2023.02.11 11:59:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2503.


VERSION 07.50.6
FRITZ!Box Fon WLAN 7390, FRITZ!Box 7590 und FRITZ!WLAN Repeater 310

Deine jetzige Änderung halte ich nicht für günstig, da die Abfrage
            } elsif ($_->{ethernetport}) {


ja bereits in Zeile 2466 erfolgt und dort verarbeitet wird.

Ich habe die Zeile geändert:
               $dName .= $_->{ethernetport} if ($_->{ethernetport});


Ich vermute aber, das sie auch komplett entfernt werden könnte.

Außerdem fiel mir folgende Zeile auf:
Zeile 2468 alt              $dName .= "" . $_->{ethernetport};
Zeile 2468 neu              $dName .= $_->{ethernetport};

Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: JoWiemann am 11 Februar 2023, 15:02:33
Zitat von: elektron-bbs am 11 Februar 2023, 14:24:29
ja bereits in Zeile 2466 erfolgt und dort verarbeitet wird.

Hallo,

danke für den Hinweis. Das war ja doppelter Code ohne Sinn und Verstand.

Ich habe das jetzt raus genommen.

Anbei eine neue Version zum Testen.

Grüße Jörg
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: JoWiemann am 11 Februar 2023, 15:08:40
[quote author=elektron-bbs link=topic=132146.msg1263371#msg1263371 date=1676121869]
VERSION 07.50.6
FRITZ!Box Fon WLAN 7390, FRITZ!Box 7590 und FRITZ!WLAN Repeater 310

[/quote]

Sind alle drei Fritz Geräte in Fhem als Devices definiert und wenn ja, welches der Devices hat den Fehler generiert. Ich habe eine 7590 und einen Repeater 1750E, die beide den Fehler nicht gezeigt haben.

Grüße Jörg
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: RalfRog am 11 Februar 2023, 15:57:48
Hab die VERSION 07.50.6 (a Beta) noch nicht probiert.
Hast du dort schon das Problem  get <name> lanDeviceInfo beachtet?

Gruß Ralf
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: JoWiemann am 11 Februar 2023, 16:47:19
Zitat von: RalfRog am 11 Februar 2023, 15:57:48
Hab die VERSION 07.50.6 (a Beta) noch nicht probiert.
Hast du dort schon das Problem  get <name> lanDeviceInfo beachtet?

Gruß Ralf

Ja, sollte nicht mehr rum zicken.
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: elektron-bbs am 11 Februar 2023, 16:56:36
Zitat von: JoWiemann am 11 Februar 2023, 15:08:40
Sind alle drei Fritz Geräte in Fhem als Devices definiert und wenn ja, welches der Devices hat den Fehler generiert. Ich habe eine 7590 und einen Repeater 1750E, die beide den Fehler nicht gezeigt haben.

Ja, alle 3 Geräte sind definiert. Welches der Geräte der Verursacher war, bin ich mir nicht 100%ig sicher, vermutlich die 7390. Ich hatte mir eine Log-Zeile eingebaut:
2023.02.11 12:17:40 3: FRITZBOX!FRITZ!Box Fon WLAN 7390
2023.02.11 12:17:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2504.
2023.02.11 12:17:40 3: FRITZBOX!FRITZ!Box Fon WLAN 7390
2023.02.11 12:19:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:19:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:20:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:23:40 3: FRITZBOX!FRITZ!Box Fon WLAN 7390
2023.02.11 12:23:40 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2504.
2023.02.11 12:24:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:24:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:27:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:29:31 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:29:31 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:29:41 3: FRITZBOX!FRITZ!Box Fon WLAN 7390
2023.02.11 12:29:41 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 2504.
2023.02.11 12:34:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:34:30 3: FRITZBOX!FRITZ!Box 7590
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310
2023.02.11 12:34:40 3: FRITZBOX!FRITZ!WLAN Repeater 310


Schätzungsweise war es dieses Reading, das ist in der eben geladenen Version "07.50.6a Beta" nicht mehr vorhanden:
     2023-02-11 16:08:57   mac_00_15_AF_1D_3A_1B inactive


Aufgefallen ist mir noch die Änderung dieser Readings z.B. bei der 7590:
     2023-02-11 16:08:04   mac_0E_96_D7_32_23_A3 fritz.repeater [landevice8389] (144 Mbit/s)
     2023-02-11 16:18:18   mac_0E_96_D7_32_23_A3 fritz.repeater [landevice8389] (connection: speed)

     2023-02-11 16:08:04   mac_44_4E_6D_67_B6_32 fritz.box [landevice5667]
     2023-02-11 16:18:18   mac_44_4E_6D_67_B6_32 fritz.box [landevice5667] (connection: speed)


Wahrscheinlich erfassen diese ifs nicht alle Zustände:
               $dName = "1 Gbit/s"    if $_->{speed} eq "1000";
               $dName = $_->{speed} . " Mbit/s"   if $_->{speed} ne "1000" && $_->{speed} ne "0";
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: JoWiemann am 11 Februar 2023, 17:35:20
Zitat von: elektron-bbs am 11 Februar 2023, 16:56:36
Aufgefallen ist mir noch die Änderung dieser Readings z.B. bei der 7590:
     2023-02-11 16:08:04   mac_0E_96_D7_32_23_A3 fritz.repeater [landevice8389] (144 Mbit/s)
     2023-02-11 16:18:18   mac_0E_96_D7_32_23_A3 fritz.repeater [landevice8389] (connection: speed)

     2023-02-11 16:08:04   mac_44_4E_6D_67_B6_32 fritz.box [landevice5667]
     2023-02-11 16:18:18   mac_44_4E_6D_67_B6_32 fritz.box [landevice5667] (connection: speed)


Wahrscheinlich erfassen diese ifs nicht alle Zustände:
               $dName = "1 Gbit/s"    if $_->{speed} eq "1000";
               $dName = $_->{speed} . " Mbit/s"   if $_->{speed} ne "1000" && $_->{speed} ne "0";


Hallo,

mit der angehängten Version sollten da wieder die richtigen Infos stehen. (Diese Rückwärts Kompatibilität macht mich noch kirre)

Grüße Jörg
Titel: Antw:heutiges Update auf 27199 2023-02-10
Beitrag von: elektron-bbs am 11 Februar 2023, 20:44:11
Danke, ich denke, das passt jetzt wieder.