• Tags
  • Documentation
  • Order
  • Register
  • Login
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.
  • undefined
    JuKu
    last edited by 2 Oct 2019, 10:05

    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
    • undefined
      EasyTarget
      last edited by EasyTarget 10 Feb 2019, 13:14 2 Oct 2019, 13:10

      @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
      • undefined
        dc42 administrators
        last edited by 2 Oct 2019, 15:08

        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

        undefined 1 Reply Last reply 2 Oct 2019, 15:12 Reply Quote 2
        • undefined
          EasyTarget @dc42
          last edited by 2 Oct 2019, 15:12

          @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
          2 out of 4
          • First post
            2/4
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA