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

network conection lost when router is down

Scheduled Pinned Locked Moved Solved
General Discussion
2
5
84
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.
  • undefined
    Tinchus
    last edited by 5 Mar 2025, 16:59

    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
    • undefined
      Phaedrux Moderator
      last edited by 5 Mar 2025, 17:02

      Version in use?

      Z-Bot CoreXY Build | Thingiverse Profile

      undefined 1 Reply Last reply 5 Mar 2025, 17:11 Reply Quote 0
      • undefined
        Tinchus @Phaedrux
        last edited by 5 Mar 2025, 17:11

        @Phaedrux version is 3.5.3

        1 Reply Last reply Reply Quote 0
        • undefined
          Phaedrux Moderator
          last edited by 5 Mar 2025, 19:19

          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
          • undefined
            Tinchus
            last edited by 6 Mar 2025, 12:46

            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
            • undefined jay_s_uk marked this topic as a question 6 Mar 2025, 12:52
            • undefined jay_s_uk has marked this topic as solved 6 Mar 2025, 12:52
            1 out of 5
            • First post
              1/5
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA