You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the AA20HFJ648 module, reading from the chip does not work for some functions. The number of files in a folder is output incorrectly.
It is often reported that -1 is returned. This is the case if the number is only requested for one folder and the volume or EQ has been set beforehand, for example.
If you request the same folder several times, the 2 or 3 result is returned correctly.
I have checked the communication on the bus, the result is already sent from the Arduino to the PC before the DFmini has responded.
In the code I found that if you set volume or EQ, the return value is not waited for, if I have understood everything correctly. However, the AA20HFJ648 confirms every command, i.e. if I request the number of files after setting the volume, the confirmation response from volume is in the receive buffer. This data is then interpreted incorrectly and obviously output as -1.
A correction would be to clear the receive buffer before each command is sent to which a response is expected. It would be more elegant to read this confirmation for versions that confirm every command.
The text was updated successfully, but these errors were encountered:
for normal use you have to comment out the debug options in the header file (line 37 & 38), it use some bits from portc, i used it for debugging with a logic analyzer, it's more real time like the serial messages
if you will use this debug function you have to add this line in your arduino source code to set the pins as an output
DDRC=DDRC|0x1F;
With the AA20HFJ648 module, reading from the chip does not work for some functions. The number of files in a folder is output incorrectly.
It is often reported that -1 is returned. This is the case if the number is only requested for one folder and the volume or EQ has been set beforehand, for example.
If you request the same folder several times, the 2 or 3 result is returned correctly.
I have checked the communication on the bus, the result is already sent from the Arduino to the PC before the DFmini has responded.
In the code I found that if you set volume or EQ, the return value is not waited for, if I have understood everything correctly. However, the AA20HFJ648 confirms every command, i.e. if I request the number of files after setting the volume, the confirmation response from volume is in the receive buffer. This data is then interpreted incorrectly and obviously output as -1.
A correction would be to clear the receive buffer before each command is sent to which a response is expected. It would be more elegant to read this confirmation for versions that confirm every command.
The text was updated successfully, but these errors were encountered: