When setting the baud rate in the open serial port, how long should we wait before the baud rate actually changes? I think it depends on the port driver, right? (especially if it's not a real serial port).
In this case, is there a way to get an event or request a serial port to see its actual baud rate?
I saw so many dirty codes that set the transfer rate and sleep for a few seconds before continuing, and this delay is actually random and sometimes does not work on some systems (maybe this may be a driver, it takes more time for this system ?!).
In some cases, the situation is even worse, a device connected to the serial port has a timeout, which, if the delay is too long, the session ends completely!
Is there any "standard" way to change port properties (for example, "baud rate")?
source
share