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

    Wifi 2.1beta6 from 3.5.0-rc.2/3 still disconnecting

    Scheduled Pinned Locked Moved Solved
    Beta Firmware
    10
    82
    4.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.
    • Chrissundefined
      Chriss @rechrtb
      last edited by

      @rechrtb I have no access to the file. I requested it a minute ago.

      rechrtbundefined 1 Reply Last reply Reply Quote 0
      • rechrtbundefined
        rechrtb @Chriss
        last edited by

        @Chriss Granted you access to the file. Tell me if you still have problems accessing it.

        Regarding your question, I would advise to put beta7 on the board on which the issue seems to manifest most often.

        I would also advise putting the two boards near each other if you can, so that they roughly get the same wifi signal strength, same wifi devices in proximity, etc. I recommend moving the beta6 board to the beta7 board location (again, because this might be a 'goldilocks' location w/ respect to the access point for the issue to manifest more frequently).

        Chrissundefined 1 Reply Last reply Reply Quote 0
        • Chrissundefined
          Chriss @rechrtb
          last edited by

          @rechrtb

          Cheers, I have the file. It seems to me that the printer I use is getting the error... Let me see... I print on both at the moment. I will wait till tomorrow and I hope that one of them will be in the failed state than. This is the chosen one than.

          The printer stand next to each other and the AP is in the same room about 5m away.

          Do you want me to to the drill via the serial interface on the board with the new firmware too? Or do I need to do if the new fw will have the same problem? (And I hope that this is totally hypothetic because you found the problem and fixed it!) 🙂

          Cheers, Chriss

          rechrtbundefined 1 Reply Last reply Reply Quote 0
          • rechrtbundefined
            rechrtb @Chriss
            last edited by

            @Chriss

            Do you want me to to the drill via the serial interface on the board with the new firmware too?

            For now, not yet. Only when beta7 also displays the same issues.

            Chrissundefined 1 Reply Last reply Reply Quote 0
            • Chrissundefined
              Chriss @rechrtb
              last edited by

              @rechrtb OK, cool for me... My apologies, it took me almost a day to get the printer back into the failed state. Just to make sure that the problem is still present after the very latest reboot of my WiFi infra.

              So we have:
              7f6bb766-102b-46c7-9b72-86edd01b8a34-image.png
              now. I will print for a while now, but I can not tell you: Yes it is working now.
              Simply because the problem does not show up frequently. I had the impression that it happens at least one in 24h. But the very last issue came up after more than 30h. So when could we say: "Yes solved" than?

              Do you want to tell us how you have fixed it? Is it by doing a full reset of the WiFi module after a connection lost? Or was there a real issue with the board firmware? (I'm just curious because the disconnects are not new, the not recovery was new.)

              I will update the thread as soon as the problem is back or I will ping you on Friday or Monday when I have the feeling that the problem is gone for good.

              Cheers, Chriss

              droftartsundefined rechrtbundefined 2 Replies Last reply Reply Quote 0
              • droftartsundefined
                droftarts administrators @Chriss
                last edited by droftarts

                @Chriss said in Wifi 2.1beta6 from 3.5.0-rc.2/3 still disconnecting:

                Do you want to tell us how you have fixed it? Is it by doing a full reset of the WiFi module after a connection lost? Or was there a real issue with the board firmware? (I'm just curious because the disconnects are not new, the not recovery was new.)

                From a conversation we had with @rechrtb

                Ok, I think I may have found a fix to the issue. The reason I say 'may' is because as you might imagine, this issue seems to be very intermittent - I have only been able to reproduce it that one time last week.
                But in trying to debug this problem, I inserted a bunch of debug printf's that I was able to get the same symptoms namely:

                • board seems to disconnect and never reconnect again - unless module is disabled and re-enabled
                • module led is still on, but board is unpingable
                • repeating "responsebusy" and "bad recv status size"

                Ok, so the issue I found is that one of the tasks block indefinitely on https://github.com/Duet3D/WiFiSocketServerRTOS/blob/dev/src/Connection.cpp#L694.
                Inserting the printf's must've slowed things down enough that simulated the connectionQueue to be backed up. There is supposed to be a task that consumes events from this queue, but since this callback occurs on the lwip task - if that consumer task calls and lwip function, it might also lock up.
                Increasing the queue size seems to have alleviated the issue. I have set the size to MaxConnections * 3 , since there are three types of connection events that can be enqueued in connectionQueue :
                Accept, Close and Terminate.
                That said, it is probably still needed to verify if this is the issue @Chriss encountered. Since they have multiple boards, I'll probably advise them to load this firmware onto one of the boards, while the other retains the current firmware - to see if the 'fixed' version has reduced occurrences of the disconnects.
                Though long term, I'll probably think of potentially better ways to refactor this part of the code.

                The relevant fix is here: https://github.com/Duet3D/WiFiSocketServerRTOS/commit/0f8bdc18f2968ee357cdb09d1319590abb7cdd08

                Ian

                0 rechrtb committed to Duet3D/WiFiSocketServerRTOS
                Tentative disconnection fix

                Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                1 Reply Last reply Reply Quote 0
                • rechrtbundefined
                  rechrtb @Chriss
                  last edited by

                  @Chriss Hello, as in @droftarts response, I might have managed to re-create the instance in which the WiFi module firmware locks up - which is consistent with the symptoms you displayed. With the fix, I wasn't able to recreate the lock up anymore 'artificially'. Now, we wait to confirm maybe we can't recreate the lock-up 'naturally'.

                  As it is a very intermittent issue, it's hard to say when we say the issue is fixed. It has to be long term test, but when the beta6 board encounters the issue and beta7 still does not, I think it can be a good sign.

                  Chrissundefined 1 Reply Last reply Reply Quote 0
                  • Chrissundefined
                    Chriss @rechrtb
                    last edited by

                    @rechrtb @droftarts

                    Thanks for the information, I appreciate that very much.
                    I was very busy during the last days so I skipped to tell you: "Yes, it still works" every day.

                    What I can tell so far is that the error is gone. I was printing a lot with the beta7 board in since the upgrade (many under 30minutes prints) and the WiFi connection was very stable. I would vote with a "hump up" and would say that the problem is gone.

                    I work with my beta6 board at the moment a lot (IDEX setup is a pain) and I saw the problem here twice since yesterday evening.

                    I guess you guys want to close the case now and release beta7 officially. Thank you very much for your good support, I felt very compy during the process. And I'm more than happy that it was not a stupid wrong config on my site this time. 😉

                    Cheers, Chriss

                    droftartsundefined 1 Reply Last reply Reply Quote 1
                    • droftartsundefined
                      droftarts administrators @Chriss
                      last edited by

                      @Chriss I'm not quite sure why this thread is in the STM category. I'll move it to the beta firmware category.

                      Ian

                      Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                      Chrissundefined 1 Reply Last reply Reply Quote 0
                      • droftartsundefined droftarts moved this topic from STM
                      • Chrissundefined
                        Chriss @droftarts
                        last edited by

                        @droftarts Hahaha... I started it in the Beta, somebody moved it to here. 🙂

                        droftartsundefined 1 Reply Last reply Reply Quote 0
                        • droftartsundefined
                          droftarts administrators @Chriss
                          last edited by

                          @Chriss Hmm... not as far as I can see! Anyway, I'm glad it's working well again now. It was difficult to track down! I'll mark the thread as solved. Hopefully @rechrtb will do the beta7 version as a release soon.

                          Ian

                          Bed-slinger - Mini5+ WiFi/1LC | RRP Fisher v1 - D2 WiFi | Polargraph - D2 WiFi | TronXY X5S - 6HC/Roto | CNC router - 6HC | Tractus3D T1250 - D2 Eth

                          Chrissundefined 1 Reply Last reply Reply Quote 0
                          • droftartsundefined droftarts marked this topic as a question
                          • droftartsundefined droftarts has marked this topic as solved
                          • Chrissundefined
                            Chriss @droftarts
                            last edited by

                            @droftarts Maybe my bad than. I only remember the one of my threads where moved, maybe a other one.

                            Thanks you very much! Glad that we found it and it is stable now and all of us can concentrate on other things.

                            1 Reply Last reply Reply Quote 0
                            • jensus11undefined
                              jensus11
                              last edited by

                              @rechrtb Do you give me the 2.1 beta7, please? I have terrible issues with my connection. That is so bad, that I have to restart the printer on every time.

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

                                @jensus11 here's a copy. DuetWiFiServer_beta7.bin

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

                                  Thanks, for the first time it looks really better.

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