Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Morsey opened this issue Apr 5, 2023 · 3 comments
Open

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

Morsey opened this issue Apr 5, 2023 · 3 comments

Comments

@Morsey
Copy link

Morsey commented Apr 5, 2023

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

@enjoyneering
Copy link
Owner

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

@Morsey
Copy link
Author

Morsey commented Apr 6, 2023

I believe I did - I used your example code.

@androidonis
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants