-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
DFPlayer Mini is slow(lag) and unresponsive. (workaround) #5528
Comments
The DF Player is a very very cheap device. The problems you describe are not related to Tasmota. |
@Jason2866 I also doubt its stability when working with TASMOTA so I will try it with ESPEASY, if the error appears, then it can be concluded that it comes from hardware, otherwise I will go back to TASMOTA to further investigation. I really want it to run with the TASMOTA environment instead of ESPEASY. Update: @Jason2866 I've just tested DFPlayer with ESP_Easy_mega-20190315_test_core_242_ESP8266_4M.bin that it work and response 100% of time(web cmd and MQTT cmd). so, I can be concluded that the issue is not come from hardware. |
@wongnam |
I just received my dfplayer and it is the cheapest model, that I could find. So I hope it is unreliable ;) What I think so far: I will try to add this and report here, if there is something to show. |
Even though there is nothing to show yet, the „good“ news are, that I have serial connection problems too from time to time. So I have something to work on the table. Sometimes I get from the device: But it works most of the time. There is still a lot of basework to do, but as the device never really froze, I am quite optimistic to circumvent the (probably hardware related) issues with a software solution. |
ok i found the bug. if you disable interrupts in tasmota serial write it works 100 % of time. to test it simply set m_high_speed=1; at the end of subroutine => |
That sounds like a very good idea!! |
@gemu2015 Good idea, let me try it tonight. |
simplest solution just change => m_high_speed = (speed > 9600); to => m_high_speed = (speed >= 9600); |
yes, I get your point.
|
Yes, this seems to work here for me. |
Cool PR awaited ;-) |
@gemu2015 It's great for me now. the DFPlayer Mini work perfectly after fixed as your advice. Thank you. |
are you serious? a pr for one line of code ? i am sure @arendst is reading this. he may consider to change this line |
Will chk a d do. |
Change disable interrupts during SerialSend from 9600 bps and up (#5528)
Upgrade TasmotaSerial library from 2.3.0 to 2.3.1 |
Thanks @arendst I always got error message when compile it.
|
@wongnam It is your setup latest dev version compiles fine with |
Compile error is my fault and has to do with Sehlly 2.5. Fixed in latest commit. |
@arendst It's working fine now. Thanks. |
BUG DESCRIPTION
I encounter issue regrading to MP3 Player(DF player mini) that it only works about 80% of the time when i type the command to control it. i mean that the command is not effect so i have type again and again.
(note: I am not use MQTT yet that is the reason i already disable the MQTT feature here.)
REQUESTED INFORMATION
Make sure these boxes are checked before submitting your issue. Thank you
FAILURE TO COMPLETE THE REQUESTED INFORMATION WILL RESULT IN YOUR ISSUE BEING CLOSED
status 0
: Yes(Please use
weblog 4
for more debug information)TO REPRODUCE
EXPECTED BEHAVIOUR
SCREENSHOTS
(Please, remember to close the issue when the problem has been addressed)
The text was updated successfully, but these errors were encountered: