How to clone a Duet printer?
-
wifi is stored in the wifi module, the rest on the SD card. you also have to flash the matching firmware.
edit: i'd change the printer name as well as it's advertised via mDNS
-
Thanks @bearer, good point about the wifi state.
-
Is there a way to specify a static Wifi IP? (Duet 2, 2.05.1). The documentation of M552 mentions it only for Duet Ethernet.
(Currently using a static address that is assigned by the router based on the Duet's MAC address but would prefer to have the setting in the Duet itself as done for other devices on our network).
-
@zapta said in How to clone a Duet printer?:
(Currently using a static address that is assigned by the router based on the Duet's MAC address but would prefer to have the setting in the Duet itself as done for other devices on our network).
I'd have thought that setting the static IP on the router is the better way of doing this anyway as you avoid the risk of IP clashes unless you've set a reserved range?
-
@zapta said in How to clone a Duet printer?:
Is there a way to specify a static Wifi IP? (Duet 2, 2.05.1). The documentation of M552 mentions it only for Duet Ethernet.
Yes, it's an option in the M587 command, so that you can use a different IP address depending on which access point you connect to.
-
+1 for using a DHCP reservation than static IP if possible.
´M587 ´ and ´I´ parameter will specify static ip
-
Thanks everybody for the info. I ended up defining the static IP in the router. That's a hassle because I use low numbers for static ips and high numbers for DHCP allocation but the router wouldn't allow me set a static IP outside the DHCP range so had to workaround it.
M587 would be nice if I would could have all the parameters but the wifi password in config.g and just provide the password once manually but I don't think this is possible.
It's working now. Thanks.
-
@zapta said in How to clone a Duet printer?:
M587 would be nice if I would could have all the parameters but the wifi password in config.g and just provide the password once manually but I don't think this is possible.
I could be wrong, but I think M552 Pnnnn overrides the Innnn from M587 (from memory) will see if I can verify later.
(also "static IP in router" is probably not static even if it seems like it, the client still uses the DHCP protocol but receives the same reserved address each time. Some DHCP servers allow reservations outside of the pool some don't, which is correct is up for debate.)
-
@bearer, yes 'fixed IP' may be more accurate here than 'static IP'.
Another issue is that M587 can't be set in config.g to avoid wearing out non volatile memory (per the M587 documentation). Theoretically Duet could write only if the data changes (or support conditional gcode to do that) but it seems that currently it writes it blindly.
-
M587 doesn't work in config.g without a delay afaik, but could be subject to change.
Conditional g-code support may be able to help, haven't poked it much but if you test for a wifi.g, enable wifi module, delay (to give wifi module time to start and accept the comands), run and either rewrite, rename or delete it. There has aslo been talk of a run-once.g or something to that effect.
But my response was more in the lines of saying you could probably choose SSID and (dhcp or static) IP with M552 after having set the keys once with M587.