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

    Disable/Enable network by power state?

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    2
    402
    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.
    • Muggaundefined
      Mugga
      last edited by

      Hello,
      because I'm having issues with the wifi autoconnect, I would like to do a temporary workaround.

      I'm powering my duet separated from the main power. And my main power is automatically shuting down when power is below a certain level for a set period of time.

      My idea was to disable networking with M552 S-1 when power is lost and enable when power is present. I saw the M911 command for power loss, so i could do like M911 R23.0 P"M552 S-1" to shutdown network when power is down.

      But I havent found a way to run a code after power is present.

      1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators
        last edited by dc42

        There isn't a command run when power is restored.

        One option would be for you to arrange for a spare endstop input to be triggered when VIN power is applied or removed. That could be done using an NPN transistor and 2 resistors. Then you could set up M581 triggers to act on changes to that endstop input state.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Unless otherwise noted, all forum content is licensed under CC-BY-SA