How to set 250000 baud rate in pyserial ?
kurabas at gmail.com
kurabas at gmail.com
Fri Oct 26 18:01:43 EDT 2012
Error is like cannot set special baud rate.
But as I said pyserial set this speed without problem for ttyUSB0
So it seems pyserial uses diefferent code depending of port type.
I tried to simlink ln -s ttyACM0 ttyUSB0 but it does not work
On Thursday, October 25, 2012 9:11:23 PM UTC+3, Dennis Lee Bieber wrote:
> On Thu, 25 Oct 2012 04:09:56 -0700 (PDT), kurabas at gmail.com declaimed
>
> the following in gmane.comp.python.general:
>
>
>
> > I use Arduino 1280 and Arduino 2560 under Fedora 15.
>
> > 1280 creates ttyUSB0 port and can be set at 2500000 successfully.
>
> > 2560 creates ttyACM0 port and can be only set at speeds from list (no 250000) in pyserial. How to set 250000 to ttyACM0 port?? Need I patch kernel or python?
>
>
>
> You don't say what error you are receiving but looking at the source
>
> (serialposix.py) implies that it accepts nearly anything on Linux, and
>
> relies on the OS returning a success/failure if the value is allowed or
>
> not.
>
>
>
> xxxBSD, SunOS, HPUX, IRIX, and CYGWIN systems don't allow "special"
>
> baudrates at all.
>
>
>
> .NET, JVM, and Windows don't seem to have explicit call outs for bad
>
> rates -- just a generic port configured OK test.
>
> --
>
> Wulfraed Dennis Lee Bieber AF6VN
>
> wlfraed at ix.netcom.com HTTP://wlfraed.home.netcom.com/
More information about the Python-list
mailing list