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

    Newbie connecting Workbee Duet 2 via Ethernet To MacBook Pro

    Scheduled Pinned Locked Moved
    Duet Hardware and wiring
    4
    38
    1.6k
    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.
    • kbjpickundefined
      kbjpick @A Former User
      last edited by

      @bearer Having returned to home turf, I have spent afternoon trying suggestions listed above. Summary is that whilst I can see the UNPOWERED Duet via 'System Information' when connected via simple USB - but not when I then connect to the powered Duet via either a USB/Ethernet or a Thunderbolt/Ethernet connector!
      Workbee with USB Connected shows Duet.png
      Workbee with Thunderbolt Ethernet connected does NOT show Duet.png
      You suggested "share the output of ifconfig for the external thunderbolt network when the Duet is connected and powered on." `and I have attached the file recording the result and hope this makes more sense to you than it does to me! Result of ifconfig with Thunderbolt to Gig Ethernet Adapter and Duet connected.docx
      The final item of information is that given there are four (4) connectors to the motors at the top of the Duet board, only three (3) of them illuminate when power is applied? The Y axis Right does NOT illuminate. The other three go out when the relevant limit switch is operated - I'm not sure why one should be out when the other three are on, but I can't see how this would effects the comms?

      Please accept my thanks to all of you who are contributing to my education. Ken

      droftartsundefined Phaedruxundefined 2 Replies Last reply Reply Quote 0
      • droftartsundefined
        droftarts administrators @kbjpick
        last edited by

        @kbjpick the ifconfig doesn’t show the IP address you’ve set for the gigabit Ethernet adapter. Set it to 192.168.2.2 with subnet mask of 255.255.255.0. Plug Ethernet cable into Duet and Mac, and plug in USB to Duet and Mac. This should power up the Duet. Connect to Duet via USB with serial terminal and send M552 P192.168.2.3 S1 which sets the Duet IP address. Then open a browser window on the Mac and type 192.168.2.3 into the address bar. This should connect you to DWC. If so, you can edit the config.g to set the Duet IP address permanently.

        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

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

          @kbjpick said in Newbie connecting Workbee Duet 2 via Ethernet To MacBook Pro:

          The final item of information is that given there are four (4) connectors to the motors at the top of the Duet board, only three (3) of them illuminate when power is applied? The Y axis Right does NOT illuminate. The other three go out when the relevant limit switch is operated - I'm not sure why one should be out when the other three are on, but I can't see how this would effects the comms?

          That's all normal, Those are the endstop lights. XYZ. The E endstops aren't used for normal motion endstops.

          Carry on with configuration and when you get to testing endstops with actual switches connected see if you actually have an issue.

          https://duet3d.dozuki.com/Wiki/Connecting_endstop_switches

          Z-Bot CoreXY Build | Thingiverse Profile

          1 Reply Last reply Reply Quote 0
          • kbjpickundefined
            kbjpick @droftarts
            last edited by

            @droftarts Following latest instructions - Query why or what does having the Ethernet cable connecting Duet and Mac as above actually do when mains power is not connected?
            However, as instructed, I left the Ethernet cable connected and I plugged in the USB to Duet and Mac and the Duet duly powered up and confirmed that sending M552 P192.168.2.3 S1 had changed the Duet IP address to 192.168.2.3 by querying with M552. So far so good!
            So, I now have the Ethernet connected to the Mac and Duet as well as the USB connection but with no mains power given stricture of not having mains power connected when USB connection is made between Duet and computer.
            Again, following your instructions, I open Chrome browser on Mac and enter 192.168.2.3 into the address bar - no connection and search times out. The Firewall is not activated and there are no Proxies.
            I tried this with another MacBook with same results.
            Precis - I can change IP on Duet but still am unable to connect to it to change config. g file - with apologies for verbosity to avoid confusion - any suggestions please. Ken

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

              @kbjpick the Ethernet will work under USB power. Once the Duet is set up and working you can disconnect USB and connect mains power.

              You temporarily changed (until the next power cycle) the Duet IP address with M552, but how is the Mac Ethernet adapter set up? I can see you have set it to something in this image:
              alt text
              But the actual numbers are obscured by the window on top. IP address for this should be 192.168.2.2, subnet mask 255.255.255.0.

              Once this is done, then connect the Duet by USB and Ethernet, change the Duet IP address with M552 again, and attempt to connect with the browser once more.

              If you can get DWC running, you can edit the config.g, putting in the Duet IP address, to make this set up permanent.

              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
              • kbjpickundefined
                kbjpick
                last edited by

                Thanks again for your patience - completed instructions as above and confirmed via M552 that network IS operative and Duet address is as follows " Network is enabled, configured IP address: 192.168.2.3, actual IP address: 192.168.2.3
                ok"
                However, when using chrome and entering "192.168.2.3" into search bar, I receive the following message "This site can’t be reached192.168.2.3 took too long to respond.
                Try:
                Checking the connection
                Checking the proxy and the firewall
                ERR_CONNECTION_TIMED_OUT"

                As I commented in an earlier post, The Firewall is not activated and there are no Proxies, and I have tried this with another MacBook with same results. Is there anything further I can attempt. Regards Ken

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

                  @kbjpick Can you post a picture of the network settings for you Mac Gigabit Adapter? Should look something like this:

                  b33d558e-3a79-4349-beea-beb95f6599d6-image.png

                  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

                  kbjpickundefined 1 Reply Last reply Reply Quote 0
                  • kbjpickundefined
                    kbjpick @droftarts
                    last edited by

                    @droftarts Thanks for quick reply, please see screen dump of your request and snapshot of my relevant network page

                    2848269E-2ED3-4DE2-B784-3EB320BB15ED.jpeg

                    It appears identical. Ken

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

                      @kbjpick Okay, that looks correct, and actually shows as 'connected'. After you are sure the Duet's IP address is set to 192.168.2.3 again with M552, and the Ethernet cable is plugged directly from Duet to Mac, can you open a Terminal window on your Mac (Applications > Utilities > Terminal) and type ping 192.168.2.3? Let it run for 10 seconds, then Control-C to stop it. This should give you something like (this was to a Duet 2 Ethernet on my network):
                      80d26b11-58c2-4835-aec6-3739d07869e0-image.png
                      If you get lots of 'Request timeout for icmp_seq 0' messages, then it's not seeing the Duet for some reason. If it does ping correctly, it is seeing it, but it's either not reading the SD card, or the www folder on the SD card is empty. So next thing is to show a directory listing of the SD card, eg:
                      dba309ba-8573-4078-8c57-30bdf530ceaf-image.png

                      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
                      • kbjpickundefined
                        kbjpick
                        last edited by

                        @droftarts said in Newbie connecting Workbee Duet 2 via Ethernet To MacBook Pro:

                        ping 192.168.2.3

                        Ian, have attached screen dump of Terminal confirming via M552 that the Duet's IP address is set to 192.168.2.3. Running ping 192.168.2.3 produces display on Terminal of "Bad command: ping 192.168.2.3" Does this help?
                        58EF1826-FEFD-4989-BAF8-A9AF23715532.jpeg
                        Ken

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

                          @kbjpick You send ping from the Mac terminal, not in the 'screen' serial terminal connected to the Duet. Start a new Terminal window (Command-n), then type ping 192.168.2.3.

                          Could you take a picture of how the Ethernet cable is connected between the Duet and Mac, just in case we're missing something obvious?!

                          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
                          • kbjpickundefined
                            kbjpick
                            last edited by

                            @droftarts said in Newbie connecting Workbee Duet 2 via Ethernet To MacBook Pro:

                            ping 192.168.2.3

                            My Mac/Apple education is leaping ahead! I never knew that there was more than one 'Terminal'! I am also appreciating the need to be LITERAL in reading instructions - Command n does not open a Terminal window - but 'Command-n' does! I have attached E579F503-EB44-41AB-9CBF-5FC91AB9A8DA.jpeg the result of the ping 192.168.2.3 command. Even to my uneducated eye it appears something is awry? Ken

                            1 Reply Last reply Reply Quote 0
                            • kbjpickundefined
                              kbjpick
                              last edited by

                              Ian photos of connections as requested
                              IMG_2502.jpeg IMG_2501.jpeg
                              Ken

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

                                @kbjpick hmm, yes, the ping response shows no connection. And you hadn’t turned off the Duet, so it’s IP address is still 192.168.2.3?

                                Do you have a spare Ethernet hub you can cable between the Duet and Mac? It’s possible the auto negotiation isn’t working between the two, and even a simple hub can force the right speed.

                                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
                                • kbjpickundefined
                                  kbjpick
                                  last edited by

                                  Ian Exposing all my ignorance here I know but, not sure what an ethernet Hub is? Google suggests one of these "TP-Link TL-SG105S 5-Port Desktop Gigabit Ethernet Switch/Hub, Ethernet Splitter, Plug & Play, no configuration required,' so have ordered it on Prime for delivery tomorrow. If this is not what you meant, please advise and I will order one. Ken

                                  Phaedruxundefined droftartsundefined 2 Replies Last reply Reply Quote 0
                                  • Phaedruxundefined
                                    Phaedrux Moderator @kbjpick
                                    last edited by

                                    @kbjpick said in Newbie connecting Workbee Duet 2 via Ethernet To MacBook Pro:

                                    5-Port Desktop Gigabit Ethernet Switch

                                    That should do it.

                                    Z-Bot CoreXY Build | Thingiverse Profile

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

                                      @kbjpick have you checked the Mac can connect to your normal network, to test the adapter? Unplug the Ethernet cable from the Duet, and plug it into your network router. Then change the nerork settings for it from manual to dhcp and see if it assigned an IP address.

                                      That hub looks fine, though I can’t guarantee it will resolve the problem.

                                      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 1
                                      • kbjpickundefined
                                        kbjpick
                                        last edited by

                                        Today's report. 5-Port Desktop Gigabit Ethernet Switch arrived albeit later than promised, and whilst working, it makes no difference to the communication between the Duet and the Mac, in that sending the command of ping 192.168.2.3 reports no response. I confirmed pre and post this activity that the address of the Duet WAS 192.168.2.3. I also connected the Mac to the router; changed the network settings from manual to DCHP and confirmed an IP address WAS assigned.
                                        BC245E96-19F0-4F89-BE41-0DBC1EC53801.jpeg
                                        Following suggestion that .."next thing is to show a directory listing of the SD card" please see image of my Card in juxtaposition to the example provided - a simple observation is that there appears to be less files than the example?
                                        295E5965-EF6C-4EA6-92E3-6586C6A52A40.jpeg
                                        Does the above provide any avenues for further investigation? Is it possible that whilst much of the Duet board is working, that the Ethernet 'module' is faulty? I have spent more time in connecting to a machine than the time taken to build it, but, I continue to welcome and appreciate your support in this. Ken

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

                                          33a80550-2d13-43b4-aa6a-405e7c858a2f-image.png

                                          should really be an address in the same range as the duet if that is the ethernet connection intended to be dedicated to the Duet.

                                          IP address 192.168.2.2
                                          Netmask 255.255.255.0

                                          (also please try to segment the different things you want to show, a jigsaw of windows is hard to follow)

                                          droftartsundefined 1 Reply Last reply Reply Quote 0
                                          • droftartsundefined
                                            droftarts administrators @A Former User
                                            last edited by

                                            @bearer I think that was to show that the wired gigabit adapter worked correctly.

                                            @kbjpick I'm sorry this isn't working correctly, I'm not sure exactly why it is not. Do you get any lights on the Duet Ethernet port when it's connected to the Mac?

                                            As you can access the SD card, can you edit the config.g (in Text Edit is fine), change the network section to the following (change M552 line and add M553):

                                            ; Network
                                            M552 P192.168.2.3 S1                           ; enable network and acquire dynamic address via DHCP
                                            M553 P255.255.255.0                            ; subnet mask
                                            M586 P0 S1                                     ; enable HTTP
                                            M586 P1 S0                                     ; disable FTP
                                            M586 P2 S0                                     ; disable Telnet
                                            

                                            Then, at least, you won't have to change the IP address of the Duet every time. I don't think the addition of the M553 subnet mask is important, but you could try it out, and see if the Mac will connect with this set (after changing the Mac's IP address back to 192.168.2.2, of course).

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