djuseeq / Ch376msc

Arduino library for CH376 mass storage contoller
MIT License
77 stars 17 forks source link

file name Limitations #64

Open clear-sky opened 2 years ago

clear-sky commented 2 years ago

hi dear György Kovács and thanks for your nice code! a question! why file name must have 8 capitalized char ? is there any way to solve this Limitations? as far as i know sd cards dos not have this limitation.

djuseeq commented 2 years ago

Hi, @clear-sky . The chip are support the so-called MS-DOS-compatible short file name in 8.3 format. It is also possible to implement long filename support, but I do not find information on this in the incomplete (difficult to understand) documentation

Sahacin commented 2 years ago

Hi dear @djuseeq . After much searching, I was able to find examples cited in the datasheet, such as: " 8.4.10. Operation lower-case file name and long file name, please refer to the explain of example EXAM11 " library-->BOSSEN_USB_FOR_WT All the examples mentioned in Datasheet are in this library, but the problem is that they are not suitable for Arduino, and I tried my best to match them with Arduino , but didn't. I will enclose everything I have integrated with your library so that you can correct its problems if possible (pray for me if the structure I created made you laugh) my edited library-->Ch376msc.zip

djuseeq commented 2 years ago

That will not works in this way :( . I will check the source you attached.

Sahacin commented 2 years ago

Thanx dear @djuseeq

alvarotorijano commented 1 year ago

Hi is there any update with this? This chip seems to be the first choice to be used with all the arduino family

petervanderwalt commented 1 year ago

Hi!

Any chance to have Long Filename Support? https://openbuilds.com/threads/interface-cnc-touch-controller.16906/page-11#post-129152 refers

The CH376 does support long file names. It is specifically mentioned in the specs. It may just be a limitation for writing files.

"Provide file management functions: open, create or delete files, enumerate and search files, create subdirectories, support long file names;"

Their doc specifies an example "EXAM1" for long file names, which I cannot seem to find on their site...
goguelnikov commented 1 year ago

this could be a very interesting addition to the library, indeed. Any chance there is some good news about it? Best