Off Image Display Order
Off Image Display Order
Does anyone know on what the DM42 bases the order in which it cycles through the Off Images? I guess I would have expected alphabetical, but the 36 images I have in my DM42 display in the following order relative to alphabetical: 34, 7, 8, 10, 11, 22, 12, 20, 25, 33... (i.e., the image that would be 34th in an alphabetical listing displays first, the 7th alphabetically displays second, etc.). I thought that it might be the order in which they were added to the Off Image folder, but I deleted the one that displayed first and then added it again, and it still displays first. So I was wondering if it based on something else, and if there is any way to force a display order.
Re: Off Image Display Order
On my DM42-Beta the order is alphabetical though not starting at the beginning but constantly with a file somewhere near the end. Also no idea why.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Re: Off Image Display Order
They are displayed in raw directory order. If you delete files, it leaves empty spaces in the directory that can be filled by new files. (It's a little more complicated than that, because with VFAT, directory entries are variable length. So when a new file is added to the directory, it needs to find a large enough gap in the directory, or append to the end of the directory.)
I think you can force a particular display order by deleting all the files in the OFFIMG folder and adding them back one at a time in the order you want them to be displayed. To save flash wear, it would be better to rename the OFFIMG folder to OLDIMG, create a new OFFIMG folder, and move (not copy) the images one at a time from OLDIMG to OFFIMG in the desired display order.
I think you can force a particular display order by deleting all the files in the OFFIMG folder and adding them back one at a time in the order you want them to be displayed. To save flash wear, it would be better to rename the OFFIMG folder to OLDIMG, create a new OFFIMG folder, and move (not copy) the images one at a time from OLDIMG to OFFIMG in the desired display order.
Re: Off Image Display Order
Thanks, that did it.ijabbott wrote: ↑Thu Mar 08, 2018 12:01 amI think you can force a particular display order by deleting all the files in the OFFIMG folder and adding them back one at a time in the order you want them to be displayed. To save flash wear, it would be better to rename the OFFIMG folder to OLDIMG, create a new OFFIMG folder, and move (not copy) the images one at a time from OLDIMG to OFFIMG in the desired display order.
Creating folders and moving files doesn't cause any flash wear? So I could leave the OLDIMG folder intact, and move images back and forth without wearing flash? (Please pardon my ignorance which I am sure is on full display.)
-
- Posts: 1100
- Joined: Tue May 02, 2017 5:48 pm
- Location: Netherlands
- Contact:
Re: Off Image Display Order
Moving files around does cause some flash wear, but not as much as copying files. When you move files, the file data stays put, but the affected directories do have to be updated.
A directory is essentially just another file, containing a list of file names and pointers to the files' contents. When a directory changes, because of files or subdirectories being added, removed, or renamed, it has to be updated on disk, but this is an operation that is typically optimized to write as little data as possible. Copying a file, on the other hand, is the worst-case scenario: all the sectors of the original file have to be copied to new locations.
Having said all that, I wouldn't worry about it too much. Modern flash memory lasts a long time, and offimg files are small... I don't think you'll wear out the DM42 flash chip that way.
Re: Off Image Display Order
Thanks to ijabott and Thomas for explaining. Reminded me of something learned long ago but forgotten. IIRC file handling on magnetic disks worked a similar way.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Re: Off Image Display Order
Agreed, thanks for the help and information.
Regarding wearing out the flash, you are probably correct, I will never wear it out and should not worry. But then I think, “if I did 10 flash-wearing operations per day, and the flash is good for 100,000 operations, that’s only 10,000 days! That’s only 27 years!”
-
- Posts: 564
- Joined: Mon Apr 24, 2017 8:38 pm
Re: Off Image Display Order
Are you going to queue for rebirth?keithdalby wrote: ↑Thu Mar 08, 2018 6:30 pmWith my diet, that'll see me through until I reroll my next character.
WP43 SN00000, 34S, and 31S for obvious reasons; HP-35, 45, ..., 35S, 15CE, DM16L S/N# 00093, DM42β SN:00041
Re: Off Image Display Order
Hi,
After that the flash dont stop working suddenly but you may loose the long term data integrity.
I haven't checked that practically though but searching for according tests with the Atmel mcu for the Arduino project (keyword "flash destroyer") may be worth searching/reading.
HTH!
Cheers Meino
A colleque of mine said, that the 100000 write cycles were combined with the 20 years of quaranteed data integrity.Jeff O. wrote: ↑Thu Mar 08, 2018 2:49 pmAgreed, thanks for the help and information.
Regarding wearing out the flash, you are probably correct, I will never wear it out and should not worry. But then I think, “if I did 10 flash-wearing operations per day, and the flash is good for 100,000 operations, that’s only 10,000 days! That’s only 27 years!”
After that the flash dont stop working suddenly but you may loose the long term data integrity.
I haven't checked that practically though but searching for according tests with the Atmel mcu for the Arduino project (keyword "flash destroyer") may be worth searching/reading.
HTH!
Cheers Meino
DM 42 - SN: 00373, Firmware release v.:3.22. / DMCP 3.24. as compiled by SwissMicros