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

    [M118] How does *send HTTP message* work?

    Scheduled Pinned Locked Moved
    General Discussion
    4
    5
    279
    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.
    • o_lampeundefined
      o_lampe
      last edited by o_lampe

      Hi gents,
      I've successfully sent a message over PanelDue/TX port, but the description says it's also possible over Telnet and HTTP.
      How does it work over HTTP, when the Duet WiFi is in access point mode and more than one client is logged in?

      Background: I want to send data strings to an ESP32, while controlling the printer with DWC on a PC.

      fcwiltundefined DIY-O-Sphereundefined o_lampeundefined 3 Replies Last reply Reply Quote 0
      • fcwiltundefined
        fcwilt @o_lampe
        last edited by

        @o_lampe said in [M118] How does *send HTTP message* work?:

        Hi gents,
        I've successfully sent a message over PanelDue/TX port, but the description says it's also possible over Telnet and HTTP.
        How does it work over HTTP, when the Duet WiFi is in access point mode and more than one client is logged in?

        Background: I want to send data strings to an ESP32, while controlling the printer with DWC on a PC.

        For simple strings of data Telnet works fine.

        Frederick

        Printers: a small Utilmaker style, a small CoreXY and a E3D MS/TC setup. Various hotends. Using Duet 3 hardware running 3.4.6

        1 Reply Last reply Reply Quote 0
        • DIY-O-Sphereundefined
          DIY-O-Sphere @o_lampe
          last edited by

          @o_lampe
          https://github.com/Duet3D/DuetWebControl/blob/legacy/README.md

          (UTC+1)

          1 Reply Last reply Reply Quote 1
          • o_lampeundefined
            o_lampe @o_lampe
            last edited by

            @o_lampe said in [M118] How does *send HTTP message* work?:

            I've successfully sent a message over PanelDue/TX port

            Something weird happens
            I'm able to send back a Gcode string (eg. "G92 x100") over PanelDue port, but when I try to send a message back to the DWC console with

            Serial.println("echo \"Hello\" ");
            

            it sends back this message to the sender instead of DWC console.

            Even when I call a macro with the echo command, it doesn't show but instead the printer status toggles from idle to busy repeatingly.

            Serial.print("m98 p\"/macros/hello.g\" \n");
            

            FYI, I init the serial port with

            m575 p1 b57600 s2
            

            (s2 = raw data, no checksum)

            JoergS5undefined 1 Reply Last reply Reply Quote 0
            • JoergS5undefined
              JoergS5 @o_lampe
              last edited by JoergS5

              @o_lampe said in [M118] How does *send HTTP message* work?:

              , but when I try to send a message back to the DWC consol

              In my understanding, DWC runs on Duet on a http server (on the ESP8266 Wifi chip), so it needs to be addressed by http and the address is localhost if the program runs on Duet (or Duet's IP address). For special functions, wilriker's program may be useful also: https://github.com/wilriker/rfm

              If you want to integrate ESP32, Smuff https://github.com/technik-gegg/SMuFF-Ifc may also be interesting. However, I would try to use SPI, because it's more stable than I2C, if possible.

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