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: 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: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=37.139.111.173; posting-account=XTXNewoAAADD4BGI_wRdCjVVxYLGMIEK References: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: 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 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/