Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32238
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2012-10-26 15:01 -0700 |
| References | <d5871091-63c8-4582-9485-138195cf6d36@googlegroups.com> <mailman.2858.1351188682.27098.python-list@python.org> |
| Subject | Re: How to set 250000 baud rate in pyserial ? |
| From | kurabas@gmail.com |
| Message-ID | <mailman.2908.1351288913.27098.python-list@python.org> (permalink) |
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@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@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
How to set 250000 baud rate in pyserial ? kurabas@gmail.com - 2012-10-25 04:09 -0700
Re: How to set 250000 baud rate in pyserial ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-25 14:11 -0400
Re: How to set 250000 baud rate in pyserial ? Grant Edwards <invalid@invalid.invalid> - 2012-10-25 21:14 +0000
Re: How to set 250000 baud rate in pyserial ? kurabas@gmail.com - 2012-10-26 15:01 -0700
Re: How to set 250000 baud rate in pyserial ? Michael Torrie <torriem@gmail.com> - 2012-10-26 16:08 -0600
Re: How to set 250000 baud rate in pyserial ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-10-27 00:43 -0400
Re: How to set 250000 baud rate in pyserial ? kurabas@gmail.com - 2012-10-26 15:01 -0700
csiph-web