Duet3D Logo

    Duet3D

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

    Duet Wifi Gui for Raspberry Pi

    General Discussion
    2
    7
    1060
    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.
    • FuzzyMind
      FuzzyMind last edited by FuzzyMind

      Hi,
      I'm trying to develop a basic gui for duet via python (over usb).
      Here is my sample codes.
      0_1534145066940_Loop3D_2.txt Python File (change .txt to .py)
      0_1534145129998_Loop3D.txt Glade File (change .txt to .glade)

      read_duet thread reads data from duet once every 100 milliseconds and updates labels. But I have a problem. If a command (like home all) comes during this reading operation, I can't read data from duet until operation end.

      (Normally)
      0_1534145675697_2018-08-13-103252_1824x984_scrot.png

      (when a command come)
      0_1534145693470_2018-08-13-103256_1824x984_scrot.png

      Do you have a suggestion for this problem ?

      Thanks & Regards

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

        The problem with USB is that it's strictly serial because the Duet provides only one endpoint. I am a little surprised that homing is a problem, but heating will certainly be a problem. Use HTTP instead of USB to avoid this issue.

        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
        • FuzzyMind
          FuzzyMind last edited by FuzzyMind

          Sorry I'm not well-informed about http.

          Do I need a network for http communication ? I wanna set up network-free system like PanelDue. Should I use UART ?

          Could you give more detailed information ?

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

            UART has the same problem, a single channel. Yes you need a network to use HTTP. I guess you could use both UART and USB, one to send commands and another to get status information.

            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
            • FuzzyMind
              FuzzyMind last edited by

              I tried UART communication but I failed.

              Wiring:

              RPi ------> Duet

              Rx to Tx
              Tx to Rx
              GND to GND

              Codes:

              import serial
              ser = serial.Serial(port = '/dev/ttyS0',bytesize=8, baudrate = 57600,stopbits = 1,parity = 'N')
              ser.write("M408 S0\n")

              But I couldn't get response from duet.

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

                By default the Duet only accepts commands from the PanelDue port if they contain line numbers and checksums. You can use the M575 command to change this.

                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
                • FuzzyMind
                  FuzzyMind last edited by

                  Many Thanks for your helps.

                  "M575 P1 B57600 S0" command solved my problem.

                  Thanks & Regards

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