Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19936

Re: pySerial question, setting certain serial parameters [newbie]

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 <chris@rebertia.com>
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 <clp2@rebertia.com>
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 <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>
Newsgroups comp.lang.python
Message-ID <mailman.5492.1328590137.27778.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Feb 4, 2012 at 4:47 AM, Jean Dupont <jeandupont115@gmail.com> wrote:
> I need to set the following options I found in a Perl-script in Python for serial communication with a device (a voltmeter):
>
> $port->handshake("none");
> $port->rts_active(0);
> $port->dtr_active(1);
>
> I have thus far the following  statements but I think it does not set the above parameters correctly:
> import serial
> voltport='/dev/ttyUSB2'
> ser2 = serial.Serial(voltport, 2400, 8, serial.PARITY_NONE, 1,timeout=15)

A link to the Perl library's documentation would be helpful.

Cheers,
Chris

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pySerial question, setting certain serial parameters [newbie] Jean Dupont <jeandupont115@gmail.com> - 2012-02-04 04:47 -0800
  Re: pySerial question, setting certain serial parameters [newbie] Chris Rebert <clp2@rebertia.com> - 2012-02-06 20:48 -0800
  Re: pySerial question, setting certain serial parameters [newbie] Peter <peter.milliken@gmail.com> - 2012-02-07 16:16 -0800

csiph-web