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

    Slow upload and then failure.

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    5
    29
    1.3k
    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.
    • chrishammundefined
      chrishamm administrators @TheBasedDoge
      last edited by

      @TheBasedDoge https://docs.duet3d.com/en/User_manual/Troubleshooting/WiFi_troubleshooting

      Duet software engineer

      TheBasedDogeundefined 1 Reply Last reply Reply Quote 0
      • TheBasedDogeundefined
        TheBasedDoge @chrishamm
        last edited by

        @chrishamm

        Here are my diagnostic results

        = WiFi =
        Network state is active
        WiFi module is connected to access point
        Failed messages: pending 0, notready 0, noresp 0
        WiFi firmware version 1.27
        WiFi MAC address 2c:3a:e8:0a:f1:22
        WiFi Vcc 3.37, reset reason Turned on by main processor
        WiFi flash size 4194304, free heap 22240
        WiFi IP address 192.168.0.215
        WiFi signal strength -64dBm, mode 802.11n, reconnections 0, sleep mode modem
        Clock register 00002002
        Socket states: 0 0 0 0 0 0 0 0

        -64 is a bit low right? but the question is nothing has changed, printer has not moved... why would it be worse all of a sudden?

        dc42undefined 1 Reply Last reply Reply Quote 0
        • Phaedruxundefined
          Phaedrux Moderator
          last edited by

          Has anything changed recently to the wifi environment?

          Z-Bot CoreXY Build | Thingiverse Profile

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

            @TheBasedDoge said in Slow upload and then failure.:

            why would it be worse all of a sudden?

            Could it be that your router has switched to a different WiFi channel? You can use a wifi analyser app on your smartphone to check what channel your router uses.

            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

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

              @dc42

              That's a possibility, I'll have to check if channel has changed. Nothing else has changed with the wifi environment. I am using Ubiquiti AP and I don't have issues with any other devices, oh another thing to mention is my Formbot troodon is 2 feet away from the printer having the wifi issues and the Troodon works perfectly fine.

              I changed the AJAX number of retries to 6, from 2 and it fails less now , but still very very slow.

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

                @TheBasedDoge we find that WiFi channel 1 is most likely to give problems.

                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

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

                  @dc42

                  So after updating my duet, wifi firmware, etc I finally realized the issue was the printer was trying to connect to the Unifi AP 2 floors down, instead of the one 20 feet away from it. I updated and restarted my wifi mesh system and now the signal strength is -50db, so its better. But upload is still a little slow, but it didn't fail at least. Something strange is still going on because I have 3 other printers in this room and they don't have connection issues. (also this duet previously was working for years just fine)

                  But now I created a new issue for myself, since updating the wifi server to 2.1 beta3 my static IP does not work at all.

                  Previously, my config.g had this line in it:
                  ;M552 P192.168.0.215 ; set static IP

                  Now it does nothing, I also tried this in config.g
                  ;M587 S" " P" ." I192.168.0.215 ; set static IP

                  And no luck. What is the proper way to set static on the new wifi server?

                  Board: Duet 2 WiFi (2WiFi)
                  Firmware: RepRapFirmware for Duet 2 WiFi/Ethernet 3.5beta2 (2023-02-08)
                  Duet WiFi Server Version: 2.1beta3
                  Duet Web Control 3.5.0-beta.2

                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator @TheBasedDoge
                    last edited by

                    @TheBasedDoge said in Slow upload and then failure.:

                    What is the proper way to set static on the new wifi server?

                    The proper way would be DHCP reservation on the router, but setting a manual IP should work.

                    Can you upload the wifi server version 1.27 and see how it behaves? You should be able to get 1.27 from this zip file. https://github.com/Duet3D/RepRapFirmware/releases/download/3.4.5/Duet2and3Firmware-3.4.5.zip

                    For the Unifi controller you may want to see if you can turn off band steering for the Duet client. It may be trying to force the Duet onto the 5ghz band, which it does not support.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    TheBasedDogeundefined 2 Replies Last reply Reply Quote 0
                    • TheBasedDogeundefined
                      TheBasedDoge @Phaedrux
                      last edited by TheBasedDoge

                      @Phaedrux

                      Will try after the current print finishes. I think 1.27 is what I previously had, then i updated to 2.1beta3 to try and solve this issue. Should i just revert back and leave it? I will check the band steering option also. M552 P192.168.0.215 ; set static IP was working on the old 1.27 version.

                      edit, ok band steering appears to be a setting for the AP, not per client, but I checked all 4 APs I have and it was already off.

                      1 Reply Last reply Reply Quote 0
                      • TheBasedDogeundefined
                        TheBasedDoge @Phaedrux
                        last edited by

                        @Phaedrux

                        OK, dowgraded to 1.27, static IP is working. -55db signal strength, didnt try to upload a file yet. Should i just not upgrade the wifi server anymore?

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator
                          last edited by

                          Well 2.1 is a beta release for testing, so your findings are useful. You can continue to use 1.27 for now and we'll have to investigate the issue.

                          I'm curious to know if your upload performance is better or the same.

                          Z-Bot CoreXY Build | Thingiverse Profile

                          TheBasedDogeundefined 1 Reply Last reply Reply Quote 0
                          • TheBasedDogeundefined
                            TheBasedDoge @Phaedrux
                            last edited by

                            @Phaedrux
                            I just tested again, uploaded a file and I am getting ~350 KiB/s, and it did not fail. I tried 4-5 times. So this is better, but previously uploads completed in under 10 seconds at most.
                            So this is usable again at least, im still stumped as to what changed because i've been using this same board, same wifi system, etc for years so nothing really has changed in my setup.

                            1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator
                              last edited by

                              You could try stepping back to 1.26 and 1.25 to see if it's something in those updates that changed.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              TheBasedDogeundefined 1 Reply Last reply Reply Quote 0
                              • TheBasedDogeundefined
                                TheBasedDoge @Phaedrux
                                last edited by

                                @Phaedrux Well the problems continue, it's basically still doing the same upload / slow / fail behavior. At this point it seems like a hardware issue. Are the wifi chips known to fail? could my antennae be damaged / bad? I have no wires near the antennae, it's exposed, very close to the AP, etc. It should be fine.

                                1 Reply Last reply Reply Quote 0
                                • Phaedruxundefined
                                  Phaedrux Moderator
                                  last edited by

                                  Is this a Duet wifi with external antenna?

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  TheBasedDogeundefined 1 Reply Last reply Reply Quote 0
                                  • TheBasedDogeundefined
                                    TheBasedDoge @Phaedrux
                                    last edited by

                                    @Phaedrux Mine does not have the external antennae, it's the older one with the little PCB antennae.

                                    I saw this thread
                                    https://forum.duet3d.com/topic/2825/converting-the-duet-wifi-to-use-an-external-antenna

                                    Maybe i should just do this?

                                    infiniteloopundefined 1 Reply Last reply Reply Quote 0
                                    • infiniteloopundefined
                                      infiniteloop @TheBasedDoge
                                      last edited by infiniteloop

                                      @TheBasedDoge

                                      I saw this thread
                                      https://forum.duet3d.com/topic/2825/converting-the-duet-wifi-to-use-an-external-antenna
                                      Maybe i should just do this?

                                      That's the proper way to do it. I've done it "improperly": I cut the 'inner' one of the two traces and soldered the external antenna as in the photo:

                                      Mac G4 Antenna.jpg

                                      On the matter of slow uploads: have you ever tried another SD card?

                                      TheBasedDogeundefined 1 Reply Last reply Reply Quote 0
                                      • TheBasedDogeundefined
                                        TheBasedDoge @infiniteloop
                                        last edited by TheBasedDoge

                                        @infiniteloop Well, i could try that first. Did it work out well for you?
                                        Which trace did you cut, can't tell from the photo

                                        Also yes I have tried another SD card.... no change.

                                        infiniteloopundefined 1 Reply Last reply Reply Quote 0
                                        • Phaedruxundefined
                                          Phaedrux Moderator
                                          last edited by

                                          One thing I would suggest trying to help isolate the problem is to setup the Duet in Access Point mode. This takes the entire wireless router out of the equation. The duet creates it's own wifi network and your connect your device to that network. Then test at least 2 different computers to see if it's the duet hardware or your computer wifi device that is having the issue. If you get better performance like this, that would indicate something off with the wireless router settings or interference. If the problem persists with both devices, the Duet hardware is most likely having an issue. If only 1 device has an issue, the problem likely lies there.

                                          https://docs.duet3d.com/User_manual/Reference/Gcodes#m589-configure-access-point-parameters

                                          Z-Bot CoreXY Build | Thingiverse Profile

                                          1 Reply Last reply Reply Quote 0
                                          • infiniteloopundefined
                                            infiniteloop @TheBasedDoge
                                            last edited by

                                            @TheBasedDoge said in Slow upload and then failure.:

                                            Well, i could try that first. Did it work out well for you?

                                            Yep. I built my Duet into a modded Apple G4 casing - internally, that has a solid metal cage, but I re-used Apple's WiFi antennas: works flawlessly since 2019 😊

                                            Also yes I have tried another SD card.... no change.

                                            Sorry to hear that.

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