Ragazzi secondo voi uno script init.d di questo tipo andrebbe bene per monitorare la connessione su OpenWrt? Purtroppo continua a cascare una o due volte al giorno e a non risalire da sola (nonostante abbia impostato option autoconnect '1' nella config network):

#!/bin/sh /etc/rc.common
START=99
boot(){
sleep 180
start
}
start(){
while true; do
ping -c 1 -W 5 8.8.4.4 > /dev/null 2>&1
if [ $? -eq 0 ]; then
if uqmi -d /dev/cdc-wdm0 --get-data-status | grep -q 'disconnected'; then ifdown wan && ifup wan; fi
fi
sleep 30
done
}

Purtroppo l'ultimo script che avevo creato mi ha mandato il modem in bootloop quindi se qualcuno di voi nota qualcosa di anche solo potenzialmente sbagliato non si faccia problemi a dirmelo. Grazie mille come sempre.

Marcin something like that? * * * * * if ! ping -q -c 1 -W 10 8.8.8.8 > /dev/null; then ifdown wan && ifup wan; fi (it runs every minute). Why not a script with the while loop? Thanks

ifup wan is enough , it will do first ifdown it self anyway ( and running them parrallel also not good )
I remember from old times , that never ending while loop makes memory leaks....
...And also in your script there was uqmi check ,if it says "disconnected" ... I belive in many cases even connection fails ,and there is no internet uqmi will still says conected....

    Marcin thanks for your explanation, I'm still new to the Linux and OpenWrt environment. I've changed it to * * * * * if ! ping -q -c 1 -W 10 8.8.8.8 > /dev/null; then ifup wan; fi. I hope this will fix these random disconnections I'm experiencing.

    EDIT: this doesn't seems to work. My router had a random disconnection, then the script executed its commands but only resulted in an unusable qmi wan. I had to manually restart it. I have modified like this hoping it just needs some time: * * * * * if ! ping -q -c 1 -W 10 8.8.8.8 > /dev/null; then sleep 30; ifdown wan; sleep 5; ifup wan; fi

    In this case 30+30 gives 1min ,so it is sure that it will execute one more time ,since wan will not go up in this time. When it starts ,it will down and up all the time...

    And random disconetions was ,becouse you havn't receive one ping ,so wan reconnects and was lack of internet in some seconds.
    Maybe instead this you should give c 2 in ping command....(this will do ping twice but not sure if only ona fali and it triggers)

      4gboy In che modo sei riuscito a fare l'upgrade? Grazie

      Buongiorno a tutti.
      È quasi un anno che vi leggo, grazie a voi ho acquistato ed "evoluto" due apparati al FW Nordic B11 del quale sono soddisfatto anche se OpenWrt mi tenta sempre di più.
      Recentemente con l'uscita della Nordic B12 ho letto che il fallimento di upgrade è dovuto al mancato aggiornamento del modulo del modem usando i framework di conversione (TIM to .... , Elisa to ...) .
      Mi chiedevo se convertendo l'apparato al fw TIM od Elisa e quindi lasciandogli eseguire i vari OTA, ci fosse un beneficio appunto sulla parte modem?
      All'occorrenza, siccome non ricordo se avessi già fatto eseguire gli OTA prima della conversione a Nordic B11, come posso verificare l'attuale versione del modem interno?
      Avendo già preventivamente saldato e verificato il funzionamento della seriale proprio per un eventuale installazione di OpenWrt, posso anche eseguire comandi diretti.
      Grazie in anticipo.

      • stich86 ha risposto a questo messaggio

        This command will show you your actual modem version:
        echo -e -n 'ATI\r' > /dev/ttyUSB1 && cat /dev/ttyUSB1

          @goleador seriamente ti stai reinventando la ruota?

          ci sono 2 ottimi sistemi che fanno watchdog, che senso ha? Capisco farsi la build leggera con ciò che serve, ma così ti stai solo creando problemi... IMHO ovviamente 😉

            xvalerix da B05 su Nordic viene realmente abilitatata l'aggregazione in Upload

              Marcin I'm sorry but I'm not sure I'm understanding what you are saying. The router disconnected because It randomly disconnects more or less once a day. That is why I've tried to create this script.

              stich86 non è che potresti dirmi quali sono? non saprei neanche dove cercare.

              • stich86 ha risposto a questo messaggio

                goleador se vai sul repo di @IceG ce watchdog-lite che fa quello che ti serve, ovvero se non pinga per tot volte un IP che dici tu effettua il restart della WAN

                Visto che per aggiornare Nordic alla B11-B12 bisogna fare troppi magheggi stavo pensando di passare ad Elisa, almeno quello si aggiorna e permette comunque di scegliere la banda. Perderei i DNS selezionabili ma tanto li metto sulla scheda di rete del PC e ciao ciao. A questo punto è meglio Elisa che un Nordic farlocco.

                Altrimenti stavo pensando di cambiare proprio router e prendere un Huawei B818-263 anche se ce ne sono un pò troppe versioni in giro e non ho ben capito qual'è quella migliore per VERY>Wind3 e che sia aggiornabile alle ultime versioni sempre senza magheggi

                Marcin Thanks, I was on B03 so I decided to move to OpenWrt but it was a nightmare.
                After 30/40 second I get limited service with OpenWrt but it was working fine for months with Elisa and Nordic. Then I try to solve upgrading modem firmware side from B03 to B11 using this guide https://mega.nz/folder/ypgUkKyL#QBWE3kA3WUlw2rq19q9F4Q, but issue still.

                Did you tried to change APN to your provider ?

                  stich86 Ti ringrazio.
                  Il fw del modem era B03.
                  Ho deciso di passare ad OpenWrt ma è stata una pessima idea.
                  La sim è una Postemobile la quale con Elisa e Nordic ha sempre funzionato a meraviglia da mesi.
                  Con OpenWrt ottengo limited service (spia rossa) dopo circa 40 secondi.
                  Ho provato ad aggiornare anche il fw del modem con questa guida ma non è cambiato nulla. https://mega.nz/folder/ypgUkKyL#QBWE3kA3WUlw2rq19q9F4Q
                  Ho cercato il cinguettino dell'uccellino sul forum polacco per modificare temporaneamente ed a solo scopo didattico l'Im€1, ma non sono riuscito a trovarlo..
                  Ho trascorso tutta la notte (fino alle 5 del mattino) a cercare una possibile soluzione nei forum senza successo.

                  Chiedo aiuto sul come risolvere con OpenWrt, oppure come tornare al buon caro firmware Nordic.
                  Grazie

                  • rewri ha risposto a questo messaggio

                    Marcin yes, connection is UP and full working for about 40 second then get limited service until I reboot the device and loop.
                    Now I'm using the IceG fw but same issue with the eko.one

                    Did you set something like ZLOCKCELL , or ZNLOCKBAND ?

                    EDIT: ... and from where you have qmicli ? Did you install something additionally ? Only uqmi should be there ....

                      Marcin Nope, I have to do it?
                      I've reset to default a lot of time due I try a lot of command.
                      Just now seem with this two command I get a stable connection but with red led light:
                      uqmi -d /dev/cdc-wdm0 --set-network-roaming off
                      uqmi -d /dev/cdc-wdm0 --set-plmn --mcc 222 --mnc 10

                      I was wrong, I forget to disconnect from hotspot 😒

                      edit: is provided with IceG firmware, I think was a dependency of uqmi

                      Informativa privacy - Informativa cookie - Termini e condizioni - Regolamento - Disclaimer - 🏳️‍🌈
                      P.I. IT16712091004 - info@fibraclick.it

                      ♻️ Il server di questo sito è alimentato al 100% con energia rinnovabile