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

    G Code over Ethernet

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    2
    4
    611
    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.
    • stevenimundefined
      stevenim
      last edited by

      Hi,

      I have the device running with firmware: [FIRMWARE_NAME: RepRapFirmware for Duet 3 MB6HC FIRMWARE_VERSION: 3.1.1 ELECTRONICS: Duet 3 MB6HC v1.01 or later FIRMWARE_DATE: 2020-05-19b2]. I was wondering if it was possible to connect to my board with my laptop with a USB to Ethernet Connection where I send Ethernet packets/data including G-Code to the board for control. USB connection would be to my laptop with an Ethernet connection to the board. Would this be possible? How would I have to format the packets to be sent?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • A Former User?
        A Former User
        last edited by

        If you're not using a SBC like Raspberry Pi you can connect to the Duet 3 6HC over ethernet yes.

        Duet doesn't care whats in the other end; but with just the two devices you'll probably need to set static IP addresses on both ends to make them communicate.

        Once you have the networking set up, you can either send g-code over the console in DuetWebControl, with HTTP requests or enable Telnet to open a socket where you can send g-code without the HTTP overhead.

        Configure and enable networking with M552
        Enable telnet with M586

        1 Reply Last reply Reply Quote 0
        • stevenimundefined
          stevenim
          last edited by

          I was actually thinking of sending G-Code over Ethernet not through the DuetWebControl but manually with my own HTTP GET request packets through C#. Basically doing the job of the DWC but with C#. Would this be possible? Just wondering how requests and responses work alongside general formatting so I wouldn't have to reverse engineer the DWC.

          1 Reply Last reply Reply Quote 0
          • A Former User?
            A Former User
            last edited by

            There used to be a good bit of info in the DWC readmed on github, but seems to have been relocated.

            You might find this enlightening https://forum.duet3d.com/topic/12677/boilerplate-http-connection-code-for-python-based-ui

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