DFplayer mini query volume

Hi,

I am using a DFplayer mini module and I want to read the value of the volume. This page: DFPlayer_Mini_SKU_DFR0299-DFRobot shows that the command code for querying the volume is 0x43. However when I send that command to the DFplayer I don't get anything on the RX (but somehow there are 10 bytes to be read when doing available() on the DFplayer's serial port). The 10 bytes are present no matter if I query the volume or not. How do I read the volume of the DFplayer?

Thanks.

What happens if you flush the serial input buffer, and then do the query?

Still getting rubbish data. The input buffer keeps filling up with unknown data. I made it so that it reads the first byte after querying the volume but the read data is not useful. I also tried reading both the first and second byte; but still garbage. The volume should be a value between 0 and 30. I am getting 126 on the first byte.

Does the data look like this?

0x7E, 0xFF, 06, 00, 01, 00, 00, 00, 00, 0xEF

Close; here is what I get;

126
255
6
67
0
0
10
254
174
239

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.