Dynamic IP set up in config.g doesn't work
-
I have a new config.g file with 552 set to P0.0.0.0 S1 and when I run 552 S1 it returns 192.168.1.14, which is the factory setting. Any suggestions?
-
Is the router perhaps just giving it the same ip address it had before? Or are you in a different subnet?
If you send
M552 S1 P0.0.0.0
in the console does it accept it?Could you please post your entire config.g?
-
I wonder if you may be affected by the same issue reported here: https://forum.duet3d.com/topic/11878/updated-to-firmware-2-03-wifi-not-working
-
I found the IP address assigned to the Ethernet and sent put it in through YAT. Only now when I disconnect the usb cable from teh DUET2 and power the board with my power supply YAT no longer has a comm port. How do I get web controller to communicate via the Ethernet connection?
-
Can you post your config file?
Did you check the link I posted earlier?
-
Yes, I checked the link and I don't have an M911 in my config. I have the same config file that came with the board with only the M552 is changed to P0.0.0.0 instead of the factory setting.
; Configuration file for factory testing Duet Ethernet and Wifi with V2.01 firmware
FOR TESTING ONLY! USE https://configurator.reprapfirmware.org/ to generate configuration files for your printer!
; Communication and general
M111 S0 ; Debug off
M550 PDuetTest ; Machine name and Netbios name (can be anything you like)
M551 Preprap ; Machine password (used for FTP)*** Ethernet networking: The following lines are used for factory testing - PLEASE REMOVE THEM
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
M552 P0.0.0.0 ; IP address
M554 P192.168.1.255 ; Gateway
M553 P255.255.255.0 ; Netmask;*** End of factory test lines to be removed
;*** Networking
M552 S1 ; Turn network onM555 P2 ; Set output to look like Marlin
G21 ; Work in millimetres
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Disable Fan 1 thermostatic mode
M106 P1 H-1; Axis and motor configuration
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S1 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M569 P4 S1 ; Drive 4 goes forwards
M574 X2 Y2 Z2 S1 ; set endstop configuration (all endstops at high end, active high)
;*** The homed height is deliberately set too high in the following - you will adjust it during calibration
M665 R105.6 L215.0 B85 H250 ; set delta radius, diagonal rod length, printable radius and homed height
M666 X0 Y0 Z0 ; put your endstop adjustments here, or let auto calibration find them
M350 X16 Y16 Z16 E16:16 I1 ; Set 16x microstepping with interpolation
M92 X80 Y80 AZ80 ; Set axis steps/mm
M906 X1000 Y1000 Z1000 E800 I60 ; Set motor currents (mA) and increase idle current to 60%
M201 X1000 Y1000 Z1000 E1000 ; Accelerations (mm/s^2)
M203 X20000 Y20000 Z20000 E3600 ; Maximum speeds (mm/min)
M566 X1200 Y1200 Z1200 E1200 ; Maximum instant speed changes mm/minute; Thermistors
M305 P0 T100000 B3950 R4700 H30 L0 ; Put your own H and/or L values here to set the bed thermistor ADC correction
M305 P1 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set first nozzle thermistor ADC correction
M305 P2 T100000 B3974 R4700 H30 L0 ; Put your own H and/or L values here to set 2nd nozzle thermistor ADC correctionM570 S180 ; Hot end may be a little slow to heat up so allow it 180 seconds
; Adjustments for dummy heaters on test rig
M307 H0 A250 C140 D5.5 B1
M307 H1 A250 C140 D5.5 B0
M307 H2 A250 C140 D5.5 B0; Fans
M106 P1 S-1 ; disable thermostatic mode for fan 1; Tool definitions
M563 P0 D0 H1 ; Define tool 0
G10 P0 S0 R0 ; Set tool 0 operating and standby temperatures
;*** If you have a single-nozzle build, comment the next 2 lines
M563 P1 D1 H2 ; Define tool 1
G10 P1 S0 R0 ; Set tool 1 operating and standby temperatures
M92 E80:80 ; Set extruder steps per mm; Z probe and compensation definition
;*** If you have a switch instead of an IR probe, change P1 to P4 in the following M558 command.
M558 P5 F100 T6000 X0 Y0 Z0 H3 ; Z probe is a Smart Effector and is not used for homing any axes R0.4 not used. Reduced F300 to 100
G31 P100 X0 Y0 Z-0.25 ; Set the zprobe height and threshold for Smart Effector;*** If you are using axis compensation, put the figures in the following command
M556 S78 X0 Y0 Z0 ; Axis compensation hereM208 S1 Z-0.2 ; set minimum Z
T0 ; select first hot end
; M117 Use https://configurator.reprapfirmware.org/ to set up your printer config -
@kthoma85 said in Dynamic IP set up in config.g doesn't work:
with only the M552 is changed to P0.0.0.0 instead of the factory setting.
you'll probably want to remove the other network config lines
(i.e. first getting a dynamic address and overwriting the gateway is a bad idea
unless you happen to be on the same subnet. same with the netmask, although /24 is quite common. you don't want to override the mac address either, unless you have a specific reason to do so) -
@kthoma85 said in Dynamic IP set up in config.g doesn't work:
*** Ethernet networking: The following lines are used for factory testing - PLEASE REMOVE THEM
M540 P0xBE:0xEF:0xDE:0xAD:0xFE:0xED ; MAC Address
M552 P0.0.0.0 ; IP address
M554 P192.168.1.255 ; Gateway
M553 P255.255.255.0 ; Netmask
;*** End of factory test lines to be removedRemove the lines and just use M552 S1, that should allow DHCP to pull an IP address along with the gateway, etc, and let the MAC address of the hardware speak for itself.