Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    Static IP Issues

    Duet Hardware and wiring
    4
    7
    461
    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.
    • jleadbetter
      jleadbetter last edited by

      So I am able to connect to my wireless network. The issue is that the unit aways picks up a DHCP address and not the static IP I have configured.

      Here is my configuration...
      ; Network
      M550 P"Tronxy x5s" ; Set machine name
      M551 P"xxxxxxxxx" ; Set password
      M552 S1 ; Enable network
      M587 S"xxxxxxxxxx" P"xxxxxxxxxx" I192.168.0.229 J192.168.0.1 K255.255.255.0 ; Configure access point and IP addresses. You can delete this line once connected
      M586 P0 S1 ; Enable HTTP
      M586 P1 S1 ; Enable FTP
      M586 P2 S1 ; Enable Telnet

      Any help would be appreciated.

      Thanks.

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

        Are you sure the address you're trying to use is actually free on the network?

        Do you have access to the router configuration? It's usually better to use the router DHCP reservation table to assign a permanent IP to the Duet.

        Z-Bot CoreXY Build | Thingiverse Profile

        1 Reply Last reply Reply Quote 0
        • DocTrucker
          DocTrucker last edited by

          M587 shouldn't be used in config and will fail if not preceeded by M552 S0.

          https://duet3d.dozuki.com/Wiki/Gcode#Section_M587_Add_WiFi_host_network_to_remembered_list_or_list_remembered_networks

          Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

          1 Reply Last reply Reply Quote 0
          • DocTrucker
            DocTrucker last edited by

            Step 7 is where you should be setting the static IP address.

            https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7

            Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

            1 Reply Last reply Reply Quote 0
            • DocTrucker
              DocTrucker last edited by DocTrucker

              It may be worth using a plain M587 to see what networks have been set up, then deleting them with M588 before starting again.

              https://duet3d.dozuki.com/Wiki/Gcode#Section_M588_Forget_WiFi_host_network

              This is done while connected via USB and once configured the wifi module remembers the settings though power cycles with no need for the lines in the config file.

              Edit: I'm guessing you followed the instructions right once to setup you duet to your network but then decided to use a static IP. You added the M587 with static IP to the config, but because the adaptor was enabled in the previous lines the M587 had no effect. The wifi module had already connected to the network with previously stored values.

              As Phaedrux says though, better to use your router for static address management anyway - it is harder to accidentally assign the same address to two devices. In this case just delete the M587 from your config and set up a reserved IP adress on your router based on the Duet's Mac address.

              Alive: 1 Ormerodish machines. 1 Custom Cantilever. 3 P3Steel. 1 Ciclopish scanner. In build: 1 P3Steel. Controllers: 2 Duet 2 , 2 D0.6, 1 D0.8.5, 1 D3 v0.5, 1 RAMPS/DRV8825, 1 Uno/Scan Card.

              1 Reply Last reply Reply Quote 0
              • jleadbetter
                jleadbetter last edited by

                Thank you all...got it sorted.

                1 Reply Last reply Reply Quote 0
                • peirof
                  peirof last edited by peirof

                  Do you have config-old.g....? I haved similar issue. An after search, do you have to edit config-old. G

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