Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'linux,': 0.05; 'subject:How': 0.09; 'accepts': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:set': 0.09; 'oct': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'test.': 0.17; 'thu,': 0.17; 'creates': 0.18; 'windows': 0.19; 'python?': 0.20; 'explicit': 0.22; 'nearly': 0.23; 'patch': 0.24; 'header:X-Complaints-To:1': 0.28; 'all.': 0.28; 'fedora': 0.29; 'implies': 0.29; 'relies': 0.29; 'source': 0.29; 'subject: ?': 0.30; 'error': 0.30; 'not.': 0.32; 'url:home': 0.33; 'to:addr :python-list': 0.33; 'list': 0.35; 'generic': 0.35; 'returning': 0.35; 'received:org': 0.36; 'but': 0.36; 'anything': 0.36; 'charset:us-ascii': 0.36; 'bad': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'email addr:gmail.com': 0.63; '.net,': 0.91; 'dennis': 0.91; 'received:108': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: How to set 250000 baud rate in pyserial ? Date: Thu, 25 Oct 2012 14:11:10 -0400 Organization: > Bestiaria Support Staff < References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-220-228.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES 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: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351188682 news.xs4all.nl 6915 [2001:888:2000:d::a6]:35112 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32152 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/