Send G-code file through USB
-
Is there a way to connect my laptop via USB to a Duet WiFi and transfer gcode files that way? I have completely given up on DWC today due to non-stop connection issues.
-
You can't transfer a file over USB to the SD card, but you could use a Gcode sender program like octoprint to stream a gcode file to the Duet but you lose a lot of features that way.
Would you like to troubleshoot your connection issues?
-
I had just typed a long reply with all the information I thought would be relevant, but think I figured it out.
I brought the machine from home to work and connected to a new Wifi network with YAT. It would connect, but never stay connected. Only long enough to send a command through DWC, but not even to upload a small gcode file.
After checking the config, it still had my old wifi credentials. After updating manually, it has seemed to stay connected. If I start having problems again I'll report back, but it seems resolved for now.
-
@plasticfactory I spoke too soon. Perhaps I was optimistic as this was the longest it had stayed connected, but it is now losing connection with higher frequency.
DWC: 3.1.1
Firmware: 3.0I'd prefer not to change my firmware for a several reasons, but suspect that will be the first suggestion.
Config:
; Configuration file for Duet WiFi (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v3.1.4 on Sun Aug 30 2020 11:50:50 GMT-0500 (Central Daylight Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"railcore" ; set printer name M669 K1 ; select CoreXY mode ; Network M552 S1 ; enable network M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet M587 S"___" P"____" ; Drives M569 P0 S0 ; physical drive 0 goes forwards M569 P1 S1 M569 P3 S0 M569 P5 S0 M569 P6 S0 M569 P7 S0 M584 X0 Y1 Z5:6:7 E3 ; set drive mapping M671 X-35:-35:385 Y36:285:164 S5 M350 X16 Y16 Z16 I1 ; configure microstepping with interpolation M350 E16 I0 M92 X200.00 Y200.00 Z1600.00 E720 ; set steps per mm M566 X900.00 Y900.00 Z600.00 E2 ; set maximum instantaneous speed changes (mm/min) M203 X10800.00 Y10800.00 Z600.00 E5000 ; set maximum speeds (mm/min) M201 X1800.00 Y1800.00 Z600.00 E2500 ; set accelerations (mm/s^2) M906 X1000 Y1000 Z1000 E1680 I30 ; set motor currents (mA) and motor idle factor in per cent M84 S30 ; Set idle timeout ; Axis Limits M208 X5 Y32 Z0 S1 ; set axis minima M208 X315 Y320 Z250 S0 ; set axis maxima ; Endstops M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop M574 Y1 S1 P"ystop" ; configure active-high endstop for low end on Y via pin ystop M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe M950 S0 C"duex.pwm1" ; create servo pin 0 for BLTouch M558 P9 C"^zprobe.in" H5 F120 T6000 ; set Z probe type to bltouch and the dive height + speeds G31 P25 X28.5 Y0 Z4.5 ; set Z probe trigger value, offset and trigger height M557 X1014:250 Y10:250 S20 ; define mesh grid ; Heaters M308 S0 P"bedtemp" Y"thermistor" T100000 B4138 ; configure sensor 0 as thermistor on pin bedtemp M950 H0 C"bedheat" T0 ; create bed heater output on bedheat and map it to sensor 0 M307 H0 A240.4 C661.1 D9.2 S1.00 V23.8 B0 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M308 S1 P"e0temp" Y"thermistor" T500000 B4723 C1.196220e-7 M950 H1 C"e0heat" T1 M307 H1 A314.6 C101.0 D3.0 S1.00 V24.2 B0 M301 P39.24 I5.38 D71.52 M143 H1 S350 ; Fans M950 F0 C"fan0" Q500 ; create fan 0 on pin fan0 and set its frequency M106 P0 S0 H-1 ; set fan 0 value. Thermostatic control is turned off M950 F1 C"fan1" Q500 ; create fan 1 on pin fan1 and set its frequency M106 P1 S1 H1 T45 ; set fan 1 value. Thermostatic control is turned on ; Tools M563 P0 S"MAHOR_80" D0 F0 H1 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined
-
@plasticfactory said in Send G-code file through USB:
I brought the machine from home to work and connected to a new Wifi network
My first guess is that your work network is configured in a way that prevents the Duet from keeping a connection.
Is there something your work people know about that network that's a bit different?
-
@alankilian That's certainly a possibility. The man to ask is an office over -- do you know more specifically what I should ask? This is not an area I'm particularly knowledgeable.
-
I know corporations sometimes do strange things with their WiFi networks, so I would just tell him/her that you've got a 3D printer that worked at home and keeps getting disconnected at work.
They might have connection logs that could tell them something about your connection.
Also, sometimes they setup a dozen WiFi access points with the same SSID and you might be connecting to one farther away. Sometimes they have a way to connect to a close one.
-
@plasticfactory probably not related, but it's not a great idea to include the M587 in your config. The network SSID and password gets written into the WiFi module, so you only need to send that the very first time you connect.
Including it in config.g means the WiFi module will have a bunch of unnecessary read/write ops every startup.As a short-term work around, might be worth switching it to access point mode to avoid the work network issues?
-
@alankilian Thanks for the suggestion. They are looking into it for me, and have identified a potential access point issue (all appear to be working, but only one appears when logging into the controller). I'll report back on this one.
@engikeneer Thanks for the tip, I had no idea. I'm reading up on access point mode now.
-
@plasticfactory yes it's possible to upload GCode files over USB, but not common to do that. See the M559 and M560 commands.