Begin support for Sd cards

Authored by rizzitello on Feb 2 2018, 9:07 PM.

Description

Begin support for Sd cards

Summary:
Added support for M20 - M30 including unit testing.
AtCore can now do some basic SD card commands.

  • Mount/UnMOunt (not on the gui)
  • List files on the card with clean names.
  • Delete most files on the card. Had issues deleting a file named "this is a file with spaces in the name" from my card
  • Print from the sd card. stock print, pause, stop , resume have been updated to suport sd opperations.

TODO:

  • SD card printing progress is not set up
  • Detect when sd prints end
  • Repetier Plugin
  • Marlin Plugin
  • Teacup Plugin (need to build Firmware)
  • Aprinter Plugin (need to build Firmware)
  • Sprinter Plugin (need to build Firmware)
  • Smoothie Plugin (need testers No smothieboard, #reprap says its just like repetier for sd ops.)

Future Improvements:

  • SD card prints when stoped do not currently return the current line or byte. This can be stored and used to resume prints later on .
  • Making new files. This is kinda weird since you open a file with M28 then all codes sent after this are written to the file until M29 is sent to end the writing.

Test Plan:
This Tested. Built, Small jobs started and manipulated a few finished. It will need more testing on marlin marlins is kind of weird.

Tested on:

  • Repetier
  • Marlin

Reviewers: laysrodrigues, patrickelectric, tcanabrava

Reviewed By: laysrodrigues, patrickelectric

Subscribers: Atelier: AtCore

Differential Revision: https://phabricator.kde.org/D10299

Details

Committed
rizzitelloMar 1 2018, 11:08 PM
Reviewer
laysrodrigues
Differential Revision
D10299: Begin support for Sd cards
Parents
R232:e06e47e5879d: Basic Sd Card support
R232:028e0603f8b8: Move by QLatin1Char
Branches
Unknown
Tags
Unknown

Merged Changes

CommitAuthorDetailsCommitted
e06e47e5879dD10299rizzitello
Basic Sd Card support 
Mar 1 2018
dd32971f05a9D10299rizzitello
Add support for M20-M30 to GCode::toCommand(). Added unittests for all new… 
Mar 1 2018