DF player mini - wrong mp3 play

i have added in root of TF card

001.mp3
002.mp3
130.mp3
131.mp3
170.mp3
171.mp3

now i try to play 1.mp3 and i send this HEX

7E FF 06 03 00 00 01 EF

it plays 001.mp3 but if i try to play another mp3 then it play different file

example:

7E FF 06 03 00 00 83 EF //tried to play 131 but it start 170

this problem is for all other mp3 i send different number and it start different one

mp3_play(0x03,1);
void mp3_play_hex(uint8_t command, uint16_t parameter) {
uint8_t highByte = (parameter >> 8) & 0xFF;
uint8_t lowByte = parameter & 0xFF;

uint8_t data[] = { 0x7E, 0xFF, 0x06, command, 0x00, highByte, lowByte, 0xEF };

mp3_serial.write(data, sizeof(data));

}

1 Like

Everything in root is played by the date/time, the order in which the files were placed there. If you paste 001.mp3, 003.mp3, and 007.mp3 - in that order - it will play 003.mp3 when you send a command to play '002'.

The files placed in a folder will play faithfully - by their titles as you expect.

1 Like

ow thanks for clearing that, is there a way to play by filename

H,7E FF 06 12 00 00 01 EF

need to create a folder MP3 and put 0001.mp3 0002.mp3 and it will work

I think you've got it.

Well all except who you mark as solving the problem.

You didn't credit the member who told you the vital information needed to solve your problem. Yes you verified that this was correct but you didn't actually solve the problem yourself did you?

1 Like

i thought i need to click which one is the solution so if another member read in forum he can go directly to solution

I had to go through that with those and another player.

What I couldn't get to was the metadata to display title/artist/etc.

To run one well don't just send commands but read responses that give you player status. State machine that!

Please read
Thanking the people who helped you
And consider if you have done this correctly.

To save you time scrolling:-

Those of us who answer questions on here are doing so for free, out of community spirit. Please thank people who provide helpful answers and don't forget to give :heart:s as well.

It also helps if you click the :ballot_box_with_check: Solution button at the bottom of the reply that answered your question. This will make it easy for helpers to see that it is solved and for others with the same question to find the answer quickly.

So that is the reply that answered your question not the reply where you verified the advice given to you.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.