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.
    • Nuvagundefined
      Nuvag
      last edited by

      Firmware Name:
      RepRapFirmware for Duet WiFi
      Firmware Electronics:
      Duet WiFi 1.0
      Firmware Version:
      1.20 (2017-12-23)
      WiFi Server Version:
      1.21RC1
      Web Interface Version:
      1.20

      1 Reply Last reply Reply Quote 0
      • parovoZZundefined
        parovoZZ
        last edited by

        Hi!

        Is it possible to make a program reset of the Wi-Fi module on an external button? For example, execute a script:

        M552 S-1;

        M552 S1;

        ?

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

          Yes, if you set up a trigger using M581.

          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
          • T3P3Tonyundefined
            T3P3Tony administrators
            last edited by

            if you do that I think you will need a pause in between the M552 S-1 and M552 S1 commands (I tried to make a macro for this but the S1 was executed too soon after the disable (while the wifi was still changing state) so it did not work.

            www.duet3d.com

            1 Reply Last reply Reply Quote 0
            • parovoZZundefined
              parovoZZ
              last edited by

              And then what to do?
              Now I connect a USB cable during printing…...brrrrrr))))

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

                You can insert a pause between the two M552 commands using G4.

                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
                • parovoZZundefined
                  parovoZZ
                  last edited by

                  G4 is bad. Stops printing ….
                  Is there a NOP command?

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

                    Good point, if a print is running then G4 will wait for everything to stop. Try this:

                    M552 S0 ; disconnect and shutdown wifi services
                    M587 ; list access points, with luck this will wait for the shutdown to complete
                    M552 S-1
                    M552 S1

                    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
                    • Danalundefined
                      Danal
                      last edited by

                      Another data point:

                      I lost connection to a DuetWifi during a long print. About six hours in. M582 (via PanelDue) stop/start did not fix. M552 stop/start and connectivity was fine.

                      Firmware Name: RepRapFirmware for Duet WiFi
                      Firmware Electronics: Duet WiFi 1.0
                      Firmware Version: 1.20 (2017-12-23)
                      WiFi Server Version: 1.20
                      Web Interface Version: 1.20

                      Wireless router is a Google WiFi mesh. It is about 15 feet from the printer. It is also true that my Desktop PC is cabled to that same Google node that serves the printer, and the wireless mesh from that node is the only connectivity available to my PC. Meaning that I'd know it instantly if the router mesh node itself dropped.

                      As mentioned, just another data point. No explicit reply needed. 🙂

                      Delta / Kossel printer fanatic

                      1 Reply Last reply Reply Quote 0
                      • Nuvagundefined
                        Nuvag
                        last edited by

                        As im a software developer myself i know such bugs can be hard to track down.
                        Some minor information which may or may not help:

                        • wifi may fail even when the printer is not printing (turn printer on, connect webinterface, wait some time, connection lost)
                        • wifi may fail within a few seconds after restart. Looks realy random, sometimes hours, and today it failed after <10 seconds

                        Its a really annoying problem, probably will finally add my PanelDue which i bought with the printer but never bothered to mount it as the wifi interface did not leave anything to be desired.

                        1 Reply Last reply Reply Quote 0
                        • madeinta1wanundefined
                          madeinta1wan
                          last edited by

                          I too have lost connection. I've got long prints running (4-5 days) and am currently 'printing blind'

                          Is connecting through a USB a bad idea while a print is running? Is it possible to reset the wifi connection from the duet board to the router while a print is running?

                          Thanks,

                          Nate

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

                            Connecting USB while the print is running is OK if you are careful, see https://duet3d.dozuki.com/Wiki/USB_ground_loops. Yes you can reset the network interface during a print.

                            Have you checked the points at https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors ?

                            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
                            • EasyTargetundefined
                              EasyTarget
                              last edited by

                              You should be fine with a laptop and a USB cable; You'd almost certainly be OK even if you put it on charge (laptops typically stay isolated behind their powerbrick).
                              Once connected You can send [c]M552 S0[/c] then [c]M552 S1[/c] to turn off/on the wifi and it /should/ reconnect to the AP, Use [c]M122[/c] to see how that works out.
                              I have a RasPI with a USB link to my Duet, and have had to do this several times when the Webcontrol stopped responding during a print, and it was successful each time.

                              Disaster? The original Printeye is dying with RRF 3.5 (M208 depreciated).
                              PrintPy2024 to the rescue!
                              MicroPython based; with simple wiring and and no custom PCB.

                              1 Reply Last reply Reply Quote 0
                              • madeinta1wanundefined
                                madeinta1wan
                                last edited by

                                That's great, thanks dc42 and EasyTarget . All sorted.

                                RasPi as terminal server?

                                Only 121hrs to go…

                                1 Reply Last reply Reply Quote 0
                                • Nuvagundefined
                                  Nuvag
                                  last edited by

                                  Is there an fix in the works?
                                  I'm starting to consider downgrading as in earlier versions the wifi was unstable too, but a simple refresh of the webpage reconnected the webinterface compared to restarting the wifi module via USB now.

                                  Yesterday i noticed i can no longer view my Gcode Files in the webinterface as this causes an Request timeout and disconnects the webinterface (but can be reconnected without restarting the wifi)
                                  In earlier versions this did not happen but the list of files was not always complete.

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

                                    @Nuvag:

                                    Is there an fix in the works?
                                    Yesterday i noticed i can no longer view my Gcode Files in the webinterface as this causes an Request timeout and disconnects the webinterface (but can be reconnected without restarting the wifi)
                                    In earlier versions this did not happen but the list of files was not always complete.

                                    There is a separate thread on this. That problem has been seen recently when you have very large GCode files on the SD card. The workaround is:

                                    • Format the SD card to use 64K clusters, which is the largest cluster size possible
                                    • If the SD card is heavily fragmented, defragment it, or get a new card
                                    • Use a fast SD card. I get excellent results using a Sandisk 16Gb Class 4 card formatted to 64K clusters.

                                    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
                                    • deadwood83undefined
                                      deadwood83
                                      last edited by

                                      Another user with frequent timeouts. Firmware 1.2.0 WebServer 1.2.1RC4 and WebServer 1.2.0
                                      WAP: Avaya WAP9122
                                      Router: Mikrotik CCR1009
                                      Switch: Avaya VSP4850GTX+

                                      No real way to connect the PC to the device for debugging sadly. Not without a 150ft USB.

                                      7:36:58 PM
                                      Disconnected.
                                      7:33:07 PM
                                      Connection established!
                                      7:28:48 PM
                                      Disconnected.
                                      7:23:46 PM
                                      Connection established!
                                      7:21:48 PM
                                      Disconnected.
                                      7:19:39 PM
                                      Connection established!
                                      7:19:39 PM
                                      Page Load complete!

                                      Other devices (ecobee, phones, etc) are rock solid for months on end.

                                      ETA: M122 Output
                                      WiFi module is connected to access point
                                      Failed messages: pending 0, notready 0, noresp 0
                                      WiFi firmware version 1.21RC3(28b1)
                                      WiFi MAC address 2c:3a:e8:0a:fe:52
                                      WiFi Vcc 3.39, reset reason Turned on by main processor
                                      WiFi flash size 4194304, free heap 13000
                                      WiFi IP address 10.10.30.86
                                      WiFi signal strength -46dBm, reconnections 0, sleep mode modem
                                      HTTP sessions: 1 of 8
                                      Socket states: 2 0 0 0 0 0 0 0
                                      Responder states: HTTP(1) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0)

                                      DIsconnections are equally bad when printing and when idle. The disconnects above are when idle.

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

                                        Then WiFi signal strength looks ok, but have you worked through the rest of https://duet3d.dozuki.com/Wiki/WiFi_disconnections_and_AJAX_timeout_errors ?

                                        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
                                        • deadwood83undefined
                                          deadwood83
                                          last edited by

                                          Yes sir, Ajax set to 5 in Settings / General. No microwaves running, no cordless phones.
                                          Every Sunday the WAP does a channel congestion scan and auto-selects the least-congested channels.
                                          Currently one 3x3 is on channel 6 for gn and the other 3x3 radio is on channel 132 for anac.

                                          No logs of disconnects from the router side unless I reset the duet.

                                          Just to be thorough I turned off mobile data on my phone to check (4g LTE in the US can interfere with cable modem bonding so why not?) and no difference.

                                          Edit: first channel has B mode rejection. Changed bgn to gn.

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

                                            I'm not certain the wifi firmware 1.21RC3 is fully compatible with main firmware 1.20. So please try either upgrading main firmware or downgrading DuetWiFiServer.

                                            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
                                            • First post
                                              Last post
                                            Unless otherwise noted, all forum content is licensed under CC-BY-SA