VS1053 / VS1063 and long filenames

Writing software that controls the system and peripherals such as displays, SD cards, Buttons, LEDs, Serial Ports etc.
Post Reply
morpheus
Senior User
Posts: 21
Joined: Fri 2013-02-15 19:59

VS1053 / VS1063 and long filenames

Post by morpheus » Mon 2016-07-04 14:39

Hi,
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,
Giannis

User avatar
Panu
VLSI Staff
Posts: 2427
Joined: Tue 2010-06-22 13:43

Re: VS1053 / VS1063 and long filenames

Post by Panu » Tue 2016-07-05 11:20

Hmm, there might be difficulties fitting that code into the IRAM. Pasi might know better.

-Panu
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

User avatar
pasi
VLSI Staff
Posts: 1416
Joined: Thu 2010-07-15 16:04

Re: VS1053 / VS1063 and long filenames

Post by pasi » Tue 2016-07-05 12:12

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.
Visit https://www.facebook.com/VLSISolution VLSI Solution on Facebook

Post Reply