Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.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.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'python': 0.08; 'subject:parameters': 0.09; 'subject:setting': 0.09; 'am,': 0.12; "library's": 0.16; 'cc:addr:python-list': 0.16; 'subject:question': 0.16; 'wrote:': 0.18; 'perl': 0.18; 'cheers,': 0.20; 'thus': 0.21; 'cc:no real name:2**0': 0.21; 'header:In- Reply-To:1': 0.22; 'feb': 0.22; 'parameters': 0.25; 'sat,': 0.25; 'cc:2**0': 0.26; 'import': 0.27; 'message-id:@mail.gmail.com': 0.29; 'cc:addr:python.org': 0.29; 'jean': 0.30; 'chris': 0.30; 'device': 0.31; 'does': 0.32; 'received:209.85.214': 0.36; 'subject:]': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'options': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'received:209': 0.39; 'link': 0.62; 'skip:1 10': 0.63; 'serial': 0.71; 'sender:addr:chris': 0.84; 'to:none': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:cc:content-type :content-transfer-encoding; bh=eLNCEfqWCiVW+DJvuOjWZas0CWsx507flywB3oJkcFI=; b=M5xZVW4+zY/2FFzn5/YV1qb84AuUY6mY8oTP1uqVtKGKrrBOQuGylUYDDW+wF60Ra5 OyU+e1ftoAsTxRmF3jTMUVPynQXLd+/YX+xoDEI2YDbflODkKy5vz7Xn9fS0UPnaZKem HlWh1B6AwW39bOQMDoLbfgVMS/IlUCIPGFYJk= MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: <4142345.2853.1328359637311.JavaMail.geo-discussion-forums@yquu38> References: <4142345.2853.1328359637311.JavaMail.geo-discussion-forums@yquu38> Date: Mon, 6 Feb 2012 20:48:54 -0800 X-Google-Sender-Auth: -8w2eZyyRc9NeGJ6xmUhpGEYYZ8 Subject: Re: pySerial question, setting certain serial parameters [newbie] From: Chris Rebert Cc: python-list@python.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1328590137 news.xs4all.nl 6845 [2001:888:2000:d::a6]:36669 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19936 On Sat, Feb 4, 2012 at 4:47 AM, Jean Dupont wrote= : > I need to set the following options I found in a Perl-script in Python fo= r serial communication with a device (a voltmeter): > > $port->handshake("none"); > $port->rts_active(0); > $port->dtr_active(1); > > I have thus far the following =C2=A0statements but I think it does not se= t the above parameters correctly: > import serial > voltport=3D'/dev/ttyUSB2' > ser2 =3D serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,timeout= =3D15) A link to the Perl library's documentation would be helpful. Cheers, Chris