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

    Problem with networking and DWC

    Scheduled Pinned Locked Moved Solved
    Duet Web Control
    7
    39
    1.8k
    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.
    • Phaedruxundefined
      Phaedrux Moderator
      last edited by

      On a fresh boot M552 S1 will enable networking and assume DHCP and should grab an address. Have you tried without the P.0.0.0.0 yet?

      Z-Bot CoreXY Build | Thingiverse Profile

      1 Reply Last reply Reply Quote 0
      • Phaedruxundefined
        Phaedrux Moderator @bjackson
        last edited by Phaedrux

        @bjackson said in Problem with networking and DWC:

        Maybe it's just something with that little ethernet daughter board plugged onto the mainboard.

        You could try reseating it.

        Try a different cable? Different port on the router?
        Straight connection to the PC without the router? If you do that and assign each an IP address you should be able to communicate.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • bjacksonundefined
          bjackson
          last edited by

          I carefully removed, inspected, and re-seated the ethernet daughterboard. No change. Everything looked fine mechanically.

          I eliminated the router and connected the printer to the computer directly with a brand new and different ethernet cable. At that time, both devices had static IP addresses. The printer reported it was at .14, and the computer .101.

          Pings still fail, and nothing come up when I point a browser there.

          Everything you can see by visual inspection seems fine. Jacks & plugs engaging properly, link lights on both end lighting up. Even with the direct PC to printer connection, I do see occasional flashes of the activity lights on both devices, but what I see there does not seem to correlate with anything I'm actually doing (like executing a ping command).

          I get the feeling that there's no actual network traffic happening to or from the printer. Without any actual connectivity, then the DHCP process can't work, and pings would of course fail.

          This still makes me worry about hardware failure.

          1 Reply Last reply Reply Quote 0
          • bjacksonundefined
            bjackson @A Former User
            last edited by

            @bearer said in Problem with networking and DWC:

            just put the firmware binary in the /sys folder of the SD card and run M997

            I went to here: https://github.com/Duet3D/RepRapFirmware/releases/tag/2.05.1

            From there I can download Duet2Firmware-2.05.1.zip

            When I look in that zip file I see among other files one called "Duet2CombinedFirmware.bin".

            If I understand the process, I can simply copy that bin file of about 411,236 bytes into the sys folder of the microSD card on the mainboard. When it boots up with that SD card so configured, I can then just execute the M997 command?

            If I have that right, then I'll try it to see if it has any impact on the networking issue. Now, I think I'm understanding the the board I have is capable of running later versions (3.x.x) of the firmware, but getting from 2.05.1 to that is not quite so simple as getting to 2.05.1 was from where I started.

            dc42undefined A Former User? 2 Replies Last reply Reply Quote 0
            • dc42undefined
              dc42 administrators @bjackson
              last edited by

              @bjackson said in Problem with networking and DWC:

              When I look in that zip file I see among other files one called "Duet2CombinedFirmware.bin".
              If I understand the process, I can simply copy that bin file of about 411,236 bytes into the sys folder of the microSD card on the mainboard. When it boots up with that SD card so configured, I can then just execute the M997 command?

              Correct.

              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
              • A Former User?
                A Former User @bjackson
                last edited by

                @bjackson said in Problem with networking and DWC:

                I do see occasional flashes of the activity lights on both devices, but what I see there does not seem to correlate with anything I'm actually doing (like executing a ping command).

                would you be able to install wireshark on your computer and run it when the board is connected directly with a network cable to the computer?

                the flashes could be compute doing regular broadcasts or the duet trying to obtain a dhcp lease, wireshark shoud be able to show you which.

                @bjackson said in Problem with networking and DWC:

                When I look in that zip file I see among other files one called "Duet2CombinedFirmware.bin".
                If I understand the process, I can simply copy that bin file of about 411,236 bytes into the sys folder of the microSD card on the mainboard. When it boots up with that SD card so configured, I can then just execute the M997 command?

                Yes, that'll take care of the RepRapFirmware. To upgrade to 3.1.1 you'll need to repeat the steps with the adittion of getting both Duet2CombinedIAP.bin and Duet2CombinedFirmware.bin from of Duet2and3Firmware-3.0.zip and Duet2and3Firmware-3.1.1.zip., and run M997 after each set of files. (the extra steps compared to 2.05.1 is you need to first update to 3.0.0 and the inclusion of the Duet2CombinedIAP.bin file)

                Then to finish it off you should update the web interface by getting all the files from DuetWebControl-SD-3.1.1.zip and put into the /www directory on the SD card.

                1 Reply Last reply Reply Quote 0
                • bjacksonundefined
                  bjackson
                  last edited by

                  So far, I've been unable to get the board from 2.03 to 2.05.1. I copied three files from the software repository to the sys folder on the SD card. They were:
                  Duet2CombinedFirmware.bin
                  DuetWiFiServer.bin
                  iap4e.bin

                  Put the card back, powered up, ran M997 S0:1

                  I get the warning that the serial interface will be shutdown for a firmware upgrade, and that I should check back in 30 seconds. I gave it the time, and then gave the M115 command to see if the firmware level had changed. It still reports 2.03. Also tried a reset to see if that helped, but it did not.

                  Also, no progress so far on getting the networking to function. I really don't expect a minor firmware update to fix it, but I wanted to at least get started advancing the firmware.

                  dc42undefined 1 Reply Last reply Reply Quote 0
                  • Phaedruxundefined
                    Phaedrux Moderator
                    last edited by Phaedrux

                    Odd that the firmware didn't succeed.

                    Did you place those files in the /sys folder or the root? It should be in the /sys folder. Those files would already exist in the /sys folder for the current 2.03 version, so if you didn't replace them, when you sent the command to update, it may have just been using the same 2.03 version to flash.

                    DuetWifiServer.bin isn't needed as you have an ethernet board but it being there shouldn't matter.

                    Can you try one more time on the firmware update using M997 S0 only? The S0:1 would be for the main firmware and wifi firmware.

                    Can you list the contents of the /sys folder? Perhaps you're missing a different iap file.

                    On the networking front, wireshark would be a good test at this point.

                    Z-Bot CoreXY Build | Thingiverse Profile

                    1 Reply Last reply Reply Quote 0
                    • bjacksonundefined
                      bjackson
                      last edited by

                      On the matter of firmware:
                      OK, sure. Here's what's in the sys folder:
                      bed.g cancel.g config.g Duet2CombinedFirmware.bin, iap4s.bin
                      DuetWiFiServer.bin, homedelta.g iap4e.bin pause.g
                      resume.g sleep.g stop.g test1log.txt test2log.txt
                      test3log.txt test4log.txt tfree0.g tpost0.g and tpre0.g

                      BTW, here is what's actually in test3.log.txt:

                      2020-05-21 14:46:40 Event logging started
                      2020-05-21 14:46:40 HTTP client 192.168.1.134 disconnected
                      2020-05-21 14:46:44 HTTP client 192.168.1.134 login succeeded
                      2020-05-21 14:47:14 Event logging stopped

                      That seems to suggest that in testing it did communicate with a host that was at .134

                      I re-ran the firmware update command, this time with only the S0 after the M997. It still comes back stuck at 2.03 for some reason. I wonder if I really have the right content in the firmware binary. The file is named Duet2CombinedFirmware.bin, and reports a time stamp of 02/09/2020 @ 05:25. The files is 411,236 bytes, and 413,696 on disk.

                      On the matter of networking:
                      I got a different computer (just in case in some wild way that mattered) and continued testing. I installed Wireshark, fired it up, and executed "ping 192.168.1.14". That put some content in the Wireshark display, but I didn't see a single thing in the packet capture that was sourced from the computer. What I saw was a ARP request saying "Who has 192.168.1.14", but nobody replied.

                      I have emailed Filastruder and asked for an RMA, starting with the little ethernet daughter board. I feel like I really need to try to do something to prove or eliminate hardware failure as a possibility.

                      Phaedruxundefined 1 Reply Last reply Reply Quote 0
                      • Phaedruxundefined
                        Phaedrux Moderator
                        last edited by

                        Just to be sure you could download this one and place it in /sys and give it one more try.

                        https://github.com/Duet3D/RepRapFirmware/releases/download/2.05.1/Duet2CombinedFirmware.bin

                        And just in case, grab these two iap files and place them in /sys as well, over write what you have in there already.

                        https://github.com/Duet3D/RepRapFirmware/releases/download/2.03/iap4e.bin

                        https://github.com/Duet3D/RepRapFirmware/releases/download/2.03/iap4s.bin

                        What device is .134?

                        Z-Bot CoreXY Build | Thingiverse Profile

                        1 Reply Last reply Reply Quote 0
                        • Phaedruxundefined
                          Phaedrux Moderator @bjackson
                          last edited by

                          @bjackson said in Problem with networking and DWC:

                          I have emailed Filastruder and asked for an RMA, starting with the little ethernet daughter board. I feel like I really need to try to do something to prove or eliminate hardware failure as a possibility.

                          If we can't get it figured out, yes we will get it exchanged. It's just very rare for an ethernet to fail to connect for hardware reasons, though not impossible.

                          Could you provide some close up photos of the module and board area?

                          Z-Bot CoreXY Build | Thingiverse Profile

                          1 Reply Last reply Reply Quote 0
                          • bjacksonundefined
                            bjackson
                            last edited by

                            I obtained those three files and put them in the /sys folder, overwriting whatever I might have had with the same names. It still comes back from M115 reporting no change in the firmware version. After it recovered from the supposed firmware update, I checked, then I powered down the board, re-energized it again, and checked again. Still no change.

                            BTW, at this time, I don't have the printer power supply on. The board is being powered via USB. I presume that's enough power available to run the ethernet too?

                            As for device .134, I can only guess. I did not create those testlog files, but I assume somebody did who was doing final QC on the equipment before releasing it for distribution. I would assume it was a computer they used to test network connectivity to the board. It seems to say that it worked at one time.

                            I have attached a couple of photos. I even got one that actually caught the green activity light on the ethernet jack on for a quick flash. You can barely make out the orange glow from the link light on the other side of the plug retainer.close-up-of-ethernet-board.jpg )oveerall-view.jpg

                            Phaedruxundefined 1 Reply Last reply Reply Quote 0
                            • Phaedruxundefined
                              Phaedrux Moderator @bjackson
                              last edited by

                              @bjackson said in Problem with networking and DWC:

                              The board is being powered via USB. I presume that's enough power available to run the ethernet too?

                              Normally it would be. Perhaps your supply can't keep up? Have you tried applying VIN yet?

                              @bjackson said in Problem with networking and DWC:

                              I assume somebody did who was doing final QC on the equipment before releasing it for distribution.

                              Yes, of course. I was being dense.

                              Z-Bot CoreXY Build | Thingiverse Profile

                              1 Reply Last reply Reply Quote 0
                              • Phaedruxundefined
                                Phaedrux Moderator
                                last edited by

                                It was also suggested to me by someone far more on the ball than me that there might be an issue with auto negotiation, so see if your router/switch has the option of forcing the link to 100 full duplex.

                                Z-Bot CoreXY Build | Thingiverse Profile

                                1 Reply Last reply Reply Quote 0
                                • bjacksonundefined
                                  bjackson
                                  last edited by

                                  Have you tried applying VIN yet?

                                  Yes, I did try that. That doesn't change the behavior I'm seeing. The computer who's USB port is powering the board for these tests is a very standard Dell Optiplex 755 desktop machine.

                                  I left things up over night and looked again at the packets that Wireshark had captured. All I'm seeing is IPv4 and IPv6 packets coming from the computer, and nothing coming from the Duet.

                                  The auto-negotiation issue was considered. Right now, I'm using the super simple test environment of the computer connected to the Duet board with an ethernet cable. The router is not involved currently.

                                  I went into the speed/duplex settings for the network card on the computer and experimentally set it to 100 half, and 100 full. Those choices did not work, but in fact made the error messages seen when trying the ping command to be more severe 🙂 I put it back to Auto.

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

                                    @bjackson Can you try the Duet again directly connected to your PC? Assuming the PC isn't connected to any other network, you only need to set the ethernet adaptor's IP address and subnet mask, and the Duets IP address and subnet mask. If the PC is connected to another network through another adaptor (WiFi or wired), you just need to make the Duet/PC network sufficiently different. See https://duet3d.dozuki.com/Wiki/Setting_up_networking_on_Duet#Section_Wired_direct_connection for full details.

                                    Are you actually editing the config.g with the new settings, or typing them in through a serial console (eg YAT) over USB? The settings you used in your original post come from the standard SD card contents: https://github.com/T3P3/Duet/blob/master/Duet2/SD Card Contents/sys/config.g

                                    I can't remember if changing network settings take immediate effect, or if it's better to disable the network, change the settings, then enable network. But it may be worth trying in this order.

                                    Finally, check the SD card has a www folder, which should contain the files for the Duet Web Console (DWC). See here for the folder structure and contents: https://duet3d.dozuki.com/Wiki/SD_Card#Section_Creating_the_file_structure

                                    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

                                    1 Reply Last reply Reply Quote 0
                                    • T3P3Tonyundefined
                                      T3P3Tony administrators
                                      last edited by

                                      @bjackson reading down from the top it looks like you have had the Duet Ethernet connect directly to you laptop by a network cable and both configured with 192.158.1.x IP addresses?

                                      If you then connect in YAT and send:

                                      M552 S0 (to disable the network)
                                      then
                                      M552 P192.168.1.14 S1 (to enable the network and set a fixed IP)

                                      The you should be able to pin 192.168.1.14 from your PC

                                      If that does not work then please use this thread as a warranty replacement authorisation.

                                      www.duet3d.com

                                      1 Reply Last reply Reply Quote 0
                                      • bjacksonundefined
                                        bjackson
                                        last edited by

                                        it looks like you have had the Duet Ethernet connect directly to you laptop by a network cable and both configured with 192.168.1.x IP addresses?

                                        I've tested both ways, i.e. single cable between the computer and board, and also both of them connected to LAN ports on a router. No difference in behavior seen.

                                        When I power up the board and send commands M552, M553, and M554, it tells me these things:

                                        Network is enabled, IP address is 192.168.1.14
                                        Subnet mask is 255.255.255.0, Gateway is 192.168.1.254
                                        That just upon powered up the board. It has those settings because of lines in config.g Ping does not work.

                                        M552 S0 (to disable the network)
                                        then
                                        M552 P192.168.1.14 S1 (to enable the network and set a fixed IP)

                                        OK, I followed those steps exactly, still no response to ping even though the network status lights next to the RJ45 network connection jacks both on the computer and on the board look as they should.

                                        If that does not work then please use this thread as a warranty replacement authorisation.

                                        At this point, do you think I should be attempting to RMA the whole thing, or just the ethernet daughter board. If networking was the only issue, I'd perhaps lean towards just the daughter board, but I also have the firmware upgrade issue.

                                        As for that, due to the fact I'm new to this device, I leave more room for sure that I'm just not doing something right. Some very helpful folks here did point me with explicit links to the files needed, and reviewed the command to be given, but it always comes back reporting firmware as 2.03, not 2.05.1 as hoped.

                                        Of course, I'd really like to get all the way to the latest current stable release of firmware. Is there any way that I could lay my hands on a board that's already in that state? If not, I'll keep trying to get there.

                                        A Former User? 1 Reply Last reply Reply Quote 0
                                        • A Former User?
                                          A Former User @bjackson
                                          last edited by

                                          @bjackson said in Problem with networking and DWC:

                                          I leave more room for sure that I'm just not doing something right.

                                          if you're up for using something teamviewer, anydesk, chrome remote desktop, vnc etc to your computer that is both online and directly connected to the duet with ethernet and usb I'm sure myself or someone else could take a quick look to rule out that

                                          1 Reply Last reply Reply Quote 0
                                          • elmoretundefined
                                            elmoret
                                            last edited by

                                            @bjackson - Tim here, from Filastruder. You've been through enough troubleshooting - send the board to the address on our website's contact page, along with your original order number, and we'll troubleshoot it and either upgrade it and send it back to you, or replace it (with updated firmware) as needed.

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