Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order
    1. Home
    2. job123
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    job123

    @job123

    0
    Reputation
    1
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    job123 Unfollow Follow

    Latest posts made by job123

    • RE: connect SBC to Duet via Network and run gcode/macro with DSF

      @T3P3Tony thanks for the reply.
      Do I have to install the RepRap firmware first? Also are there any python example codes on how to send commands from the SBC and receive feedback using this HTTP API?

      posted in DSF Development
      job123
      job123
    • connect SBC to Duet via Network and run gcode/macro with DSF

      Hi all,
      I am new to the Duet. I would like to connect my SBC to the Duet via Network and then send commands with python to duet to run macros and eventually receive feedback from the duet.
      I have found 2 python code examples on github:

      def subscribe():
      subscribe_connection = SubscribeConnection(SubscriptionMode.PATCH)
      subscribe_connection.connect()

      try:
          # Get the complete model once
          object_model = subscribe_connection.get_object_model()
          print(object_model)
      
          # Get multiple incremental updates, due to SubscriptionMode.PATCH, only a
          # subset of the object model will be updated
          for _ in range(0, 3):
              update = subscribe_connection.get_object_model_patch()
              print(update)
      finally:
          subscribe_connection.close()
      

      and

      def send_simple_code():
      command_connection = CommandConnection(debug=True)
      command_connection.connect()

      try:
          # Perform a simple command and wait for its output
          res = command_connection.perform_simple_code("M115")
          print("M115 is telling us:", res)
      finally:
          command_connection.close()
      

      but I don't undesrtand here where should I insert the argument to connect to the board and what does this argument look like?

      Also what is the DSF UNIX socket?

      I would really appreciate your help.

      posted in DSF Development
      job123
      job123