DFPlayer
DFPlayer copied to clipboard
mp3.getStatus() always returning 0 even when mp3 playing
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
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
I believe I did - I used your example code.
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)