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

    Duet wifi S3D

    Scheduled Pinned Locked Moved
    General Discussion
    31
    50
    12.4k
    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.
    • advancedrescueundefined
      advancedrescue
      last edited by

      @elmoret:

      Like any other controller. Have you followed the Duet documentation? What problem did you run into?

      https://duet3d.com/wiki/Getting_connected

      When I get back working with my printer Wednesday I'll give it another shot and if it doesn't work I'll provide details.

      Do you just connect via USB, not wifi? I know S3D has issues with wifi from what I've read.

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

        You need to configure S3D to use hardware flow control in its communication options.

        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

        bellwetherundefined 1 Reply Last reply Reply Quote 0
        • elmoretundefined
          elmoret
          last edited by

          S3D doesn't support connecting to a printer over wifi.

          Personally I use S3D to slice, then Duet Web Control over wifi to start the print. But you could use S3D to run the whole process over USB, but then the computer has to stay on for the duration of the print.

          1 Reply Last reply Reply Quote 0
          • advancedrescueundefined
            advancedrescue
            last edited by

            Thanks guys, I appreaciate the responses and will try out my options to see which I prefer

            1 Reply Last reply Reply Quote 0
            • T3P3Tonyundefined
              T3P3Tony administrators
              last edited by

              I really recommend using the web interface rather than printing over USB. If you do control over USB then make sure you upload the file to the SD card and print from there.

              www.duet3d.com

              1 Reply Last reply Reply Quote 0
              • InSanityundefined
                InSanity
                last edited by

                @T3P3Tony:

                I really recommend using the web interface rather than printing over USB. If you do control over USB then make sure you upload the file to the SD card and print from there.

                I print only over the web interface and have a 2200VA 4 battery sine wave backup. Printing off a PC would be my last choice, so I agree.

                Duet WiFi Powered FFCP with E3D legends hotend system. BLTouch grid leveling.

                1 Reply Last reply Reply Quote 0
                • X4TECundefined
                  X4TEC
                  last edited by

                  I've just been experimenting with sending the S3D output to the Duet Web Control using the rr_upload api. Its a work in progress and what I'd love to be able to do is upload to job to the SDcard via DWC from S3D, then see the job in the live preview, but not sure it will work that way.

                  I'm on windows so I installed CURL, then you added the following to the additional terminal post processing section of the S3D profile.

                  curl -d "@[output_filepath]" -X POST http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes\S3D

                  I've just got it to work so may not be the final script. Ideally I'd like to store the upload with the model name, but I've not found the S3D attribute to send instead of "\S3D"

                  1 Reply Last reply Reply Quote 0
                  • Zesty_Lykleundefined
                    Zesty_Lykle
                    last edited by

                    Interesting!
                    Keep it up and perfect it. Wish I could do this stuff.
                    (simple mechanical guy here)

                    Lykle
                    Design, make and enjoy life

                    Co Creator of the Zesty Nimble

                    1 Reply Last reply Reply Quote 0
                    • mattbenimbleundefined
                      mattbenimble
                      last edited by

                      @X4TEC:

                      I've just been experimenting with sending the S3D output to the Duet Web Control using the rr_upload api. Its a work in progress and what I'd love to be able to do is upload to job to the SDcard via DWC from S3D, then see the job in the live preview, but not sure it will work that way.

                      I'm on windows so I installed CURL, then you added the following to the additional terminal post processing section of the S3D profile.

                      curl -d "@[output_filepath]" -X POST http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes\S3D

                      I've just got it to work so may not be the final script. Ideally I'd like to store the upload with the model name, but I've not found the S3D attribute to send instead of "\S3D"

                      i believe you can get the file name using:

                      [output_filepath] = the full path to the file being saved, including extension
                      [output_dir] = full path to the folder that you're saving the file in (excluding the actual file itself)
                      [otuput_filename] = filename without extension or path

                      1 Reply Last reply Reply Quote 0
                      • schneik80undefined
                        schneik80
                        last edited by

                        here is a script that works for me:

                        [[language]]
                        path=[output_filepath]
                        file=${path##*/}
                        curl -# -d "@[output_filepath]" -X POST http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes/$file
                        
                        
                        1 Reply Last reply Reply Quote 0
                        • schneik80undefined
                          schneik80
                          last edited by

                          On OSX i have a folder action using a bash script

                          [[language]]
                          for f in "$@"
                          do
                          	path="$f"
                          	file=${path##*/}
                          	curl -# -d "@$f" -X POST http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes/$file
                          done
                          
                          

                          Any gcode file I save to this folder with the action gets uploaded. I like this better than the s3d terminal option because the upload happens on save, not preview on print. In this way i only upload once when i know the print looks right.

                          1 Reply Last reply Reply Quote 0
                          • FrankNPrinterundefined
                            FrankNPrinter
                            last edited by

                            Just my 2 cents and might be off topic but if using usb, you might want to modify a cable and cut out the 5V supply especially if you have a dedicated 5v in to the board already.

                            1 Reply Last reply Reply Quote 0
                            • BrianHanifinundefined
                              BrianHanifin
                              last edited by

                              Thank you for this. I have fine tuned the code for Simplify3D a little, and it works great! 🙂

                              curl -d "@[output_filepath]" -X POST http://hypercube.local/rr_upload?name=gcodes/[output_filename].gcode
                              
                              1 Reply Last reply Reply Quote 0
                              • BrianHanifinundefined
                                BrianHanifin
                                last edited by

                                OK. While the above code does upload a file to duet, it does something to the file that leaves it unprintable. I have experimented with it and discovered the following works. This may not be the optimal method still, but it does yield a printable GCode file.

                                curl  -F "file=@[output_filepath]" "http://hypercube.local/rr_upload?name=gcodes/[output_filename].gcode"
                                
                                

                                The reason I say it is not optimal is that is places some HTTP data at the top of the file. But, Duet appears to ignore this code and happily prints anyway. So, for now it will do.

                                --------------------------16eea21da68ae83e
                                Content-Disposition: form-data; name="file"; filename="curl_test.gcode"
                                Content-Type: application/octet-stream
                                
                                
                                1 Reply Last reply Reply Quote 0
                                • Alex9779undefined
                                  Alex9779
                                  last edited by

                                  This is great! thumbsup Thanks for sharing…

                                  1 Reply Last reply Reply Quote 0
                                  • sungod3kundefined
                                    sungod3k
                                    last edited by

                                    Hi,

                                    I used a similar command with Octoprint succesfully so I was quite happy when I found this thread.

                                    The command Im using is
                                    curl -# -d "@[output_filepath]" -X POST http://xxx.xxx.xxx.xxx/rr_upload?name=gcodes/[output_filename].gcode"
                                    which uploads the code correctly, however when I want to print the autouploaded code, it starts the print, does nothing and then returns the message "print finished in 0h 1m".

                                    The same code works normally when I upload it via the webinterface.

                                    Whats the trick to get that working?

                                    Cheers

                                    http://www.42dimensions.de/
                                    https://printnewworlds.blogspot.com/

                                    1 Reply Last reply Reply Quote 0
                                    • MoS-tekknixundefined
                                      MoS-tekknix
                                      last edited by

                                      Please download the "uploaded" GCode via WebInterface and take a look into the file. Maybe there it will be clearer what happens.

                                      1 Reply Last reply Reply Quote 0
                                      • sungod3kundefined
                                        sungod3k
                                        last edited by

                                        I ran the original and the autouploaded file through notepad++s compare tool and they matched 100%

                                        http://www.42dimensions.de/
                                        https://printnewworlds.blogspot.com/

                                        1 Reply Last reply Reply Quote 0
                                        • MoS-tekknixundefined
                                          MoS-tekknix
                                          last edited by

                                          @sungod3k:

                                          I ran the original and the autouploaded file through notepad++s compare tool and they matched 100%

                                          Uhm, thats interesting.

                                          Can you try this one, i'm using and change the IP to your DuetWifi/Ethernet IP?

                                          [[language]]
                                          curl -F "file=@[output_filepath]" "http://192.168.178.144/rr_upload?name=gcodes/[output_filename].gcode"
                                          
                                          

                                          That is working even if the Printer is currently busy.

                                          Regards
                                          MoS-tekknix

                                          1 Reply Last reply Reply Quote 0
                                          • sungod3kundefined
                                            sungod3k
                                            last edited by

                                            Great, that seems to work. Thanks

                                            http://www.42dimensions.de/
                                            https://printnewworlds.blogspot.com/

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