USB Serial doesn't work that way. If I open it at 115200 or 9600 baud it doesn't matter (I just verified that too). The USB serial is communicating at Full Speed (12 Mbits/sec) and the serial baud rate is a meaningless number. Yes, the device may be sending data faster than the host can receive. But that's what flow control is for, and that's something you need to design into your transfer protocol.bittware wrote:I know REPL needs baud rate of 115200 which is fixed by design.dhylands wrote:USB_VCP has no concept of baud rate. It isn't needed.
When you connect to usb_serial, the baud rate that you use is ignored. You only need a baud rate with a UART.
However, once I need USB_VCP for other purpose, e.g. customized data transmission, then I need to lower this baud rate in order to interface the communication software running on PC. This software communication does not support baud rate of 115200.
It doesn't matter what baud rate you open the usb serial port with, the data will arrive at the same 12 Mbits/sec. I think you're confusing USB Serial adapters, which do have a physical UART attached on the other end, and the baud rate you use on the USB serial link is forwarded to that physical serial port.
With USB_VCP there is no physical serial port. It's all virtual. baud rate doesn't matter.