Skip to content

Unexpected responses by various functions/queries #8

@lukoukou

Description

@lukoukou

Hi,

first off: Many thanks for your great work with this project! I am currently trying to set up my DFPlayer Mini using your library and test files and hope that you could help me as I am slowly loosing my mind with this module.

Until now, I attempted to hard code the UART communication in the main.py on the ESP32, but thanks to a friendly Redditor stumbled upon your library. The issue I have now is that I only receive very weird responses from the module.

This applies to various functions/queries:

get_files_in_folder

df.get_files_in_folder(1) df.get_files_in_folder(2) df.get_files_in_folder(3) df.get_files_in_folder(4)

gets me

1
2
3
4

which doesn't make any sense, since folder 4 does not even exist on the drive. It rather relays the numbers of the folders back to me.

get_volume

With

df.volume(15) time.sleep(2) print("Current volume:", df.get_volume())

I exclusively receive

Current volume: 0

I also tried other values for vol, also without avail.

play(1,1)

For play(), I so for only got a -1, which to my understanding implies a communication error. Given that the other communications seem to work just fine, I am utterly confused what could be the issue at hand.

I am attaching the scripts I am running on my ESP32 for reference.

main_juke_v2.py
dfplayer_lib.py

Any help is much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions