Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    network conection lost when router is down

    Scheduled Pinned Locked Moved Solved
    General Discussion
    2
    5
    82
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tinchusundefined
      Tinchus
      last edited by

      Yes, sorry for the tricky title LOL.

      This ois the issue Im facing: power goes down, so printer goes down and also the wifi router goes down. Or sometimes, and this is worst I think, power of the wifi router goes down and so the printer looses its conection to the network.
      When router is on again, the printer seems to not connect again.

      My config is a duet3 with SBC (raspberry pi 3 B+)
      So in this scenario, the printer continues to print but it is not conected to nwetwork so I cant access DWI.

      I guess the reconection should be a task the SBC should do, but it is not doing it.
      Should the SBC reconnect automatically when router is on again?

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator
        last edited by

        Version in use?

        Z-Bot CoreXY Build | Thingiverse Profile

        Tinchusundefined 1 Reply Last reply Reply Quote 0
        • Tinchusundefined
          Tinchus @Phaedrux
          last edited by

          @Phaedrux version is 3.5.3

          1 Reply Last reply Reply Quote 0
          • Phaedruxundefined
            Phaedrux Moderator
            last edited by

            It should automatically reconnect as far as I can tell.

            Doing a quick google for raspberry pi auto reconnect wifi brings up a lot of discussion, so maybe you can find something there that points you in the right direction.

            Z-Bot CoreXY Build | Thingiverse Profile

            1 Reply Last reply Reply Quote 0
            • Tinchusundefined
              Tinchus
              last edited by

              Thanks for the help.

              lets close the topic, It is not related really to the duet. I found the problem: if router goes down and then recovers power, at least on this particular router and internet provider, the router and the printer reconnect again, but the dhcp server on router just give the printer internal network config but ont the required config to get out to internet, and also something happens with the internal dns name ".local" wich is not founded again by other devices reconnecting.
              Reconnection should happened only after the router reconnect to the ISP.
              I added a crontab job every 10 minutes on the raspberry to handle these event, I post the info here just in case somebody else have this "problem":

              sudo nano /home/pi/reconnect_wifi.sh :
              #!/bin/bash
              if ! ping -c 1 -W 1 8.8.8.8; then
              sudo ip link set wlan0 down
              sudo ip link set wlan0 up
              fi

              sudo chmod +x /home/pi/reconnect_wifi.sh
              sudo crontab -e:

              */10 * * * * /home/pi/reconnect_wifi.sh

              1 Reply Last reply Reply Quote 1
              • jay_s_ukundefined jay_s_uk marked this topic as a question
              • jay_s_ukundefined jay_s_uk has marked this topic as solved
              • First post
                Last post
              Unless otherwise noted, all forum content is licensed under CC-BY-SA