72_FRITZBOX.pm ab Version 08.00.00

Begonnen von elektron-bbs, 09 Oktober 2024, 17:28:16

Vorheriges Thema - Nächstes Thema

elektron-bbs

Zitat von: JoWiemann am 30 Oktober 2025, 15:16:42hm, die FB gibt die Daten vernünftig zurück. In Deinem List wird das Reading box_ppp__IPv4_Extern auch aktualisiert.

Ich denke mal das die Readings bei ihm nicht aktualisiert werden. Schau mal genau auf die Uhrzeit.

Bei mir sieht es auf einer FRITZ!Box Fon WLAN 7390 und FRITZ!Box 7590 ähnlich aus. Sämtliche Readings box_ppp_.* werden seit dem Update auf die Version 08.20.07 nicht mehr aktualisiert:

     2025-10-30 15:50:26   box_moh         default
     2025-10-25 11:17:41   box_ppp_IPv4_Extern 91.41.209.142
     2025-10-25 11:17:41   box_ppp_connect Connected
     2025-10-25 11:17:41   box_ppp_connection_Trigger AlwaysOn
     2025-10-25 11:17:41   box_ppp_connection_Type IP_Routed
     2025-10-25 11:17:41   box_ppp_last_connect_err ERROR_NONE
     2025-10-25 11:17:41   box_ppp_mac_Address 44:4e:6d:67:b6:2f
     2025-10-25 11:17:41   box_ppp_name    internet
     2025-10-25 11:17:41   box_ppp_uptimeConnect 666247 sec = 7T 17:04:07
     2025-10-30 15:50:26   box_pwr_DSL_24avg 100
Intel(R) Atom(TM) CPU N270 mit 2 SIGNALduino nanoCC1101 + ESPEasy 2x serial server SIGNALduino nanoCC1101, Raspberry Pi 2 mit 2 CUL Stackable CC1101, Raspberry Pi 3 mit SIGNALduino radino + nano328 + 2 x SIGNAL-ESP CC1101 + 2 x rf_Gateway

JoWiemann

#241
Hallo,

ist bei mir nicht so. Anbei eine Version "08.20.07b Beta" mit einem zusätzlichen Log-Eintrag mit verbose 3. Bitte einmal mit dieser Version testen. Vielen Dank.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

postman

Hallo,
keine Änderung mit der Version.
Anbei der Logauszug nach dem Neustart von FHEM für die Fritzbox:
2025.10.30 20:20:31 3: [FritzBox | 7590 | 154.08.20 | Readout_Run_Web_TR064.7940] - BASIC:getting info: wanpppconnUm das Ganze etwas besser testen zu können habe ich versuchsweise mal eine zweite Fritzbox angelegt.
In dieser werden gar keine box_ppp_... Readings mehr angelegt. Der Bereich zwischen box_moh und box_rateDown fehlt ganz.
Installiert ist auf der Fritzbox das OS 8.20.
Gruß
Uwe
Raspberry Pi Version 2 QUAD-CORE CPU und 1 GB RAM, CUL V3 868 MHz,  stapelbarer CC1101 (SCC) 433 MHz, Enocean-Stick,Jeelink-Stick, BSB-Lanadapter

Spruch eines Ausbilders: Theorie ist, wenn man alles weiss und nichts funktioniert; Praxis ist, wenn alles funktioniert und keiner weiss warum...

JoWiemann

Hallo Postman,

dann brauche ich ein Log mit verbose 4. Ich bekomme das Verhalten bei mir nicht reproduziert.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM

postman

Hallo,
ich habe Dir das Log als Textfile angehängt, ich denke, für das Codefenster ist das zu viel.

Gruß
Uwe
Raspberry Pi Version 2 QUAD-CORE CPU und 1 GB RAM, CUL V3 868 MHz,  stapelbarer CC1101 (SCC) 433 MHz, Enocean-Stick,Jeelink-Stick, BSB-Lanadapter

Spruch eines Ausbilders: Theorie ist, wenn man alles weiss und nichts funktioniert; Praxis ist, wenn alles funktioniert und keiner weiss warum...

elektron-bbs

#245
Die Stelle, warum es nicht mehr funktioniert, habe ich m.E. lokalisiert. Ich habe mal etwas im Quellcode ab Zeile 7930 herumexperimentiert:
       my @conn = ("ip", "ppp");
       # my @conn = ();

       # push (@conn, "ip")  if ($hash->{TR064control}{WANIPConnection}{active} == 1);
       # push (@conn, "ppp") if ($hash->{TR064control}{WANPPPConnection}{active} == 1);
# FRITZBOX_Log $hash, 1, "conn[0] = $conn[0]";
# FRITZBOX_Log $hash, 1, "conn[1] = $conn[1]";

       for (my $i = 0; $i < @conn; $i++) {
# FRITZBOX_Log $hash, 1, "i = $i";

Die Logausgaben sahen danach so aus:
2025.10.31 12:13:15 1: [FritzBox_7390 | 7390 | 84.06.88 | Readout_Run_Web_TR064.7935] - ERROR:conn[0] = ppp
2025.10.31 12:13:15 1: PERL WARNING: Use of uninitialized value $conn[1] in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 7936.
2025.10.31 12:13:15 1: [FritzBox_7390 | 7390 | 84.06.88 | Readout_Run_Web_TR064.7936] - ERROR:conn[1] =
2025.10.31 12:13:15 1: [FritzBox_7390 | 7390 | 84.06.88 | Readout_Run_Web_TR064.7939] - ERROR:i = 0

2025.10.31 12:13:23 1: [FritzBox_7590 | 7590 | 154.08.20 | Readout_Run_Web_TR064.7935] - ERROR:conn[0] = ppp
2025.10.31 12:13:23 1: PERL WARNING: Use of uninitialized value $conn[1] in concatenation (.) or string at ./FHEM/72_FRITZBOX.pm line 7936.
2025.10.31 12:13:23 1: [FritzBox_7590 | 7590 | 154.08.20 | Readout_Run_Web_TR064.7936] - ERROR:conn[1] =
2025.10.31 12:13:23 1: [FritzBox_7590 | 7590 | 154.08.20 | Readout_Run_Web_TR064.7939] - ERROR:i = 0

Im list der Fritzbox gibt es 'WANIPConnection' zweimal (einmal active: 1 und einmal active: 0):
   IGDcontrol:
     WANIPConnection:
       action     GetStatusInfo
       active     1
       control    WANIPConn1
       igd        1
       service    WANIPConnection:1

   TR064control:
    WANIPConnection:
       action     GetInfo
       active     0
       control    wanipconnection1
       igd        0
       service    WANIPConnection:1

'WANPPPConnection' nur einmal:
   TR064control:
     WANPPPConnection:
       action     GetInfo
       active     1
       control    wanpppconn1
       igd        0
       service    WANPPPConnection:1

Nachdem ich den vorhergehenden Zustand mit my @conn = ("ip", "ppp"); wiederhergestellt habe, werden die Readings wieder aktualisiert. Das Verhalten ist bei beiden Fritzboxen identisch. Den kompletten Zusammenhang kann ich allerdings nicht erkennen,
Intel(R) Atom(TM) CPU N270 mit 2 SIGNALduino nanoCC1101 + ESPEasy 2x serial server SIGNALduino nanoCC1101, Raspberry Pi 2 mit 2 CUL Stackable CC1101, Raspberry Pi 3 mit SIGNALduino radino + nano328 + 2 x SIGNAL-ESP CC1101 + 2 x rf_Gateway

postman

Hallo,
durch die Änderung in Zeile 7930 scheint es zu funktionieren, aber ist das so auch dauerhaft?

Gruß
Uwe
Raspberry Pi Version 2 QUAD-CORE CPU und 1 GB RAM, CUL V3 868 MHz,  stapelbarer CC1101 (SCC) 433 MHz, Enocean-Stick,Jeelink-Stick, BSB-Lanadapter

Spruch eines Ausbilders: Theorie ist, wenn man alles weiss und nichts funktioniert; Praxis ist, wenn alles funktioniert und keiner weiss warum...

elektron-bbs

Ich habe nur mit der vorhergehenden Version 08.20.06 verglichen. Da war es noch so.
Intel(R) Atom(TM) CPU N270 mit 2 SIGNALduino nanoCC1101 + ESPEasy 2x serial server SIGNALduino nanoCC1101, Raspberry Pi 2 mit 2 CUL Stackable CC1101, Raspberry Pi 3 mit SIGNALduino radino + nano328 + 2 x SIGNAL-ESP CC1101 + 2 x rf_Gateway

JoWiemann

Hallo,

ich schaue mir das Montag an. Vorher schaffe ich es nicht. Danke erst einmal für die Vorarbeiten.

Grüße Jörg
Jörg Wiemann

Slave: RPi B+ mit 512 MB, COC (868 MHz), CUL V3 (433.92MHz SlowRF); FHEMduino, Aktuelles FHEM

Master: CubieTruck; Debian; Aktuelles FHEM