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

      Michael, please see the firmware upload instructions at https://duet3d.com/wiki/Updating_main_firmware. You can't use bossac because it doesn't support the SAM4 processor used on the Duet 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

        ok! That would make sense then! I'll do that now, sorry for not reading!

        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

          It might have assigned another com port to the duet. You can see if it found the new port and get its number…
          I don't know windows 10 very well but in windows 7, it's under device manager then scroll down the list to COM/LPT ports and it hopefully shows up.

          Or you could just try COM 4 in the bossac command. I bet that's it. 🙂

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

            I had to go to Backup procedure #2 but get this:

            Connecting…
            [ERROR] Could not connect to /dev/tty.usbmodem14431 at baudrate 57600:
            Serial error: could not open port /dev/tty.usbmodem14431: [Errno 2] No such file or directory: '/dev/tty.usbmodem14431'

            So on to Emergency proceedure?

            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, thanks but you probably didn't read David's reply, can't do it with bossac on the Duet WiFi!

              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

                EDITED, stay tuned

                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 am able to install firmware with SAM-BA from Windows 10. I can now connect from Pronterface on Windows or Mac.

                  I then did Backup procedure #1 with the original .bin files that were installed on the CF when I got it.

                  I reenabled WIFI by sending M552 S1 from Pronterface. And connected from a web browser and got this 3 seconds later:

                  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

                  Note that I had placed all 3 .bin files (including DuetWebControl.bin) on the CF card for Backup procedure #1. Does M997 S0 also install it? Or do I need to do this manually with the web interface?

                  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

                    Forgot to mention, after doing the above the Settings->General panel shows:

                    firmware version 1.13 (2016-06-13)
                    Web interface: 1.11 JS: 1.11a=dc42

                    Is this the as-sent stock configuration?

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