DFPlayer icon indicating copy to clipboard operation
DFPlayer copied to clipboard

mp3.getStatus() always returning 0 even when mp3 playing

Open Morsey opened this issue 2 years ago • 3 comments

Great library - thank you :)

I have it up and running, however I am unable to detect when a track has finished. I thought I could use:

while(mp3.getStatus() == 1){ delay(50);
}

But I always get 0 for mp3.getStatus() even when a track is playing - any suggestions?

I should add - I have the "df player HW-247A" version with the GD3200B chip

Morsey avatar Apr 05 '23 21:04 Morsey

Thank you for feedback. I'll double check.

By the way, did you insrease response timeout to 350msec..500msec for GD3200B?

mp3.begin(mp3Serial, 350, DFPLAYER_HW_247A, false); //false=no feedback from module after the command

enjoyneering avatar Apr 06 '23 12:04 enjoyneering

I believe I did - I used your example code.

Morsey avatar Apr 06 '23 18:04 Morsey

I have GD3200D and I get also always 0 for any read from module: String infos = "Mp3 stat:"+mp3.getStatus(); infos = infos + "Vol:"+ mp3.getVolume(); infos = infos + "EQ:"+ mp3.getEQ(); infos = infos + "PlayMod:"+ mp3.getPlayMode(); infos = infos + "Ver:"+ mp3.getVersion(); infos = infos + "TrksSD:"+ mp3.getTotalTracksSD(); infos = infos + "Track:"+ mp3.getTrackSD(); infos = infos + "TrksFold1:"+ mp3.getTotalTracksFolder(1); infos = infos + "Folders:"+ mp3.getTotalFolders(); infos = infos + "CmdStat:"+ mp3.getCommandStatus();

returns string infos: stat:Vol:0EQ:0PlayMod:0Ver:0TrksSD:0Track:0TrksFold1:0Folders:0CmdStat:0 Any reason that there is no answer? ( I am not using SW serial but the HW serial port of an ESP8585)

androidonis avatar Aug 30 '23 17:08 androidonis