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

    Duet Wifi Webserver not responding

    Scheduled Pinned Locked Moved
    General Discussion
    13
    80
    10.5k
    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.
    • dc42undefined
      dc42 administrators
      last edited by

      @daveidmx, thanks for that, the "no free conn" is the source of the problem. Which main and wifi firmware versions are you running? Please try 1.21RC3 + DuetWiFiServer 1.21RC4 if you are not already running those, because they include some relevant fixes.

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

        Thanks! I'm running these:
        @daveidmx:

        I'm seeing this on FW 1.21RC3 (2018-02-28 build 4), WiFi server 1.21RC3 (28b1), web interface 1.21-RC4.

        Is that what you were suggesting to use? Or is there an RC4 of DuetWiFiServer I should test also? I'm looking here:
        https://github.com/dc42/RepRapFirmware/tree/dev/EdgeRelease/1.21RC3

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

          Please try RC4 of DuetWiFiServer, by following this link https://github.com/dc42/DuetWiFiSocketServer/blob/dev/Release/DuetWiFiServer-1.21RC4.bin and then pressing Download.

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

            Got it! I will report back tomorrow.

            1 Reply Last reply Reply Quote 0
            • daveidmxundefined
              daveidmx
              last edited by

              I didn't get as much testing in today as I'd hoped, but I haven't seen any connection resets so far. Yesterday it was as often as 10 minutes, or as rare as 6 hours. I've had about 2 hours of prints so far today, so… looking good so far?

              1 Reply Last reply Reply Quote 0
              • ShiftingTechundefined
                ShiftingTech
                last edited by

                Does the DuetEthernet still use this, or is there something else equivalent that we DuetEthernet folk should be trying out?

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

                  Duet Ethernet doesn't use the DuetWiFiServer.bin file. If you are getting disconnections on the Duet Ethernet and they only happen when you are homing the printer or when printing a file, run M122 after you reconnect and check the MaxReps figure in the report. Note: MaxReps gets reset back to zero after you run M122.

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

                    I think my disconnects have all been during print processes, but I'm not super confident in that statement. I will look into the maxreps thing. While I'm waiting for another disconnect event, can you explain what the maxreps means? And is any non-zero value bad, or…?

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

                      MaxReps figures above about 50 are bad. The value gives an indication of the interrupt load of the step pulse generator. If it gets too high then the http responder gets starved of CPU time.

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

                        Got it, thanks.

                        I just had an ethernet drop out, and when I did an M122 afterwards, I got a maxreps of 4. So I'm guessing that's not my problem…

                        1 Reply Last reply Reply Quote 0
                        • daveidmxundefined
                          daveidmx
                          last edited by

                          Sad news on my front. I'm still seeing the web console stop responding on 1.21RC4. Looks like the same issue still. The packet trace shows the same pattern as before (HTTP GET followed immediately by a connection reset) and the console indicates the same message ("refused conn on port 80 no free conn").

                          I tried to do an [c]M586 P0 S0[/c]/[c]S1[/c] cycle and it looks like it might have crashed the WiFi module. My print froze and I got this on the console:

                          M586 P0 S0
                          HTTP is disabled
                          ok
                          WiFi:
                          ESP reported status change
                          WiFi: Soft WDT reset
                          ESP reported status change
                          WiFi:
                          WiFi: ctx: cont
                          WiFi: sp: 3fff2fc0 end: 3fff32c0 offset: 01b0
                          WiFi:
                          WiFi: >>>stack>>>
                          WiFi: 3fff3170:  40233576 00000030 0000001c 40225893
                          WiFi: 3fff3180:  40225d11 3fff6cac 3fff5b3c 40225a2b
                          WiFi: 3fff3190:  00000003 3fff31d0 00000000 40105f8d
                          WiFi: 3fff31a0:  00000050 000000ff 00000000 00000000
                          WiFi: 3fff31b0:  3fff2125 3fff2190 3fff2194 00000000
                          WiFi: 3fff31c0:  00000000 3fff211c 3fff1900 40106542
                          WiFi: 3fff31d0:  00000000 005000ff 20000000 00000000
                          WiFi: 3fff31e0:  00000000 3fffc6fc 00000001 3fff22a0
                          WiFi: 3fff31f0:  00000000 3fffdad
                          
                          
                          1 Reply Last reply Reply Quote 0
                          • Nuvagundefined
                            Nuvag
                            last edited by

                            You could use M552 S0/S1 instead of M586, worked for me every time without problems during printing. (probably used 30+ times)

                            I'm still on 1.21.RC1 and had no wifi problems in the last 2 weeks.
                            I just installed my PanelDue and added two macros for disabling/enabling wifi, so i can restart it without connecting the usb.

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

                              I'm sorry to hear you are still having problems. Have you confirmed that you are running version 1.21RC4 of both the main firmware and the wifi firmware? Look on the Settings->General page of DWC to check.

                              You could try downloading and installing DuetWiFiServer 1.21RC4 again, in case the file got corrupted somewhere.

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

                                Here's what DWC says I'm running right now:

                                Firmware Version: 1.21RC4 (2018-03-11 build 1)
                                WiFi Server Version: 1.21RC4(08b3)
                                Web Interface Version: 1.21-RC4
                                
                                

                                I will re-download and re-flash and report back.

                                1 Reply Last reply Reply Quote 0
                                • daveidmxundefined
                                  daveidmx
                                  last edited by

                                  Confirmed it still stops responding.

                                  New conn on socket 7 for local port 80
                                  HTTP connection accepted
                                  Found responder
                                  Received 459 bytes
                                  Sending reply, file = no
                                  HTTP req, command words { GET /rr_status HTTP/1.1 }, parameters { type=3 }
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  WiFi: ../src/Listener.cpp(62): refused conn on port 80 no free conn
                                  
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • dc42undefined
                                    dc42 administrators
                                    last edited by

                                    Thanks, that gives me an idea of where to look. Do you use either FTP or Telnet, or just the web interface?

                                    I'll add more debugging in RC5 so that M122 dumps the state of all the connections.

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

                                      Just the web interface. Do you want me to test something on the others as well? (Or are you just wondering whether something else is also consuming sockets?)

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

                                        I was wondering whether FTP or Telnet was consuming sockets.

                                        I've completed version 1.21RC5 of the main firmware, so I'll look at why the wifi firmware might be running out of connections now.

                                        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
                                        • dc42undefined
                                          dc42 administrators
                                          last edited by

                                          I have just added DuetWiFiServer.bin version 1.21RC5 to the RRF 1.21RC5 files at https://github.com/dc42/RepRapFirmware/releases/tag/1.21RC5. Please install it on your system. When the problem next occurs, send M111 S1 P14 to enable WiFi debugging (if you haven't already), then send M122. The debug output at the end will include the status of all the connection objects. This should help me determine why none of them is free.

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

                                            Will do! I'm waiting for a 24-hour print to finish up, so it will be tomorrow.

                                            Any chance you added the remote port numbers to the output? That would help correlate them to a packet trace, and to the client's net state.

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