I'm trying to set a custom baud rate of 10400 to my connected device. I'm using the Qt Creator IDE in order to interact with the device. However, through several methods, I'm unable to change the baud rate from 9600, which is the default baud rate.
I've tried QSerialPort::setBaudRate()
, but fails because of an unsupported divisor. I've tried stty -F /dev/ttyUSB0 10400
, however it returns as an invalid argument.
I'm attempting to use the freediag
API in order to now set the baud rate to 10400. However, because of the poor documentation provided, I'm not really sure how to set the baud rate. The command is IB 10, however I have no idea as to where to execute this command (might be executing the command in the wrong directory?)?
If there's any alternative solutions than the one I'm trying, please explain it to me as I'm running out of options.