Has anyone found a way to communicate with the DFPlayer faster than 9600 baud? After significant time searching, only hints at communicating with the DFPlayer at higher baud rates turned up. One official document says it's possible. So far, no searches have revealed how. In a DFRobot forum a company rep posted this, but I don't understand it:
void h_send_func () {
for (int i=0; i<10; i++) {
_hardware_serial->write (send_buf[i]);
}
}
//
void s_send_func () {
for (int i=0; i<10; i++) {
_software_serial->write (send_buf[i]);
}
}
//
/ oid mp3_set_serial (HardwareSerial *theSerial) {
void mp3_set_serial (HardwareSerial &theSerial) {
_hardware_serial = &theSerial;
send_func = h_send_func;
}
//
void mp3_set_serial (SoftwareSerial &theSerial) {
_software_serial = &theSerial;
send_func = s_send_func;
}