Hello !
I've acquired the DFPlayer for my STM32 Nucleo, and I've been wondering how it works a little bit (not that detailed), and I've read a bit how the mp3 file structure looked like (http://www.multiweb.cz/twoinches/mp3inside.htm), and I wondered how does the DFPlayer or any MP3 devices knows where the file starts and where the file ends ?
So I've read this site as well : https://doc.riot-os.org/group__drivers__dfplayer.html and I've learned something about FAT32. So I've wondered how it works. Because the MP3 structure format doesn't have : The name of the file, the amount of frames in 1 file, the end of file information. So does FAT32 adds the name of the file into the MP3 structure and adds the information of the size or rather the end of file information ?
For example if I've had : 001 super_music.mp3 then normally "001 super_music" file name isn't in mp3 structure, but rather the FAT32 adds this info ? If so can someone explain maybe how the DFPlayer knows when the title ends and when the normal data starts ? Because as I understand he tried to find a number in the title basing on the second link ?
I don't know, it's pretty confusing because how does the device know this is a title and not part of data from file like audio that happened to be 01 or something similar.
For example I had a File named 02/001 - super music.mp3.
So the structure of that looks like that <Folder name : 02 => in hexa also 02> <File name : 001=> in hexa 001> <mp3 - file structure> <File name with EOF> ??
Probably or rather 100% I'm sure I am wrong but I didn't understand how the DFPlayer reads the data from the memory or in what order and how he knows what is the title and what is the content of a file. You can also play music without using microcontroller to send one info to DFPlayer so a single button can also play the music so it can determine what file is what somehow but I don't understand how.
https://www.cbtnuggets.com/blog/tec...xfat-vs-ntfs-file-system-formatting-explained - this is what I've read so far about FAT32, but I've seen other sites that explains the clusters or columns with data.
I've acquired the DFPlayer for my STM32 Nucleo, and I've been wondering how it works a little bit (not that detailed), and I've read a bit how the mp3 file structure looked like (http://www.multiweb.cz/twoinches/mp3inside.htm), and I wondered how does the DFPlayer or any MP3 devices knows where the file starts and where the file ends ?
So I've read this site as well : https://doc.riot-os.org/group__drivers__dfplayer.html and I've learned something about FAT32. So I've wondered how it works. Because the MP3 structure format doesn't have : The name of the file, the amount of frames in 1 file, the end of file information. So does FAT32 adds the name of the file into the MP3 structure and adds the information of the size or rather the end of file information ?
For example if I've had : 001 super_music.mp3 then normally "001 super_music" file name isn't in mp3 structure, but rather the FAT32 adds this info ? If so can someone explain maybe how the DFPlayer knows when the title ends and when the normal data starts ? Because as I understand he tried to find a number in the title basing on the second link ?
I don't know, it's pretty confusing because how does the device know this is a title and not part of data from file like audio that happened to be 01 or something similar.
For example I had a File named 02/001 - super music.mp3.
So the structure of that looks like that <Folder name : 02 => in hexa also 02> <File name : 001=> in hexa 001> <mp3 - file structure> <File name with EOF> ??
Probably or rather 100% I'm sure I am wrong but I didn't understand how the DFPlayer reads the data from the memory or in what order and how he knows what is the title and what is the content of a file. You can also play music without using microcontroller to send one info to DFPlayer so a single button can also play the music so it can determine what file is what somehow but I don't understand how.
https://www.cbtnuggets.com/blog/tec...xfat-vs-ntfs-file-system-formatting-explained - this is what I've read so far about FAT32, but I've seen other sites that explains the clusters or columns with data.


