Open funktionierbar opened 2 years ago
Same module & IC, different results.
DFPlayer Analyzer 1.0 - Starting up...
[61] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
[172] Packet received (<-): 7E FF 6 42 0 0 0 FE B9 EF <- Msg: 42 (GetStatus), arg: 0
-------------------------------------------------------
Test Case "TestConnectivity" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestDiscoverDevices"
-------------------------------------------------------
[210] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[1015] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[2331] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[2444] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[2706] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[2768] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[4783] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[6797] Packet sent (->): 7E FF 6 48 0 0 0 FE B3 EF -> Cmd: 48 (GetNoTracksSD), arg: 0
[6907] Packet received (<-): 7E FF 6 48 0 0 F FE A4 EF <- Msg: 48 (GetNoTracksSD), arg: 15
[6921] Packet sent (->): 7E FF 6 9 0 0 1 FE F1 EF -> Cmd: 9 (SetPlaybackDevice), arg: 1
[8938] Packet sent (->): 7E FF 6 47 0 0 0 FE B4 EF -> Cmd: 47 (GetNoTracksUSB), arg: 0
[9049] Packet received (<-): 7E FF 6 47 0 0 0 FE B4 EF <- Msg: 47 (GetNoTracksUSB), arg: 0
[10062] Packet sent (->): 7E FF 6 9 0 0 5 FE ED EF -> Cmd: 9 (SetPlaybackDevice), arg: 5
[12077] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
-------------------------------------------------------
Test Case "TestDiscoverDevices" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestReaction3F"
-------------------------------------------------------
[12291] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[13093] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[14409] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[14522] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[14784] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[14848] Packet sent (->): 7E FF 6 3F 0 0 0 FE BC EF -> Cmd: 3F (StorageDevices), arg: 0
--------------
ERROR 129
--------------
-------------------------------------------------------
Test Case "TestReaction3F" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestGetFolderTrackCount"
-------------------------------------------------------
[16385] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[17189] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[18506] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[18618] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[18881] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[18944] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[19957] Packet sent (->): 7E FF 6 4E 0 0 1 FE AC EF -> Cmd: 4E (GetNoTracksFolder), arg: 1
[20699] Packet received (<-): 7E FF 6 4E 0 0 2 FE AB EF <- Msg: 4E (GetNoTracksFolder), arg: 2
-------------------------------------------------------
Test Case "TestGetFolderTrackCount" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestGetCurrentTrack"
-------------------------------------------------------
[20740] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[21494] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[22860] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[22973] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[23235] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[23299] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[23562] Packet sent (->): 7E FF 6 F 0 1 2 FE E9 EF -> Cmd: F (PlayFolderTrack), arg: 258
[25576] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
[25631] Packet received (<-): 7E FF 6 4C 0 0 F FE A0 EF <- Msg: 4C (GetCurrentTrackSD), arg: 15
[25646] Packet sent (->): 7E FF 6 F 0 1 1 FE EA EF -> Cmd: F (PlayFolderTrack), arg: 257
[25711] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
--------------
ERROR 129
--------------
[27262] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
[27319] Packet received (<-): 7E FF 6 4C 0 0 E FE A1 EF <- Msg: 4C (GetCurrentTrackSD), arg: 14
GetCurrentTrack for SD returns correct value 1600ms after start of track
[27339] Packet sent (->): 7E FF 6 16 0 0 0 FE E5 EF -> Cmd: 16 (Stop), arg: 0
-------------------------------------------------------
Test Case "TestGetCurrentTrack" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestTrackFinishedCallback"
-------------------------------------------------------
[27403] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[28155] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[29521] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[29633] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[29896] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[29959] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[30973] Packet sent (->): 7E FF 6 F 0 1 2 FE E9 EF -> Cmd: F (PlayFolderTrack), arg: 258
[32988] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
[33043] Packet received (<-): 7E FF 6 4C 0 0 F FE A0 EF <- Msg: 4C (GetCurrentTrackSD), arg: 15
[57660] Packet received (<-): 7E FF 6 3D 0 0 F FE AF EF <- Msg: 3D (TrackFinishedSD), arg: 15
Callback global track finished: 15
Received 1 callback(s) on SD track end
-------------------------------------------------------
Test Case "TestTrackFinishedCallback" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestContinuePlaybackAfterAd"
-------------------------------------------------------
[60104] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[60859] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[62225] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[62338] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[62600] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[62662] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[63676] Packet sent (->): 7E FF 6 F 0 1 2 FE E9 EF -> Cmd: F (PlayFolderTrack), arg: 258
[65690] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
[65745] Packet received (<-): 7E FF 6 4C 0 0 F FE A0 EF <- Msg: 4C (GetCurrentTrackSD), arg: 15
[65760] Packet sent (->): 7E FF 6 13 0 0 64 FE 84 EF -> Cmd: 13 (PlayAd), arg: 100
[65914] Packet received (<-): 7E FF 6 40 0 0 6 FE B5 EF <- Msg: 40 (Error), arg: 6
--------------
ERROR 6
--------------
[66281] Packet sent (->): 7E FF 6 4C 0 0 0 FE AF EF -> Cmd: 4C (GetCurrentTrackSD), arg: 0
[66337] Packet received (<-): 7E FF 6 4C 0 0 F FE A0 EF <- Msg: 4C (GetCurrentTrackSD), arg: 15
[90455] Packet received (<-): 7E FF 6 3D 0 0 F FE AF EF <- Msg: 3D (TrackFinishedSD), arg: 15
Callback global track finished: 15
[91021] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
[91076] Packet received (<-): 7E FF 6 42 0 0 0 FE B9 EF <- Msg: 42 (GetStatus), arg: 0
-------------------------------------------------------
Test Case "TestContinuePlaybackAfterAd" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Running Test Case "TestWakeupAfterSleep"
-------------------------------------------------------
[91117] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[91872] Packet received (<-): 7E FF 6 3F 0 0 2 FE BA EF <- Msg: 3F (StorageDevices), arg: 2
Callback OnCardOnline: 2
[93238] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[93350] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[93613] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[93675] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[93888] Packet sent (->): 7E FF 6 6 0 0 0 FE F5 EF -> Cmd: 6 (SetVolume), arg: 0
[93950] Packet sent (->): 7E FF 6 16 0 0 0 FE E5 EF -> Cmd: 16 (Stop), arg: 0
[94162] Packet sent (->): 7E FF 6 1A 0 0 1 FE E0 EF -> Cmd: 1A (SetDAC), arg: 1
[94375] Packet sent (->): 7E FF 6 A 0 0 0 FE F1 EF -> Cmd: A (Sleep), arg: 0
[96588] Packet sent (->): 7E FF 6 C 0 0 0 FE EF EF -> Cmd: C (Reset), arg: 0
[98701] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[98813] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[99077] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[99139] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[99352] Packet sent (->): 7E FF 6 F 0 1 2 FE E9 EF -> Cmd: F (PlayFolderTrack), arg: 258
[101366] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[102980] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[104593] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[106206] Packet sent (->): 7E FF 6 16 0 0 0 FE E5 EF -> Cmd: 16 (Stop), arg: 0
[106268] Packet sent (->): 7E FF 6 6 0 0 0 FE F5 EF -> Cmd: 6 (SetVolume), arg: 0
[106333] Packet sent (->): 7E FF 6 16 0 0 0 FE E5 EF -> Cmd: 16 (Stop), arg: 0
[106545] Packet sent (->): 7E FF 6 1A 0 0 1 FE E0 EF -> Cmd: 1A (SetDAC), arg: 1
[106758] Packet sent (->): 7E FF 6 A 0 0 0 FE F1 EF -> Cmd: A (Sleep), arg: 0
[108971] Packet sent (->): 7E FF 6 9 0 0 2 FE F0 EF -> Cmd: 9 (SetPlaybackDevice), arg: 2
[111084] Packet sent (->): 7E FF 6 7 0 0 0 FE F4 EF -> Cmd: 7 (SetEQ), arg: 0
[111196] Packet sent (->): 7E FF 6 1A 0 0 0 FE E1 EF -> Cmd: 1A (SetDAC), arg: 0
[111459] Packet sent (->): 7E FF 6 6 0 0 1 FE F4 EF -> Cmd: 6 (SetVolume), arg: 1
[111522] Packet sent (->): 7E FF 6 F 0 1 2 FE E9 EF -> Cmd: F (PlayFolderTrack), arg: 258
[113537] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[115149] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[116761] Packet sent (->): 7E FF 6 42 0 0 0 FE B9 EF -> Cmd: 42 (GetStatus), arg: 0
--------------
ERROR 129
--------------
[118374] Packet sent (->): 7E FF 6 16 0 0 0 FE E5 EF -> Cmd: 16 (Stop), arg: 0
-------------------------------------------------------
Test Case "TestWakeupAfterSleep" FINISHED
-------------------------------------------------------
-------------------------------------------------------
Profile of this DFPlayer device
-------------------------------------------------------
The following devices have been discovered:
-> SD, discovered by getTotalTrackCount
Does NOT react on setPlaysourceFlash
Does NOT react on 0x3F queries
getFolderTrackCount...
-> for SD returned 2 files in Folder /01/
GetCurrentTrack for SD returns correct value 1600ms after start of track
Sends 1 callback(s) on SD track end
Continue playback after Ad for SD works
Wakeup from sleep by reset does NOT work
Wakeup from sleep by setting playsource SD does NOT work
-------------------------------------------------------------------------------
ALL TESTS COMPLETED!
Please report your results in an issue at
https://github.com/ghmartin77/DFPlayerAnalyzer/issues
Please state the player's chip name in the title of the issue entry.
Thanks for your support!
-------------------------------------------------------------------------------
When changing "c_msSendSpace" value to 200ms (instead of 50ms) the 0x3F queries works.
Reacts on 0x3F queries, reply : 2 -> SD
I had found the same solution! Even 120ms in c_msSendSpace solved my communications problems.
When changing "c_msSendSpace" value to 200ms (instead of 50ms) the 0x3F queries works.
Reacts on 0x3F queries, reply : 2 -> SD
I left some notes in case anyone has difficulties with this V3.0 module:
I have a problem with this module, it always plays at maximum volume, no matter what I set for Initvolume or how long i delay between mp3.begin and mp3.SetVolume or how I format the uSD-Card.