Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    DWC plugin required

    Duet Web Control
    3
    6
    180
    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.
    • moth4017
      moth4017 last edited by

      Hi If anyone is interested in doing a plug in for us please PM me.
      Scope:-
      Serial Data into the USB port on Duet3 to be displayed in DWC .
      e.g "text to be displayed" "Location in DWC"

      This is to allow a Micro (ardino) to send data to be displayed in DWC.

      <

      dc42 1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators @moth4017 last edited by

        @moth4017 I think the first step would be for you to get the Arduino to wrap up each message in a M118 command addressed to HTTP.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        moth4017 1 Reply Last reply Reply Quote 0
        • moth4017
          moth4017 @dc42 last edited by

          @dc42
          if i use the USB with M118

          e.g
          M118 P1 S"Hello Console and DWC" L2 ; display in Console message

          What is the Baud rate , Data bits, stop bits , parity ?

          <

          MintyTrebor dc42 2 Replies Last reply Reply Quote 0
          • MintyTrebor
            MintyTrebor @moth4017 last edited by

            @moth4017 These are the settings I use to work with serial :
            e2267da2-b184-4c17-b799-e0352336d8f1-image.png

            Alternative approach which might work for you:

            Define one or more global variables (according to number of data points etc) in config.g eg

            global mySerialVar1 = 0
            global mySerialVar2 = "Offline"
            

            Use the Arduino serial to set the values of these variables with the command(s)

            set global.mySerialVar1 = ######
            set global.mySerialVar2 = "Some Text"
            

            Use BtnCmd Plugin, and add object model value panels like this:
            728460b6-f7e6-468b-8e99-423b1766aa69-image.png

            Your data will now display in DWC similar to other data, and update in realtime as the Arduino updates the values of the global variables eg:
            308a80b9-3d71-4d14-9b54-e017012fe93b-image.png

            NodeDSF - Native Node-Red integration with Duet boards.
            BtnCmd - Customise DWC with user defined buttons/layouts/panels (DWC Plugin)
            ReleaseMgr - Duet update info inside DWC.
            Repo

            1 Reply Last reply Reply Quote 0
            • dc42
              dc42 administrators @moth4017 last edited by

              @moth4017 said in DWC plugin required:

              @dc42
              if i use the USB with M118

              e.g
              M118 P1 S"Hello Console and DWC" L2 ; display in Console message

              What is the Baud rate , Data bits, stop bits , parity ?

              8 data bits. The rest doesn't matter because all Duets have a true USB port.

              Duet WiFi hardware designer and firmware engineer
              Please do not ask me for Duet support via PM or email, use the forum
              http://www.escher3d.com, https://miscsolutions.wordpress.com

              1 Reply Last reply Reply Quote 0
              • moth4017
                moth4017 last edited by

                @moth4017

                thanks very much , this gives me a good p[lace to start.
                cheers Mark

                <

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