G Code over Ethernet

  • 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?


  • 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

  • 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.

  • 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

Log in to reply