G-codes for mkdir, upload/download files
-
Hi there,
I'm a DuetWifi user with the latest stack of firmware.
Is it possible to create a directory with a g-code ?
is it possible to upload a g-code file (or any other file) to the sdcard with a g-code ?
and is it possible to retrieve a file with a g-code ?
-
You can't create a directory or retrieve a file (other than config.g) using gcode, but you can upload files. But you can do all of those things using HTTP commands.
-
Hi,
Thanks for your answer.
I'm trying to prevent the use of http/wifiserver since it has been unreliable for me for a long time.Can you provide me with an example on how to upload a g-code file to the sdcard from the serial/usb port please ?
-
Hi,
Thanks for your answer.
I'm trying to prevent the use of http/wifiserver since it has been unreliable for me for a long time.Can you provide me with an example on how to upload a g-code file to the sdcard from the serial/usb port please ?
Have you considered using FTP to upload/download files?
-
nope, ftp is an even worst protocol than http, but I'll give it a try. But in the mean time I'd rather upload g-codes files to sdcard through my usb/serial port.
-
See the descriptions of M28, M559 and M560 on the gcodes page of the wiki.
-
oh I saw M559 & M560 but I missed M28, Thanks