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

    DuetWIFI migration

    Scheduled Pinned Locked Moved
    General Discussion
    6
    77
    13.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.
    • mhackneyundefined
      mhackney
      last edited by

      David, are you sure that the reported version # for the DuetWebControl.bin you uploaded yesterday is 1.11b-dc42?

      I've attempted to upload this version 3 times now to verify that I can upload and I get the 1.11a-dc42 version even after a hard reboot.

      At this point I am not able to stay connected to the web interface for very long at all. Interestingly, if I am quick and get an upload started, it seems to complete that successfully and then drops the connection a few seconds later. Perhaps it isn't actually uploading the new web control. Is there another way to install the web control?

      My 3D Printing blog: http://www.sublimelayers.com
      Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

      1 Reply Last reply Reply Quote 0
      • mhackneyundefined
        mhackney
        last edited by

        David, here's another odd thing. I set the MAC address in my config.g file to avoid conflicts. However, when I scan my network and find the Duet WiFi, it has a completely different MAC address than what I assigned.

        I assign: M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED
        it shows up as: 18:fe:34šŸ‡©šŸ‡Ŗ98:c7

        This address doesn't conflict with anything either but I find that odd.

        My 3D Printing blog: http://www.sublimelayers.com
        Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

        1 Reply Last reply Reply Quote 0
        • roboduetundefined
          roboduet
          last edited by

          @mhackney:

          I set the MAC address in my config.g file to avoid conflicts.

          https://duet3d.com/wiki/Changes_to_config_gcodes_and_firmware_behaviour

          The M540 command (set MAC address) has no effect.

          1 Reply Last reply Reply Quote 0
          • Toddimusundefined
            Toddimus
            last edited by

            @mhackney:

            David, are you sure that the reported version # for the DuetWebControl.bin you uploaded yesterday is 1.11b-dc42?

            I've attempted to upload this version 3 times now to verify that I can upload and I get the 1.11a-dc42 version even after a hard reboot.

            At this point I am not able to stay connected to the web interface for very long at all. Interestingly, if I am quick and get an upload started, it seems to complete that successfully and then drops the connection a few seconds later. Perhaps it isn't actually uploading the new web control. Is there another way to install the web control?

            I noticed a similar thing, but after the second try of re-uploading both the DuetWebControl.bin and DuetWiFiServer.bin and then running the M997 S1:2 and waiting for like 10 minutes (went to do something else and came back to it), it worked. I did a hard reboot of the Duet after the wait and then the web interface showed 1.11b-dc42.

            1 Reply Last reply Reply Quote 0
            • Toddimusundefined
              Toddimus
              last edited by

              @mhackney:

              Toddimus, thanks but you probably didn't read David's reply, can't do it with bossac on the Duet WiFi!

              I think I was typing my post right as David was typing his. I hadn't seen his until after. I haven't ever used bossac because I'm new to the Duet world and haven't needed it yet.

              1 Reply Last reply Reply Quote 0
              • mhackneyundefined
                mhackney
                last edited by

                @roboduet:

                @mhackney:

                I set the MAC address in my config.g file to avoid conflicts.

                https://duet3d.com/wiki/Changes_to_config_gcodes_and_firmware_behaviour

                The M540 command (set MAC address) has no effect.

                Thanks.

                My 3D Printing blog: http://www.sublimelayers.com
                Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                1 Reply Last reply Reply Quote 0
                • mhackneyundefined
                  mhackney
                  last edited by

                  Consider yourself luck Toddimus! It was a bit of a pain on non-windows (i.e. OS X) platforms to get set up properly.

                  My 3D Printing blog: http://www.sublimelayers.com
                  Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                  1 Reply Last reply Reply Quote 0
                  • mhackneyundefined
                    mhackney
                    last edited by

                    @Toddimus:

                    I noticed a similar thing, but after the second try of re-uploading both the DuetWebControl.bin and DuetWiFiServer.bin and then running the M997 S1:2 and waiting for like 10 minutes (went to do something else and came back to it), it worked. I did a hard reboot of the Duet after the wait and then the web interface showed 1.11b-dc42.

                    I've tried everything I an think of and still no luck. Multiple re-uploads of DWC.bin and DWIFIS.bin and running M997, hard reboots, waiting, and still have the problem.

                    My 3D Printing blog: http://www.sublimelayers.com
                    Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                    1 Reply Last reply Reply Quote 0
                    • Toddimusundefined
                      Toddimus
                      last edited by

                      @mhackney:

                      @Toddimus:

                      I noticed a similar thing, but after the second try of re-uploading both the DuetWebControl.bin and DuetWiFiServer.bin and then running the M997 S1:2 and waiting for like 10 minutes (went to do something else and came back to it), it worked. I did a hard reboot of the Duet after the wait and then the web interface showed 1.11b-dc42.

                      I've tried everything I an think of and still no luck. Multiple re-uploads of DWC.bin and DWIFIS.bin and running M997, hard reboots, waiting, and still have the problem.

                      Did you try knocking (or touching) on wood with your fingers crossed? That sometimes works for me. šŸ˜‰

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

                        Michael, please try the following:

                        1. Make sure that the M552 S1 line in config.g is commented out. If the WiFi module is not running the right firmware, it can make the main firmware unresponsive if you enable WiFi.

                        2. Install the new main firmware file DuetWiFiFirmware.bin. If the WiFi is not working, then I suggest you either use SAM-BA to do this, or copy it on to the SD card and send M997 S0 from a USB host program. You will need to reconnect the USB host program when the firmware update has completed. Then send M115 and check that the reported firmware version is 1.15-beta3.

                        3. Copy the new DuetWiFiServer.bin to the SD card if it isn't there already, and install it by sending M997 S1 from your USB host. After it reports success, send M552 S1 to enable WiFi. If it connects to your network successfully, it should reply with a connected message within a few seconds. Otherwise, after about 30 seconds it should reply with a message saying that it is running as an access point.

                        4. You can then try connecting via WiFi. If it doesn't work, then try re-installing DuetWebControl.bin by putting it on the SD card and sending M997 S2.

                        I believe I have covered all the firmware update procedures in the links at https://duet3d.com/wiki/Duet_Wifi_Wiki#Firmware, but please tell me if you think I have left anything out.

                        If you want to revert to previous versions, please note the following:

                        • The new DuetWebControl.bin should work with any versions of the main firmware and the wifi firmware
                        • The new main firmware 1.15beta3 works with both the original and the new DuetWiFiServer.bin
                        • The new DuetWiFiServer.bin will not work with main firmware prior to 1.15beta3.

                        HTH David

                        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
                        • mhackneyundefined
                          mhackney
                          last edited by

                          Thanks David. I've done everything up to step 4. I can connect but it constantly drops the connection within a few seconds. Once this happens, the web interface won't connect but I can run from paneldue. I'll go through your procedure verbatim from scratch. Can I use the .bin files on the CF that came with the card?

                          My 3D Printing blog: http://www.sublimelayers.com
                          Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

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

                            Yes you can use the .bin files that came with the SD card. What we do to program a new board is this:

                            • use SAM-BA to put the main firmware on the board

                            • connect Pronterface via USB (note that the M552 S1 command in config.g is commented out, so it doesn't try to start the wifi module)

                            • send M503 to make sure the SD card is working

                            • send M997 S1:2 to install both DuetWiFiServer and DuetWebControl

                            • send M552 S1 to start WiFi

                            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
                            • mhackneyundefined
                              mhackney
                              last edited by

                              David,

                              So I started from scratch and followed the above to the letter EXCEPT I used the latest release you put on DropBox yesterday. I also made sure to disconnect USB and reboot the Duet between critical steps. My Pronterface log was clean:

                              [[language]]
                              >>>M997 S1:2
                              SENDING:M997 S1:2
                               success
                              Erasing 295248 bytes...
                              Uploading file...
                              5% complete
                              10% complete
                              15% complete
                              20% complete
                              25% complete
                              30% complete
                              35% complete
                              40% complete
                              45% complete
                              50% complete
                              55% complete
                              60% complete
                              65% complete
                              70% complete
                              75% complete
                              80% complete
                              85% complete
                              90% complete
                              95% complete
                              Upload successful
                              Trying to connect at 460800 baud:
                               success
                              Erasing 3125248 bytes...
                              Uploading file...
                              5% complete
                              10% complete
                              15% complete
                              20% complete
                              25% complete
                              30% complete
                              35% complete
                              40% complete
                              45% complete
                              50% complete
                              55% complete
                              60% complete
                              65% complete
                              70% complete
                              75% complete
                              80% complete
                              85% complete
                              90% complete
                              95% complete
                              Upload successful
                              >>>M552 S1
                              SENDING:M552 S1
                              WiFi server starting up
                              DuetWiFiServer version 1.01
                              Flash size 4194304, free RAM 31512 bytes, WiFi Vcc 3.34V, host name: Maxie, reset reason: Turned on by main processor
                              WiFi server connected to access point HackneyNet, IP=192.168.1.242
                              
                              

                              Upon success, I used an Incognito chrome browser so there was no cached cruft. It connected fine and I see that the firmware packages were updated:

                              Firmware Name:	RepRapFirmware for Duet WiFi
                              Firmware Version:	1.15-beta3 (2016-07-09)
                              Web Interface Version:	HTML: 1.11b-dc42, JS: 1.11b-dc42
                              

                              Although it stayed connected a bit longer (30 seconds) I get the same AJAX communication error I've been getting:

                              Communication Error
                              
                              An AJAX error has been reported, so the current session has been terminated.
                              
                              Please check if your printer is still on and try to connect again.
                              
                              Error reason: timeout, retries 1
                              
                              

                              Once this happens I can't reconnect via the web interface, I get this:

                              Error
                              
                              Could not establish a connection to the Duet firmware! Please check your settings and try again.
                              
                              

                              However, I can use PanelDue with no problems.

                              This is all very similar to the experiences I had helping test Christian Hammacher's DWC code earlier this year to eradicate the disconnect problems many of us were having.
                              –--
                              So my next step is to use the original binaries - I saw you posted on another thread about this. I'll also capture a network trace with wireshark.

                              My 3D Printing blog: http://www.sublimelayers.com
                              Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                              1 Reply Last reply Reply Quote 0
                              • mhackneyundefined
                                mhackney
                                last edited by

                                Ok, I've now started from scratch as per your post above David - installed the pre-production firmware via SAM-BA, etc. I then installed the pre-production DWC.bin and DWiFiS.bin. Pronterface reported all of this installed successfully. Once these were installed, I setup Wireshark to capture traffic to my Duet WiFi's ethernet address. I then enabled WiFi in Pronterface.

                                I then launched an Incognito chrome browser and connected. I verified that all the pre-production version numbers were displayed on Settings->General. I feel confident that I have successfully back-graded everything to the pre-production binaries. I then homed from DWC. It lasted longer but I got a timeout and was able to capture the entire episode from initial turning on the WiFi to the failure. Since we can't attach files here, here's a link to the Wireshark trace on my dropbox: https://db.tt/FcFk6ZiA

                                My 3D Printing blog: http://www.sublimelayers.com
                                Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                                1 Reply Last reply Reply Quote 0
                                • mhackneyundefined
                                  mhackney
                                  last edited by

                                  Note that when I capture network traces for my other Duets with external WiFi (TP-Link) I don't see any of the retransmissions and other issues seen in this trace. The printers sit next each other with very strong wifi signals to my router. I haven't had disconnects from any of the other 4 printers running earlier Duets with these TP-Links since helping Christian test his updates earlier this year that seem to have eradicated disconnect issues on that release.

                                  My 3D Printing blog: http://www.sublimelayers.com
                                  Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                                  1 Reply Last reply Reply Quote 0
                                  • mhackneyundefined
                                    mhackney
                                    last edited by

                                    An update, after letting the disconnected board sit for 5+ minutes I tried reconnecting (press the Connect button). It actually did connect but then disconnected within 15 seconds. I did not get a Wireshark trace but in the future I'll run Wireshark before any similar attempts.

                                    My 3D Printing blog: http://www.sublimelayers.com
                                    Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                                    1 Reply Last reply Reply Quote 0
                                    • mhackneyundefined
                                      mhackney
                                      last edited by

                                      Also if I turn off the WiFi server and re-enable it in Pronterface (M552 S0 / M552 S1), it recovers and allows me to reconnect (but then fails eventually again).

                                      My 3D Printing blog: http://www.sublimelayers.com
                                      Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

                                      1 Reply Last reply Reply Quote 0
                                      • mhackneyundefined
                                        mhackney
                                        last edited by

                                        and here is my M122 dump after the above:

                                        [[language]]
                                        SENDING:M122
                                        Diagnostics
                                        Used output buffers: 1 of 32 (3 max)
                                        Platform Diagnostics:
                                        Memory usage:
                                        Program static ram used: -445744
                                        Dynamic ram used: 57704
                                        Recycled dynamic ram: 3016
                                        Current stack ram used: 428696
                                        Maximum stack ram used: 431780
                                        Never used ram: 51548
                                        Last reset 01:14:58 ago, cause: software
                                        Error status: 0
                                        [ERROR] Error status: 0
                                        
                                        Bed probe heights: 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000 0.000
                                        Free file entries: 10
                                        SD card interface speed: 20.0MBytes/sec
                                        SD card longest block write time: 0.0ms
                                        Slowest main loop (seconds): 8.235451; fastest: 0.000000
                                        Move Diagnostics:
                                        MaxReps: 3, StepErrors: 0\. Underruns: 0
                                        Heat Diagnostics:
                                        Bed heater = 0, chamber heater = -1
                                        GCodes Diagnostics:
                                        Move available? no
                                        Stack pointer: 0 of 5
                                        macro is idle
                                        http is idle
                                        telnet is idle
                                        serial is ready with "M122"
                                        aux is idle
                                        file is idle
                                        Network Diagnostics:
                                        WiFiServer is running
                                        SPI underruns 0, overruns 0
                                        Webserver Diagnostics:
                                        HTTP sessions: 0 of 8
                                        
                                        

                                        My 3D Printing blog: http://www.sublimelayers.com
                                        Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

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

                                          Michael, thanks fort all the tests you did and for the Wireshark dump. The dump show thart there were no transmissions from the Duet after the last successful status request, except for the usual [RST,ACK] that closed the connection.

                                          Please can you try again, but this time monitor the connected wireless devices in the status page of your wifi router. I need to see whether the Duet is still a connected device after the error occurs and you find you are unable to connect. You will probably need to press a Refresh button in your router's web interface to see the latest list of connected devices.

                                          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
                                          • mhackneyundefined
                                            mhackney
                                            last edited by

                                            David, I posted this on another thread here but I think I discovered the problem was my network:

                                            This is interesting, using some network monitoring tools and the admin console for my Verizon Quantum router I discovered that I had a few odd things going on on my network. Several devices which I could not identify were issuing a lot of packets and that seemed to be causing timeouts. Also, the Windows laptop that I VPN in into work was chewing up a lot of bandwidth. The Quantum router supports dual frequency but none of my devices were connecting the the 5GHz. So I created a new SSID for 5GHz and connect my lap worktop to it. Now, I haven't had a single disconnect in several hours from the Duet WiFi! And the Wireshark logs looks clean as a whistle.

                                            However, to answer your question - after the disconnect, my router status page shows the Duet WiFi as disconnected. It was precisely because I was looking at the status page that led me to see the odd activity on my network as I worked through identifying each of the 28 devices connected! They add up quickly.

                                            My 3D Printing blog: http://www.sublimelayers.com
                                            Coming this summer: "3D Printing Strategies - the art of perfecting your designs and prints"

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