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

    How to interact with Duet2 board with Java?

    Scheduled Pinned Locked Moved
    Using Duet Controllers
    2
    4
    119
    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.
    • tom1undefined
      tom1
      last edited by

      The Duet2 board is connected to the computer via ethernet cable and we want to be able to send G-Code commands via Java.

      How would we go about doing this?

      Many thanks,

      Tom

      chrishammundefined 1 Reply Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @tom1
        last edited by

        @tom1 I suggest using rr_gcode.

        Duet software engineer

        tom1undefined 1 Reply Last reply Reply Quote 0
        • tom1undefined
          tom1 @chrishamm
          last edited by

          @chrishamm What format does the G-Code need to be in to execute a successful HTTP GET /rr_gcode request? Could you give an example?

          chrishammundefined 1 Reply Last reply Reply Quote 0
          • chrishammundefined
            chrishamm administrators @tom1
            last edited by

            @tom1 It needs to be URL-encoded, so e.g. http://duet2/rr_gcode?gcode=G1 X10.

            Duet software engineer

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