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

    WiFi Issues - "Network Error" on uploading almost every file

    Scheduled Pinned Locked Moved
    General Discussion
    8
    22
    1.7k
    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.
    • TheBasedDogeundefined
      TheBasedDoge
      last edited by

      My duet was working totally fine up until about a week ago when I have been having sporadic network issues. I am unable to upload almost anything, and it just throws up an error in the console

      "Failed to upload Duet2CombinedFirmware.bin
      Network error"

      I have also tried to upload via FTP and that keeps failing as well. I am not even able to upload the latest firmware package.... is there a way to do it offline?

      I have also just replaced the SD card just incase that was causing an issue:
      SD card in slot 0: capacity 15.55Gb, free space 15.53Gb, speed 20.00MBytes/sec, cluster size 32kb
      SD write speed for 10.0Mbyte file was 4.05Mbytes/sec

      Any help appreciated, I'm totally stumped right now.

      Some diagnostic info:
      M122
      === Diagnostics ===
      RepRapFirmware for Duet 2 WiFi/Ethernet version 2.04 running on Duet WiFi 1.02 or later
      Board ID: 08DDM-9FAM2-LW4S4-6JTDA-3S06Q-KMT7W
      Used output buffers: 3 of 24 (15 max)
      === RTOS ===
      Static ram: 25680
      Dynamic ram: 93044 of which 120 recycled
      Exception stack ram used: 268
      Never used ram: 11960
      Tasks: NETWORK(ready,628) HEAT(blocked,1232) MAIN(running,3768) IDLE(ready,200)
      Owned mutexes:
      === Platform ===
      Last reset 00:26:41 ago, cause: power up
      Last software reset at 2019-12-22 20:35, reason: User, spinning module GCodes, available RAM 11960 bytes (slot 1)
      Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
      Error status: 0
      Free file entries: 10
      SD card 0 detected, interface speed: 20.0MBytes/sec
      SD card longest block write time: 7.7ms, max retries 0
      MCU temperature: min 27.7, current 35.7, max 36.5
      Supply voltage: min 12.1, current 12.2, max 12.3, under voltage events: 0, over voltage events: 0, power good: yes
      Driver 0: standstill, SG min/max not available
      Driver 1: standstill, SG min/max not available
      Driver 2: standstill, SG min/max not available
      Driver 3: standstill, SG min/max not available
      Driver 4: standstill, SG min/max not available
      Date/time: 2019-12-22 21:20:06
      Cache data hit count 4294967295
      Slowest loop: 18.77ms; fastest: 0.06ms
      I2C nak errors 0, send timeouts 0, receive timeouts 0, finishTimeouts 0, resets 0
      === Move ===
      Hiccups: 0, FreeDm: 160, MinFreeDm: 160, MaxWait: 0ms
      Bed compensation in use: none, comp offset 0.000
      === DDARing ===
      Scheduled moves: 0, completed moves: 0, StepErrors: 0, LaErrors: 0, Underruns: 0, 0
      === Heat ===
      Bed heaters = 0 -1 -1 -1, chamberHeaters = -1 -1
      === GCodes ===
      Segments left: 0
      Stack records: 1 allocated, 0 in use
      Movement lock held by null
      http is idle in state(s) 0
      telnet is idle in state(s) 0
      file is idle in state(s) 0
      serial is idle in state(s) 0
      aux is idle in state(s) 0
      daemon is idle in state(s) 0
      queue is idle in state(s) 0
      autopause is idle in state(s) 0
      Code queue is empty.
      === Network ===
      Slowest loop: 82.09ms; fastest: 0.00ms
      Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0)
      HTTP sessions: 2 of 8

      • WiFi -
        Network state is running
        WiFi module is connected to access point
        Failed messages: pending 0, notready 0, noresp 0
        WiFi firmware version 1.23
        WiFi MAC address 2c:3a:e8:0a:f1:22
        WiFi Vcc 3.38, reset reason Turned on by main processor
        WiFi flash size 4194304, free heap 23384
        WiFi IP address 192.168.0.77
        WiFi signal strength -67dBm, reconnections 0, sleep mode modem
        Socket states: 0 0 0 0 0 0 0 0
      1 Reply Last reply Reply Quote 0
      • jens55undefined
        jens55
        last edited by

        I suspect your wifi signal is too low. Move the printer closer to your wifi access point or the other way around. You could also install a signal booster of some kind if your wifi network allows for that feature.
        Last but not least, I think I have heard of Duet coming out with a board that uses an external antenna - maybe it can be retrofitted ?

        A Former User? 1 Reply Last reply Reply Quote 0
        • TheBasedDogeundefined
          TheBasedDoge
          last edited by

          The wifi (Unifi AP) is only in the next room over and the duet is the only device which seems to be having issues, so I don't know if that is the issue. My phone also shows the same -60db signal and it works fine. I have a feeling something must be up with the duet.

          Also, interestingly I just tried to revert to DWC1 interface and upload a gcode file, and it DID work. Although only at 150kb/s, but at least it worked without failing.

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

            @TheBasedDoge I just now tried flashing Duet2Firmware-2.05.zip via Duet Web Control 1 and it worked on the first time! After trying probably literally 30 times on the new interface.

            1 Reply Last reply Reply Quote 0
            • matt3oundefined
              matt3o @TheBasedDoge
              last edited by

              @TheBasedDoge said in WiFi Issues - "Network Error" on uploading almost every file:

              The wifi (Unifi AP)

              I also have a Unifi AP and a slightly better signal strength than yours and I still have an incredibly problematic wifi connection. Sometimes it works, others I need to retry 10 times. Sometimes works the first time and then I have to reboot the board to make it work again.

              Very frustrating. Wondering if it's something with the Unifi.

              PS: I'm on latest stable firmware

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

                Interesting. I have tried rebooting the board like 15+ times and it doesn't do anything. Maybe we need to update the firmware on our unifis?

                1 Reply Last reply Reply Quote 0
                • A Former User?
                  A Former User @jens55
                  last edited by A Former User

                  @jens55 said in WiFi Issues - "Network Error" on uploading almost every file:

                  I suspect your wifi signal is too low. Move the printer closer to your wifi access point or the other way around. You could also install a signal booster of some kind if your wifi network allows for that feature.
                  Last but not least, I think I have heard of Duet coming out with a board that uses an external antenna - maybe it can be retrofitted ?

                  This is a very easy modification to retrofit. I bought a few 10 packs of the WiFi modules from aliexpress the external antenna makes a big difference. I have Since changed all the modules in the boards I have, I even socketed one to test in an ethernet equipped board, swapped the ethernet module with the antenna equipped module and that worked great too.

                  Phaedruxundefined 1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator @A Former User
                    last edited by

                    @CaLviNx said in WiFi Issues - "Network Error" on uploading almost every file:

                    This is a very easy modification to retrofit.

                    There's a big asterix on that "very easy", * provided you're comfortable desoldering large components from the PCB.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    A Former User? 1 Reply Last reply Reply Quote 0
                    • A Former User?
                      A Former User @Phaedrux
                      last edited by

                      @Phaedrux

                      Compared to a lot of SMC rework I would say that swapping the WiFi module is one of the easier to do.

                      1 Reply Last reply Reply Quote 1
                      • TheBasedDogeundefined
                        TheBasedDoge
                        last edited by

                        I still have a feeling it has something to do with the new firmware update / new interface or something. Since I found the revert to DWC1 feature I have been able to reliable upload files.... although it's still VERY slow.

                        Do you have a link for the wifi module you bought? That is something I could consider trying as well.

                        Also, still not able to upload through Cura with the Duet plugin, it goes like 10-20% and then says "Error 99: network error"

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

                          Do you have the Unifi set to drop slow clients?

                          If you watch the unifi dashboard while doing an upload what kind of signal strength are you seeing?

                          Have you tried a different channel?

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • A Former User?
                            A Former User
                            last edited by A Former User

                            Here's the link to the units I am using successfully.

                            WiFi Module with antenna

                            1 Reply Last reply Reply Quote 1
                            • TheBasedDogeundefined
                              TheBasedDoge
                              last edited by

                              Thanks for the link. I might order one of those although I'm still not sure that is my issue since my duet has been working fine for years, in the same spot, up to this point.

                              I have still consistently been able to upload files via the old duet web interface EVERY time, while files failing consistently on the new duet web interface. I think something is wrong with the new interface.

                              Will also check the settings / stats on my Unify to confirm.

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

                                @TheBasedDoge said in WiFi Issues - "Network Error" on uploading almost every file:

                                Thanks for the link. I might order one of those although I'm still not sure that is my issue since my duet has been working fine for years, in the same spot, up to this point.

                                I have still consistently been able to upload files via the old duet web interface EVERY time, while files failing consistently on the new duet web interface. I think something is wrong with the new interface.

                                Will also check the settings / stats on my Unify to confirm.

                                That definitely sounds like a Dwc2 issue.

                                Can you try clearing out the www folder and recopying the files fresh from the latest release?

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • jens55undefined
                                  jens55
                                  last edited by

                                  I think it would be well worthwhile to do a quick wifi scan (free software is available) to check out the spectrum around your setup. It would be quite consistent with the symptoms reported that a neighbour has set up a new wifi device on either the same channel or on either side of it. That would account for it sometimes working and many times not despite an acceptable (?) signal level.
                                  I have seen some pretty odd things happening with wifi - it definitely is not a situation like a cable where you just plug it in and it works.

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

                                    @jens55 the unifi controller can do a scan too.

                                    Z-Bot CoreXY Build | Thingiverse Profile

                                    1 Reply Last reply Reply Quote 0
                                    • matt3oundefined
                                      matt3o
                                      last edited by

                                      okay I was ready to swap the wifi module but before that I tried to just "extend" the antenna... believe it or not it worked. I hadn't a single disconnect since

                                      IMG_20191231_153146.jpg

                                      Basically cut the onboard antenna and soldered a new one. The antenna must be of a very specific length (check 2.4 antenna length) but apart from that it's a 5 minutes hack.

                                      Now, I don't suggest to anyone doing that... but it worked for me.

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

                                        The built in antenna is very small, also for best signal strength it should be mounted vertically to match the antenna direction in routers, not horizontally as you have it.

                                        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

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

                                          @dc42 said in WiFi Issues - "Network Error" on uploading almost every file:

                                          it should be mounted vertically to match the antenna direction in routers

                                          that is interesting, thanks for the heads-up! The antenna hack fortunately worked very well but good to know for the next duet 🙂 Even though the next duet will be surely with external antenna module.

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

                                            Just had this happen to me as well. I think it had to do with the filename being uploaded.

                                            The file had a " double quote in it. Every time I tried to upload it, I would get a network error message. Removing the quote mark and it uploaded fine.

                                            So if anyone gets this error in the future, check your filename for special characters.

                                            Z-Bot CoreXY Build | Thingiverse Profile

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