grblHAL / iMXRT1062

grblHAL driver for NXP iMXRT1062 (Teensy 4.x)
Other
51 stars 39 forks source link

SD Card support #1

Closed infamous-panda closed 3 years ago

infamous-panda commented 3 years ago

What would the SD Card typically be used?

Is it for storing and running g-code programs? If so how would it be accessed from Gcode Sender?

terjeio commented 3 years ago

What would the SD Card typically be used? Is it for storing and running g-code programs?

Yes.

If so how would it be accessed from Gcode Sender?

When detected a simple tab is presented with a list of the files on the card. Double click on the filename to run a file.

image

I need to add more functionality to this and tidy it up, already present in grblHAL is a rewind option where the same program can be run again by simply pressing Cycle Start. Upload to the card should be added as well, I am considering using the z-modem protocol for that. Upload has to be implemented at both ends.

infamous-panda commented 3 years ago

Cool, Does this have a speed or reliability benefit over streaming usb or ethernet?

On Thu, Apr 8, 2021 at 2:47 PM Terje Io @.***> wrote:

What would the SD Card typically be used? Is it for storing and running g-code programs?

Yes.

If so how would it be accessed from Gcode Sender?

When detected a simple tab is presented with a list of the files on the card. Double click on the filename to run a file.

[image: image] https://user-images.githubusercontent.com/20260062/114079994-21460a80-98ab-11eb-8824-c8a81344a3cb.png

I need to add more functionality to this and tidy it up, already present in grblHAL is a rewind option where the same program can be run again by simply pressing Cycle Start. Upload to the card should be added as well, I am considering using the z-modem protocol for that. Upload has to be implemented at both ends.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grblHAL/iMXRT1062/issues/1#issuecomment-816057784, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7D7UCRYV7FQV4SYINYJD3THX24HANCNFSM42TK2OIQ .

--

Jonas Concepcion

// www.joncon.net

terjeio commented 3 years ago

Does this have a speed or reliability benefit over streaming usb or ethernet?

I don't really know. I would guess reading data off the card is faster than usb or ethernet streaming. From the testing I have done (which is not much) reliability is good - cannot remember last time I saw any issues with the implementation.

Ok, I did a quick test streaming Landscape.nc in check mode: via USB it took about 9 seconds, from the card less than one second. However, there is an issue with check mode I'll have to fix - program end is not handled correctly when streaming from the card...

infamous-panda commented 3 years ago

That seems like a massive gain...

On Thu, Apr 8, 2021 at 3:44 PM Terje Io @.***> wrote:

Does this have a speed or reliability benefit over streaming usb or ethernet?

I don't really know. I would guess reading data off the card is faster than usb or ethernet streaming. From the testing I have done (which is not much) reliability is good - cannot remember last time I saw any issues with the implementation.

Ok, I did a quick test streaming Landscape.nc in check mode: via USB it took about 9 seconds, from the card less than one second. However, there is an issue with check mode I'll have to fix - program end is not handled correctly when streaming from the card...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/grblHAL/iMXRT1062/issues/1#issuecomment-816112715, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7D7UF2UAOB47AQ73TQ5NDTHYBTDANCNFSM42TK2OIQ .

--

Jonas Concepcion

// www.joncon.net

terjeio commented 3 years ago

Check mode bug is fixed in the latest build, and ioSender is updated with a context menu in the file list and an Upload button if YModem file transfer is enabled in the controller (by setting SDCARD_ENABLE to 2). Upload functionality is experimental/in beta state for now as it sometimes fails. If it does the next try is usually successful.