Accept any speed on Linux
Brought to you by:
cliechti
The "trick" of using 38400 bps + a custom divisor in Linux has been replaced since 2009 by a new ioctl pair (TCGETS2/TCSETS2) and a new structure (struct termios2).
This patch allows pyserial to work on with /dev/ACMx devices at arbitrary speeds. This has been tested with actual devices.
Support arbitrary speed on Linux
I have tested this patch with current SVN, works fine for me.
works for me; what is needed to make this patch acceptable?
Works for me also. Tested with Arduino Mega 2560 (RAMPS 1.4 with Marlin firmware for Mendel Prusa). The /dev/ACMx example mentioned in the patch description is an important use case since the processor has a significant bit rate error at rates other than 250000 (such as the "normal" bit rates). It would be great to see this in trunk...
Is anything wrong with this patch? It has been used by several people since last March, allows to use custom baudrate that cannot be achieved without it, and nobody reported a problem.
Will it be integrated?
Tested with a cp210x (ttyUSBx) where the setting is also accepted (though did not check with a scope)