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

    Run file on connection status change

    Scheduled Pinned Locked Moved
    Firmware wishlist
    3
    4
    199
    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.
    • JuKuundefined
      JuKu
      last edited by

      I would like to run a file when connection status changes. This would give us:

      -More fail-resistant machines: If control is lost, stop
      -Notice to control program about connection problems and possibly lost commands (by reacting to message sent out when connection comes back)
      -Notice to control program on machine reset (by reacting to connection established message). This is a big safety issue on CNC machines.

      1 Reply Last reply Reply Quote 0
      • EasyTargetundefined
        EasyTarget
        last edited by EasyTarget

        @JuKu said in Run file on connection status change:

        I would like to run a file when connection status changes.

        +1
        I would like to run a macro when Wifi Status changes too.

        • Somewhat different motives; I dont see any movement control needs.
        • It would be handy since my PrintEye cannot see Wifi status (I ran out of memory and patience to implement a separate request->response handler for the Wifi Status.
        • But a macro + M118 + PrintEyes custom Json handling would make it easy to set up.
        • Ideally such a macro would need to have Wifi parameters (status, and ssid, hostname, ip, gateway when valid)
        • I'm sure others would find it useful, change light colours on disconnect, etc. The board's LED is clear enough but not always accessible.

        Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
        PrintPy2024 to the rescue!
        MicroPython based; with simple wiring and and no custom PCB.

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

          When I find time to finish implementing conditional GCode, I may extend the trigger facility to allow any specified change in the object model to run a macro. I would rather do that than implement something specific to WiFi state changes.

          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

          EasyTargetundefined 1 Reply Last reply Reply Quote 2
          • EasyTargetundefined
            EasyTarget @dc42
            last edited by

            @dc42 Yes; something like that would be a nice enhancement for lots of odd, and not so odd, use cases.

            Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
            PrintPy2024 to the rescue!
            MicroPython based; with simple wiring and and no custom PCB.

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