New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
M20 command cuts file names down to 8.3 format #1263
Comments
its beeing worked on... cant remember the issue no of my head but can look for it |
would be great if you can look it up for me. Thanks! |
could not find anything direct, the most close is this one: https://github.com/ErikZalm/Marlin/issues/1232 but hmm dont know why a bell is ringing in my head.... i total agree that long filenames should be added at some point |
Well, maybe this point has already come and it is time to go from legacy 8.3 names to long file names, don't you agree ? ;) There is another project on GitHub called Octoprint. It is a web application to manage printer jobs. It uses M20 command to list files and display then in the GUI. It looks really creepy, no way to distinguish what file am I printing especially in files are named like this, if you understand what I mean. SomefileName How can we make this fix happen ? |
well, i'm not a code writer, more like a manager.... trying to keep things going and not stall :-) what we need are more code writers that have time to spare... currently we are bug fixing thou, we want a clean and stable marlin before we add features.. |
If it is intendet to have long filenames at a m20 display, it is obligatory Then also, M32 /path/filename#", or "M32 S !filename#" need Long filenames are horrible as we try to work on a very very memory limited I would prefer to leave this untouched, as it can easily break Bernhard On Mon, Dec 29, 2014 at 1:51 PM, Bo Herrmannsen notifications@github.com
|
if not mistaken in issue 1232 somesone said that the germans are safe i assume that in germany there are no patent issues then... and since marlin firmware resides within the EU that means we dont have a patent problem... |
but yes.... if this is implemented we have to be very carefull not to break anything |
I could not foresee that such an harmful feature could create so many problems :) Anyhow it is up to you to decide when and if to implement it, but it would be "really good" to have it done. How about implementing new command that would do the job and list the files using long names? That way you would not break anything ? |
The AVR processor at the core of most Marlin installations has less The longer filenames are stored in a separate name translation file. A number of hacks can speed it up, but they make the code even more This is a recurrent philosophical question in Marlin development, But on the AVR boards, Marlin really has to act like an embedded system. |
we learn every day :-D dont take that negative, i'm really positive here and i think @ErikZalm told me that one of the goals was to be able to still run marlin on a 644 based board with basic stuff like 1 extruder etc so the only way i can see this done is to add a raspberry pi to the mix and print from that one and store the gcode files on it.... of course then the LCD is reduced to just a local monitoring thing... but off topic on the LCD, maybe someone have figured out to connect the LCD to the pi with octoprint and use it to select stuff local? |
No they aren't. They are stored in small chunks in the directory as hidden volume id records, in reverse order IIRC. You need a buffer long enough to reconstruct one long name and a buffer for the directory records, but you need that anyway as they are the same size as the 8.3 entries. |
Wow, you're right. They're even defined to be interleaved -- hidden I was wrong. :) I don't have SD so I am not a good choice for this development, but I |
8.3 file names are what are used in FAT file systems. The long file names are an extended attribute added (via a kludge) to the file but it's true file name is still the 8.3 name. These MS-DOS 8.3 names are great for today's Atmel AVR CPU's as they generally have less memory than even a first generation IBM PC. When you have 8K of memory: God bless 8.3 file names.
|
Considering how much dependency has this change involves and what I understood from the discussion above it is best to not implement this, at least not right now. Therefore I will close the bug for now. Thanks for your input. |
Wish I could see what commit/code change fixed the SD filename truncation issue. This or something related is causing M23 to fail/work on my Melzi 1284. |
@HedronUser It would be hard to track down exactly one change, as there have been several to the SD card code since this issue was originally posted. But we can start from where the code is now and try to solve your problem. Do you want to post a new issue about it? |
Just found this thread and I am puzzled. I have two printers (Hictop 3DP-17 and CR-10S), both have different firmware (Hictop has Marlin 1.1.0-RC8 - haven't updated to 1.1.5 yet, and CR-10S has stock firmware). Both have no problem displaying long names on the display (truncated to 40 character display width). Since the displays are going through the Arduino boards to read the SD, there must be something there you can use. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
God bless MS-DOS but we do not want it here. :)
If you issues M20 command to list the files on the SD card , the returned list contain names which are cut down the length of 8 characters for filename and 3 characters to file extension. Here is an example
So was in older Windows versions when dir command issues in command prompt truncated long file names.
Can this be fixed in this project so we can upstream fix it in the Ultimaker2 firmware?
The text was updated successfully, but these errors were encountered: