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

No response from YAT after sending command

Scheduled Pinned Locked Moved
General Discussion
3
27
2.2k
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.
  • undefined
    dc42 administrators @Kayjay
    last edited by 20 Mar 2019, 17:22

    @kayjay said in No response from YAT after sending command:

    I then try to connect but the browser just times out.

    What IP address did you enter in the browser, and where did you get that IP address from?

    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

    undefined 1 Reply Last reply 20 Mar 2019, 17:24 Reply Quote 0
    • undefined
      Kayjay @Phaedrux
      last edited by 20 Mar 2019, 17:22

      @phaedrux The duet web control. It works fine if I have 192.168.1.14 in config.g and I enter that in the browser, all is ok but I wanted to change it over so that DHCP is in control of the IP.

      1 Reply Last reply Reply Quote 0
      • undefined
        Kayjay @dc42
        last edited by 20 Mar 2019, 17:24

        @dc42 I entered 192.168.1.14 and I got it from YAT when I connected to the board with USB during initial setting up, I had the board on my desk next to my PC. Now I can't connect via USB coz the printer is in a different room to my PC.

        undefined 1 Reply Last reply 20 Mar 2019, 17:26 Reply Quote 0
        • undefined
          dc42 administrators @Kayjay
          last edited by 20 Mar 2019, 17:26

          @kayjay said in No response from YAT after sending command:

          @dc42 I entered 192.168.1.14 and I got it from YAT when I connected to the board with USB during initial setting up, I had the board on my desk next to my PC. Now I can't connect via USB coz the printer is in a different room to my PC.

          Like I said, your router will almost certain allocate a different IP address via DHCP.

          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

          undefined 1 Reply Last reply 20 Mar 2019, 17:35 Reply Quote 0
          • undefined
            Kayjay @dc42
            last edited by 20 Mar 2019, 17:35

            @dc42 I undestand that, perhaps I'm missing something somewhere. I put 0.0.0.0 into config.g for the IP address to enable DHCP. Isn't the s/w and the router supposed to take over now with no more input from me? so the IP is irrelevant, to me it's invisible when DHCP is working correctly. I'm only entering 192.168.1.14 to get a connection manually because DHCP won't do it, the browser just times out.

            I'll check through the router settings again in case I don't have DHCP activated in there.

            Keith

            undefined 1 Reply Last reply 20 Mar 2019, 17:40 Reply Quote 0
            • undefined
              Phaedrux Moderator @Kayjay
              last edited by 20 Mar 2019, 17:40

              @kayjay said in No response from YAT after sending command:

              so the IP is irrelevant,

              The IP is still very much relevant. DHCP will have assigned a new IP to the Duet. You will still need to know what it is to connect to it. And the router will need to be configured to reserve that new IP address for the Duet, otherwise it may change again in the future if the lease expires and isn't renewed. (for example, if the duet is left powered off for a while.)

              In your case, if you can't arrange a DHCP reservation, it may be best to specify a static IP for the Duet using an IP either outside the DCHP range while still in the same subnet, or in the upper end of the DCHP range to hopefully avoid a potential conflict in the future where the router assigns the same IP you are using.

              Z-Bot CoreXY Build | Thingiverse Profile

              undefined 1 Reply Last reply 20 Mar 2019, 17:52 Reply Quote 0
              • undefined
                Kayjay @Phaedrux
                last edited by 20 Mar 2019, 17:52

                @phaedrux Sorry, I didn't mean that the IP wasn't relevant at all, I just meant it wasn't relevant when in DHCP because I don't need to enter it. Isn't DHCP supposed to do all that and make it invisible to me?

                Your other suggestion sounds a better option for me, as you say making sure the IP is away from the ones that may be possible used by DHCP, I'll try that.

                Incidentally, my router admin pages reports the IP for Duettest as 192.168.1.95 but if I enter that into the browser it times out. I can still connct successfully with 192.168.1.14. I can control the printer on that IP, turn heaters on and off, move motors etc etc...... wierd or what !

                Keith

                undefined 1 Reply Last reply 20 Mar 2019, 17:59 Reply Quote 0
                • undefined
                  Phaedrux Moderator @Kayjay
                  last edited by 20 Mar 2019, 17:59

                  @kayjay said in No response from YAT after sending command:

                  sn't DHCP supposed to do all that and make it invisible to me?

                  Only if you're using a mDNS name to access the IP, like http://duet.local which I don't think works with the Duet Ethernet

                  Z-Bot CoreXY Build | Thingiverse Profile

                  undefined 1 Reply Last reply 20 Mar 2019, 18:16 Reply Quote 0
                  • undefined
                    Kayjay @Phaedrux
                    last edited by 20 Mar 2019, 18:16

                    @phaedrux OK, I think you're right there.

                    So, let me see if I have this right. I enable DHCP in config.g by creating a line that says

                    M552 P0.0.0.0

                    then I discover the IP either through my router or YAT, I the enter that IP into the browser address bar and it should stay the same all the time. Is that how DHCP works when done properly?

                    Keith

                    undefined 1 Reply Last reply 20 Mar 2019, 18:23 Reply Quote 0
                    • undefined
                      Phaedrux Moderator @Kayjay
                      last edited by 20 Mar 2019, 18:23

                      @kayjay said in No response from YAT after sending command:

                      Is that how DHCP works when done properly?

                      Yes, provided there is a DHCP reservation in the router for that IP, it should stay the same.

                      Z-Bot CoreXY Build | Thingiverse Profile

                      undefined 2 Replies Last reply 20 Mar 2019, 18:27 Reply Quote 0
                      • undefined
                        Kayjay @Phaedrux
                        last edited by 20 Mar 2019, 18:27

                        @phaedrux OK, thanks ...... phew I got there at last 🙂 I'll play about with it now and if I still can't achieve connection I'll set it up the way you suggested earlier.

                        Thanks pal ! you're a star .... and you too David !

                        1 Reply Last reply Reply Quote 0
                        • undefined
                          Kayjay @Phaedrux
                          last edited by 20 Mar 2019, 18:45

                          @phaedrux Should the Gateway be set to 0 with M554 P0.0.0.0 as well ?

                          1 Reply Last reply Reply Quote 0
                          • undefined
                            Phaedrux Moderator
                            last edited by 20 Mar 2019, 18:50

                            I think the gateway would still be your router IP

                            Z-Bot CoreXY Build | Thingiverse Profile

                            1 Reply Last reply Reply Quote 0
                            • undefined
                              dc42 administrators
                              last edited by 20 Mar 2019, 18:51

                              If you are using DHCP to get the IP address then it will automatically get the gateway address that way too.

                              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

                              undefined 1 Reply Last reply 20 Mar 2019, 18:57 Reply Quote 1
                              • undefined
                                Kayjay @dc42
                                last edited by 20 Mar 2019, 18:57

                                @dc42 ok now I am puzzled. The config.g commenting says make the next two lines 0 for DHCP, which is the IP M552 and Gateway M554, so which is right. What should I enter in Gateway? I currently have 0.0.0.0 and it's connecting.

                                1 Reply Last reply Reply Quote 0
                                • undefined
                                  Phaedrux Moderator
                                  last edited by 20 Mar 2019, 19:00

                                  My response was just based on the notes from the gcode wiki for setting the gateway. Go with DC42s response. which I think means that regardless of what you specify for the gateway in config.g if your IP address is set to 0.0.0.0 to get a DHCP address, the gateway will also be set via DHCP, so you don't have to worry bout it.

                                  Z-Bot CoreXY Build | Thingiverse Profile

                                  undefined 1 Reply Last reply 20 Mar 2019, 19:04 Reply Quote 0
                                  • undefined
                                    Kayjay @Phaedrux
                                    last edited by 20 Mar 2019, 19:04

                                    @phaedrux

                                    Yep, se what you mean. OK, as I have it at 0 now I'll leave that and let the DHCP sort it out.

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