"Card Online" instead of playing #167
Replies: 11 comments
-
The only thing I can think of is that you are not waiting after startup for the notifications that the device is ready for commands. I forget the exact notifications that are sent, but Card Online is one of them. You can call |
Beta Was this translation helpful? Give feedback.
-
Yes, I tested with the example and it doesn’t work… I tested a more simple code which works but with less functionalities, if you want to have a look.
https://drive.google.com/file/d/1DarKSM06ZiGLN_95APHyuZoIfex8JJbD/edit
… Le 18 nov. 2022 à 17:46, Michael Miller ***@***.***> a écrit :
The only thing I can think of is that you are not waiting after startup for the notifications that the device is ready for commands. I forget the exact notifications that are sent, but Card Online is one of them. You can call isOnline() to check that it is ready.
Did you try the examples to make sure its not your sketch?
I have never heard about a firmware updates.
—
Reply to this email directly, view it on GitHub <#102 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEIPLEIYLF5DZH3FQBYK6Q3WI6XFPANCNFSM6AAAAAASEOPFCQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
What are the names of the Audio files on your SD card? |
Beta Was this translation helpful? Give feedback.
-
Like that : "/mp3/0001.mp3"
… Le 18 nov. 2022 à 17:52, Michael Miller ***@***.***> a écrit :
What are the names of the files on your SD card?
—
Reply to this email directly, view it on GitHub <#102 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEIPLEOKVSNP3X55MHG65FDWI6X5TANCNFSM6AAAAAASEOPFCQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Audio Files, the ones you are trying to play. |
Beta Was this translation helpful? Give feedback.
-
It’s the content of my SD card ^^
And in my code I just test with dfmp3.playMp3FolderTrack(1); // sd:/mp3/0001.mp3
With your lib, I can get volume, EQ, etc, receive notifications, but when I run the playMp3[…] code, nothing append and I receive the notification as if the SD cards was being inserted…
I can’t understand. I don’t see major difference btw your lib and the sample code I sent bellow which works in my case
… Le 18 nov. 2022 à 18:04, Michael Miller ***@***.***> a écrit :
Audio Files, the ones you are trying to play.
—
Reply to this email directly, view it on GitHub <#102 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEIPLEPCRLP3QJCOQIY2NBDWI6ZLVANCNFSM6AAAAAASEOPFCQ>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
That ZIP file didn't contain any audio files to play, so if you call Also, are you using The big difference is that the sketch you pointed me at doesn't seem to read the status from the player. I didn't look too deeply though. If you want someone to inspect code, minimize the code the smallest code that reproduces the problem and include it here. (see markdown to provide "code" formatting). |
Beta Was this translation helpful? Give feedback.
-
I edited my previous message, I just saw that the screenshot was not visible. My code is your example code with just the port edited, not else :/ |
Beta Was this translation helpful? Give feedback.
-
I would suggest two things to help track down the issue.
This will dump the low level information for each command and response and should give us a hint. |
Beta Was this translation helpful? Give feedback.
-
Hi @Makuna, also, as not always a dfplayer is present, its not possible to wait for ever that dfplayer is available (like waitIsOnline flag).. although: the dfplayer is autoplaying and sending info about the played songs, but this doesnt set isOnline.. would it be possible somehow, to expand the events/notifications, which will set isOnline true? EDIT: AND thanks for the work on this library! Regards, |
Beta Was this translation helpful? Give feedback.
-
@patrickzzz The notification callback method is |
Beta Was this translation helpful? Give feedback.
-
Hi,
I have a problem with my module... When I play a file, instead of playing the file, I receive a notification "Card Online"... I tried many SD Cards and I read somewhere that it exists a firmware upgrade of the DFR0299, so I made it. Each time I make it before restarting the uC and putting a SDCard with sounds, it works. But if I unplug/replug the 5V, Impossible.
Do you have an idea ?
Thanks 😊
Beta Was this translation helpful? Give feedback.
All reactions