Reference
Last revision 2025/12/09
Communication Protocol Description
Serial port mode, baud rate @19200 bps, 8, N, 1 format.
Communication instructions use a string form, "\r\n" express a enter newline character , it will get the return value of a string form after sending the command.
| Feature Name | Instruction | The Return Value | Note |
|---|---|---|---|
| Pause | \\:p\\r\\n | Return pause\\r\\n | \\r\\n Enter newline character |
| Play | \\:s\\r\\n | Return start\\r\\n | \\r\\n Enter newline character |
| Next | \\:n\\r\\n | Return next\\r\\n Failure false\\r\\n | \\r\\n Enter newline character |
| Previous | \\:u\\r\\n | Return key up\\r\\n | \\r\\n Enter newline character |
| Volume | \\:v X\\r\\n(Note: is v Spaces with digital again, range of 0-255, 0 is mute, 255 is maximum volume) | Return vol set ok\\r\\n | X=0-255,The greater the number, the greater the volume |
| Song List | \\:l\\r\\n | Return \\r\\n | After the last song: End of Filelist |
| Play the Specified File | \\Voice File Name\\r\\n | Return Play ok\\r\\n File Not found\\r\\n Play End Play end\\r\\n | Voice file name is not more than eight capital English letters or characters, 4 input file name does not need to include type suffix |
| Record | \\:r\\r\\n | Return record\\r\\n | After turning on the mic to start recording, the module will no longer support among other control commands, unless sent \\ : e exit recording applications. |
| Exit Recording | \\:e\\r\\n | Output:exit record\\r\\n | Stop the recording, and in turn automatically save as: REC001.mp3 REC002.mp3 …… |
| Play tts voice | \\:t Voice character\\r\\n | Return Play ok\\r\\n File Not found\\r\\n Play end Play end\\r\\n | Voice is not more than 21 characters |
| Version Query | \\:i\\r\\n | Return DFRduino Player V3.0 \\r\\n https://www.dfrobot.com/ \\r\\n |
Was this article helpful?
