Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 2 months ago. This question has been closed. Reason: Issue resolved
How to change the baud rate for USBSerial
Hi:
The Serial library has a function named baud, which sets the baud rate for the serial interface. However, I do not see a similar function for USBSerial. Is if fixed to 9600?
Thank you! T.H.
1 Answer
10 years, 2 months ago.
Serial has a baudrate, USBSerial only emulates a Serial connection, and has no actual baudrate, so you cannot set it.
I understand there is no baud rate in the virtual com port, but the protocol has the ability to set the baud rate. Is there any way in mbed to read those configuration commands so that you can change the baud on a real UART if you are passing the data to the real UART like an FTDI part?
posted by 23 Feb 2014