Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19923
| From | Jean Dupont <jeandupont115@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | pySerial question, setting certain serial parameters [newbie] |
| Date | 2012-02-04 04:47 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <4142345.2853.1328359637311.JavaMail.geo-discussion-forums@yquu38> (permalink) |
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)
thanks
Jean
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll 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