colinrgodsey / step-daemon

stepd - External planner and stepper for 3d printing
GNU General Public License v3.0
98 stars 8 forks source link

Does direct stepping work from an SD card or is it serial only? #23

Open Reggi3 opened 1 year ago

Reggi3 commented 1 year ago

I've been talking to a marlin user that is convinced that he's using direct stepping via an SD card without using step-daemon, I've gone through the code the best I can and it doesn't look like it's even possible for that to happen, I see nothing in marlin or any of the information on this repo that suggests that you can do direct stepping via SD.

It looks like step-daemon is necessary for it to work at all, either via a self install on a raspberry pi etc. setup or via a plugin for octoprint. It appears that the user has kludged using a BLOCK_BUFFER_SIZE of 256 (which means bypassing at least 2 sanity checks) and is convinced that the speed increase they are seeing is because the printer is using direct stepping via standard vanilla gcode from the SD. I am happy to be proved wrong but I think that they might be seeing a speed increase due to the increased buffer and nothing to do with direct stepping.

Can you confirm the correct way to use direct stepping and stepd, please? I'd really like to get to the bottom of this.

colinrgodsey commented 1 year ago

handled this offline. but basically- it seems this user was benefiting from the increased buffer size. I do plan on getting 32-bit supported when I can, which could probably give some intensely increased resolution and speed.