pySerial question, setting certain serial parameters [newbie]
Chris Rebert
clp2 at rebertia.com
Mon Feb 6 23:48:54 EST 2012
On Sat, Feb 4, 2012 at 4:47 AM, Jean Dupont <jeandupont115 at 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
More information about the Python-list
mailing list