Menu

#28 Accept any speed on Linux

v2.7
closed-accepted
None
5
2014-07-18
2013-03-08
No

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.

Discussion

  • Samuel Tardieu

    Samuel Tardieu - 2013-03-08

    Support arbitrary speed on Linux

     
  • Martin Renold

    Martin Renold - 2013-04-14

    I have tested this patch with current SVN, works fine for me.

     
  • Peter Meerwald

    Peter Meerwald - 2013-08-08

    works for me; what is needed to make this patch acceptable?

     
  • Henry Groover

    Henry Groover - 2013-08-22

    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...

     
  • Anonymous

    Anonymous - 2013-09-03

    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?

     
  • Chris Liechti

    Chris Liechti - 2013-10-11
    • status: open --> closed-accepted
    • assigned_to: Chris Liechti
    • Group: --> v2.7
     
  • Chris Liechti

    Chris Liechti - 2013-10-11

    Tested with a cp210x (ttyUSBx) where the setting is also accepted (though did not check with a scope)

     

Log in to post a comment.