Page 1 of 1

VS1053 / VS1063 and long filenames

Posted: Mon 2016-07-04 14:39
by morpheus
I have been using VS1063 with the standalone recorder software (with some modifications for my application) for some time now and would like to ask if long file names, or at least longer than 8 characters could be supported. Alternatively, being able to set an ID3 tag field could be equally useful.
My application records a lot of small files and being able to use more than 8 characters to identify them would be very useful.

Thank you in advance,

Re: VS1053 / VS1063 and long filenames

Posted: Tue 2016-07-05 11:20
by Panu
Hmm, there might be difficulties fitting that code into the IRAM. Pasi might know better.


Re: VS1053 / VS1063 and long filenames

Posted: Tue 2016-07-05 12:12
by pasi
Handling of long filenames while playing is pretty easy. The HandleDir() function needs to collect a long filename when it goes through the file entries in the directories.

However, creating LFN entries when creating files is an order of magnitude more involved. The little I remember, the entries need to be in successive entries and you need to calculate a hash and make sure the result is unique etc.

Creating a (fixed-length) ID3v2 tag which is saved to the first block would sound like a much easier job. The standalone recorder uses an additional FIFO, so you would just initialize this FIFO to contain the ID3v2 tag and let the normal save routine handle the rest.