Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #32238
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <kurabas@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'linux,': 0.05; 'subject:How': 0.09; 'accepts': 0.09; 'subject:set': 0.09; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'oct': 0.16; 'wrote:': 0.17; 'test.': 0.17; 'thu,': 0.17; 'creates': 0.18; 'windows': 0.19; 'python?': 0.20; 'explicit': 0.22; 'cc:2**0': 0.23; 'nearly': 0.23; 'seems': 0.23; 'patch': 0.24; 'cc:no real name:2**0': 0.24; 'tried': 0.25; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'all.': 0.28; 'fedora': 0.29; 'implies': 0.29; 'relies': 0.29; 'source': 0.29; 'subject: ?': 0.30; 'thursday,': 0.30; 'error': 0.30; 'code': 0.31; 'not.': 0.32; 'url:home': 0.33; 'problem': 0.33; 'received:google.com': 0.34; 'list': 0.35; 'generic': 0.35; 'returning': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'anything': 0.36; 'bad': 0.37; 'october': 0.37; 'does': 0.37; 'uses': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'from:no real name:2**0': 0.60; 'email addr:gmail.com': 0.63; 'special': 0.73; '.net,': 0.91; 'dennis': 0.91 |
| Newsgroups | comp.lang.python |
| Date | Fri, 26 Oct 2012 15:01:43 -0700 (PDT) |
| In-Reply-To | <mailman.2858.1351188682.27098.python-list@python.org> |
| Complaints-To | groups-abuse@google.com |
| Injection-Info | glegroupsg2000goo.googlegroups.com; posting-host=37.139.111.173; posting-account=XTXNewoAAADD4BGI_wRdCjVVxYLGMIEK |
| References | <d5871091-63c8-4582-9485-138195cf6d36@googlegroups.com> <mailman.2858.1351188682.27098.python-list@python.org> |
| User-Agent | G2/1.0 |
| X-Google-Web-Client | true |
| X-Google-IP | 37.139.111.173 |
| MIME-Version | 1.0 |
| Subject | Re: How to set 250000 baud rate in pyserial ? |
| From | kurabas@gmail.com |
| To | comp.lang.python@googlegroups.com |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Message-ID | <mailman.2908.1351288913.27098.python-list@python.org> (permalink) |
| Lines | 47 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1351288913 news.xs4all.nl 6946 [2001:888:2000:d::a6]:42612 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:32238 |
Show key headers only | View raw
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